From 7883b26da8a292151c9d0d4b503486f2e3ccf756 Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 26 May 2020 12:13:15 -0700 Subject: [PATCH 01/15] Remove code migrated to aspnetcore Also remove RazorPageGenerator --- eng/Versions.props | 2 - .../CSharpIdentifier.cs | 76 - .../ExtensionInitializer.cs | 29 - .../IInjectTargetExtension.cs | 12 - .../IViewComponentTagHelperTargetExtension.cs | 12 - .../InjectDirective.cs | 124 - .../InjectIntermediateNode.cs | 59 - .../InjectTargetExtension.cs | 44 - .../LegacySectionTargetExtension.cs | 32 - ...ore.Mvc.Razor.Extensions.Version1_X.csproj | 22 - .../ModelDirective.cs | 145 - .../ModelExpressionPass.cs | 85 - .../MvcImportProjectFeature.cs | 95 - .../MvcViewDocumentClassifierPass.cs | 71 - .../Properties/AssemblyInfo.cs | 11 - .../RazorExtensions.cs | 121 - .../RazorExtensionsDiagnosticFactory.cs | 103 - .../Resources.resx | 168 - .../TagHelperDescriptorExtensions.cs | 37 - .../ViewComponentResources.resx | 135 - .../ViewComponentTagHelperConventions.cs | 10 - ...ViewComponentTagHelperDescriptorFactory.cs | 269 - ...iewComponentTagHelperDescriptorProvider.cs | 72 - .../ViewComponentTagHelperIntermediateNode.cs | 59 - .../ViewComponentTagHelperMetadata.cs | 14 - .../ViewComponentTagHelperPass.cs | 203 - .../ViewComponentTagHelperTargetExtension.cs | 183 - .../ViewComponentTypeVisitor.cs | 86 - .../ViewComponentTypes.cs | 35 - .../AssemblyAttributeInjectionPass.cs | 102 - .../CSharpIdentifier.cs | 76 - .../ExtensionInitializer.cs | 15 - .../IInjectTargetExtension.cs | 12 - .../IViewComponentTagHelperTargetExtension.cs | 12 - .../InjectDirective.cs | 124 - .../InjectIntermediateNode.cs | 58 - .../InjectTargetExtension.cs | 44 - .../InstrumentationPass.cs | 125 - ...ore.Mvc.Razor.Extensions.Version2_X.csproj | 21 - .../ModelDirective.cs | 152 - .../ModelExpressionPass.cs | 85 - .../MvcImportProjectFeature.cs | 97 - .../MvcViewDocumentClassifierPass.cs | 71 - .../NamespaceDirective.cs | 204 - .../PageDirective.cs | 121 - .../PagesPropertyInjectionPass.cs | 57 - .../Properties/AssemblyInfo.cs | 12 - .../RazorExtensions.cs | 53 - .../RazorExtensionsDiagnosticFactory.cs | 131 - .../RazorPageDocumentClassifierPass.cs | 164 - .../Resources.resx | 186 - .../TagHelperDescriptorExtensions.cs | 37 - .../ViewComponentResources.resx | 135 - .../ViewComponentTagHelperConventions.cs | 10 - ...ViewComponentTagHelperDescriptorFactory.cs | 284 - ...iewComponentTagHelperDescriptorProvider.cs | 72 - .../ViewComponentTagHelperIntermediateNode.cs | 59 - .../ViewComponentTagHelperMetadata.cs | 14 - .../ViewComponentTagHelperPass.cs | 203 - .../ViewComponentTagHelperTargetExtension.cs | 183 - .../ViewComponentTypeVisitor.cs | 88 - .../ViewComponentTypes.cs | 35 - .../baseline.netcore.json | 1180 -- .../baseline.netframework.json | 982 - .../ExtensionInitializer.cs | 16 - .../IInjectTargetExtension.cs | 12 - .../IViewComponentTagHelperTargetExtension.cs | 12 - .../InjectDirective.cs | 131 - .../InjectIntermediateNode.cs | 58 - .../InjectTargetExtension.cs | 44 - ...oft.AspNetCore.Mvc.Razor.Extensions.csproj | 20 - .../ModelDirective.cs | 159 - .../ModelExpressionPass.cs | 85 - .../MvcImportProjectFeature.cs | 97 - .../MvcViewDocumentClassifierPass.cs | 90 - .../PageDirective.cs | 121 - .../PagesPropertyInjectionPass.cs | 57 - .../Properties/AssemblyInfo.cs | 11 - .../RazorExtensions.cs | 48 - .../RazorExtensionsDiagnosticFactory.cs | 131 - .../RazorPageDocumentClassifierPass.cs | 181 - .../Resources.resx | 177 - .../TagHelperDescriptorExtensions.cs | 37 - .../ViewComponentResources.resx | 135 - .../ViewComponentTagHelperConventions.cs | 10 - ...ViewComponentTagHelperDescriptorFactory.cs | 284 - ...iewComponentTagHelperDescriptorProvider.cs | 72 - .../ViewComponentTagHelperIntermediateNode.cs | 59 - .../ViewComponentTagHelperMetadata.cs | 14 - .../ViewComponentTagHelperPass.cs | 203 - .../ViewComponentTagHelperTargetExtension.cs | 183 - .../ViewComponentTypeVisitor.cs | 88 - .../ViewComponentTypes.cs | 35 - .../baseline.netcore.json | 1235 -- .../baseline.netframework.json | 1023 - .../breakingchanges.netcore.json | 11 - .../breakingchanges.netframework.json | 11 - .../AllowedChildTagDescriptor.cs | 48 - .../AllowedChildTagDescriptorBuilder.cs | 17 - .../AllowedChildTagDescriptorComparer.cs | 51 - .../AssemblyExtension.cs | 55 - .../AttributeStructure.cs | 15 - .../BoundAttributeDescriptor.cs | 84 - .../BoundAttributeDescriptorBuilder.cs | 37 - ...undAttributeDescriptorBuilderExtensions.cs | 98 - .../BoundAttributeDescriptorComparer.cs | 65 - .../BoundAttributeDescriptorExtensions.cs | 87 - .../BoundAttributeParameterDescriptor.cs | 69 - ...oundAttributeParameterDescriptorBuilder.cs | 24 - ...undAttributeParameterDescriptorComparer.cs | 60 - .../CSharpIdentifier.cs | 58 - .../Checksum.cs | 28 - .../ClassifiedSpanVisitor.cs | 409 - .../CodeGeneration/CodeRenderingContext.cs | 47 - .../CodeGeneration/CodeTarget.cs | 95 - .../CodeGeneration/CodeTargetBuilder.cs | 18 - .../CodeGeneration/CodeWriter.cs | 207 - .../CodeGeneration/CodeWriterExtensions.cs | 708 - .../DefaultCodeRenderingContext.cs | 220 - .../CodeGeneration/DefaultCodeTarget.cs | 54 - .../DefaultCodeTargetBuilder.cs | 30 - .../CodeGeneration/DefaultDocumentWriter.cs | 318 - .../CodeGeneration/DesignTimeNodeWriter.cs | 259 - .../CodeGeneration/DocumentWriter.cs | 29 - .../CodeGeneration/ICodeTargetExtension.cs | 9 - .../CodeGeneration/IntermediateNodeWriter.cs | 81 - .../CodeGeneration/LinePragma.cs | 63 - .../LiteralRuntimeNodeWriter.cs | 10 - .../CodeGeneration/RuntimeNodeWriter.cs | 391 - ...TagHelperHtmlAttributeRuntimeNodeWriter.cs | 10 - .../TagHelperRenderingContext.cs | 40 - .../ComponentResources.resx | 219 - .../Components/ComponentBindLoweringPass.cs | 840 - .../ComponentChildContentDiagnosticPass.cs | 76 - .../Components/ComponentCodeDirective.cs | 28 - .../Components/ComponentCodeTarget.cs | 58 - .../ComponentComplexAttributeContentPass.cs | 122 - .../ComponentDesignTimeNodeWriter.cs | 991 - .../Components/ComponentDiagnosticFactory.cs | 458 - .../ComponentDocumentClassifierPass.cs | 150 - ...mponentDuplicateAttributeDiagnosticPass.cs | 113 - .../ComponentEventHandlerLoweringPass.cs | 312 - .../Components/ComponentGenericTypePass.cs | 341 - .../ComponentImportProjectFeature.cs | 85 - .../Components/ComponentInjectDirective.cs | 36 - .../ComponentInjectDirectivePass.cs | 58 - .../ComponentInjectIntermediateNode.cs | 60 - .../ComponentIntermediateNodePassBase.cs | 21 - .../Components/ComponentKeyLoweringPass.cs | 76 - .../Components/ComponentLayoutDirective.cs | 31 - .../ComponentLayoutDirectivePass.cs | 51 - .../Components/ComponentLoweringPass.cs | 520 - .../Components/ComponentMarkupBlockPass.cs | 363 - .../Components/ComponentMarkupEncodingPass.cs | 214 - .../Components/ComponentMetadata.cs | 144 - .../Components/ComponentNodeWriter.cs | 263 - .../Components/ComponentPageDirective.cs | 43 - .../Components/ComponentPageDirectivePass.cs | 80 - .../ComponentReferenceCaptureLoweringPass.cs | 86 - .../Components/ComponentRuntimeNodeWriter.cs | 1016 - .../Components/ComponentScriptTagPass.cs | 59 - .../Components/ComponentSplatLoweringPass.cs | 52 - .../ComponentTemplateDiagnosticPass.cs | 67 - .../ComponentTemplateTargetExtension.cs | 18 - .../Components/ComponentTypeParamDirective.cs | 31 - .../Components/ComponentWhitespacePass.cs | 114 - .../Components/ComponentsApi.cs | 162 - .../Components/RouteAttributeExtensionNode.cs | 33 - .../Components/ScopeStack.cs | 91 - ...elperBoundAttributeDescriptorExtensions.cs | 173 - .../TagHelperDescriptorExtensions.cs | 299 - .../DefaultAllowedChildTagDescriptor.cs | 15 - ...DefaultAllowedChildTagDescriptorBuilder.cs | 77 - .../DefaultBoundAttributeDescriptor.cs | 47 - .../DefaultBoundAttributeDescriptorBuilder.cs | 280 - ...efaultBoundAttributeParameterDescriptor.cs | 36 - ...oundAttributeParameterDescriptorBuilder.cs | 108 - .../DefaultDirectiveSyntaxTreePass.cs | 91 - .../DefaultDocumentClassifierPass.cs | 49 - .../DefaultDocumentClassifierPassFeature.cs | 21 - .../DefaultImportProjectFeature.cs | 13 - .../DefaultRazorCSharpDocument.cs | 53 - .../DefaultRazorCSharpLoweringPhase.cs | 32 - .../DefaultRazorCodeDocument.cs | 33 - .../DefaultRazorCodeGenerationOptions.cs | 40 - ...efaultRazorCodeGenerationOptionsBuilder.cs | 60 - ...eGenerationOptionsFactoryProjectFeature.cs | 32 - ...efaultRazorCodeGenerationOptionsFeature.cs | 38 - .../DefaultRazorDiagnostic.cs | 84 - .../DefaultRazorDirectiveClassifierPhase.cs | 30 - .../DefaultRazorDirectiveFeature.cs | 51 - .../DefaultRazorDocumentClassifierPhase.cs | 30 - .../DefaultRazorEngine.cs | 55 - .../DefaultRazorEngineBuilder.cs | 37 - .../DefaultRazorHtmlDocument.cs | 35 - ...faultRazorIntermediateNodeLoweringPhase.cs | 2245 --- .../DefaultRazorOptimizationPhase.cs | 30 - .../DefaultRazorParserOptions.cs | 38 - .../DefaultRazorParserOptionsBuilder.cs | 55 - ...RazorParserOptionsFactoryProjectFeature.cs | 32 - .../DefaultRazorParserOptionsFeature.cs | 42 - .../DefaultRazorParsingPhase.cs | 31 - .../DefaultRazorProjectEngine.cs | 325 - .../DefaultRazorProjectEngineBuilder.cs | 60 - .../DefaultRazorProjectFileSystem.cs | 99 - .../DefaultRazorProjectItem.cs | 45 - .../DefaultRazorSourceLineCollection.cs | 123 - .../DefaultRazorSyntaxTree.cs | 60 - .../DefaultRazorSyntaxTreePhase.cs | 30 - .../DefaultRazorTagHelperBinderPhase.cs | 461 - .../DefaultRazorTargetExtensionFeature.cs | 13 - .../DefaultRequiredAttributeDescriptor.cs | 30 - ...faultRequiredAttributeDescriptorBuilder.cs | 109 - .../DefaultTagHelperDescriptor.cs | 38 - .../DefaultTagHelperDescriptorBuilder.cs | 240 - .../DefaultTagMatchingRuleDescriptor.cs | 24 - ...DefaultTagMatchingRuleDescriptorBuilder.cs | 150 - .../DirectiveDescriptor.cs | 263 - .../DirectiveDescriptorBuilderExtensions.cs | 230 - .../DirectiveDescriptorComparer.cs | 49 - .../DirectiveKind.cs | 12 - .../DirectiveRemovalOptimizationPass.cs | 40 - .../DirectiveTokenDescriptor.cs | 50 - .../DirectiveTokenDescriptorComparer.cs | 44 - .../DirectiveTokenEditHandler.cs | 49 - .../DirectiveTokenKind.cs | 14 - .../DirectiveUsage.cs | 27 - .../DocumentClassifierPassBase.cs | 158 - .../EmptyProjectFileSystem.cs | 30 - .../Extensions/AttributeDirective.cs | 31 - .../Extensions/AttributeDirectivePass.cs | 43 - .../DefaultMetadataIdentifierFeature.cs | 41 - .../DefaultTagHelperBodyIntermediateNode.cs | 74 - .../DefaultTagHelperCreateIntermediateNode.cs | 61 - ...DefaultTagHelperExecuteIntermediateNode.cs | 46 - ...tTagHelperHtmlAttributeIntermediateNode.cs | 84 - .../DefaultTagHelperOptimizationPass.cs | 259 - ...efaultTagHelperPropertyIntermediateNode.cs | 102 - ...DefaultTagHelperRuntimeIntermediateNode.cs | 46 - .../DefaultTagHelperTargetExtension.cs | 664 - .../DesignTimeDirectiveIntermediateNode.cs | 47 - .../Extensions/DesignTimeDirectivePass.cs | 82 - .../DesignTimeDirectiveTargetExtension.cs | 202 - .../Extensions/EliminateMethodBodyPass.cs | 71 - .../Extensions/FunctionsDirective.cs | 44 - .../Extensions/FunctionsDirectivePass.cs | 45 - .../IDefaultTagHelperTargetExtension.cs | 22 - .../IDesignTimeDirectiveTargetExtension.cs | 12 - .../IMetadataAttributeTargetExtension.cs | 16 - .../Extensions/IMetadataIdentifierFeature.cs | 10 - .../IPreallocatedAttributeTargetExtension.cs | 18 - .../Extensions/ISectionTargetExtension.cs | 12 - .../Extensions/ITemplateTargetExtension.cs | 12 - .../Extensions/ImplementsDirective.cs | 31 - .../Extensions/ImplementsDirectivePass.cs | 35 - .../Extensions/InheritsDirective.cs | 46 - .../Extensions/InheritsDirectivePass.cs | 31 - .../Extensions/MetadataAttributePass.cs | 136 - .../MetadataAttributeTargetExtension.cs | 88 - .../Extensions/NamespaceDirective.cs | 33 - .../PreallocatedAttributeTargetExtension.cs | 167 - ...catedTagHelperAttributeOptimizationPass.cs | 166 - ...dTagHelperHtmlAttributeIntermediateNode.cs | 55 - ...elperHtmlAttributeValueIntermediateNode.cs | 88 - ...ocatedTagHelperPropertyIntermediateNode.cs | 97 - ...dTagHelperPropertyValueIntermediateNode.cs | 64 - ...orCompiledItemAttributeIntermediateNode.cs | 59 - ...edItemMetadataAttributeIntermediateNode.cs | 65 - ...SourceChecksumAttributeIntermediateNode.cs | 52 - .../Extensions/SectionDirective.cs | 47 - .../Extensions/SectionDirectivePass.cs | 49 - .../Extensions/SectionIntermediateNode.cs | 55 - .../Extensions/SectionTargetExtension.cs | 43 - .../Extensions/TemplateIntermediateNode.cs | 46 - .../Extensions/TemplateTargetExtension.cs | 35 - .../FileKindDirectiveFeature.cs | 10 - .../FileKinds.cs | 68 - .../HtmlConventions.cs | 44 - .../HtmlNodeOptimizationPass.cs | 32 - ...figureRazorCodeGenerationOptionsFeature.cs | 12 - .../IConfigureRazorParserOptionsFeature.cs | 12 - .../IDirectiveDescriptorBuilder.cs | 49 - .../IImportProjectFeature.cs | 12 - .../IRazorCSharpLoweringPhase.cs | 17 - ...eGenerationOptionsFactoryProjectFeature.cs | 12 - .../IRazorCodeGenerationOptionsFeature.cs | 13 - .../IRazorDirectiveClassifierPass.cs | 14 - .../IRazorDirectiveClassifierPhase.cs | 25 - .../IRazorDirectiveFeature.cs | 12 - .../IRazorDocumentClassifierPass.cs | 14 - .../IRazorDocumentClassifierPhase.cs | 28 - .../IRazorEngineBuilder.cs | 20 - .../IRazorEngineFeature.cs | 10 - .../IRazorEnginePhase.cs | 12 - .../IRazorFeature.cs | 9 - .../IRazorIntermediateNodeLoweringPhase.cs | 19 - .../IRazorOptimizationPass.cs | 14 - .../IRazorOptimizationPhase.cs | 24 - ...RazorParserOptionsFactoryProjectFeature.cs | 12 - .../IRazorParserOptionsFeature.cs | 13 - .../IRazorParsingPhase.cs | 9 - .../IRazorProjectEngineFeature.cs | 10 - .../IRazorSyntaxTreePass.cs | 13 - .../IRazorSyntaxTreePhase.cs | 10 - .../IRazorTagHelperBinderPhase.cs | 9 - .../IRazorTargetExtensionFeature.cs | 13 - .../ITagHelperDescriptorProvider.cs | 12 - .../ITagHelperFeature.cs | 12 - ...SharpCodeAttributeValueIntermediateNode.cs | 31 - .../CSharpCodeIntermediateNode.cs | 27 - ...xpressionAttributeValueIntermediateNode.cs | 31 - .../CSharpExpressionIntermediateNode.cs | 27 - .../ClassDeclarationIntermediateNode.cs | 45 - .../Intermediate/CommonAnnotations.cs | 21 - .../ComponentAttributeIntermediateNode.cs | 198 - .../ComponentChildContentIntermediateNode.cs | 49 - .../Intermediate/ComponentIntermediateNode.cs | 59 - .../ComponentTypeArgumentIntermediateNode.cs | 65 - ...nentTypeInferenceMethodIntermediateNode.cs | 54 - .../Intermediate/DebuggerDisplayFormatter.cs | 21 - .../DefaultRazorIntermediateNodeBuilder.cs | 102 - .../Intermediate/DirectiveIntermediateNode.cs | 32 - .../DirectiveTokenIntermediateNode.cs | 28 - .../Intermediate/DocumentIntermediateNode.cs | 36 - .../DocumentIntermediateNodeExtensions.cs | 132 - .../Intermediate/ExtensionIntermediateNode.cs | 41 - .../FieldDeclarationIntermediateNode.cs | 40 - .../HtmlAttributeIntermediateNode.cs | 44 - .../HtmlAttributeValueIntermediateNode.cs | 31 - .../HtmlContentIntermediateNode.cs | 27 - .../HtmlContentIntermediateNodeExtensions.cs | 27 - .../IExtensionIntermediateNodeVisitor.cs | 10 - .../Intermediate/IntermediateNode.cs | 71 - .../Intermediate/IntermediateNodeBuilder.cs | 34 - .../IntermediateNodeCollection.cs | 225 - .../IntermediateNodeExtensions.cs | 83 - .../Intermediate/IntermediateNodeFormatter.cs | 16 - .../IntermediateNodeFormatterBase.cs | 180 - .../Intermediate/IntermediateNodeReference.cs | 209 - .../Intermediate/IntermediateNodeVisitor.cs | 192 - .../Intermediate/IntermediateNodeWalker.cs | 40 - .../Intermediate/IntermediateToken.cs | 37 - .../MalformedDirectiveIntermediateNode.cs | 32 - .../MarkupBlockIntermediateNode.cs | 34 - .../MarkupElementIntermediateNode.cs | 55 - .../MemberDeclarationIntermediateNode.cs | 9 - .../MethodDeclarationIntermediateNode.cs | 60 - .../Intermediate/MethodParameter.cs | 16 - .../NamespaceDeclarationIntermediateNode.cs | 31 - .../PropertyDeclarationIntermediateNode.cs | 29 - .../ReferenceCaptureIntermediateNode.cs | 65 - .../Intermediate/SetKeyIntermediateNode.cs | 42 - .../Intermediate/SplatIntermediateNode.cs | 32 - .../TagHelperBodyIntermediateNode.cs | 22 - ...elperDirectiveAttributeIntermediateNode.cs | 46 - ...ctiveAttributeParameterIntermediateNode.cs | 50 - .../TagHelperHtmlAttributeIntermediateNode.cs | 34 - .../Intermediate/TagHelperIntermediateNode.cs | 57 - .../TagHelperPropertyIntermediateNode.cs | 43 - .../Intermediate/TokenKind.cs | 12 - .../Intermediate/TypeParameter.cs | 10 - .../UsingDirectiveIntermediateNode.cs | 31 - .../IntermediateNodePassBase.cs | 45 - .../ItemCollection.cs | 129 - .../LargeTextSourceDocument.cs | 159 - .../Legacy/AcceptedCharactersInternal.cs | 22 - .../Legacy/AddImportChunkGenerator.cs | 41 - .../Legacy/AddTagHelperChunkGenerator.cs | 86 - .../Legacy/AutoCompleteEditHandler.cs | 70 - .../Legacy/BalancingModes.cs | 18 - .../Legacy/BlockKindInternal.cs | 24 - .../Legacy/CSharpCodeParser.cs | 2682 --- .../Legacy/CSharpKeyword.cs | 88 - .../Legacy/CSharpLanguageCharacteristics.cs | 280 - .../Legacy/CSharpTokenizer.cs | 807 - .../Legacy/ClassifiedSpanInternal.cs | 27 - .../Legacy/CodeBlockEditHandler.cs | 127 - .../Legacy/DirectiveCSharpTokenizer.cs | 63 - .../Legacy/DirectiveHtmlTokenizer.cs | 62 - .../Legacy/DirectiveTokenChunkGenerator.cs | 50 - .../Legacy/DisposableAction.cs | 32 - .../Legacy/EditResult.cs | 19 - .../Legacy/ErrorSink.cs | 34 - .../Legacy/ExpressionChunkGenerator.cs | 28 - ...tDirectiveCSharpLanguageCharacteristics.cs | 18 - ...rstDirectiveHtmlLanguageCharacteristics.cs | 18 - .../Legacy/HtmlLanguageCharacteristics.cs | 128 - .../Legacy/HtmlMarkupParser.cs | 2243 --- .../Legacy/HtmlTokenizer.cs | 302 - .../Legacy/ISpanChunkGenerator.cs | 9 - .../Legacy/ITextBuffer.cs | 13 - .../Legacy/ITextDocument.cs | 10 - .../Legacy/ITokenizer.cs | 12 - .../Legacy/ImplicitExpressionEditHandler.cs | 626 - .../Legacy/KnownTokenType.cs | 18 - .../Legacy/LanguageCharacteristics.cs | 108 - .../Legacy/LegacySyntaxNodeExtensions.cs | 310 - .../Legacy/LineTrackingStringBuffer.cs | 212 - .../Legacy/LiteralAttributeChunkGenerator.cs | 44 - .../Legacy/LocationTagged.cs | 89 - .../Legacy/MarkupChunkGenerator.cs | 13 - .../Legacy/ParserBase.cs | 15 - .../Legacy/ParserContext.cs | 114 - .../Legacy/ParserHelpers.cs | 3819 ---- .../Legacy/ParserState.cs | 23 - .../Legacy/PartialParseResultInternal.cs | 59 - .../Legacy/RazorParser.cs | 50 - .../Legacy/RazorSyntaxTreeExtensions.cs | 37 - .../Legacy/RemoveTagHelperChunkGenerator.cs | 86 - .../Legacy/SeekableTextReader.cs | 76 - .../Legacy/SourceLocationTracker.cs | 113 - .../Legacy/SpanChunkGenerator.cs | 33 - .../Legacy/SpanContext.cs | 52 - .../Legacy/SpanEditHandler.cs | 169 - .../Legacy/SpanKindInternal.cs | 15 - .../Legacy/StatementChunkGenerator.cs | 13 - .../Legacy/SyntaxConstants.cs | 32 - .../Legacy/TagHelperAttributeNode.cs | 29 - .../Legacy/TagHelperBlockRewriter.cs | 880 - .../Legacy/TagHelperDirectiveType.cs | 26 - .../Legacy/TagHelperParseTreeRewriter.cs | 773 - .../TagHelperPrefixDirectiveChunkGenerator.cs | 67 - .../Legacy/TagHelperSpanInternal.cs | 28 - .../Legacy/TextReaderExtensions.cs | 167 - .../Legacy/Tokenizer.cs | 445 - .../Legacy/TokenizerBackedParser.cs | 624 - .../Legacy/TokenizerView.cs | 40 - .../Legacy/WhiteSpaceRewriter.cs | 70 - ...Microsoft.AspNetCore.Razor.Language.csproj | 12 - .../NotFoundProjectItem.cs | 45 - .../Properties/AssemblyInfo.cs | 33 - ...ovideRazorExtensionInitializerAttribute.cs | 31 - .../RazorCSharpDocument.cs | 73 - .../RazorCodeDocument.cs | 56 - .../RazorCodeDocumentExtensions.cs | 444 - .../RazorCodeGenerationOptions.cs | 118 - .../RazorCodeGenerationOptionsBuilder.cs | 68 - .../RazorConfiguration.cs | 118 - .../RazorDiagnostic.cs | 64 - .../RazorDiagnosticCollection.cs | 211 - .../RazorDiagnosticDescriptor.cs | 65 - .../RazorDiagnosticFactory.cs | 903 - .../RazorDiagnosticSeverity.cs | 12 - .../RazorEngine.cs | 195 - .../RazorEngineBuilderExtensions.cs | 163 - .../RazorEngineFeatureBase.cs | 69 - .../RazorEnginePhaseBase.cs | 86 - .../RazorExtension.cs | 10 - .../RazorExtensionInitializer.cs | 10 - .../RazorHtmlDocument.cs | 29 - .../RazorHtmlWriter.cs | 166 - .../RazorLanguageVersion.cs | 139 - .../RazorParserFeatureFlags.cs | 119 - .../RazorParserOptions.cs | 79 - .../RazorParserOptionsBuilder.cs | 28 - .../RazorProject.cs | 143 - .../RazorProjectEngine.cs | 259 - .../RazorProjectEngineBuilder.cs | 20 - .../RazorProjectEngineBuilderExtensions.cs | 329 - .../RazorProjectEngineFeatureBase.cs | 31 - .../RazorProjectFileSystem.cs | 27 - .../RazorProjectItem.cs | 133 - .../RazorSourceDocument.cs | 294 - .../RazorSourceDocumentProperties.cs | 57 - .../RazorSourceLineCollection.cs | 14 - .../RazorSyntaxTree.cs | 71 - .../RequiredAttributeDescriptor.cs | 100 - .../RequiredAttributeDescriptorBuilder.cs | 22 - ...redAttributeDescriptorBuilderExtensions.cs | 23 - .../RequiredAttributeDescriptorComparer.cs | 64 - .../RequiredAttributeDescriptorExtensions.cs | 23 - .../Resources.resx | 562 - .../SourceChange.cs | 139 - .../SourceLocation.cs | 135 - .../SourceMapping.cs | 53 - .../SourceSpan.cs | 124 - .../StreamSourceDocument.cs | 119 - .../StringSourceDocument.cs | 105 - .../SuppressChecksumOptionsFeature.cs | 22 - .../Syntax/ArrayElement.cs | 58 - .../Syntax/ChildSyntaxList.cs | 710 - .../Syntax.xml.Internal.Generated.cs | 5231 ------ .../Generated/Syntax.xml.Main.Generated.cs | 1586 -- .../Generated/Syntax.xml.Syntax.Generated.cs | 4155 ---- .../Syntax/GreenNode.cs | 583 - .../Syntax/GreenNodeExtensions.cs | 58 - .../InternalSyntax/MarkupEndTagSyntax.cs | 34 - .../InternalSyntax/MarkupStartTagSyntax.cs | 34 - .../InternalSyntax/RazorDirectiveSyntax.cs | 34 - .../Syntax/InternalSyntax/RazorSyntaxNode.cs | 27 - .../Syntax/InternalSyntax/SyntaxFactory.cs | 25 - .../Syntax/InternalSyntax/SyntaxList.cs | 428 - .../InternalSyntax/SyntaxListBuilder.cs | 201 - .../InternalSyntax/SyntaxListBuilderOfT.cs | 122 - .../Syntax/InternalSyntax/SyntaxListOfT.cs | 187 - .../Syntax/InternalSyntax/SyntaxListPool.cs | 100 - .../Syntax/InternalSyntax/SyntaxRewriter.cs | 56 - .../Syntax/InternalSyntax/SyntaxToken.cs | 226 - .../Syntax/InternalSyntax/SyntaxTrivia.cs | 100 - .../Syntax/InternalSyntax/SyntaxVisitor.cs | 60 - .../InternalSyntax/WhitespaceTokenCache.cs | 46 - .../Syntax/MarkupEndTagSyntax.cs | 72 - ...MarkupMinimizedTagHelperAttributeSyntax.cs | 33 - ...imizedTagHelperDirectiveAttributeSyntax.cs | 46 - .../Syntax/MarkupStartTagSyntax.cs | 98 - .../Syntax/MarkupTagHelperAttributeSyntax.cs | 33 - ...MarkupTagHelperDirectiveAttributeSyntax.cs | 46 - .../Syntax/MarkupTagHelperElementSyntax.cs | 33 - .../Syntax/MarkupTagHelperEndTagSyntax.cs | 60 - .../Syntax/MarkupTagHelperStartTagSyntax.cs | 75 - .../Syntax/NodeFlags.cs | 21 - .../Syntax/ObjectPool.cs | 248 - .../Syntax/RazorDirectiveSyntax.cs | 33 - .../Syntax/RazorSyntaxNode.cs | 13 - .../Syntax/SpecializedCollections.cs | 169 - .../Syntax/StackGuard.cs | 30 - .../Syntax/Syntax.xml | 321 - .../Syntax/SyntaxAnnotation.cs | 93 - .../Syntax/SyntaxExtensions.cs | 53 - .../Syntax/SyntaxFactory.cs | 23 - .../Syntax/SyntaxKind.cs | 141 - .../Syntax/SyntaxList.cs | 123 - .../Syntax/SyntaxListBuilder.cs | 172 - .../Syntax/SyntaxListBuilderExtensions.cs | 29 - .../Syntax/SyntaxListBuilderOfT.cs | 100 - .../Syntax/SyntaxListOfT.cs | 606 - .../Syntax/SyntaxNode.Iterators.cs | 126 - .../Syntax/SyntaxNode.cs | 442 - .../Syntax/SyntaxNodeExtensions.cs | 272 - .../Syntax/SyntaxReplacer.cs | 207 - .../Syntax/SyntaxRewriter.cs | 168 - .../Syntax/SyntaxSerializer.cs | 323 - .../Syntax/SyntaxToken.cs | 105 - .../Syntax/SyntaxTrivia.cs | 59 - .../Syntax/SyntaxTriviaList.cs | 785 - .../Syntax/SyntaxTriviaListBuilder.cs | 138 - .../Syntax/SyntaxUtilities.cs | 46 - .../Syntax/SyntaxVisitor.cs | 70 - .../Syntax/SyntaxWalker.cs | 65 - .../Syntax/TextSpan.cs | 261 - .../TagHelperAttributeInfo.cs | 32 - .../TagHelperBinder.cs | 137 - .../TagHelperBinding.cs | 78 - .../TagHelperConventions.cs | 12 - .../TagHelperDescriptor.cs | 91 - .../TagHelperDescriptorBuilder.cs | 79 - .../TagHelperDescriptorBuilderExtensions.cs | 40 - .../TagHelperDescriptorComparer.cs | 127 - .../TagHelperDescriptorExtensions.cs | 63 - .../TagHelperDescriptorProviderContext.cs | 48 - .../TagHelperDocumentContext.cs | 46 - .../TagHelperInfo.cs | 24 - .../TagHelperMatchingConventions.cs | 267 - .../TagHelperMetadata.cs | 22 - .../TagHelperSpanVisitor.cs | 31 - .../TagMatchingRuleDescriptor.cs | 64 - .../TagMatchingRuleDescriptorBuilder.cs | 23 - .../TagMatchingRuleDescriptorComparer.cs | 55 - .../TagMode.cs | 26 - .../TagStructure.cs | 28 - .../TypeNameFeature.cs | 18 - .../TypeNameRewriter.cs | 12 - .../VirtualRazorProjectFileSystem.cs | 221 - .../baseline.netcore.json | 15598 ---------------- .../baseline.netframework.json | 13608 -------------- .../breakingchanges.netcore.json | 15 - .../breakingchanges.netframework.json | 15 - .../Application.cs | 114 - .../CachingMetadataReference.cs | 32 - .../Client.cs | 200 - .../CommandBase.cs | 59 - .../CompilerHost.cs | 134 - .../CompositeRazorProjectFileSystem.cs | 51 - .../ConcurrentLruCache.cs | 207 - .../Connection.cs | 28 - .../ConnectionHost.cs | 148 - .../ConnectionResult.cs | 47 - .../DebugMode.cs | 27 - .../DefaultExtensionAssemblyLoader.cs | 241 - .../DefaultExtensionDependencyChecker.cs | 158 - .../DefaultRequestDispatcher.cs | 472 - .../DiscoverCommand.cs | 226 - .../EventBus.cs | 68 - .../ExtensionAssemblyLoader.cs | 16 - .../ExtensionDependencyChecker.cs | 12 - .../GenerateCommand.cs | 383 - .../Memory.cs | 13 - .../MetadataCache.cs | 86 - .../MetadataReaderExtensions.cs | 94 - .../Microsoft.AspNetCore.Razor.Tools.csproj | 52 - .../MutexName.cs | 22 - .../PipeName.cs | 60 - .../Program.cs | 53 - .../Properties/AssemblyInfo.cs | 9 - .../RequestDispatcher.cs | 29 - .../ServerCommand.cs | 188 - .../ServerProtocol/CompletedServerResponse.cs | 58 - .../MismatchedVersionServerResponse.cs | 17 - .../ServerProtocol/NativeMethods.cs | 89 - .../ServerProtocol/RejectedServerResponse.cs | 17 - .../ServerProtocol/RequestArgument.cs | 72 - .../ServerProtocol/ServerConnection.cs | 390 - .../ServerProtocol/ServerLogger.cs | 146 - .../ServerProtocol/ServerPaths.cs | 33 - .../ServerProtocol/ServerProtocol.cs | 70 - .../ServerProtocol/ServerRequest.cs | 216 - .../ServerProtocol/ServerResponse.cs | 132 - .../ServerProtocol/ShutdownServerResponse.cs | 30 - .../ShadowCopyManager.cs | 169 - .../ShutdownCommand.cs | 97 - .../runtimeconfig.template.json | 3 - .../AssemblyIdentityEqualityComparer.cs | 50 - .../BindTagHelperDescriptorProvider.cs | 606 - .../CompilationTagHelperFeature.cs | 50 - .../CompilerFeatures.cs | 38 - .../ComponentDetectionConventions.cs | 28 - .../ComponentTagHelperDescriptorProvider.cs | 582 - .../DefaultMetadataReferenceFeature.cs | 13 - .../DefaultTagHelperDescriptorFactory.cs | 439 - .../DefaultTagHelperDescriptorProvider.cs | 69 - .../DefaultTypeNameFeature.cs | 56 - ...EventHandlerTagHelperDescriptorProvider.cs | 296 - .../FilePathComparer.cs | 30 - .../FilePathComparison.cs | 30 - .../GenericTypeNameRewriter.cs | 70 - .../GlobalQualifiedTypeNameRewriter.cs | 79 - .../IMetadataReferenceFeature.cs | 13 - .../KeyTagHelperDescriptorProvider.cs | 80 - .../Microsoft.CodeAnalysis.Razor.csproj | 16 - .../Properties/AssemblyInfo.cs | 25 - .../RazorDiagnosticFactory.cs | 175 - .../RazorLanguage.cs | 14 - .../RazorProjectEngineBuilderExtensions.cs | 91 - .../RefTagHelperDescriptorProvider.cs | 80 - .../RequiredAttributeParser.cs | 304 - .../Resources.resx | 147 - .../SourceSpanExtensions.cs | 16 - .../SplatTagHelperDescriptorProvider.cs | 80 - ...lperDescriptorProviderContextExtensions.cs | 31 - .../TagHelperTypeVisitor.cs | 51 - .../TagHelperTypes.cs | 39 - .../TextChangeExtensions.cs | 22 - .../TextSpanExtensions.cs | 16 - .../baseline.netcore.json | 360 - .../baseline.netframework.json | 349 - .../Microsoft.NET.Sdk.Razor/AssemblyItem.cs | 14 - .../Microsoft.NET.Sdk.Razor/DotnetToolTask.cs | 285 - .../FindAssembliesWithReferencesTo.cs | 69 - .../GenerateStaticWebAssetsManifest.cs | 206 - .../GenerateStaticWebAsssetsPropsFile.cs | 159 - .../Microsoft.NET.Sdk.Razor.csproj | 82 - .../Microsoft.NET.Sdk.Razor.nuspec | 19 - .../Microsoft.NET.Sdk.Razor/RazorGenerate.cs | 187 - .../Microsoft.NET.Sdk.Razor/RazorTagHelper.cs | 133 - .../ReferenceAssemblyNotFoundException.cs | 17 - .../ReferenceResolver.cs | 162 - ...Sdk.Razor.StaticAssets.ProjectSystem.props | 53 - .../src/Microsoft.NET.Sdk.Razor/Sdk/Sdk.props | 25 - .../Microsoft.NET.Sdk.Razor/Sdk/Sdk.targets | 23 - ...StaticWebAssetsGeneratePackagePropsFile.cs | 54 - .../ValidateStaticWebAssetsUniquePaths.cs | 86 - src/Razor/src/Microsoft.NET.Sdk.Razor/_._ | 0 .../baseline.netcore.json | 762 - .../baseline.netframework.json | 762 - ...osoft.NET.Sdk.Razor.CodeGeneration.targets | 183 - ...icrosoft.NET.Sdk.Razor.Compilation.targets | 190 - .../Microsoft.NET.Sdk.Razor.Component.targets | 291 - ...rosoft.NET.Sdk.Razor.Configuration.targets | 95 - ...Microsoft.NET.Sdk.Razor.DesignTime.targets | 117 - ...NET.Sdk.Razor.GenerateAssemblyInfo.targets | 197 - ...Razor.MvcApplicationPartsDiscovery.targets | 102 - ...soft.NET.Sdk.Razor.StaticWebAssets.targets | 533 - .../Microsoft.NET.Sdk.Razor.props | 17 - .../Rules/RazorComponentWithTargetPath.xaml | 30 - .../Rules/RazorConfiguration.xaml | 29 - .../netstandard2.0/Rules/RazorExtension.xaml | 37 - .../netstandard2.0/Rules/RazorGeneral.xaml | 36 - .../Rules/RazorGenerateWithTargetPath.xaml | 30 - .../Sdk.Razor.CurrentVersion.props | 85 - .../Sdk.Razor.CurrentVersion.targets | 885 - .../Microsoft.NET.Sdk.Razor.props | 17 - ...azor.CurrentVersion.MultiTargeting.targets | 22 - src/Razor/src/RazorPageGenerator/Program.cs | 216 - .../RazorPageGenerator.csproj | 18 - .../RazorPageGeneratorResult.cs | 12 - .../InjectDirectiveTest.cs | 210 - .../InjectTargetExtensionTest.cs | 70 - .../CodeGenerationIntegrationTest.cs | 1102 -- ...spNetCore.Mvc.Razor.Extensions.Test.csproj | 38 - .../ModelDirectiveTest.cs | 327 - .../ModelExpressionPassTest.cs | 208 - .../MvcImportProjectFeatureTest.cs | 76 - .../MvcShim.cs | 45 - .../MvcViewDocumentClassifierPassTest.cs | 264 - .../PageDirectiveTest.cs | 148 - .../Properties/AssemblyInfo.cs | 6 - .../RazorPageDocumentClassifierPassTest.cs | 419 - .../SourceMappingsSerializer.cs | 54 - .../TagHelperDescriptorExtensionsTest.cs | 82 - .../AttributeDirectiveWithViewImports.cshtml | 1 - ...ctiveWithViewImports_DesignTime.codegen.cs | 60 - ...iveWithViewImports_DesignTime.codegen.html | 1 - ...DirectiveWithViewImports_DesignTime.ir.txt | 43 - ...iveWithViewImports_DesignTime.mappings.txt | 5 - ...irectiveWithViewImports_Runtime.codegen.cs | 56 - ...uteDirectiveWithViewImports_Runtime.ir.txt | 23 - .../Basic.cshtml | 8 - .../BasicComponent.cshtml | 9 - .../BasicComponent_DesignTime.codegen.cs | 61 - .../BasicComponent_DesignTime.codegen.html | 9 - .../BasicComponent_DesignTime.ir.txt | 33 - .../BasicComponent_DesignTime.mappings.txt | 24 - .../BasicComponent_Runtime.codegen.cs | 51 - .../BasicComponent_Runtime.ir.txt | 22 - .../Basic_DesignTime.codegen.cs | 83 - .../Basic_DesignTime.codegen.html | 8 - .../Basic_DesignTime.ir.txt | 65 - .../Basic_DesignTime.mappings.txt | 34 - .../Basic_Runtime.codegen.cs | 92 - .../Basic_Runtime.ir.txt | 47 - .../IncompleteDirectives.cshtml | 15 - ...IncompleteDirectives_DesignTime.codegen.cs | 82 - ...completeDirectives_DesignTime.codegen.html | 15 - ...pleteDirectives_DesignTime.diagnostics.txt | 12 - .../IncompleteDirectives_DesignTime.ir.txt | 76 - ...completeDirectives_DesignTime.mappings.txt | 20 - .../IncompleteDirectives_Runtime.codegen.cs | 46 - ...completeDirectives_Runtime.diagnostics.txt | 12 - .../IncompleteDirectives_Runtime.ir.txt | 53 - .../InheritsViewModel.cshtml | 2 - .../InheritsViewModel_DesignTime.codegen.cs | 60 - .../InheritsViewModel_DesignTime.codegen.html | 2 - .../InheritsViewModel_DesignTime.ir.txt | 39 - .../InheritsViewModel_DesignTime.mappings.txt | 10 - .../InheritsViewModel_Runtime.codegen.cs | 35 - .../InheritsViewModel_Runtime.ir.txt | 18 - .../InheritsWithViewImports.cshtml | 2 - ...eritsWithViewImports_DesignTime.codegen.cs | 52 - ...itsWithViewImports_DesignTime.codegen.html | 2 - .../InheritsWithViewImports_DesignTime.ir.txt | 43 - ...itsWithViewImports_DesignTime.mappings.txt | 5 - ...InheritsWithViewImports_Runtime.codegen.cs | 38 - .../InheritsWithViewImports_Runtime.ir.txt | 23 - .../Inject.cshtml | 1 - .../InjectWithModel.cshtml | 3 - .../InjectWithModel_DesignTime.codegen.cs | 92 - .../InjectWithModel_DesignTime.codegen.html | 3 - .../InjectWithModel_DesignTime.ir.txt | 43 - .../InjectWithModel_DesignTime.mappings.txt | 25 - .../InjectWithModel_Runtime.codegen.cs | 37 - .../InjectWithModel_Runtime.ir.txt | 19 - .../InjectWithSemicolon.cshtml | 5 - .../InjectWithSemicolon_DesignTime.codegen.cs | 136 - ...njectWithSemicolon_DesignTime.codegen.html | 5 - .../InjectWithSemicolon_DesignTime.ir.txt | 49 - ...njectWithSemicolon_DesignTime.mappings.txt | 45 - .../InjectWithSemicolon_Runtime.codegen.cs | 41 - .../InjectWithSemicolon_Runtime.ir.txt | 21 - .../Inject_DesignTime.codegen.cs | 62 - .../Inject_DesignTime.codegen.html | 1 - .../Inject_DesignTime.ir.txt | 40 - .../Inject_DesignTime.mappings.txt | 10 - .../Inject_Runtime.codegen.cs | 37 - .../Inject_Runtime.ir.txt | 19 - .../InvalidNamespaceAtEOF.cshtml | 1 - ...nvalidNamespaceAtEOF_DesignTime.codegen.cs | 40 - ...alidNamespaceAtEOF_DesignTime.codegen.html | 1 - ...dNamespaceAtEOF_DesignTime.diagnostics.txt | 1 - .../InvalidNamespaceAtEOF_DesignTime.ir.txt | 40 - ...alidNamespaceAtEOF_DesignTime.mappings.txt | 0 .../InvalidNamespaceAtEOF_Runtime.codegen.cs | 36 - ...alidNamespaceAtEOF_Runtime.diagnostics.txt | 1 - .../InvalidNamespaceAtEOF_Runtime.ir.txt | 21 - .../MalformedPageDirective.cshtml | 4 - ...lformedPageDirective_DesignTime.codegen.cs | 42 - ...ormedPageDirective_DesignTime.codegen.html | 4 - ...edPageDirective_DesignTime.diagnostics.txt | 1 - .../MalformedPageDirective_DesignTime.ir.txt | 53 - ...ormedPageDirective_DesignTime.mappings.txt | 0 .../MalformedPageDirective_Runtime.codegen.cs | 38 - ...ormedPageDirective_Runtime.diagnostics.txt | 1 - .../MalformedPageDirective_Runtime.ir.txt | 34 - .../Model.cshtml | 1 - .../ModelExpressionTagHelper.cshtml | 6 - ...lExpressionTagHelper_DesignTime.codegen.cs | 84 - ...xpressionTagHelper_DesignTime.codegen.html | 6 - ...ModelExpressionTagHelper_DesignTime.ir.txt | 68 - ...xpressionTagHelper_DesignTime.mappings.txt | 20 - ...odelExpressionTagHelper_Runtime.codegen.cs | 100 - .../ModelExpressionTagHelper_Runtime.ir.txt | 47 - .../Model_DesignTime.codegen.cs | 50 - .../Model_DesignTime.codegen.html | 1 - .../Model_DesignTime.ir.txt | 38 - .../Model_DesignTime.mappings.txt | 5 - .../Model_Runtime.codegen.cs | 35 - .../Model_Runtime.ir.txt | 18 - .../MultipleModels.cshtml | 2 - .../MultipleModels_DesignTime.codegen.cs | 60 - .../MultipleModels_DesignTime.codegen.html | 2 - .../MultipleModels_DesignTime.diagnostics.txt | 1 - .../MultipleModels_DesignTime.ir.txt | 41 - .../MultipleModels_DesignTime.mappings.txt | 10 - .../PageWithNamespace.cshtml | 3 - .../PageWithNamespace_DesignTime.codegen.cs | 52 - .../PageWithNamespace_DesignTime.codegen.html | 3 - .../PageWithNamespace_DesignTime.ir.txt | 48 - .../PageWithNamespace_DesignTime.mappings.txt | 5 - .../PageWithNamespace_Runtime.codegen.cs | 38 - .../PageWithNamespace_Runtime.ir.txt | 28 - ...RazorPageWithNoLeadingPageDirective.cshtml | 2 - ...LeadingPageDirective_DesignTime.codegen.cs | 42 - ...adingPageDirective_DesignTime.codegen.html | 2 - ...ngPageDirective_DesignTime.diagnostics.txt | 1 - ...thNoLeadingPageDirective_DesignTime.ir.txt | 47 - ...adingPageDirective_DesignTime.mappings.txt | 0 ...hNoLeadingPageDirective_Runtime.codegen.cs | 38 - ...adingPageDirective_Runtime.diagnostics.txt | 1 - ...eWithNoLeadingPageDirective_Runtime.ir.txt | 28 - .../RazorPages.cshtml | 40 - .../RazorPagesWithRouteTemplate.cshtml | 13 - ...gesWithRouteTemplate_DesignTime.codegen.cs | 88 - ...sWithRouteTemplate_DesignTime.codegen.html | 13 - ...orPagesWithRouteTemplate_DesignTime.ir.txt | 61 - ...sWithRouteTemplate_DesignTime.mappings.txt | 35 - ...rPagesWithRouteTemplate_Runtime.codegen.cs | 67 - ...RazorPagesWithRouteTemplate_Runtime.ir.txt | 40 - .../RazorPagesWithoutModel.cshtml | 36 - ...zorPagesWithoutModel_DesignTime.codegen.cs | 101 - ...rPagesWithoutModel_DesignTime.codegen.html | 36 - .../RazorPagesWithoutModel_DesignTime.ir.txt | 145 - ...rPagesWithoutModel_DesignTime.mappings.txt | 46 - .../RazorPagesWithoutModel_Runtime.codegen.cs | 173 - .../RazorPagesWithoutModel_Runtime.ir.txt | 117 - .../RazorPages_DesignTime.codegen.cs | 114 - .../RazorPages_DesignTime.codegen.html | 40 - .../RazorPages_DesignTime.ir.txt | 147 - .../RazorPages_DesignTime.mappings.txt | 57 - .../RazorPages_Runtime.codegen.cs | 176 - .../RazorPages_Runtime.ir.txt | 118 - .../Sections.cshtml | 14 - .../Sections_DesignTime.codegen.cs | 96 - .../Sections_DesignTime.codegen.html | 14 - .../Sections_DesignTime.ir.txt | 75 - .../Sections_DesignTime.mappings.txt | 29 - .../Sections_Runtime.codegen.cs | 92 - .../Sections_Runtime.ir.txt | 53 - .../UsingDirectives.cshtml | 4 - .../UsingDirectives_DesignTime.codegen.cs | 67 - .../UsingDirectives_DesignTime.codegen.html | 4 - .../UsingDirectives_DesignTime.ir.txt | 46 - .../UsingDirectives_DesignTime.mappings.txt | 20 - .../UsingDirectives_Runtime.codegen.cs | 62 - .../UsingDirectives_Runtime.ir.txt | 21 - .../ViewComponentTagHelper.cshtml | 6 - ...ewComponentTagHelper_DesignTime.codegen.cs | 96 - ...ComponentTagHelper_DesignTime.codegen.html | 6 - .../ViewComponentTagHelper_DesignTime.ir.txt | 59 - ...ComponentTagHelper_DesignTime.mappings.txt | 19 - .../ViewComponentTagHelper_Runtime.codegen.cs | 113 - .../ViewComponentTagHelper_Runtime.ir.txt | 36 - .../ViewWithNamespace.cshtml | 2 - .../ViewWithNamespace_DesignTime.codegen.cs | 50 - .../ViewWithNamespace_DesignTime.codegen.html | 2 - .../ViewWithNamespace_DesignTime.ir.txt | 44 - .../ViewWithNamespace_DesignTime.mappings.txt | 5 - .../ViewWithNamespace_Runtime.codegen.cs | 36 - .../ViewWithNamespace_Runtime.ir.txt | 24 - .../_ViewImports.cshtml | 1 - .../_ViewImports_DesignTime.codegen.cs | 62 - .../_ViewImports_DesignTime.codegen.html | 1 - .../_ViewImports_DesignTime.ir.txt | 40 - .../_ViewImports_DesignTime.mappings.txt | 10 - .../_ViewImports_Runtime.codegen.cs | 37 - .../_ViewImports_Runtime.ir.txt | 19 - ...ComponentTagHelperDescriptorFactoryTest.cs | 485 - ...omponentTagHelperDescriptorProviderTest.cs | 69 - .../ViewComponentTagHelperPassTest.cs | 275 - ...ewComponentTagHelperTargetExtensionTest.cs | 120 - .../ViewComponentTypeVisitorTest.cs | 203 - .../xunit.runner.json | 4 - .../InjectDirectiveTest.cs | 227 - .../InjectTargetExtensionTest.cs | 70 - .../CodeGenerationIntegrationTest.cs | 370 - .../LegacySectionTargetExtensionTest.cs | 46 - ...vc.Razor.Extensions.Version1_X.Test.csproj | 39 - .../ModelDirectiveTest.cs | 345 - .../ModelExpressionPassTest.cs | 208 - .../MvcImportProjectFeatureTest.cs | 76 - .../MvcShim.cs | 45 - .../MvcViewDocumentClassifierPassTest.cs | 264 - .../Properties/AssemblyInfo.cs | 6 - .../SourceMappingsSerializer.cs | 54 - .../TagHelperDescriptorExtensionsTest.cs | 82 - .../Basic.cshtml | 8 - .../Basic_DesignTime.codegen.cs | 71 - .../Basic_DesignTime.ir.txt | 63 - .../Basic_DesignTime.mappings.txt | 34 - .../Basic_Runtime.codegen.cs | 92 - .../Basic_Runtime.ir.txt | 72 - .../IncompleteDirectives.cshtml | 8 - ...IncompleteDirectives_DesignTime.codegen.cs | 64 - ...pleteDirectives_DesignTime.diagnostics.txt | 6 - .../IncompleteDirectives_DesignTime.ir.txt | 58 - ...completeDirectives_DesignTime.mappings.txt | 15 - .../IncompleteDirectives_Runtime.codegen.cs | 51 - ...completeDirectives_Runtime.diagnostics.txt | 6 - .../IncompleteDirectives_Runtime.ir.txt | 58 - .../InheritsViewModel.cshtml | 2 - .../InheritsViewModel_DesignTime.codegen.cs | 56 - .../InheritsViewModel_DesignTime.ir.txt | 37 - .../InheritsViewModel_DesignTime.mappings.txt | 10 - .../InheritsViewModel_Runtime.codegen.cs | 33 - .../InheritsViewModel_Runtime.ir.txt | 16 - .../InheritsWithViewImports.cshtml | 1 - ...eritsWithViewImports_DesignTime.codegen.cs | 48 - .../InheritsWithViewImports_DesignTime.ir.txt | 37 - ...itsWithViewImports_DesignTime.mappings.txt | 5 - ...InheritsWithViewImports_Runtime.codegen.cs | 33 - .../InheritsWithViewImports_Runtime.ir.txt | 16 - .../Inject.cshtml | 1 - .../InjectWithModel.cshtml | 3 - .../InjectWithModel_DesignTime.codegen.cs | 82 - .../InjectWithModel_DesignTime.ir.txt | 41 - .../InjectWithModel_DesignTime.mappings.txt | 25 - .../InjectWithModel_Runtime.codegen.cs | 35 - .../InjectWithModel_Runtime.ir.txt | 17 - .../InjectWithSemicolon.cshtml | 5 - .../InjectWithSemicolon_DesignTime.codegen.cs | 118 - .../InjectWithSemicolon_DesignTime.ir.txt | 47 - ...njectWithSemicolon_DesignTime.mappings.txt | 45 - .../InjectWithSemicolon_Runtime.codegen.cs | 39 - .../InjectWithSemicolon_Runtime.ir.txt | 19 - .../Inject_DesignTime.codegen.cs | 58 - .../Inject_DesignTime.ir.txt | 38 - .../Inject_DesignTime.mappings.txt | 10 - .../Inject_Runtime.codegen.cs | 35 - .../Inject_Runtime.ir.txt | 17 - .../InvalidNamespaceAtEOF.cshtml | 1 - ...nvalidNamespaceAtEOF_DesignTime.codegen.cs | 40 - ...dNamespaceAtEOF_DesignTime.diagnostics.txt | 1 - .../InvalidNamespaceAtEOF_DesignTime.ir.txt | 37 - ...alidNamespaceAtEOF_DesignTime.mappings.txt | 0 .../InvalidNamespaceAtEOF_Runtime.codegen.cs | 36 - ...alidNamespaceAtEOF_Runtime.diagnostics.txt | 1 - .../InvalidNamespaceAtEOF_Runtime.ir.txt | 22 - .../Model.cshtml | 1 - .../ModelExpressionTagHelper.cshtml | 6 - ...lExpressionTagHelper_DesignTime.codegen.cs | 76 - ...ModelExpressionTagHelper_DesignTime.ir.txt | 66 - ...xpressionTagHelper_DesignTime.mappings.txt | 20 - ...odelExpressionTagHelper_Runtime.codegen.cs | 104 - .../ModelExpressionTagHelper_Runtime.ir.txt | 69 - .../Model_DesignTime.codegen.cs | 48 - .../Model_DesignTime.ir.txt | 36 - .../Model_DesignTime.mappings.txt | 5 - .../Model_Runtime.codegen.cs | 33 - .../Model_Runtime.ir.txt | 16 - .../MultipleModels.cshtml | 2 - .../MultipleModels_DesignTime.codegen.cs | 56 - .../MultipleModels_DesignTime.diagnostics.txt | 1 - .../MultipleModels_DesignTime.ir.txt | 39 - .../MultipleModels_DesignTime.mappings.txt | 10 - .../Sections.cshtml | 14 - .../Sections_DesignTime.codegen.cs | 86 - .../Sections_DesignTime.ir.txt | 73 - .../Sections_DesignTime.mappings.txt | 29 - .../ViewComponentTagHelper.cshtml | 6 - ...ewComponentTagHelper_DesignTime.codegen.cs | 90 - .../ViewComponentTagHelper_DesignTime.ir.txt | 57 - ...ComponentTagHelper_DesignTime.mappings.txt | 19 - .../ViewComponentTagHelper_Runtime.codegen.cs | 110 - .../ViewComponentTagHelper_Runtime.ir.txt | 43 - .../_ViewImports.cshtml | 1 - .../_ViewImports_DesignTime.codegen.cs | 58 - .../_ViewImports_DesignTime.ir.txt | 38 - .../_ViewImports_DesignTime.mappings.txt | 10 - .../_ViewImports_Runtime.codegen.cs | 35 - .../_ViewImports_Runtime.ir.txt | 17 - ...ComponentTagHelperDescriptorFactoryTest.cs | 343 - ...omponentTagHelperDescriptorProviderTest.cs | 71 - .../ViewComponentTagHelperPassTest.cs | 275 - ...ewComponentTagHelperTargetExtensionTest.cs | 120 - .../ViewComponentTypeVisitorTest.cs | 202 - .../xunit.runner.json | 4 - .../AssemblyAttributeInjectionPassTest.cs | 446 - .../InjectDirectiveTest.cs | 225 - .../InjectTargetExtensionTest.cs | 70 - .../InstrumentationPassTest.cs | 348 - .../CodeGenerationIntegrationTest.cs | 961 - .../InstrumentationPassIntegrationTest.cs | 108 - ...vc.Razor.Extensions.Version2_X.Test.csproj | 39 - .../ModelDirectiveTest.cs | 343 - .../ModelExpressionPassTest.cs | 208 - .../MvcImportProjectFeatureTest.cs | 76 - .../MvcShim.cs | 45 - .../MvcViewDocumentClassifierPassTest.cs | 264 - .../NamespaceDirectiveTest.cs | 352 - .../PageDirectiveTest.cs | 148 - .../Properties/AssemblyInfo.cs | 6 - .../RazorPageDocumentClassifierPassTest.cs | 416 - .../SourceMappingsSerializer.cs | 54 - .../TagHelperDescriptorExtensionsTest.cs | 82 - .../Basic.cshtml | 8 - .../Basic_DesignTime.codegen.cs | 71 - .../Basic_DesignTime.ir.txt | 65 - .../Basic_DesignTime.mappings.txt | 34 - .../Basic_Runtime.codegen.cs | 95 - .../Basic_Runtime.ir.txt | 77 - .../IncompleteDirectives.cshtml | 15 - ...IncompleteDirectives_DesignTime.codegen.cs | 74 - ...pleteDirectives_DesignTime.diagnostics.txt | 12 - .../IncompleteDirectives_DesignTime.ir.txt | 76 - ...completeDirectives_DesignTime.mappings.txt | 20 - .../IncompleteDirectives_Runtime.codegen.cs | 65 - ...completeDirectives_Runtime.diagnostics.txt | 12 - .../IncompleteDirectives_Runtime.ir.txt | 91 - .../InheritsViewModel.cshtml | 2 - .../InheritsViewModel_DesignTime.codegen.cs | 56 - .../InheritsViewModel_DesignTime.ir.txt | 39 - .../InheritsViewModel_DesignTime.mappings.txt | 10 - .../InheritsViewModel_Runtime.codegen.cs | 36 - .../InheritsViewModel_Runtime.ir.txt | 20 - .../InheritsWithViewImports.cshtml | 2 - ...eritsWithViewImports_DesignTime.codegen.cs | 50 - .../InheritsWithViewImports_DesignTime.ir.txt | 43 - ...itsWithViewImports_DesignTime.mappings.txt | 5 - ...InheritsWithViewImports_Runtime.codegen.cs | 39 - .../InheritsWithViewImports_Runtime.ir.txt | 25 - .../Inject.cshtml | 1 - .../InjectWithModel.cshtml | 3 - .../InjectWithModel_DesignTime.codegen.cs | 82 - .../InjectWithModel_DesignTime.ir.txt | 43 - .../InjectWithModel_DesignTime.mappings.txt | 25 - .../InjectWithModel_Runtime.codegen.cs | 38 - .../InjectWithModel_Runtime.ir.txt | 21 - .../InjectWithSemicolon.cshtml | 5 - .../InjectWithSemicolon_DesignTime.codegen.cs | 118 - .../InjectWithSemicolon_DesignTime.ir.txt | 49 - ...njectWithSemicolon_DesignTime.mappings.txt | 45 - .../InjectWithSemicolon_Runtime.codegen.cs | 42 - .../InjectWithSemicolon_Runtime.ir.txt | 23 - .../Inject_DesignTime.codegen.cs | 58 - .../Inject_DesignTime.ir.txt | 40 - .../Inject_DesignTime.mappings.txt | 10 - .../Inject_Runtime.codegen.cs | 38 - .../Inject_Runtime.ir.txt | 21 - .../InvalidNamespaceAtEOF.cshtml | 1 - ...nvalidNamespaceAtEOF_DesignTime.codegen.cs | 40 - ...dNamespaceAtEOF_DesignTime.diagnostics.txt | 1 - .../InvalidNamespaceAtEOF_DesignTime.ir.txt | 40 - ...alidNamespaceAtEOF_DesignTime.mappings.txt | 0 .../InvalidNamespaceAtEOF_Runtime.codegen.cs | 39 - ...alidNamespaceAtEOF_Runtime.diagnostics.txt | 1 - .../InvalidNamespaceAtEOF_Runtime.ir.txt | 27 - .../MalformedPageDirective.cshtml | 4 - ...lformedPageDirective_DesignTime.codegen.cs | 42 - ...edPageDirective_DesignTime.diagnostics.txt | 1 - .../MalformedPageDirective_DesignTime.ir.txt | 53 - ...ormedPageDirective_DesignTime.mappings.txt | 0 .../MalformedPageDirective_Runtime.codegen.cs | 41 - ...ormedPageDirective_Runtime.diagnostics.txt | 1 - .../MalformedPageDirective_Runtime.ir.txt | 40 - .../Model.cshtml | 1 - .../ModelExpressionTagHelper.cshtml | 6 - ...lExpressionTagHelper_DesignTime.codegen.cs | 76 - ...ModelExpressionTagHelper_DesignTime.ir.txt | 68 - ...xpressionTagHelper_DesignTime.mappings.txt | 20 - ...odelExpressionTagHelper_Runtime.codegen.cs | 109 - .../ModelExpressionTagHelper_Runtime.ir.txt | 73 - .../Model_DesignTime.codegen.cs | 48 - .../Model_DesignTime.ir.txt | 38 - .../Model_DesignTime.mappings.txt | 5 - .../Model_Runtime.codegen.cs | 36 - .../Model_Runtime.ir.txt | 20 - .../MultipleModels.cshtml | 2 - .../MultipleModels_DesignTime.codegen.cs | 56 - .../MultipleModels_DesignTime.diagnostics.txt | 1 - .../MultipleModels_DesignTime.ir.txt | 41 - .../MultipleModels_DesignTime.mappings.txt | 10 - .../PageWithNamespace.cshtml | 3 - .../PageWithNamespace_DesignTime.codegen.cs | 50 - .../PageWithNamespace_DesignTime.ir.txt | 48 - .../PageWithNamespace_DesignTime.mappings.txt | 5 - .../PageWithNamespace_Runtime.codegen.cs | 41 - .../PageWithNamespace_Runtime.ir.txt | 34 - ...RazorPageWithNoLeadingPageDirective.cshtml | 2 - ...LeadingPageDirective_DesignTime.codegen.cs | 42 - ...ngPageDirective_DesignTime.diagnostics.txt | 1 - ...thNoLeadingPageDirective_DesignTime.ir.txt | 47 - ...adingPageDirective_DesignTime.mappings.txt | 0 ...hNoLeadingPageDirective_Runtime.codegen.cs | 41 - ...adingPageDirective_Runtime.diagnostics.txt | 1 - ...eWithNoLeadingPageDirective_Runtime.ir.txt | 34 - .../RazorPages.cshtml | 40 - .../RazorPagesWithRouteTemplate.cshtml | 13 - ...gesWithRouteTemplate_DesignTime.codegen.cs | 78 - ...orPagesWithRouteTemplate_DesignTime.ir.txt | 61 - ...sWithRouteTemplate_DesignTime.mappings.txt | 35 - ...rPagesWithRouteTemplate_Runtime.codegen.cs | 72 - ...RazorPagesWithRouteTemplate_Runtime.ir.txt | 62 - .../RazorPagesWithoutModel.cshtml | 36 - ...zorPagesWithoutModel_DesignTime.codegen.cs | 93 - .../RazorPagesWithoutModel_DesignTime.ir.txt | 145 - ...rPagesWithoutModel_DesignTime.mappings.txt | 46 - .../RazorPagesWithoutModel_Runtime.codegen.cs | 206 - .../RazorPagesWithoutModel_Runtime.ir.txt | 195 - .../RazorPages_DesignTime.codegen.cs | 104 - .../RazorPages_DesignTime.ir.txt | 147 - .../RazorPages_DesignTime.mappings.txt | 57 - .../RazorPages_Runtime.codegen.cs | 209 - .../RazorPages_Runtime.ir.txt | 196 - .../Sections.cshtml | 14 - .../Sections_DesignTime.codegen.cs | 86 - .../Sections_DesignTime.ir.txt | 75 - .../Sections_DesignTime.mappings.txt | 29 - .../Sections_Runtime.codegen.cs | 101 - .../Sections_Runtime.ir.txt | 79 - .../UsingDirectives.cshtml | 4 - .../UsingDirectives_DesignTime.codegen.cs | 59 - .../UsingDirectives_DesignTime.ir.txt | 46 - .../UsingDirectives_DesignTime.mappings.txt | 20 - .../UsingDirectives_Runtime.codegen.cs | 55 - .../UsingDirectives_Runtime.ir.txt | 23 - .../ViewComponentTagHelper.cshtml | 6 - ...ewComponentTagHelper_DesignTime.codegen.cs | 90 - .../ViewComponentTagHelper_DesignTime.ir.txt | 59 - ...ComponentTagHelper_DesignTime.mappings.txt | 19 - .../ViewComponentTagHelper_Runtime.codegen.cs | 114 - .../ViewComponentTagHelper_Runtime.ir.txt | 46 - .../ViewWithNamespace.cshtml | 2 - .../ViewWithNamespace_DesignTime.codegen.cs | 48 - .../ViewWithNamespace_DesignTime.ir.txt | 44 - .../ViewWithNamespace_DesignTime.mappings.txt | 5 - .../ViewWithNamespace_Runtime.codegen.cs | 39 - .../ViewWithNamespace_Runtime.ir.txt | 30 - .../_ViewImports.cshtml | 1 - .../_ViewImports_DesignTime.codegen.cs | 58 - .../_ViewImports_DesignTime.ir.txt | 40 - .../_ViewImports_DesignTime.mappings.txt | 10 - .../_ViewImports_Runtime.codegen.cs | 38 - .../_ViewImports_Runtime.ir.txt | 21 - .../BasicTest.codegen.cs | 160 - .../BasicTest.cshtml | 9 - .../BasicTest.ir.txt | 160 - ...ComponentTagHelperDescriptorFactoryTest.cs | 485 - ...omponentTagHelperDescriptorProviderTest.cs | 72 - .../ViewComponentTagHelperPassTest.cs | 275 - ...ewComponentTagHelperTargetExtensionTest.cs | 120 - .../ViewComponentTypeVisitorTest.cs | 203 - .../xunit.runner.json | 4 - .../CompositeRazorProjectFileSystemTest.cs | 81 - .../ConcurrentLruCacheTest.cs | 120 - .../DefaultExtensionAssemblyLoaderTest.cs | 128 - .../DefaultExtensionDependencyCheckerTest.cs | 111 - .../DefaultRequestDispatcherTest.cs | 572 - .../Infrastructure/ServerData.cs | 49 - .../Infrastructure/ServerStats.cs | 17 - .../Infrastructure/ServerUtilities.cs | 156 - .../Infrastructure/TestableEventBus.cs | 64 - .../LoaderTestResources.cs | 146 - .../MetadataCacheTest.cs | 103 - ...crosoft.AspNetCore.Razor.Tools.Test.csproj | 18 - .../MvcShim.cs | 45 - .../Properties/AssemblyInfo.cs | 6 - .../ServerCommandTest.cs | 119 - .../ServerLifecycleTest.cs | 291 - .../ServerProtocol/ServerProtocolTest.cs | 128 - .../TempDirectory.cs | 30 - .../TestDefaultExtensionAssemblyLoader.cs | 25 - .../BuildVariables.cs | 41 - ...erateAspNetCoreStaticAssetsManifestTest.cs | 355 - .../GenerateStaticWebAssetsPropsFileTest.cs | 433 - ...ApplicationPartDiscoveryIntegrationTest.cs | 193 - .../IntegrationTests/Assert.cs | 905 - .../BuildIncrementalismTest.cs | 360 - .../IntegrationTests/BuildIntegrationTest.cs | 741 - .../BuildIntegrationTest11.cs | 58 - .../BuildIntegrationTest21.cs | 42 - .../BuildIntegrationTest22.cs | 16 - .../BuildIntegrationTest22NetFx.cs | 78 - .../BuildIntegrationTestLegacy.cs | 194 - .../BuildIntrospectionTest.cs | 272 - .../IntegrationTests/BuildPerformanceTest.cs | 109 - .../BuildServerIntegrationTest.cs | 277 - .../BuildServerTestFixture.cs | 29 - .../BuildServerTestFixtureBase.cs | 65 - .../BuildWithComponentsIntegrationTest.cs | 149 - .../ConfigurationMetadataIntegrationTest.cs | 102 - .../DesignTimeBuildIntegrationTest.cs | 92 - .../IntegrationTests/FIleThumbPrint.cs | 49 - .../InitializeTestProjectAttribute.cs | 58 - .../LegacyBuildServerTestFixture.cs | 18 - .../MSBuildIntegrationTestBase.cs | 179 - .../IntegrationTests/MSBuildProcessKind.cs | 14 - .../IntegrationTests/MSBuildProcessManager.cs | 272 - .../IntegrationTests/MSBuildResult.cs | 27 - .../IntegrationTests/PackIntegrationTest.cs | 328 - .../IntegrationTests/ProjectDirectory.cs | 218 - .../PublishIntegrationTest.cs | 469 - .../RazorCompileIntegrationTest.cs | 115 - .../RazorGenerateIntegrationTest.cs | 358 - .../StaticWebAssetsIntegrationTest.cs | 303 - .../Microsoft.NET.Sdk.Razor.Test.csproj | 135 - .../ReferenceResolverTest.cs | 232 - ...icWebAssetsGeneratePackagePropsFileTest.cs | 54 - .../ValidateStaticWebAssetsUniquePathsTest.cs | 141 - .../xunit.runner.json | 5 - .../BoundAttributeDescriptorExtensionsTest.cs | 279 - .../CodeGeneration/CSharpCodeWriterTest.cs | 363 - .../CodeGeneration/CodeTargetTest.cs | 68 - .../DefaultCodeTargetBuilderTest.cs | 46 - .../CodeGeneration/DefaultCodeTargetTest.cs | 174 - .../DefaultDocumentWriterTest.cs | 393 - .../DesignTimeNodeWriterTest.cs | 498 - .../LiteralRuntimeNodeWriterTest.cs | 48 - .../CodeGeneration/RuntimeNodeWriterTest.cs | 705 - ...elperHtmlAttributeRuntimeNodeWriterTest.cs | 131 - .../ComponentDocumentClassifierPassTest.cs | 224 - ...entDuplicateAttributeDiagnosticPassTest.cs | 196 - .../ComponentMarkupBlockPassTest.cs | 489 - .../ComponentMarkupEncodingPassTest.cs | 221 - .../Components/NodeAssert.cs | 126 - ...ultAllowedChildTagDescriptorBuilderTest.cs | 24 - ...aultBoundAttributeDescriptorBuilderTest.cs | 47 - .../DefaultDocumentClassifierPassTest.cs | 62 - .../DefaultItemCollectionTest.cs | 54 - .../DefaultRazorCSharpLoweringPhaseTest.cs | 87 - .../DefaultRazorCodeDocumentTest.cs | 47 - .../DefaultRazorDiagnosticTest.cs | 217 - ...efaultRazorDirectiveClassifierPhaseTest.cs | 102 - ...DefaultRazorDocumentClassifierPhaseTest.cs | 102 - .../DefaultRazorEngineBuilderTest.cs | 42 - .../DefaultRazorEngineTest.cs | 72 - ...mediateNodeLoweringPhaseIntegrationTest.cs | 541 - ...tRazorIntermediateNodeLoweringPhaseTest.cs | 298 - .../DefaultRazorOptimizationPhaseTest.cs | 102 - .../DefaultRazorParsingPhaseTest.cs | 93 - .../DefaultRazorProjectEngineBuilderTest.cs | 65 - ...efaultRazorProjectEngineIntegrationTest.cs | 351 - .../DefaultRazorProjectEngineTest.cs | 62 - .../DefaultRazorProjectFileSystemTest.cs | 318 - .../DefaultRazorProjectItemTest.cs | 101 - .../DefaultRazorSyntaxTreePhaseTest.cs | 94 - .../DefaultRazorTagHelperBinderPhaseTest.cs | 1439 -- ...tRequiredAttributeDescriptorBuilderTest.cs | 48 - ...irectiveDescriptorBuilderExtensionsTest.cs | 150 - .../DirectiveDescriptorTest.cs | 150 - .../DirectiveRemovalOptimizationPassTest.cs | 135 - .../DirectiveTokenEditHandlerTest.cs | 86 - .../DocumentClassifierPassBaseTest.cs | 295 - .../DefaultMetadataIdentifierFeatureTest.cs | 74 - .../DefaultTagHelperOptimizationPassTest.cs | 128 - .../DefaultTagHelperTargetExtensionTest.cs | 1247 -- .../DesignTimeDirectiveTargetExtensionTest.cs | 247 - .../Extensions/FunctionsDirectivePassTest.cs | 182 - .../Extensions/InheritsDirectivePassTest.cs | 91 - .../Extensions/MetadataAttributePassTest.cs | 392 - .../MetadataAttributeTargetExtensionTest.cs | 123 - ...reallocatedAttributeTargetExtensionTest.cs | 276 - .../Extensions/SectionDirectivePassTest.cs | 106 - .../Extensions/SectionTargetExtensionTest.cs | 80 - .../Extensions/TemplateTargetExtensionTest.cs | 51 - .../RazorLanguage.Test/HtmlConventionsTest.cs | 39 - .../HtmlNodeOptimizationPassTest.cs | 35 - .../IntegrationTests/BasicIntegrationTest.cs | 57 - .../CodeGenerationIntegrationTest.cs | 1092 -- .../ComponentBindIntegrationTest.cs | 99 - .../ComponentChildContentIntegrationTest.cs | 272 - .../ComponentCodeGenerationTestBase.cs | 5406 ------ .../ComponentDeclarationIntegrationTest.cs | 177 - .../ComponentDesignTimeCodeGenerationTest.cs | 10 - ...ComponentDiagnosticRazorIntegrationTest.cs | 205 - .../ComponentDirectiveIntegrationTest.cs | 151 - .../ComponentDiscoveryIntegrationTest.cs | 121 - .../ComponentFilePathIntegrationTest.cs | 50 - .../ComponentGenericTypeIntegrationTest.cs | 120 - .../ComponentImportsIntegrationTest.cs | 191 - .../ComponentRuntimeCodeGenerationTest.cs | 9 - .../ComponentTemplateIntegrationTest.cs | 131 - .../IntegrationTests/ComponentTypingTest.cs | 130 - .../ExtensibleDirectiveTest.cs | 39 - .../HtmlAttributeIntegrationTest.cs | 36 - .../TagHelpersIntegrationTest.cs | 126 - .../TestTagHelperDescriptors.cs | 637 - ...DefaultRazorIntermediateNodeBuilderTest.cs | 217 - .../DocumentIntermediateNodeExtensionsTest.cs | 113 - .../ExtensionIntermediateNodeTest.cs | 92 - .../IntermediateNodeReferenceTest.cs | 510 - .../IntermediateNodeWalkerTest.cs | 140 - .../LargeTextSourceDocumentTest.cs | 172 - .../Legacy/BaselineWriter.cs | 46 - .../Legacy/CSharpAutoCompleteTest.cs | 53 - .../Legacy/CSharpBlockTest.cs | 748 - .../Legacy/CSharpCodeParserTest.cs | 215 - .../Legacy/CSharpErrorTest.cs | 345 - .../Legacy/CSharpExplicitExpressionTest.cs | 76 - .../Legacy/CSharpFunctionsTest.cs | 175 - .../Legacy/CSharpImplicitExpressionTest.cs | 564 - .../CSharpLanguageCharacteristicsTest.cs | 20 - .../Legacy/CSharpNestedStatementsTest.cs | 46 - .../Legacy/CSharpRazorCommentsTest.cs | 134 - .../Legacy/CSharpReservedWordsTest.cs | 22 - .../Legacy/CSharpSectionTest.cs | 290 - .../Legacy/CSharpSpecialBlockTest.cs | 50 - .../Legacy/CSharpStatementTest.cs | 247 - .../Legacy/CSharpTemplateTest.cs | 92 - .../Legacy/CSharpToMarkupSwitchTest.cs | 218 - .../Legacy/CSharpTokenizerCommentTest.cs | 95 - .../Legacy/CSharpTokenizerIdentifierTest.cs | 171 - .../Legacy/CSharpTokenizerLiteralTest.cs | 288 - .../Legacy/CSharpTokenizerOperatorsTest.cs | 297 - .../Legacy/CSharpTokenizerTest.cs | 107 - .../Legacy/CSharpTokenizerTestBase.cs | 27 - .../Legacy/CSharpVerbatimBlockTest.cs | 49 - .../Legacy/CSharpWhitespaceHandlingTest.cs | 17 - .../Legacy/CodeBlockEditHandlerTest.cs | 293 - .../Legacy/DirectiveCSharpTokenizerTest.cs | 48 - .../Legacy/DirectiveHtmlTokenizerTest.cs | 42 - .../Legacy/DisposableActionTest.cs | 25 - .../Legacy/HtmlAttributeTest.cs | 264 - .../Legacy/HtmlBlockTest.cs | 279 - .../Legacy/HtmlDocumentTest.cs | 265 - .../Legacy/HtmlErrorTest.cs | 52 - .../Legacy/HtmlMarkupParserTests.cs | 230 - .../RazorLanguage.Test/Legacy/HtmlTagsTest.cs | 187 - .../Legacy/HtmlToCodeSwitchTest.cs | 165 - .../Legacy/HtmlTokenizerTest.cs | 164 - .../Legacy/HtmlTokenizerTestBase.cs | 27 - .../ImplicitExpressionEditHandlerTest.cs | 463 - .../Legacy/LineTrackingStringBufferTest.cs | 26 - .../Legacy/MarkupElementGroupingTest.cs | 154 - .../Legacy/RazorDirectivesTest.cs | 978 - .../Legacy/RazorParserTest.cs | 52 - .../Legacy/SourceLocationTrackerTest.cs | 214 - .../Legacy/TagHelperBlockRewriterTest.cs | 2341 --- .../Legacy/TagHelperParseTreeRewriterTest.cs | 1936 -- .../Legacy/TagHelperRewritingTestBase.cs | 45 - .../Legacy/TextReaderExtensionsTest.cs | 113 - .../Legacy/TokenizerLookaheadTest.cs | 217 - .../Legacy/TokenizerTestBase.cs | 71 - .../Legacy/WhiteSpaceRewriterTest.cs | 37 - ...soft.AspNetCore.Razor.Language.Test.csproj | 28 - .../Properties/AssemblyInfo.cs | 6 - .../RazorCodeDocumentExtensionsTest.cs | 631 - .../RazorCodeDocumentTest.cs | 61 - .../RazorDiagnosticDescriptorTest.cs | 78 - .../RazorLanguage.Test/RazorDiagnosticTest.cs | 45 - .../RazorEngineBuilderExtensionsTest.cs | 98 - .../RazorLanguage.Test/RazorEngineTest.cs | 233 - .../RazorLanguageVersionTest.cs | 141 - .../RazorParserFeatureFlagsTest.cs | 49 - ...RazorProjectEngineBuilderExtensionsTest.cs | 103 - .../RazorProjectEngineFeatureBaseTest.cs | 34 - .../RazorProjectEngineTest.cs | 115 - .../RazorProjectItemTest.cs | 104 - .../RazorLanguage.Test/RazorProjectTest.cs | 333 - .../RazorSourceDocumentTest.cs | 219 - .../RazorLanguage.Test/RazorSyntaxTreeTest.cs | 63 - .../RazorLanguage.Test/SourceChangeTest.cs | 198 - .../RazorLanguage.Test/SourceLocationTest.cs | 110 - .../test/RazorLanguage.Test/SourceSpanTest.cs | 117 - .../StreamSourceDocumentTest.cs | 200 - .../StringSourceDocumentTest.cs | 516 - .../RazorLanguage.Test/TagHelperBinderTest.cs | 656 - .../TagHelperDescriptorBuilderTest.cs | 38 - .../TagHelperDescriptorExtensionsTest.cs | 64 - .../TagHelperMatchingConventionsTest.cs | 158 - .../DefaultRazorProjectFileSystem/Home.cshtml | 1 - .../Views/About/About.cshtml | 1 - .../Views/Home/Index.cshtml | 1 - .../Views/Home/Index.txt | 1 - .../Views/Home/_ViewImports.cshtml | 1 - .../Views/_ViewImports.cshtml | 1 - .../_ViewImports.cshtml | 1 - .../CustomDirective.cshtml | 1 - .../CustomDirective.ir.txt | 6 - .../BasicIntegrationTest/Empty.cshtml | 1 - .../BasicIntegrationTest/Empty.ir.txt | 6 - .../BasicIntegrationTest/HelloWorld.cshtml | 1 - .../BasicIntegrationTest/HelloWorld.ir.txt | 8 - .../AddTagHelperDirective.cshtml | 1 - ...ddTagHelperDirective_DesignTime.codegen.cs | 32 - ...TagHelperDirective_DesignTime.codegen.html | 1 - .../AddTagHelperDirective_DesignTime.ir.txt | 14 - ...TagHelperDirective_DesignTime.mappings.txt | 5 - .../AttributeDirective.cshtml | 6 - .../AttributeDirective_DesignTime.codegen.cs | 50 - ...AttributeDirective_DesignTime.codegen.html | 6 - .../AttributeDirective_DesignTime.ir.txt | 25 - ...AttributeDirective_DesignTime.mappings.txt | 20 - .../AttributeDirective_Runtime.codegen.cs | 47 - .../AttributeDirective_Runtime.ir.txt | 16 - .../AttributeTargetingTagHelpers.cshtml | 8 - ...eTargetingTagHelpers_DesignTime.codegen.cs | 70 - ...ibuteTargetingTagHelpers_DesignTime.ir.txt | 85 - ...argetingTagHelpers_DesignTime.mappings.txt | 15 - ...buteTargetingTagHelpers_Runtime.codegen.cs | 132 - ...ttributeTargetingTagHelpers_Runtime.ir.txt | 68 - .../Await.cshtml | 26 - .../Await_DesignTime.codegen.cs | 145 - .../Await_DesignTime.codegen.html | 26 - .../Await_DesignTime.ir.txt | 148 - .../Await_DesignTime.mappings.txt | 95 - .../Await_Runtime.codegen.cs | 130 - .../Await_Runtime.ir.txt | 143 - .../BasicTagHelpers.cshtml | 9 - .../BasicTagHelpers_DesignTime.codegen.cs | 68 - .../BasicTagHelpers_DesignTime.ir.txt | 84 - .../BasicTagHelpers_DesignTime.mappings.txt | 15 - .../BasicTagHelpers_Prefixed.cshtml | 10 - ...cTagHelpers_Prefixed_DesignTime.codegen.cs | 64 - ...BasicTagHelpers_Prefixed_DesignTime.ir.txt | 60 - ...agHelpers_Prefixed_DesignTime.mappings.txt | 15 - ...asicTagHelpers_Prefixed_Runtime.codegen.cs | 86 - .../BasicTagHelpers_Prefixed_Runtime.ir.txt | 47 - .../BasicTagHelpers_RemoveTagHelper.cshtml | 10 - ...Helpers_RemoveTagHelper_Runtime.codegen.cs | 119 - ...cTagHelpers_RemoveTagHelper_Runtime.ir.txt | 55 - .../BasicTagHelpers_Runtime.codegen.cs | 135 - .../BasicTagHelpers_Runtime.ir.txt | 69 - .../Blocks.cshtml | 37 - .../Blocks_DesignTime.codegen.cs | 176 - .../Blocks_DesignTime.codegen.html | 37 - .../Blocks_DesignTime.ir.txt | 110 - .../Blocks_DesignTime.mappings.txt | 139 - .../Blocks_Runtime.codegen.cs | 174 - .../Blocks_Runtime.ir.txt | 121 - .../CSharp7.cshtml | 43 - .../CSharp7_DesignTime.codegen.cs | 93 - .../CSharp7_DesignTime.codegen.html | 43 - .../CSharp7_DesignTime.ir.txt | 50 - .../CSharp7_DesignTime.mappings.txt | 88 - .../CSharp7_Runtime.codegen.cs | 96 - .../CSharp7_Runtime.ir.txt | 51 - .../CSharp8.cshtml | 67 - .../CSharp8_DesignTime.codegen.cs | 155 - .../CSharp8_DesignTime.codegen.html | 67 - .../CSharp8_DesignTime.ir.txt | 52 - .../CSharp8_DesignTime.mappings.txt | 162 - .../CSharp8_Runtime.codegen.cs | 160 - .../CSharp8_Runtime.ir.txt | 47 - .../CodeBlock.cshtml | 5 - .../CodeBlockAtEOF.cshtml | 1 - .../CodeBlockAtEOF_DesignTime.codegen.cs | 29 - .../CodeBlockAtEOF_DesignTime.codegen.html | 1 - .../CodeBlockAtEOF_DesignTime.diagnostics.txt | 1 - .../CodeBlockAtEOF_DesignTime.ir.txt | 13 - .../CodeBlockAtEOF_DesignTime.mappings.txt | 5 - .../CodeBlockAtEOF_Runtime.codegen.cs | 18 - .../CodeBlockAtEOF_Runtime.diagnostics.txt | 1 - .../CodeBlockAtEOF_Runtime.ir.txt | 8 - .../CodeBlockWithTextElement.cshtml | 4 - ...BlockWithTextElement_DesignTime.codegen.cs | 52 - ...ockWithTextElement_DesignTime.codegen.html | 4 - ...CodeBlockWithTextElement_DesignTime.ir.txt | 23 - ...ockWithTextElement_DesignTime.mappings.txt | 26 - ...odeBlockWithTextElement_Runtime.codegen.cs | 43 - .../CodeBlockWithTextElement_Runtime.ir.txt | 18 - .../CodeBlock_DesignTime.codegen.cs | 32 - .../CodeBlock_DesignTime.codegen.html | 5 - .../CodeBlock_DesignTime.ir.txt | 13 - .../CodeBlock_DesignTime.mappings.txt | 13 - .../CodeBlock_Runtime.codegen.cs | 28 - .../CodeBlock_Runtime.ir.txt | 8 - .../ComplexTagHelpers.cshtml | 38 - .../ComplexTagHelpers_DesignTime.codegen.cs | 307 - ...mplexTagHelpers_DesignTime.diagnostics.txt | 2 - .../ComplexTagHelpers_DesignTime.ir.txt | 308 - .../ComplexTagHelpers_DesignTime.mappings.txt | 293 - .../ComplexTagHelpers_Runtime.codegen.cs | 566 - .../ComplexTagHelpers_Runtime.diagnostics.txt | 2 - .../ComplexTagHelpers_Runtime.ir.txt | 309 - .../ConditionalAttributes.cshtml | 15 - ...onditionalAttributes_DesignTime.codegen.cs | 189 - ...ditionalAttributes_DesignTime.codegen.html | 15 - .../ConditionalAttributes_DesignTime.ir.txt | 128 - ...ditionalAttributes_DesignTime.mappings.txt | 138 - .../ConditionalAttributes_Runtime.codegen.cs | 130 - .../ConditionalAttributes_Runtime.ir.txt | 115 - .../CssSelectorTagHelperAttributes.cshtml | 13 - ...ctorTagHelperAttributes_Runtime.codegen.cs | 250 - ...SelectorTagHelperAttributes_Runtime.ir.txt | 137 - .../DesignTime.cshtml | 15 - .../DesignTime_DesignTime.codegen.cs | 88 - .../DesignTime_DesignTime.codegen.html | 15 - .../DesignTime_DesignTime.ir.txt | 68 - .../DesignTime_DesignTime.mappings.txt | 49 - .../DuplicateAttributeTagHelpers.cshtml | 7 - ...eAttributeTagHelpers_DesignTime.codegen.cs | 78 - ...icateAttributeTagHelpers_DesignTime.ir.txt | 96 - ...ttributeTagHelpers_DesignTime.mappings.txt | 20 - ...cateAttributeTagHelpers_Runtime.codegen.cs | 154 - ...uplicateAttributeTagHelpers_Runtime.ir.txt | 69 - .../DuplicateTargetTagHelper.cshtml | 3 - ...icateTargetTagHelper_DesignTime.codegen.cs | 52 - ...DuplicateTargetTagHelper_DesignTime.ir.txt | 32 - ...ateTargetTagHelper_DesignTime.mappings.txt | 10 - ...uplicateTargetTagHelper_Runtime.codegen.cs | 69 - .../DuplicateTargetTagHelper_Runtime.ir.txt | 23 - .../DynamicAttributeTagHelpers.cshtml | 14 - ...cAttributeTagHelpers_DesignTime.codegen.cs | 262 - ...namicAttributeTagHelpers_DesignTime.ir.txt | 133 - ...ttributeTagHelpers_DesignTime.mappings.txt | 155 - ...amicAttributeTagHelpers_Runtime.codegen.cs | 372 - .../DynamicAttributeTagHelpers_Runtime.ir.txt | 127 - .../EmptyAttributeTagHelpers.cshtml | 8 - ...yAttributeTagHelpers_DesignTime.codegen.cs | 73 - ...ibuteTagHelpers_DesignTime.diagnostics.txt | 3 - ...EmptyAttributeTagHelpers_DesignTime.ir.txt | 68 - ...ttributeTagHelpers_DesignTime.mappings.txt | 20 - ...mptyAttributeTagHelpers_Runtime.codegen.cs | 122 - ...ttributeTagHelpers_Runtime.diagnostics.txt | 3 - .../EmptyAttributeTagHelpers_Runtime.ir.txt | 52 - .../EmptyCodeBlock.cshtml | 3 - .../EmptyCodeBlock_DesignTime.codegen.cs | 29 - .../EmptyCodeBlock_DesignTime.codegen.html | 3 - .../EmptyCodeBlock_DesignTime.ir.txt | 15 - .../EmptyCodeBlock_DesignTime.mappings.txt | 5 - .../EmptyCodeBlock_Runtime.codegen.cs | 19 - .../EmptyCodeBlock_Runtime.ir.txt | 10 - .../EmptyExplicitExpression.cshtml | 3 - ...tyExplicitExpression_DesignTime.codegen.cs | 29 - ...ExplicitExpression_DesignTime.codegen.html | 3 - .../EmptyExplicitExpression_DesignTime.ir.txt | 15 - ...ExplicitExpression_DesignTime.mappings.txt | 5 - ...EmptyExplicitExpression_Runtime.codegen.cs | 26 - .../EmptyExplicitExpression_Runtime.ir.txt | 10 - .../EmptyImplicitExpression.cshtml | 3 - .../EmptyImplicitExpressionInCode.cshtml | 3 - ...icitExpressionInCode_DesignTime.codegen.cs | 44 - ...itExpressionInCode_DesignTime.codegen.html | 3 - ...xpressionInCode_DesignTime.diagnostics.txt | 1 - ...ImplicitExpressionInCode_DesignTime.ir.txt | 17 - ...itExpressionInCode_DesignTime.mappings.txt | 19 - ...mplicitExpressionInCode_Runtime.codegen.cs | 25 - ...itExpressionInCode_Runtime.diagnostics.txt | 1 - ...ptyImplicitExpressionInCode_Runtime.ir.txt | 12 - ...tyImplicitExpression_DesignTime.codegen.cs | 29 - ...ImplicitExpression_DesignTime.codegen.html | 3 - ...licitExpression_DesignTime.diagnostics.txt | 1 - .../EmptyImplicitExpression_DesignTime.ir.txt | 17 - ...ImplicitExpression_DesignTime.mappings.txt | 5 - ...EmptyImplicitExpression_Runtime.codegen.cs | 27 - ...ImplicitExpression_Runtime.diagnostics.txt | 1 - .../EmptyImplicitExpression_Runtime.ir.txt | 12 - .../EnumTagHelpers.cshtml | 11 - .../EnumTagHelpers_DesignTime.codegen.cs | 111 - .../EnumTagHelpers_DesignTime.ir.txt | 74 - .../EnumTagHelpers_DesignTime.mappings.txt | 49 - .../EnumTagHelpers_Runtime.codegen.cs | 182 - .../EnumTagHelpers_Runtime.ir.txt | 68 - .../EscapedTagHelpers.cshtml | 8 - .../EscapedTagHelpers_DesignTime.codegen.cs | 65 - .../EscapedTagHelpers_DesignTime.ir.txt | 71 - .../EscapedTagHelpers_DesignTime.mappings.txt | 20 - .../EscapedTagHelpers_Runtime.codegen.cs | 91 - .../EscapedTagHelpers_Runtime.ir.txt | 65 - .../ExplicitExpression.cshtml | 1 - .../ExplicitExpressionAtEOF.cshtml | 3 - ...licitExpressionAtEOF_DesignTime.codegen.cs | 29 - ...citExpressionAtEOF_DesignTime.codegen.html | 3 - ...ExpressionAtEOF_DesignTime.diagnostics.txt | 1 - .../ExplicitExpressionAtEOF_DesignTime.ir.txt | 15 - ...citExpressionAtEOF_DesignTime.mappings.txt | 5 - ...ExplicitExpressionAtEOF_Runtime.codegen.cs | 26 - ...citExpressionAtEOF_Runtime.diagnostics.txt | 1 - .../ExplicitExpressionAtEOF_Runtime.ir.txt | 10 - .../ExplicitExpressionWithMarkup.cshtml | 1 - ...ExpressionWithMarkup_DesignTime.codegen.cs | 31 - ...pressionWithMarkup_DesignTime.codegen.html | 1 - ...ssionWithMarkup_DesignTime.diagnostics.txt | 2 - ...icitExpressionWithMarkup_DesignTime.ir.txt | 19 - ...pressionWithMarkup_DesignTime.mappings.txt | 5 - ...citExpressionWithMarkup_Runtime.codegen.cs | 31 - ...pressionWithMarkup_Runtime.diagnostics.txt | 2 - ...xplicitExpressionWithMarkup_Runtime.ir.txt | 14 - .../ExplicitExpression_DesignTime.codegen.cs | 29 - ...ExplicitExpression_DesignTime.codegen.html | 1 - .../ExplicitExpression_DesignTime.ir.txt | 15 - ...ExplicitExpression_DesignTime.mappings.txt | 5 - .../ExplicitExpression_Runtime.codegen.cs | 26 - .../ExplicitExpression_Runtime.ir.txt | 10 - .../ExpressionsInCode.cshtml | 16 - .../ExpressionsInCode_DesignTime.codegen.cs | 86 - .../ExpressionsInCode_DesignTime.codegen.html | 16 - .../ExpressionsInCode_DesignTime.ir.txt | 42 - .../ExpressionsInCode_DesignTime.mappings.txt | 58 - .../ExpressionsInCode_Runtime.codegen.cs | 84 - .../ExpressionsInCode_Runtime.ir.txt | 38 - .../FunctionsBlock.cshtml | 12 - .../FunctionsBlockMinimal.cshtml | 7 - ...unctionsBlockMinimal_DesignTime.codegen.cs | 32 - ...ctionsBlockMinimal_DesignTime.codegen.html | 7 - .../FunctionsBlockMinimal_DesignTime.ir.txt | 15 - ...ctionsBlockMinimal_DesignTime.mappings.txt | 13 - .../FunctionsBlockMinimal_Runtime.codegen.cs | 29 - .../FunctionsBlockMinimal_Runtime.ir.txt | 10 - .../FunctionsBlock_DesignTime.codegen.cs | 48 - .../FunctionsBlock_DesignTime.codegen.html | 12 - .../FunctionsBlock_DesignTime.ir.txt | 21 - .../FunctionsBlock_DesignTime.mappings.txt | 29 - .../FunctionsBlock_Runtime.codegen.cs | 38 - .../FunctionsBlock_Runtime.ir.txt | 16 - .../HiddenSpansInCode.cshtml | 3 - .../HiddenSpansInCode_DesignTime.codegen.cs | 37 - .../HiddenSpansInCode_DesignTime.codegen.html | 3 - .../HiddenSpansInCode_DesignTime.ir.txt | 15 - .../HiddenSpansInCode_DesignTime.mappings.txt | 14 - .../HiddenSpansInCode_Runtime.codegen.cs | 25 - .../HiddenSpansInCode_Runtime.ir.txt | 10 - .../HtmlCommentWithQuote_Double.cshtml | 2 - ...mentWithQuote_Double_DesignTime.codegen.cs | 22 - ...ntWithQuote_Double_DesignTime.codegen.html | 2 - ...lCommentWithQuote_Double_DesignTime.ir.txt | 20 - ...ntWithQuote_Double_DesignTime.mappings.txt | 0 ...CommentWithQuote_Double_Runtime.codegen.cs | 19 - ...HtmlCommentWithQuote_Double_Runtime.ir.txt | 15 - .../HtmlCommentWithQuote_Single.cshtml | 2 - ...mentWithQuote_Single_DesignTime.codegen.cs | 22 - ...ntWithQuote_Single_DesignTime.codegen.html | 2 - ...lCommentWithQuote_Single_DesignTime.ir.txt | 20 - ...ntWithQuote_Single_DesignTime.mappings.txt | 0 ...CommentWithQuote_Single_Runtime.codegen.cs | 19 - ...HtmlCommentWithQuote_Single_Runtime.ir.txt | 15 - .../Implements.cshtml | 5 - .../Implements_DesignTime.codegen.cs | 40 - .../Implements_DesignTime.codegen.html | 5 - .../Implements_DesignTime.ir.txt | 16 - .../Implements_DesignTime.mappings.txt | 14 - .../Implements_Runtime.codegen.cs | 27 - .../Implements_Runtime.ir.txt | 10 - .../ImplicitExpression.cshtml | 3 - .../ImplicitExpressionAtEOF.cshtml | 3 - ...licitExpressionAtEOF_DesignTime.codegen.cs | 29 - ...citExpressionAtEOF_DesignTime.codegen.html | 3 - ...ExpressionAtEOF_DesignTime.diagnostics.txt | 1 - .../ImplicitExpressionAtEOF_DesignTime.ir.txt | 15 - ...citExpressionAtEOF_DesignTime.mappings.txt | 5 - ...ImplicitExpressionAtEOF_Runtime.codegen.cs | 26 - ...citExpressionAtEOF_Runtime.diagnostics.txt | 1 - .../ImplicitExpressionAtEOF_Runtime.ir.txt | 10 - .../ImplicitExpression_DesignTime.codegen.cs | 45 - ...ImplicitExpression_DesignTime.codegen.html | 3 - .../ImplicitExpression_DesignTime.ir.txt | 23 - ...ImplicitExpression_DesignTime.mappings.txt | 19 - .../ImplicitExpression_Runtime.codegen.cs | 41 - .../ImplicitExpression_Runtime.ir.txt | 20 - .../IncompleteDirectives.cshtml | 25 - ...IncompleteDirectives_DesignTime.codegen.cs | 139 - ...completeDirectives_DesignTime.codegen.html | 25 - ...pleteDirectives_DesignTime.diagnostics.txt | 27 - .../IncompleteDirectives_DesignTime.ir.txt | 82 - ...completeDirectives_DesignTime.mappings.txt | 60 - .../IncompleteDirectives_Runtime.codegen.cs | 27 - ...completeDirectives_Runtime.diagnostics.txt | 27 - .../IncompleteDirectives_Runtime.ir.txt | 54 - .../IncompleteTagHelper.cshtml | 3 - .../IncompleteTagHelper_DesignTime.codegen.cs | 40 - ...mpleteTagHelper_DesignTime.diagnostics.txt | 2 - .../IncompleteTagHelper_DesignTime.ir.txt | 23 - ...ncompleteTagHelper_DesignTime.mappings.txt | 5 - .../IncompleteTagHelper_Runtime.codegen.cs | 54 - ...ncompleteTagHelper_Runtime.diagnostics.txt | 2 - .../IncompleteTagHelper_Runtime.ir.txt | 16 - .../Inherits.cshtml | 3 - .../Inherits_DesignTime.codegen.cs | 39 - .../Inherits_DesignTime.codegen.html | 3 - .../Inherits_DesignTime.ir.txt | 16 - .../Inherits_DesignTime.mappings.txt | 10 - .../Inherits_Runtime.codegen.cs | 26 - .../Inherits_Runtime.ir.txt | 10 - .../InlineBlocks.cshtml | 3 - .../InlineBlocks_DesignTime.codegen.cs | 60 - .../InlineBlocks_DesignTime.codegen.html | 3 - .../InlineBlocks_DesignTime.diagnostics.txt | 1 - .../InlineBlocks_DesignTime.ir.txt | 30 - .../InlineBlocks_DesignTime.mappings.txt | 25 - .../InlineBlocks_Runtime.codegen.cs | 56 - .../InlineBlocks_Runtime.diagnostics.txt | 1 - .../InlineBlocks_Runtime.ir.txt | 24 - .../Instrumented.cshtml | 38 - .../Instrumented_DesignTime.codegen.cs | 195 - .../Instrumented_DesignTime.codegen.html | 38 - .../Instrumented_DesignTime.ir.txt | 121 - .../Instrumented_DesignTime.mappings.txt | 153 - .../Instrumented_Runtime.codegen.cs | 182 - .../Instrumented_Runtime.ir.txt | 133 - .../MarkupInCodeBlock.cshtml | 5 - .../MarkupInCodeBlock_DesignTime.codegen.cs | 46 - .../MarkupInCodeBlock_DesignTime.codegen.html | 5 - .../MarkupInCodeBlock_DesignTime.ir.txt | 23 - .../MarkupInCodeBlock_DesignTime.mappings.txt | 23 - .../MarkupInCodeBlock_Runtime.codegen.cs | 42 - .../MarkupInCodeBlock_Runtime.ir.txt | 20 - .../Markup_InCodeBlocks.cshtml | 45 - .../Markup_InCodeBlocksWithTagHelper.cshtml | 47 - ...eBlocksWithTagHelper_DesignTime.codegen.cs | 167 - ...nCodeBlocksWithTagHelper_DesignTime.ir.txt | 81 - ...locksWithTagHelper_DesignTime.mappings.txt | 142 - ...CodeBlocksWithTagHelper_Runtime.codegen.cs | 184 - ...p_InCodeBlocksWithTagHelper_Runtime.ir.txt | 89 - .../Markup_InCodeBlocks_DesignTime.codegen.cs | 145 - ...arkup_InCodeBlocks_DesignTime.codegen.html | 45 - .../Markup_InCodeBlocks_DesignTime.ir.txt | 78 - ...arkup_InCodeBlocks_DesignTime.mappings.txt | 133 - .../Markup_InCodeBlocks_Runtime.codegen.cs | 136 - .../Markup_InCodeBlocks_Runtime.ir.txt | 85 - .../MinimizedTagHelpers.cshtml | 20 - .../MinimizedTagHelpers_DesignTime.codegen.cs | 63 - .../MinimizedTagHelpers_DesignTime.ir.txt | 109 - ...inimizedTagHelpers_DesignTime.mappings.txt | 5 - .../MinimizedTagHelpers_Runtime.codegen.cs | 190 - .../MinimizedTagHelpers_Runtime.ir.txt | 90 - .../NestedCSharp.cshtml | 8 - .../NestedCSharp_DesignTime.codegen.cs | 61 - .../NestedCSharp_DesignTime.codegen.html | 8 - .../NestedCSharp_DesignTime.ir.txt | 28 - .../NestedCSharp_DesignTime.mappings.txt | 35 - .../NestedCSharp_Runtime.codegen.cs | 42 - .../NestedCSharp_Runtime.ir.txt | 26 - .../NestedCodeBlocks.cshtml | 4 - .../NestedCodeBlocks_DesignTime.codegen.cs | 46 - .../NestedCodeBlocks_DesignTime.codegen.html | 4 - .../NestedCodeBlocks_DesignTime.ir.txt | 17 - .../NestedCodeBlocks_DesignTime.mappings.txt | 21 - .../NestedCodeBlocks_Runtime.codegen.cs | 42 - .../NestedCodeBlocks_Runtime.ir.txt | 12 - .../NestedScriptTagTagHelpers.cshtml | 16 - ...dScriptTagTagHelpers_DesignTime.codegen.cs | 77 - ...estedScriptTagTagHelpers_DesignTime.ir.txt | 87 - ...criptTagTagHelpers_DesignTime.mappings.txt | 29 - ...stedScriptTagTagHelpers_Runtime.codegen.cs | 116 - .../NestedScriptTagTagHelpers_Runtime.ir.txt | 80 - .../NestedTagHelpers.cshtml | 5 - .../NestedTagHelpers_DesignTime.codegen.cs | 47 - .../NestedTagHelpers_DesignTime.ir.txt | 48 - .../NestedTagHelpers_DesignTime.mappings.txt | 5 - .../NestedTagHelpers_Runtime.codegen.cs | 91 - .../NestedTagHelpers_Runtime.ir.txt | 37 - .../NoLinePragmas.cshtml | 38 - .../NoLinePragmas_DesignTime.codegen.cs | 184 - .../NoLinePragmas_DesignTime.codegen.html | 38 - .../NoLinePragmas_DesignTime.ir.txt | 112 - .../NoLinePragmas_DesignTime.mappings.txt | 148 - .../NoLinePragmas_Runtime.codegen.cs | 175 - .../NoLinePragmas_Runtime.ir.txt | 122 - .../NullConditionalExpressions.cshtml | 11 - ...nditionalExpressions_DesignTime.codegen.cs | 117 - ...itionalExpressions_DesignTime.codegen.html | 11 - ...llConditionalExpressions_DesignTime.ir.txt | 45 - ...itionalExpressions_DesignTime.mappings.txt | 75 - ...lConditionalExpressions_Runtime.codegen.cs | 78 - .../NullConditionalExpressions_Runtime.ir.txt | 40 - .../OpenedIf.cshtml | 5 - .../OpenedIf_DesignTime.codegen.cs | 43 - .../OpenedIf_DesignTime.codegen.html | 5 - .../OpenedIf_DesignTime.diagnostics.txt | 3 - .../OpenedIf_DesignTime.ir.txt | 28 - .../OpenedIf_DesignTime.mappings.txt | 19 - .../OpenedIf_Runtime.codegen.cs | 27 - .../OpenedIf_Runtime.diagnostics.txt | 3 - .../OpenedIf_Runtime.ir.txt | 21 - .../ParserError.cshtml | 5 - .../ParserError_DesignTime.codegen.cs | 33 - .../ParserError_DesignTime.codegen.html | 5 - .../ParserError_DesignTime.diagnostics.txt | 2 - .../ParserError_DesignTime.ir.txt | 13 - .../ParserError_DesignTime.mappings.txt | 13 - .../ParserError_Runtime.codegen.cs | 29 - .../ParserError_Runtime.diagnostics.txt | 2 - .../ParserError_Runtime.ir.txt | 8 - .../PrefixedAttributeTagHelpers.cshtml | 23 - ...dAttributeTagHelpers_DesignTime.codegen.cs | 154 - ...fixedAttributeTagHelpers_DesignTime.ir.txt | 136 - ...ttributeTagHelpers_DesignTime.mappings.txt | 80 - ...ixedAttributeTagHelpers_Runtime.codegen.cs | 284 - ...PrefixedAttributeTagHelpers_Runtime.ir.txt | 117 - .../RazorComments.cshtml | 18 - .../RazorComments_DesignTime.codegen.cs | 69 - .../RazorComments_DesignTime.codegen.html | 18 - .../RazorComments_DesignTime.ir.txt | 55 - .../RazorComments_DesignTime.mappings.txt | 47 - .../RazorComments_Runtime.codegen.cs | 64 - .../RazorComments_Runtime.ir.txt | 50 - .../RemoveTagHelperDirective.cshtml | 1 - ...veTagHelperDirective_DesignTime.codegen.cs | 32 - ...TagHelperDirective_DesignTime.codegen.html | 1 - ...RemoveTagHelperDirective_DesignTime.ir.txt | 14 - ...TagHelperDirective_DesignTime.mappings.txt | 5 - .../Sections.cshtml | 17 - .../Sections_DesignTime.codegen.cs | 100 - .../Sections_DesignTime.codegen.html | 17 - .../Sections_DesignTime.ir.txt | 62 - .../Sections_DesignTime.mappings.txt | 44 - .../Sections_Runtime.codegen.cs | 80 - .../Sections_Runtime.ir.txt | 56 - .../SimpleTagHelpers.cshtml | 5 - .../SimpleTagHelpers_DesignTime.codegen.cs | 41 - .../SimpleTagHelpers_DesignTime.ir.txt | 37 - .../SimpleTagHelpers_DesignTime.mappings.txt | 5 - .../SimpleTagHelpers_Runtime.codegen.cs | 58 - .../SimpleTagHelpers_Runtime.ir.txt | 28 - .../SimpleUnspacedIf.cshtml | 4 - .../SimpleUnspacedIf_DesignTime.codegen.cs | 39 - .../SimpleUnspacedIf_DesignTime.codegen.html | 4 - .../SimpleUnspacedIf_DesignTime.ir.txt | 19 - .../SimpleUnspacedIf_DesignTime.mappings.txt | 16 - .../SimpleUnspacedIf_Runtime.codegen.cs | 34 - .../SimpleUnspacedIf_Runtime.ir.txt | 16 - .../SingleLineControlFlowStatements.cshtml | 102 - ...ontrolFlowStatements_DesignTime.codegen.cs | 385 - ...trolFlowStatements_DesignTime.codegen.html | 102 - ...lFlowStatements_DesignTime.diagnostics.txt | 2 - ...ineControlFlowStatements_DesignTime.ir.txt | 131 - ...trolFlowStatements_DesignTime.mappings.txt | 363 - ...neControlFlowStatements_Runtime.codegen.cs | 344 - ...trolFlowStatements_Runtime.diagnostics.txt | 2 - ...leLineControlFlowStatements_Runtime.ir.txt | 125 - .../SingleTagHelper.cshtml | 3 - ...agHelperWithNewlineBeforeAttributes.cshtml | 4 - ...lineBeforeAttributes_DesignTime.codegen.cs | 47 - ...hNewlineBeforeAttributes_DesignTime.ir.txt | 27 - ...neBeforeAttributes_DesignTime.mappings.txt | 10 - ...NewlineBeforeAttributes_Runtime.codegen.cs | 63 - ...WithNewlineBeforeAttributes_Runtime.ir.txt | 20 - .../SingleTagHelper_DesignTime.codegen.cs | 47 - .../SingleTagHelper_DesignTime.ir.txt | 27 - .../SingleTagHelper_DesignTime.mappings.txt | 10 - .../SingleTagHelper_Runtime.codegen.cs | 63 - .../SingleTagHelper_Runtime.ir.txt | 20 - .../StringLiterals.cshtml | 237 - .../StringLiterals_DesignTime.codegen.cs | 48 - .../StringLiterals_DesignTime.codegen.html | 237 - .../StringLiterals_DesignTime.ir.txt | 1186 -- .../StringLiterals_DesignTime.mappings.txt | 10 - .../StringLiterals_Runtime.codegen.cs | 267 - .../StringLiterals_Runtime.ir.txt | 1178 -- .../SymbolBoundAttributes.cshtml | 19 - ...ymbolBoundAttributes_DesignTime.codegen.cs | 82 - ...BoundAttributes_DesignTime.diagnostics.txt | 5 - .../SymbolBoundAttributes_DesignTime.ir.txt | 140 - ...bolBoundAttributes_DesignTime.mappings.txt | 25 - .../SymbolBoundAttributes_Runtime.codegen.cs | 207 - ...bolBoundAttributes_Runtime.diagnostics.txt | 5 - .../SymbolBoundAttributes_Runtime.ir.txt | 126 - .../TagHelpersInSection.cshtml | 20 - .../TagHelpersInSection_DesignTime.codegen.cs | 98 - ...elpersInSection_DesignTime.diagnostics.txt | 1 - .../TagHelpersInSection_DesignTime.ir.txt | 80 - ...agHelpersInSection_DesignTime.mappings.txt | 39 - .../TagHelpersInSection_Runtime.codegen.cs | 126 - ...agHelpersInSection_Runtime.diagnostics.txt | 1 - .../TagHelpersInSection_Runtime.ir.txt | 70 - .../TagHelpersWithBoundAttributes.cshtml | 4 - ...sWithBoundAttributes_DesignTime.codegen.cs | 48 - ...lpersWithBoundAttributes_DesignTime.ir.txt | 32 - ...ithBoundAttributes_DesignTime.mappings.txt | 10 - ...persWithBoundAttributes_Runtime.codegen.cs | 66 - ...gHelpersWithBoundAttributes_Runtime.ir.txt | 24 - .../TagHelpersWithDataDashAttributes.cshtml | 5 - ...thDataDashAttributes_DesignTime.codegen.cs | 65 - ...rsWithDataDashAttributes_DesignTime.ir.txt | 67 - ...DataDashAttributes_DesignTime.mappings.txt | 20 - ...sWithDataDashAttributes_Runtime.codegen.cs | 110 - ...lpersWithDataDashAttributes_Runtime.ir.txt | 54 - .../TagHelpersWithPrefix.cshtml | 5 - ...TagHelpersWithPrefix_DesignTime.codegen.cs | 58 - .../TagHelpersWithPrefix_DesignTime.ir.txt | 35 - ...gHelpersWithPrefix_DesignTime.mappings.txt | 15 - .../TagHelpersWithPrefix_Runtime.codegen.cs | 66 - .../TagHelpersWithPrefix_Runtime.ir.txt | 24 - .../TagHelpersWithTemplate.cshtml | 19 - ...gHelpersWithTemplate_DesignTime.codegen.cs | 86 - .../TagHelpersWithTemplate_DesignTime.ir.txt | 58 - ...elpersWithTemplate_DesignTime.mappings.txt | 47 - .../TagHelpersWithTemplate_Runtime.codegen.cs | 131 - .../TagHelpersWithTemplate_Runtime.ir.txt | 51 - ...gHelpersWithWeirdlySpacedAttributes.cshtml | 15 - ...rdlySpacedAttributes_DesignTime.codegen.cs | 75 - ...hWeirdlySpacedAttributes_DesignTime.ir.txt | 75 - ...lySpacedAttributes_DesignTime.mappings.txt | 20 - ...WeirdlySpacedAttributes_Runtime.codegen.cs | 142 - ...WithWeirdlySpacedAttributes_Runtime.ir.txt | 59 - .../CodeGenerationIntegrationTest/Tags.cshtml | 9 - .../Tags_DesignTime.codegen.cs | 44 - .../Tags_DesignTime.codegen.html | 9 - .../Tags_DesignTime.diagnostics.txt | 1 - .../Tags_DesignTime.ir.txt | 43 - .../Tags_DesignTime.mappings.txt | 19 - .../Tags_Runtime.codegen.cs | 26 - .../Tags_Runtime.diagnostics.txt | 1 - .../Tags_Runtime.ir.txt | 40 - .../Templates.cshtml | 53 - .../Templates_DesignTime.codegen.cs | 206 - .../Templates_DesignTime.codegen.html | 53 - .../Templates_DesignTime.ir.txt | 158 - .../Templates_DesignTime.mappings.txt | 169 - .../Templates_Runtime.codegen.cs | 228 - .../Templates_Runtime.ir.txt | 156 - .../TransitionsInTagHelperAttributes.cshtml | 12 - ...nTagHelperAttributes_DesignTime.codegen.cs | 115 - ...elperAttributes_DesignTime.diagnostics.txt | 1 - ...onsInTagHelperAttributes_DesignTime.ir.txt | 105 - ...agHelperAttributes_DesignTime.mappings.txt | 116 - ...nsInTagHelperAttributes_Runtime.codegen.cs | 206 - ...agHelperAttributes_Runtime.diagnostics.txt | 1 - ...itionsInTagHelperAttributes_Runtime.ir.txt | 92 - .../UnfinishedExpressionInCode.cshtml | 3 - ...shedExpressionInCode_DesignTime.codegen.cs | 43 - ...edExpressionInCode_DesignTime.codegen.html | 3 - ...finishedExpressionInCode_DesignTime.ir.txt | 17 - ...edExpressionInCode_DesignTime.mappings.txt | 19 - ...inishedExpressionInCode_Runtime.codegen.cs | 25 - .../UnfinishedExpressionInCode_Runtime.ir.txt | 12 - .../Usings.cshtml | 15 - .../Usings_DesignTime.codegen.cs | 87 - .../Usings_DesignTime.codegen.html | 15 - .../Usings_DesignTime.ir.txt | 48 - .../Usings_DesignTime.mappings.txt | 51 - .../Usings_Runtime.codegen.cs | 88 - .../Usings_Runtime.ir.txt | 35 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 30 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 30 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 67 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 67 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 40 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 69 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 72 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 23 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 40 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 65 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 64 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 74 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 90 - .../TestComponent.ir.txt | 40 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 66 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 64 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 65 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 100 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 69 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 30 - .../TestComponent.codegen.cs | 69 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 30 - .../TestComponent.codegen.cs | 81 - .../TestComponent.ir.txt | 35 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 85 - .../TestComponent.ir.txt | 37 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 76 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 17 - .../TestComponent.codegen.cs | 38 - .../TestComponent.ir.txt | 29 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 21 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 20 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 46 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 65 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 61 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 88 - .../TestComponent.ir.txt | 43 - .../TestComponent.mappings.txt | 15 - .../ComponentImports/_Imports.codegen.cs | 59 - .../ComponentImports/_Imports.diagnostics.txt | 2 - .../ComponentImports/_Imports.ir.txt | 24 - .../ComponentImports/_Imports.mappings.txt | 20 - .../TestComponent.codegen.cs | 46 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 87 - .../TestComponent.ir.txt | 42 - .../TestComponent.mappings.txt | 49 - .../TestComponent.codegen.cs | 51 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 65 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 51 - .../TestComponent.ir.txt | 22 - .../Counter.codegen.cs | 61 - .../Counter.ir.txt | 22 - .../Counter.mappings.txt | 5 - .../TestComponent.codegen.cs | 54 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 21 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 23 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 56 - .../Component_WithKey/TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 66 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 55 - .../Component_WithRef/TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 54 - .../TestComponent.ir.txt | 35 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 56 - .../Component_WithSplat/TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 73 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 76 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 61 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 39 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 25 - .../TestComponent.codegen.cs | 66 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 35 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 66 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 35 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 66 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 35 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 40 - .../TestComponent.diagnostics.txt | 2 - .../TestComponent.ir.txt | 28 - .../TestComponent.codegen.cs | 39 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 25 - .../TestComponent.codegen.cs | 52 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 47 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 27 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 32 - .../TestComponent.codegen.cs | 61 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 49 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 52 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 47 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 43 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 35 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 27 - .../TestComponent.diagnostics.txt | 2 - .../TestComponent.ir.txt | 33 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 20 - .../Element_WithKey/TestComponent.codegen.cs | 44 - .../Element_WithKey/TestComponent.ir.txt | 32 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 23 - .../TestComponent.codegen.cs | 35 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 9 - .../Element_WithRef/TestComponent.codegen.cs | 43 - .../Element_WithRef/TestComponent.ir.txt | 32 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 28 - .../TestComponent.codegen.cs | 44 - .../Element_WithSplat/TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 53 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 53 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 35 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 33 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 64 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 64 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 65 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 27 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 22 - .../TestComponent.codegen.cs | 64 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 22 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 22 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 22 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 21 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 21 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 21 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 21 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 21 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 78 - .../TestComponent.ir.txt | 40 - .../TestComponent.mappings.txt | 34 - .../TestComponent.codegen.cs | 36 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 32 - .../TestComponent.mappings.txt | 28 - .../TestComponent.codegen.cs | 72 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 72 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 72 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 72 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 80 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 71 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 26 - .../TestComponent.codegen.cs | 75 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 21 - .../TestComponent.codegen.cs | 66 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 72 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 73 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 22 - .../TestComponent.codegen.cs | 33 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 29 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 76 - .../TestComponent.ir.txt | 36 - .../TestComponent.mappings.txt | 25 - .../TestComponent.codegen.cs | 74 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 34 - .../TestComponent.codegen.cs | 91 - .../TestComponent.ir.txt | 38 - .../TestComponent.mappings.txt | 39 - .../TestComponent.codegen.cs | 69 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 34 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 34 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 34 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 30 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 19 - .../Regression_597/TestComponent.codegen.cs | 55 - .../Regression_597/TestComponent.ir.txt | 29 - .../Regression_597/TestComponent.mappings.txt | 14 - .../Regression_609/TestComponent.codegen.cs | 66 - .../Regression_609/TestComponent.ir.txt | 35 - .../Regression_609/TestComponent.mappings.txt | 21 - .../Regression_772/TestComponent.codegen.cs | 49 - .../TestComponent.diagnostics.txt | 2 - .../Regression_772/TestComponent.ir.txt | 29 - .../Regression_772/TestComponent.mappings.txt | 5 - .../Regression_773/TestComponent.codegen.cs | 49 - .../Regression_773/TestComponent.ir.txt | 31 - .../Regression_773/TestComponent.mappings.txt | 5 - .../Regression_784/TestComponent.codegen.cs | 64 - .../Regression_784/TestComponent.ir.txt | 38 - .../Regression_784/TestComponent.mappings.txt | 32 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 30 - .../TestComponent.codegen.cs | 54 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 30 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 36 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 38 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 45 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 44 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 32 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 56 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 66 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 48 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 51 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 48 - .../TestComponent.ir.txt | 26 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 25 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 39 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 39 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 31 - .../TestComponent.ir.txt | 15 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 68 - .../TestComponent.ir.txt | 31 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 23 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 18 - .../TestComponent.codegen.cs | 51 - .../TestComponent.ir.txt | 19 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 74 - .../TestComponent.ir.txt | 30 - .../TestComponent.codegen.cs | 54 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 23 - .../TestComponent.codegen.cs | 55 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 23 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 29 - .../TestComponent.codegen.cs | 79 - .../TestComponent.ir.txt | 31 - .../TestComponent.codegen.cs | 66 - .../TestComponent.ir.txt | 22 - .../TestComponent.codegen.cs | 22 - .../TestComponent.ir.txt | 10 - .../TestComponent.codegen.cs | 28 - .../TestComponent.ir.txt | 17 - .../TestComponent.codegen.cs | 26 - .../TestComponent.ir.txt | 12 - .../TestComponent.codegen.cs | 26 - .../TestComponent.ir.txt | 13 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 13 - .../TestComponent.codegen.cs | 31 - .../TestComponent.ir.txt | 13 - .../TestComponent.codegen.cs | 39 - .../TestComponent.ir.txt | 22 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 32 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 24 - .../TestComponent.ir.txt | 12 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 19 - .../TestComponent.codegen.cs | 46 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 70 - .../TestComponent.ir.txt | 32 - .../ComponentImports/_Imports.codegen.cs | 44 - .../ComponentImports/_Imports.diagnostics.txt | 2 - .../ComponentImports/_Imports.ir.txt | 16 - .../TestComponent.codegen.cs | 31 - .../TestComponent.ir.txt | 13 - .../TestComponent.codegen.cs | 67 - .../TestComponent.ir.txt | 28 - .../TestComponent.mappings.txt | 29 - .../TestComponent.codegen.cs | 39 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 15 - .../TestComponent.codegen.cs | 35 - .../TestComponent.ir.txt | 17 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 17 - .../TestComponent.codegen.cs | 36 - .../TestComponent.ir.txt | 12 - .../Counter.codegen.cs | 36 - .../Counter.ir.txt | 12 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 18 - .../TestComponent.codegen.cs | 22 - .../TestComponent.ir.txt | 12 - .../TestComponent.codegen.cs | 28 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 14 - .../TestComponent.codegen.cs | 41 - .../Component_WithKey/TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 5 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 20 - .../TestComponent.codegen.cs | 43 - .../Component_WithRef/TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 41 - .../Component_WithSplat/TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 41 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 39 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 15 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 20 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 24 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 50 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 50 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 50 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 24 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 25 - .../TestComponent.diagnostics.txt | 2 - .../TestComponent.ir.txt | 19 - .../TestComponent.codegen.cs | 24 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 54 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 31 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 25 - .../TestComponent.codegen.cs | 62 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 36 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 54 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 34 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 44 - .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 26 - .../TestComponent.codegen.cs | 32 - .../TestComponent.diagnostics.txt | 2 - .../TestComponent.ir.txt | 26 - .../TestComponent.codegen.cs | 21 - .../TestComponent.ir.txt | 10 - .../Element_WithKey/TestComponent.codegen.cs | 42 - .../Element_WithKey/TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 52 - .../TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 18 - .../TestComponent.codegen.cs | 29 - .../TestComponent.ir.txt | 12 - .../TestComponent.mappings.txt | 9 - .../Element_WithRef/TestComponent.codegen.cs | 44 - .../Element_WithRef/TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 54 - .../TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 20 - .../TestComponent.codegen.cs | 21 - .../TestComponent.ir.txt | 10 - .../TestComponent.codegen.cs | 42 - .../Element_WithSplat/TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 29 - .../TestComponent.ir.txt | 12 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 22 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 16 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 16 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 16 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 49 - .../TestComponent.ir.txt | 16 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 42 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 33 - .../TestComponent.ir.txt | 17 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 34 - .../TestComponent.ir.txt | 17 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 43 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 21 - .../TestComponent.ir.txt | 10 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 13 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 38 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 38 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 38 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 28 - .../TestComponent.ir.txt | 11 - .../TestComponent.codegen.cs | 51 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 39 - .../TestComponent.ir.txt | 15 - .../TestComponent.codegen.cs | 74 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 32 - .../TestComponent.ir.txt | 15 - .../TestComponent.codegen.cs | 57 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 18 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 18 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 18 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 18 - .../TestComponent.codegen.cs | 66 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 17 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 50 - .../TestComponent.ir.txt | 17 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 61 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 61 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 16 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 24 - .../TestComponent.codegen.cs | 48 - .../TestComponent.ir.txt | 17 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 14 - .../TestComponent.codegen.cs | 31 - .../TestComponent.ir.txt | 14 - .../TestComponent.codegen.cs | 24 - .../TestComponent.ir.txt | 13 - .../TestComponent.codegen.cs | 27 - .../TestComponent.ir.txt | 10 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 37 - .../TestComponent.ir.txt | 22 - .../TestComponent.codegen.cs | 38 - .../TestComponent.ir.txt | 16 - .../TestComponent.codegen.cs | 32 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 69 - .../TestComponent.ir.txt | 27 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 61 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 29 - .../TestComponent.codegen.cs | 77 - .../TestComponent.ir.txt | 29 - .../TestComponent.mappings.txt | 29 - .../TestComponent.codegen.cs | 58 - .../TestComponent.ir.txt | 21 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 59 - .../TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 29 - .../TestComponent.codegen.cs | 62 - .../TestComponent.ir.txt | 18 - .../TestComponent.mappings.txt | 19 - .../TestComponent.codegen.cs | 48 - .../TestComponent.ir.txt | 19 - .../TestComponent.mappings.txt | 10 - .../TestComponent.codegen.cs | 47 - .../TestComponent.ir.txt | 16 - .../TestComponent.mappings.txt | 9 - .../Regression_597/TestComponent.codegen.cs | 40 - .../Regression_597/TestComponent.ir.txt | 18 - .../Regression_597/TestComponent.mappings.txt | 9 - .../Regression_609/TestComponent.codegen.cs | 51 - .../Regression_609/TestComponent.ir.txt | 24 - .../Regression_609/TestComponent.mappings.txt | 11 - .../Regression_772/TestComponent.codegen.cs | 25 - .../TestComponent.diagnostics.txt | 2 - .../Regression_772/TestComponent.ir.txt | 15 - .../Regression_773/TestComponent.codegen.cs | 25 - .../Regression_773/TestComponent.ir.txt | 15 - .../Regression_784/TestComponent.codegen.cs | 59 - .../Regression_784/TestComponent.ir.txt | 25 - .../Regression_784/TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 29 - .../TestComponent.ir.txt | 21 - .../TestComponent.codegen.cs | 51 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 60 - .../TestComponent.ir.txt | 23 - .../TestComponent.mappings.txt | 24 - .../TestComponent.codegen.cs | 30 - .../TestComponent.ir.txt | 12 - .../TestComponent.codegen.cs | 23 - .../TestComponent.ir.txt | 11 - .../TestComponent.codegen.cs | 22 - .../TestComponent.ir.txt | 11 - .../TestComponent.codegen.cs | 21 - .../TestComponent.ir.txt | 10 - .../TestComponent.codegen.cs | 40 - .../TestComponent.ir.txt | 15 - .../TestComponent.mappings.txt | 9 - .../NamespaceToken.codegen.cs | 32 - .../NamespaceToken.cshtml | 1 - .../NamespaceToken.ir.txt | 12 - .../NamespaceToken.mappings.txt | 5 - .../HtmlWithConditionalAttribute.cshtml | 5 - .../HtmlWithConditionalAttribute.ir.txt | 25 - .../HtmlWithDataDashAttribute.cshtml | 5 - .../HtmlWithDataDashAttribute.ir.txt | 26 - .../NestedTagHelpers.cshtml | 5 - .../NestedTagHelpers.ir.txt | 37 - .../SimpleTagHelpers.cshtml | 5 - .../SimpleTagHelpers.ir.txt | 28 - .../TagHelpersWithBoundAttributes.cshtml | 4 - .../TagHelpersWithBoundAttributes.ir.txt | 24 - ...tionsDirectiveAutoCompleteAtEOF.cspans.txt | 5 - ...nctionsDirectiveAutoCompleteAtEOF.diag.txt | 1 - ...ctionsDirectiveAutoCompleteAtEOF.stree.txt | 19 - ...ectiveAutoCompleteAtStartOfFile.cspans.txt | 5 - ...irectiveAutoCompleteAtStartOfFile.diag.txt | 1 - ...rectiveAutoCompleteAtStartOfFile.stree.txt | 20 - ...ctionDirectiveAutoCompleteAtEOF.cspans.txt | 8 - ...SectionDirectiveAutoCompleteAtEOF.diag.txt | 1 - ...ectionDirectiveAutoCompleteAtEOF.stree.txt | 25 - ...ectiveAutoCompleteAtStartOfFile.cspans.txt | 11 - ...irectiveAutoCompleteAtStartOfFile.diag.txt | 1 - ...rectiveAutoCompleteAtStartOfFile.stree.txt | 37 - .../VerbatimBlockAutoCompleteAtEOF.cspans.txt | 4 - .../VerbatimBlockAutoCompleteAtEOF.diag.txt | 1 - .../VerbatimBlockAutoCompleteAtEOF.stree.txt | 16 - ...mBlockAutoCompleteAtStartOfFile.cspans.txt | 7 - ...timBlockAutoCompleteAtStartOfFile.diag.txt | 1 - ...imBlockAutoCompleteAtStartOfFile.stree.txt | 29 - .../AcceptsElseIfWithNoCondition.cspans.txt | 3 - .../AcceptsElseIfWithNoCondition.stree.txt | 66 - ...citExpressionWhenEmbeddedInCode.cspans.txt | 6 - ...icitExpressionWhenEmbeddedInCode.stree.txt | 27 - .../AllowsEmptyBlockStatement.cspans.txt | 3 - .../AllowsEmptyBlockStatement.stree.txt | 16 - ...ingLiteralCharactersAndBrackets.cspans.txt | 3 - ...ringLiteralCharactersAndBrackets.stree.txt | 25 - ...sAndBracketsInsideBlockComments.cspans.txt | 3 - ...rsAndBracketsInsideBlockComments.stree.txt | 27 - ..._SingleLineControlFlowStatement.cspans.txt | 9 - ...k_SingleLineControlFlowStatement.stree.txt | 59 - ...eLineControlFlowStatement_Error.cspans.txt | 29 - ...gleLineControlFlowStatement_Error.diag.txt | 4 - ...leLineControlFlowStatement_Error.stree.txt | 214 - .../CapturesNewlineAfterUsing.cspans.txt | 4 - .../CapturesNewlineAfterUsing.stree.txt | 16 - .../CorrectlyParsesDoWhileBlock.cspans.txt | 4 - .../CorrectlyParsesDoWhileBlock.stree.txt | 34 - ...sesDoWhileBlockMissingSemicolon.cspans.txt | 3 - ...rsesDoWhileBlockMissingSemicolon.stree.txt | 31 - ...BlockMissingWhileClauseEntirely.cspans.txt | 4 - ...eBlockMissingWhileClauseEntirely.stree.txt | 25 - ...WhileBlockMissingWhileCondition.cspans.txt | 3 - ...oWhileBlockMissingWhileCondition.stree.txt | 24 - ...singWhileConditionWithSemicolon.cspans.txt | 4 - ...ssingWhileConditionWithSemicolon.stree.txt | 27 - ...ectlyParsesMarkupInDoWhileBlock.cspans.txt | 10 - ...rectlyParsesMarkupInDoWhileBlock.stree.txt | 55 - ...esNotAllowMultipleFinallyBlocks.cspans.txt | 4 - ...oesNotAllowMultipleFinallyBlocks.stree.txt | 50 - ...erNotFollowedByOpenAngleOrColon.cspans.txt | 3 - ...terNotFollowedByOpenAngleOrColon.stree.txt | 23 - ...esntCaptureWhitespaceAfterUsing.cspans.txt | 4 - ...oesntCaptureWhitespaceAfterUsing.stree.txt | 15 - ...fNamespaceAliasMissingSemicolon.cspans.txt | 4 - ...IfNamespaceAliasMissingSemicolon.stree.txt | 23 - ...NamespaceImportMissingSemicolon.cspans.txt | 4 - ...fNamespaceImportMissingSemicolon.stree.txt | 19 - .../LocalFunctionsWithGenerics.cspans.txt | 20 - .../LocalFunctionsWithGenerics.stree.txt | 126 - .../LocalFunctionsWithRazor.cspans.txt | 13 - .../LocalFunctionsWithRazor.stree.txt | 75 - ...CodeBlockWithAtDoesntCauseError.cspans.txt | 6 - ...dCodeBlockWithAtDoesntCauseError.stree.txt | 31 - .../NestedCodeBlockWithCSharpAt.cspans.txt | 6 - .../NestedCodeBlockWithCSharpAt.stree.txt | 52 - ...eBlockWithMarkupSetsDotAsMarkup.cspans.txt | 15 - ...deBlockWithMarkupSetsDotAsMarkup.stree.txt | 58 - .../ParsersCanNestRecursively.cspans.txt | 39 - .../ParsersCanNestRecursively.stree.txt | 194 - ...rsesElseIfBranchesOfIfStatement.cspans.txt | 3 - ...arsesElseIfBranchesOfIfStatement.stree.txt | 101 - ...racterFollowedByIdentifierStart.cspans.txt | 6 - ...aracterFollowedByIdentifierStart.stree.txt | 33 - ...tchCharacterFollowedByOpenParen.cspans.txt | 8 - ...itchCharacterFollowedByOpenParen.stree.txt | 34 - ...ipleElseIfBranchesOfIfStatement.cspans.txt | 3 - ...tipleElseIfBranchesOfIfStatement.stree.txt | 245 - ...tatementFollowedByOneElseBranch.cspans.txt | 4 - ...StatementFollowedByOneElseBranch.stree.txt | 165 - ...orUsingKeywordIfIsInValidFormat.cspans.txt | 4 - ...ForUsingKeywordIfIsInValidFormat.stree.txt | 20 - ...orUsingKeywordIfIsInValidFormat.cspans.txt | 4 - ...ForUsingKeywordIfIsInValidFormat.stree.txt | 20 - ...esIfFirstIdentifierIsForKeyword.cspans.txt | 4 - ...cesIfFirstIdentifierIsForKeyword.stree.txt | 54 - ...FirstIdentifierIsForeachKeyword.cspans.txt | 4 - ...fFirstIdentifierIsForeachKeyword.stree.txt | 54 - ...erIsIfKeywordWithNoElseBranches.cspans.txt | 3 - ...ierIsIfKeywordWithNoElseBranches.stree.txt | 52 - ...fFirstIdentifierIsSwitchKeyword.cspans.txt | 4 - ...IfFirstIdentifierIsSwitchKeyword.stree.txt | 62 - ...IfFirstIdentifierIsWhileKeyword.cspans.txt | 4 - ...sIfFirstIdentifierIsWhileKeyword.stree.txt | 54 - ...dentifierIsUsingFollowedByParen.cspans.txt | 4 - ...IdentifierIsUsingFollowedByParen.stree.txt | 54 - ...ngCatchClausesAfterFinallyBlock.cspans.txt | 4 - ...ingCatchClausesAfterFinallyBlock.stree.txt | 54 - ...StopsParsingCodeAfterElseBranch.cspans.txt | 18 - .../StopsParsingCodeAfterElseBranch.stree.txt | 207 - ...gIfIfStatementNotFollowedByElse.cspans.txt | 3 - ...ngIfIfStatementNotFollowedByElse.stree.txt | 53 - ...entBetweenCatchAndFinallyClause.cspans.txt | 4 - ...mentBetweenCatchAndFinallyClause.stree.txt | 49 - ...kCommentBetweenDoAndWhileClause.cspans.txt | 4 - ...ckCommentBetweenDoAndWhileClause.stree.txt | 34 - ...mmentBetweenElseIfAndElseClause.cspans.txt | 4 - ...ommentBetweenElseIfAndElseClause.stree.txt | 54 - ...ckCommentBetweenIfAndElseClause.cspans.txt | 4 - ...ockCommentBetweenIfAndElseClause.stree.txt | 38 - ...CommentBetweenIfAndElseIfClause.cspans.txt | 1 - ...kCommentBetweenIfAndElseIfClause.stree.txt | 36 - ...CommentBetweenTryAndCatchClause.cspans.txt | 3 - ...kCommentBetweenTryAndCatchClause.stree.txt | 36 - ...mmentBetweenTryAndFinallyClause.cspans.txt | 4 - ...ommentBetweenTryAndFinallyClause.stree.txt | 35 - ...pportsExceptionLessCatchClauses.cspans.txt | 3 - ...upportsExceptionLessCatchClauses.stree.txt | 43 - ...entBetweenCatchAndFinallyClause.cspans.txt | 4 - ...mentBetweenCatchAndFinallyClause.stree.txt | 49 - ...eCommentBetweenDoAndWhileClause.cspans.txt | 4 - ...neCommentBetweenDoAndWhileClause.stree.txt | 34 - ...mmentBetweenElseIfAndElseClause.cspans.txt | 4 - ...ommentBetweenElseIfAndElseClause.stree.txt | 54 - ...neCommentBetweenIfAndElseClause.cspans.txt | 4 - ...ineCommentBetweenIfAndElseClause.stree.txt | 38 - ...CommentBetweenIfAndElseIfClause.cspans.txt | 3 - ...eCommentBetweenIfAndElseIfClause.stree.txt | 41 - ...CommentBetweenTryAndCatchClause.cspans.txt | 3 - ...eCommentBetweenTryAndCatchClause.stree.txt | 36 - ...mmentBetweenTryAndFinallyClause.cspans.txt | 4 - ...ommentBetweenTryAndFinallyClause.stree.txt | 35 - ...kupWithinAdditionalCatchClauses.cspans.txt | 9 - ...rkupWithinAdditionalCatchClauses.stree.txt | 105 - ...SupportsMarkupWithinCatchClause.cspans.txt | 9 - .../SupportsMarkupWithinCatchClause.stree.txt | 55 - ...pportsMarkupWithinFinallyClause.cspans.txt | 10 - ...upportsMarkupWithinFinallyClause.stree.txt | 50 - .../SupportsMarkupWithinTryClause.cspans.txt | 9 - .../SupportsMarkupWithinTryClause.stree.txt | 30 - ...entBetweenCatchAndFinallyClause.cspans.txt | 16 - ...mentBetweenCatchAndFinallyClause.stree.txt | 61 - ...rCommentBetweenDoAndWhileClause.cspans.txt | 16 - ...orCommentBetweenDoAndWhileClause.stree.txt | 46 - ...mmentBetweenElseIfAndElseClause.cspans.txt | 16 - ...ommentBetweenElseIfAndElseClause.stree.txt | 66 - ...orCommentBetweenIfAndElseClause.cspans.txt | 16 - ...zorCommentBetweenIfAndElseClause.stree.txt | 50 - ...CommentBetweenIfAndElseIfClause.cspans.txt | 15 - ...rCommentBetweenIfAndElseIfClause.stree.txt | 53 - ...CommentBetweenTryAndCatchClause.cspans.txt | 15 - ...rCommentBetweenTryAndCatchClause.stree.txt | 47 - ...mmentBetweenTryAndFinallyClause.cspans.txt | 16 - ...ommentBetweenTryAndFinallyClause.stree.txt | 47 - ...tsTryStatementWithFinallyClause.cspans.txt | 4 - ...rtsTryStatementWithFinallyClause.stree.txt | 45 - ...tatementWithMultipleCatchClause.cspans.txt | 3 - ...StatementWithMultipleCatchClause.stree.txt | 100 - ...tatementWithNoAdditionalClauses.cspans.txt | 3 - ...StatementWithNoAdditionalClauses.stree.txt | 25 - ...sTryStatementWithOneCatchClause.cspans.txt | 3 - ...tsTryStatementWithOneCatchClause.stree.txt | 50 - ...tsUsingsNestedWithinOtherBlocks.cspans.txt | 3 - ...rtsUsingsNestedWithinOtherBlocks.stree.txt | 61 - ...rminatesBlockCommentAtEndOfFile.cspans.txt | 3 - ...TerminatesBlockCommentAtEndOfFile.diag.txt | 2 - ...erminatesBlockCommentAtEndOfFile.stree.txt | 22 - .../TerminatesParenBalancingAtEOF.cspans.txt | 3 - .../TerminatesParenBalancingAtEOF.diag.txt | 1 - .../TerminatesParenBalancingAtEOF.stree.txt | 18 - ...tesSingleLineCommentAtEndOfFile.cspans.txt | 3 - ...natesSingleLineCommentAtEndOfFile.diag.txt | 1 - ...atesSingleLineCommentAtEndOfFile.stree.txt | 22 - ...erminatesSingleSlashAtEndOfFile.cspans.txt | 3 - .../TerminatesSingleSlashAtEndOfFile.diag.txt | 1 - ...TerminatesSingleSlashAtEndOfFile.stree.txt | 28 - ...ordAtEOFAndOutputsFileCodeBlock.cspans.txt | 3 - ...wordAtEOFAndOutputsFileCodeBlock.stree.txt | 10 - ...sIfFirstIdentifierIsLockKeyword.cspans.txt | 4 - ...esIfFirstIdentifierIsLockKeyword.stree.txt | 26 - ...irstPairAsPartOfCSharpStatement.cspans.txt | 5 - ...FirstPairAsPartOfCSharpStatement.stree.txt | 28 - ...scapeSequenceIfAtStatementStart.cspans.txt | 5 - ...EscapeSequenceIfAtStatementStart.stree.txt | 26 - ...ngOfAttributeValue_DoesNotThrow.cspans.txt | 13 - ...ingOfAttributeValue_DoesNotThrow.stree.txt | 47 - ...ndOfAttributeValue_DoesNotThrow.cspans.txt | 13 - ...EndOfAttributeValue_DoesNotThrow.stree.txt | 47 - ...weenAttributeValue_DoesNotThrow.cspans.txt | 14 - ...tweenAttributeValue_DoesNotThrow.stree.txt | 53 - ...onInAttributeValue_DoesNotThrow.cspans.txt | 12 - ...ionInAttributeValue_DoesNotThrow.stree.txt | 44 - ...eTransitionInEmail_DoesNotThrow.cspans.txt | 17 - ...leTransitionInEmail_DoesNotThrow.stree.txt | 61 - ...eTransitionInRegex_DoesNotThrow.cspans.txt | 14 - ...leTransitionInRegex_DoesNotThrow.stree.txt | 92 - ...ithExpressionBlock_DoesNotThrow.cspans.txt | 47 - ...WithExpressionBlock_DoesNotThrow.stree.txt | 195 - ...ubleTransition_EndOfFile_Throws.cspans.txt | 7 - ...DoubleTransition_EndOfFile_Throws.diag.txt | 2 - ...oubleTransition_EndOfFile_Throws.stree.txt | 34 - ...nsitionsInAttributeValue_Throws.cspans.txt | 15 - ...ransitionsInAttributeValue_Throws.diag.txt | 2 - ...ansitionsInAttributeValue_Throws.stree.txt | 61 - ...lidUsingStmtAndTreatsAsFileCode.cspans.txt | 4 - ...alidUsingStmtAndTreatsAsFileCode.stree.txt | 13 - ...mplicitExpressionParensUnclosed.cspans.txt | 9 - ...fImplicitExpressionParensUnclosed.diag.txt | 1 - ...ImplicitExpressionParensUnclosed.stree.txt | 41 - ...tlyParsesAtSignInDelimitedBlock.cspans.txt | 6 - ...ctlyParsesAtSignInDelimitedBlock.stree.txt | 28 - ...ectyAssumedToBeWithinAStatement.cspans.txt | 10 - ...rrectyAssumedToBeWithinAStatement.diag.txt | 1 - ...rectyAssumedToBeWithinAStatement.stree.txt | 53 - ...loseParenInExpressionWithinCode.cspans.txt | 9 - ...gCloseParenInExpressionWithinCode.diag.txt | 1 - ...CloseParenInExpressionWithinCode.stree.txt | 34 - .../HandlesQuotesAfterTransition.cspans.txt | 4 - .../HandlesQuotesAfterTransition.diag.txt | 1 - .../HandlesQuotesAfterTransition.stree.txt | 14 - ...tementControlFlowStatementError.cspans.txt | 4 - ...atementControlFlowStatementError.stree.txt | 26 - ...anIfEofFoundAfterOpenCurlyBrace.cspans.txt | 4 - ...SpanIfEofFoundAfterOpenCurlyBrace.diag.txt | 1 - ...panIfEofFoundAfterOpenCurlyBrace.stree.txt | 16 - ...thCodeSpanIfStatementBlockEmpty.cspans.txt | 6 - ...gthCodeSpanIfStatementBlockEmpty.stree.txt | 18 - ...otIdentifierStartOrParenOrBrace.cspans.txt | 4 - ...sNotIdentifierStartOrParenOrBrace.diag.txt | 1 - ...NotIdentifierStartOrParenOrBrace.stree.txt | 16 - ...rTransitionInEmbeddedExpression.cspans.txt | 7 - ...terTransitionInEmbeddedExpression.diag.txt | 2 - ...erTransitionInEmbeddedExpression.stree.txt | 27 - ...ErrorIfNewlineFollowsTransition.cspans.txt | 4 - ...esErrorIfNewlineFollowsTransition.diag.txt | 1 - ...sErrorIfNewlineFollowsTransition.stree.txt | 14 - ...tionAndBlockStartInEmbeddedExpr.cspans.txt | 9 - ...sitionAndBlockStartInEmbeddedExpr.diag.txt | 1 - ...itionAndBlockStartInEmbeddedExpr.stree.txt | 32 - ...dByLessThanSignAtStatementStart.cspans.txt | 10 - ...wedByLessThanSignAtStatementStart.diag.txt | 5 - ...edByLessThanSignAtStatementStart.stree.txt | 35 - ...orIfCatchBlockUnterminatedAtEOF.cspans.txt | 3 - ...rrorIfCatchBlockUnterminatedAtEOF.diag.txt | 1 - ...rorIfCatchBlockUnterminatedAtEOF.stree.txt | 53 - ...orIfClassBlockUnterminatedAtEOF.cspans.txt | 6 - ...rrorIfClassBlockUnterminatedAtEOF.diag.txt | 1 - ...rorIfClassBlockUnterminatedAtEOF.stree.txt | 48 - ...ErrorIfDoBlockUnterminatedAtEOF.cspans.txt | 3 - ...tsErrorIfDoBlockUnterminatedAtEOF.diag.txt | 1 - ...sErrorIfDoBlockUnterminatedAtEOF.stree.txt | 39 - ...rorIfElseBlockUnterminatedAtEOF.cspans.txt | 3 - ...ErrorIfElseBlockUnterminatedAtEOF.diag.txt | 1 - ...rrorIfElseBlockUnterminatedAtEOF.stree.txt | 53 - ...rIfElseIfBlockUnterminatedAtEOF.cspans.txt | 3 - ...rorIfElseIfBlockUnterminatedAtEOF.diag.txt | 1 - ...orIfElseIfBlockUnterminatedAtEOF.stree.txt | 55 - ...licitCodeBlockUnterminatedAtEOF.cspans.txt | 4 - ...xplicitCodeBlockUnterminatedAtEOF.diag.txt | 1 - ...plicitCodeBlockUnterminatedAtEOF.stree.txt | 43 - ...IfFinallyBlockUnterminatedAtEOF.cspans.txt | 3 - ...orIfFinallyBlockUnterminatedAtEOF.diag.txt | 1 - ...rIfFinallyBlockUnterminatedAtEOF.stree.txt | 50 - ...rrorIfForBlockUnterminatedAtEOF.cspans.txt | 3 - ...sErrorIfForBlockUnterminatedAtEOF.diag.txt | 1 - ...ErrorIfForBlockUnterminatedAtEOF.stree.txt | 43 - ...IfForeachBlockUnterminatedAtEOF.cspans.txt | 3 - ...orIfForeachBlockUnterminatedAtEOF.diag.txt | 1 - ...rIfForeachBlockUnterminatedAtEOF.stree.txt | 43 - ...ErrorIfIfBlockUnterminatedAtEOF.cspans.txt | 3 - ...tsErrorIfIfBlockUnterminatedAtEOF.diag.txt | 1 - ...sErrorIfIfBlockUnterminatedAtEOF.stree.txt | 43 - ...rorIfLockBlockUnterminatedAtEOF.cspans.txt | 3 - ...ErrorIfLockBlockUnterminatedAtEOF.diag.txt | 1 - ...rrorIfLockBlockUnterminatedAtEOF.stree.txt | 43 - ...rIfSwitchBlockUnterminatedAtEOF.cspans.txt | 3 - ...rorIfSwitchBlockUnterminatedAtEOF.diag.txt | 1 - ...orIfSwitchBlockUnterminatedAtEOF.stree.txt | 43 - ...rrorIfTryBlockUnterminatedAtEOF.cspans.txt | 3 - ...sErrorIfTryBlockUnterminatedAtEOF.diag.txt | 1 - ...ErrorIfTryBlockUnterminatedAtEOF.stree.txt | 39 - ...orIfUsingBlockUnterminatedAtEOF.cspans.txt | 3 - ...rrorIfUsingBlockUnterminatedAtEOF.diag.txt | 1 - ...rorIfUsingBlockUnterminatedAtEOF.stree.txt | 43 - ...orIfWhileBlockUnterminatedAtEOF.cspans.txt | 3 - ...rrorIfWhileBlockUnterminatedAtEOF.diag.txt | 1 - ...rorIfWhileBlockUnterminatedAtEOF.stree.txt | 43 - ...ntrolFlowStatementsToHaveBraces.cspans.txt | 17 - ...ControlFlowStatementsToHaveBraces.diag.txt | 3 - ...ontrolFlowStatementsToHaveBraces.stree.txt | 69 - ...esumesIfStatementAfterOpenParen.cspans.txt | 10 - .../ResumesIfStatementAfterOpenParen.diag.txt | 1 - ...ResumesIfStatementAfterOpenParen.stree.txt | 35 - ...ketInImplicitExpressionUnclosed.cspans.txt | 3 - ...acketInImplicitExpressionUnclosed.diag.txt | 1 - ...cketInImplicitExpressionUnclosed.stree.txt | 21 - ...IfIfParenInExplicitExprUnclosed.cspans.txt | 4 - ...OFIfIfParenInExplicitExprUnclosed.diag.txt | 1 - ...FIfIfParenInExplicitExprUnclosed.stree.txt | 20 - ...OFIfParenInImplicitExprUnclosed.cspans.txt | 3 - ...tEOFIfParenInImplicitExprUnclosed.diag.txt | 1 - ...EOFIfParenInImplicitExprUnclosed.stree.txt | 21 - ...IfBracketInImplicitExprUnclosed.cspans.txt | 6 - ...upIfBracketInImplicitExprUnclosed.diag.txt | 1 - ...pIfBracketInImplicitExprUnclosed.stree.txt | 34 - ...IfIfParenInExplicitExprUnclosed.cspans.txt | 7 - ...upIfIfParenInExplicitExprUnclosed.diag.txt | 1 - ...pIfIfParenInExplicitExprUnclosed.stree.txt | 33 - ...renInImplicitExpressionUnclosed.cspans.txt | 6 - ...ParenInImplicitExpressionUnclosed.diag.txt | 1 - ...arenInImplicitExpressionUnclosed.stree.txt | 34 - ...RecoveringFromMissingCloseParen.cspans.txt | 4 - ...enRecoveringFromMissingCloseParen.diag.txt | 1 - ...nRecoveringFromMissingCloseParen.stree.txt | 16 - ...RecoveringFromMissingCloseParen.cspans.txt | 4 - ...enRecoveringFromMissingCloseParen.diag.txt | 1 - ...nRecoveringFromMissingCloseParen.stree.txt | 16 - ...rpStringsAtEOLIfEndQuoteMissing.cspans.txt | 3 - ...harpStringsAtEOLIfEndQuoteMissing.diag.txt | 1 - ...arpStringsAtEOLIfEndQuoteMissing.stree.txt | 27 - ...rminatesNormalStringAtEndOfFile.cspans.txt | 3 - ...TerminatesNormalStringAtEndOfFile.diag.txt | 2 - ...erminatesNormalStringAtEndOfFile.stree.txt | 22 - ...RecoveringFromMissingCloseParen.cspans.txt | 4 - ...enRecoveringFromMissingCloseParen.diag.txt | 1 - ...nRecoveringFromMissingCloseParen.stree.txt | 16 - ...inatesVerbatimStringAtEndOfFile.cspans.txt | 3 - ...rminatesVerbatimStringAtEndOfFile.diag.txt | 2 - ...minatesVerbatimStringAtEndOfFile.stree.txt | 22 - ...RecoveringFromMissingCloseParen.cspans.txt | 4 - ...enRecoveringFromMissingCloseParen.diag.txt | 1 - ...nRecoveringFromMissingCloseParen.stree.txt | 22 - ...ithHelperDirectiveProducesError.cspans.txt | 4 - .../WithHelperDirectiveProducesError.diag.txt | 1 - ...WithHelperDirectiveProducesError.stree.txt | 19 - ...ithNestedCodeBlockProducesError.cspans.txt | 8 - .../WithNestedCodeBlockProducesError.diag.txt | 1 - ...WithNestedCodeBlockProducesError.stree.txt | 27 - ...capedQuotesInNonVerbatimStrings.cspans.txt | 6 - ...scapedQuotesInNonVerbatimStrings.stree.txt | 18 - ...eEscapedQuotesInVerbatimStrings.cspans.txt | 6 - ...veEscapedQuotesInVerbatimStrings.stree.txt | 18 - ...scapedQuoteInNonVerbatimStrings.cspans.txt | 6 - ...EscapedQuoteInNonVerbatimStrings.stree.txt | 18 - ...ptEscapedQuoteInVerbatimStrings.cspans.txt | 6 - ...eptEscapedQuoteInVerbatimStrings.stree.txt | 18 - ...dAcceptMultiLineVerbatimStrings.cspans.txt | 6 - ...ldAcceptMultiLineVerbatimStrings.stree.txt | 18 - ...capedQuotesInNonVerbatimStrings.cspans.txt | 6 - ...scapedQuotesInNonVerbatimStrings.stree.txt | 18 - ...eEscapedQuotesInVerbatimStrings.cspans.txt | 6 - ...leEscapedQuotesInVerbatimStrings.stree.txt | 18 - ...edEscapedQuoteInVerbatimStrings.cspans.txt | 6 - ...tedEscapedQuoteInVerbatimStrings.stree.txt | 18 - ...FOccursAfterStartOfExplicitExpr.cspans.txt | 4 - ...EOFOccursAfterStartOfExplicitExpr.diag.txt | 1 - ...OFOccursAfterStartOfExplicitExpr.stree.txt | 16 - ...SpanIfExplicitExpressionIsEmpty.cspans.txt | 6 - ...eSpanIfExplicitExpressionIsEmpty.stree.txt | 18 - ..._SingleLineControlFlowStatement.cspans.txt | 8 - ...s_SingleLineControlFlowStatement.stree.txt | 62 - ...eLineControlFlowStatement_Error.cspans.txt | 36 - ...gleLineControlFlowStatement_Error.diag.txt | 4 - ...leLineControlFlowStatement_Error.stree.txt | 208 - ...ionsBlock_CanContainCurlyBraces.cspans.txt | 26 - ...tionsBlock_CanContainCurlyBraces.stree.txt | 112 - ...lock_DoesNotParseMarkupInString.cspans.txt | 8 - ...Block_DoesNotParseMarkupInString.stree.txt | 39 - ...sNotParseMarkupInVerbatimString.cspans.txt | 8 - ...esNotParseMarkupInVerbatimString.stree.txt | 39 - ...ck_DoesNotParseWhenNotSupported.cspans.txt | 8 - ...ock_DoesNotParseWhenNotSupported.stree.txt | 51 - ...sBlock_MarkupCanContainTemplate.cspans.txt | 25 - ...nsBlock_MarkupCanContainTemplate.stree.txt | 117 - ...sBlock_ParsesMarkupInsideMethod.cspans.txt | 16 - ...nsBlock_ParsesMarkupInsideMethod.stree.txt | 66 - ...rsesMarkupWithExpressionsMethod.cspans.txt | 15 - ...arsesMarkupWithExpressionsMethod.stree.txt | 61 - ...ordsInFunctionsBlock_WithMarkup.cspans.txt | 14 - ...wordsInFunctionsBlock_WithMarkup.stree.txt | 73 - ...aractersThatAreValidIdentifiers.cspans.txt | 4 - ...haractersThatAreValidIdentifiers.stree.txt | 14 - ...xpressionTerminatedByWhitespace.cspans.txt | 4 - ...ExpressionTerminatedByWhitespace.stree.txt | 15 - ...udeDotAtEOFInImplicitExpression.cspans.txt | 4 - ...ludeDotAtEOFInImplicitExpression.stree.txt | 16 - ...idIdentifierCharInImplicitExpr1.cspans.txt | 4 - ...lidIdentifierCharInImplicitExpr1.stree.txt | 16 - ...idIdentifierCharInImplicitExpr2.cspans.txt | 5 - ...lidIdentifierCharInImplicitExpr2.stree.txt | 22 - ...DoesNotIncludeSemicolonAfterDot.cspans.txt | 4 - .../DoesNotIncludeSemicolonAfterDot.stree.txt | 16 - ...micolonAtEndOfDottedIdentifiers.cspans.txt | 4 - ...emicolonAtEndOfDottedIdentifiers.stree.txt | 18 - ...AtEndOfSimpleImplicitExpression.cspans.txt | 4 - ...nAtEndOfSimpleImplicitExpression.stree.txt | 14 - .../NestedImplicitExpression.cspans.txt | 4 - .../NestedImplicitExpression.stree.txt | 20 - ...IfModuleTokenNotFollowedByBrace.cspans.txt | 4 - ...nIfModuleTokenNotFollowedByBrace.stree.txt | 18 - ...eSpanIfEOFOccursAfterTransition.cspans.txt | 4 - ...odeSpanIfEOFOccursAfterTransition.diag.txt | 1 - ...deSpanIfEOFOccursAfterTransition.stree.txt | 14 - ...validCharacterFollowsTransition.cspans.txt | 4 - ...InvalidCharacterFollowsTransition.diag.txt | 1 - ...nvalidCharacterFollowsTransition.stree.txt | 14 - ...IdentifiersAsImplicitExpression.cspans.txt | 4 - ...dIdentifiersAsImplicitExpression.stree.txt | 18 - ...atorImplicitExpression_Bracket1.cspans.txt | 4 - ...ratorImplicitExpression_Bracket1.stree.txt | 16 - ...torImplicitExpression_Bracket10.cspans.txt | 4 - ...atorImplicitExpression_Bracket10.stree.txt | 19 - ...torImplicitExpression_Bracket11.cspans.txt | 3 - ...ratorImplicitExpression_Bracket11.diag.txt | 1 - ...atorImplicitExpression_Bracket11.stree.txt | 19 - ...torImplicitExpression_Bracket12.cspans.txt | 4 - ...atorImplicitExpression_Bracket12.stree.txt | 22 - ...torImplicitExpression_Bracket13.cspans.txt | 4 - ...atorImplicitExpression_Bracket13.stree.txt | 25 - ...torImplicitExpression_Bracket14.cspans.txt | 4 - ...atorImplicitExpression_Bracket14.stree.txt | 24 - ...torImplicitExpression_Bracket15.cspans.txt | 4 - ...atorImplicitExpression_Bracket15.stree.txt | 22 - ...torImplicitExpression_Bracket16.cspans.txt | 4 - ...atorImplicitExpression_Bracket16.stree.txt | 26 - ...atorImplicitExpression_Bracket2.cspans.txt | 4 - ...ratorImplicitExpression_Bracket2.stree.txt | 17 - ...atorImplicitExpression_Bracket3.cspans.txt | 3 - ...eratorImplicitExpression_Bracket3.diag.txt | 1 - ...ratorImplicitExpression_Bracket3.stree.txt | 14 - ...atorImplicitExpression_Bracket4.cspans.txt | 4 - ...ratorImplicitExpression_Bracket4.stree.txt | 15 - ...atorImplicitExpression_Bracket5.cspans.txt | 3 - ...eratorImplicitExpression_Bracket5.diag.txt | 1 - ...ratorImplicitExpression_Bracket5.stree.txt | 15 - ...atorImplicitExpression_Bracket6.cspans.txt | 4 - ...ratorImplicitExpression_Bracket6.stree.txt | 18 - ...atorImplicitExpression_Bracket7.cspans.txt | 4 - ...eratorImplicitExpression_Bracket7.diag.txt | 1 - ...ratorImplicitExpression_Bracket7.stree.txt | 19 - ...atorImplicitExpression_Bracket8.cspans.txt | 4 - ...eratorImplicitExpression_Bracket8.diag.txt | 1 - ...ratorImplicitExpression_Bracket8.stree.txt | 21 - ...atorImplicitExpression_Bracket9.cspans.txt | 5 - ...ratorImplicitExpression_Bracket9.stree.txt | 22 - ...OperatorImplicitExpression_Dot1.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot1.stree.txt | 14 - ...peratorImplicitExpression_Dot10.cspans.txt | 4 - ...OperatorImplicitExpression_Dot10.stree.txt | 20 - ...peratorImplicitExpression_Dot11.cspans.txt | 5 - ...OperatorImplicitExpression_Dot11.stree.txt | 21 - ...peratorImplicitExpression_Dot12.cspans.txt | 4 - ...OperatorImplicitExpression_Dot12.stree.txt | 25 - ...peratorImplicitExpression_Dot13.cspans.txt | 4 - ...OperatorImplicitExpression_Dot13.stree.txt | 23 - ...peratorImplicitExpression_Dot14.cspans.txt | 4 - ...OperatorImplicitExpression_Dot14.stree.txt | 27 - ...OperatorImplicitExpression_Dot2.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot2.stree.txt | 15 - ...OperatorImplicitExpression_Dot3.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot3.stree.txt | 16 - ...OperatorImplicitExpression_Dot4.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot4.stree.txt | 15 - ...OperatorImplicitExpression_Dot5.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot5.stree.txt | 16 - ...OperatorImplicitExpression_Dot6.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot6.stree.txt | 16 - ...OperatorImplicitExpression_Dot7.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot7.stree.txt | 16 - ...OperatorImplicitExpression_Dot8.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot8.stree.txt | 19 - ...OperatorImplicitExpression_Dot9.cspans.txt | 4 - ...lOperatorImplicitExpression_Dot9.stree.txt | 17 - ...torImplicitExpression_Bracket15.cspans.txt | 4 - ...atorImplicitExpression_Bracket15.stree.txt | 23 - ...atorImplicitExpression_Brackets.cspans.txt | 4 - ...ratorImplicitExpression_Brackets.stree.txt | 18 - ...atorImplicitExpression_Combined.cspans.txt | 4 - ...ratorImplicitExpression_Combined.stree.txt | 18 - ...plicitExpression_CombinedEnding.cspans.txt | 4 - ...mplicitExpression_CombinedEnding.stree.txt | 17 - ...ion_CombinedWithNullConditional.cspans.txt | 4 - ...sion_CombinedWithNullConditional.stree.txt | 15 - ...ratorImplicitExpression_Complex.cspans.txt | 5 - ...eratorImplicitExpression_Complex.stree.txt | 26 - ...itExpression_DirectiveCodeBlock.cspans.txt | 11 - ...citExpression_DirectiveCodeBlock.stree.txt | 56 - ...on_DoubleBang_IncompleteBracket.cspans.txt | 4 - ...ion_DoubleBang_IncompleteBracket.stree.txt | 16 - ...eratorImplicitExpression_Ending.cspans.txt | 4 - ...peratorImplicitExpression_Ending.stree.txt | 14 - ...tExpression_EndingDotedOperator.cspans.txt | 4 - ...itExpression_EndingDotedOperator.stree.txt | 15 - ...plicitExpression_FullExpression.cspans.txt | 4 - ...mplicitExpression_FullExpression.stree.txt | 17 - ...pression_FullExpressionWithHtml.cspans.txt | 4 - ...xpression_FullExpressionWithHtml.stree.txt | 20 - ...citExpression_IncompleteBracket.cspans.txt | 3 - ...licitExpression_IncompleteBracket.diag.txt | 1 - ...icitExpression_IncompleteBracket.stree.txt | 14 - ...ssion_IncompleteBracketWithHtml.cspans.txt | 4 - ...ression_IncompleteBracketWithHtml.diag.txt | 1 - ...ession_IncompleteBracketWithHtml.stree.txt | 19 - ...IncompleteBracketWithIdentifier.cspans.txt | 3 - ...n_IncompleteBracketWithIdentifier.diag.txt | 1 - ..._IncompleteBracketWithIdentifier.stree.txt | 15 - ...xpression_IncompleteParenthesis.cspans.txt | 3 - ...tExpression_IncompleteParenthesis.diag.txt | 1 - ...Expression_IncompleteParenthesis.stree.txt | 14 - ...ession_Incomplete_ContinuedHtml.cspans.txt | 5 - ...ression_Incomplete_ContinuedHtml.stree.txt | 20 - ...tExpression_InvalidMethodEnding.cspans.txt | 4 - ...itExpression_InvalidMethodEnding.stree.txt | 15 - ...pression_MixedIncompleteBracket.cspans.txt | 4 - ...Expression_MixedIncompleteBracket.diag.txt | 1 - ...xpression_MixedIncompleteBracket.stree.txt | 21 - ...Expression_MixedNullConditional.cspans.txt | 5 - ...tExpression_MixedNullConditional.stree.txt | 22 - ...atorImplicitExpression_Multiple.cspans.txt | 4 - ...ratorImplicitExpression_Multiple.stree.txt | 22 - ...mplicitExpression_MultipleMixed.cspans.txt | 4 - ...ImplicitExpression_MultipleMixed.stree.txt | 25 - ...plicitExpression_MultipleMixed2.cspans.txt | 4 - ...mplicitExpression_MultipleMixed2.stree.txt | 24 - ...tExpression_Multiple_Incomplete.cspans.txt | 3 - ...citExpression_Multiple_Incomplete.diag.txt | 1 - ...itExpression_Multiple_Incomplete.stree.txt | 19 - ...eratorImplicitExpression_Nested.cspans.txt | 4 - ...peratorImplicitExpression_Nested.stree.txt | 26 - ...licitExpression_NestedCodeBlock.cspans.txt | 9 - ...plicitExpression_NestedCodeBlock.stree.txt | 39 - ...plicitExpression_SingleOperator.cspans.txt | 4 - ...mplicitExpression_SingleOperator.stree.txt | 19 - ...eIdentifierAsImplicitExpression.cspans.txt | 4 - ...leIdentifierAsImplicitExpression.stree.txt | 14 - ...alancesThemInImplicitExpression.cspans.txt | 4 - ...BalancesThemInImplicitExpression.stree.txt | 34 - ...alancesThemInImplicitExpression.cspans.txt | 4 - ...BalancesThemInImplicitExpression.stree.txt | 72 - .../StopsBalancingParenthesesAtEOF.cspans.txt | 3 - .../StopsBalancingParenthesesAtEOF.diag.txt | 1 - .../StopsBalancingParenthesesAtEOF.stree.txt | 15 - ...ithinComplexImplicitExpressions.cspans.txt | 4 - ...WithinComplexImplicitExpressions.stree.txt | 48 - ...lowedByDotOrParenInImplicitExpr.cspans.txt | 4 - ...llowedByDotOrParenInImplicitExpr.stree.txt | 20 - ...otFollowedByIdentifierStartChar.cspans.txt | 4 - ...NotFollowedByIdentifierStartChar.stree.txt | 20 - ...sImplicitExpressionAtHtmlEndTag.cspans.txt | 5 - ...esImplicitExpressionAtHtmlEndTag.stree.txt | 26 - ...mplicitExpressionAtHtmlStartTag.cspans.txt | 5 - ...ImplicitExpressionAtHtmlStartTag.stree.txt | 25 - ...dPointIfDotFollowedByWhitespace.cspans.txt | 4 - ...idPointIfDotFollowedByWhitespace.stree.txt | 18 - ...oseParenFollowedByAnyWhiteSpace.cspans.txt | 4 - ...loseParenFollowedByAnyWhiteSpace.stree.txt | 19 - ...entifierFollowedByAnyWhiteSpace.cspans.txt | 4 - ...dentifierFollowedByAnyWhiteSpace.stree.txt | 17 - .../NestedCodeBlock.cspans.txt | 4 - .../NestedCodeBlock.stree.txt | 35 - .../NestedExplicitExpression.cspans.txt | 9 - .../NestedExplicitExpression.stree.txt | 32 - .../NestedImplicitExpression.cspans.txt | 7 - .../NestedImplicitExpression.stree.txt | 28 - .../NestedKeywordStatement.cspans.txt | 4 - .../NestedKeywordStatement.stree.txt | 49 - .../NestedMarkupBlock.cspans.txt | 10 - .../NestedMarkupBlock.stree.txt | 35 - .../NestedSimpleStatement.cspans.txt | 4 - .../NestedSimpleStatement.stree.txt | 23 - .../EmptyRazorComment.cspans.txt | 7 - .../EmptyRazorComment.stree.txt | 12 - .../MultipleRazorCommentInMarkup.cspans.txt | 16 - .../MultipleRazorCommentInMarkup.stree.txt | 33 - ...RazorCommentsInSameLineInMarkup.cspans.txt | 16 - ...eRazorCommentsInSameLineInMarkup.stree.txt | 32 - ...ommentBetweenCodeBlockAndMarkup.cspans.txt | 15 - ...CommentBetweenCodeBlockAndMarkup.stree.txt | 38 - .../RazorCommentInClosingTagBlock.cspans.txt | 8 - .../RazorCommentInClosingTagBlock.stree.txt | 23 - ...tInImplicitExpressionMethodCall.cspans.txt | 9 - ...entInImplicitExpressionMethodCall.diag.txt | 1 - ...ntInImplicitExpressionMethodCall.stree.txt | 22 - .../RazorCommentInMarkup.cspans.txt | 9 - .../RazorCommentInMarkup.stree.txt | 22 - .../RazorCommentInOpeningTagBlock.cspans.txt | 8 - .../RazorCommentInOpeningTagBlock.stree.txt | 21 - .../RazorCommentInVerbatimBlock.cspans.txt | 14 - .../RazorCommentInVerbatimBlock.diag.txt | 3 - .../RazorCommentInVerbatimBlock.stree.txt | 37 - ...CommentWithExtraNewLineInMarkup.cspans.txt | 16 - ...rCommentWithExtraNewLineInMarkup.stree.txt | 33 - .../RazorCommentsSurroundingMarkup.cspans.txt | 15 - .../RazorCommentsSurroundingMarkup.stree.txt | 32 - .../RazorMultilineCommentInBlock.cspans.txt | 12 - .../RazorMultilineCommentInBlock.stree.txt | 27 - .../UnterminatedRazorComment.cspans.txt | 4 - .../UnterminatedRazorComment.diag.txt | 1 - .../UnterminatedRazorComment.stree.txt | 10 - ...tInImplicitExpressionMethodCall.cspans.txt | 6 - ...entInImplicitExpressionMethodCall.diag.txt | 2 - ...ntInImplicitExpressionMethodCall.stree.txt | 19 - ...atedRazorCommentInVerbatimBlock.cspans.txt | 7 - ...inatedRazorCommentInVerbatimBlock.diag.txt | 2 - ...natedRazorCommentInVerbatimBlock.stree.txt | 22 - .../ReservedWord.cspans.txt | 4 - .../ReservedWord.diag.txt | 1 - .../ReservedWord.stree.txt | 13 - .../ReservedWordIsCaseSensitive.cspans.txt | 4 - .../ReservedWordIsCaseSensitive.stree.txt | 14 - ...ceMultipleLinesBelowSectionName.cspans.txt | 14 - ...aceMultipleLinesBelowSectionName.stree.txt | 47 - .../AllowsBracesInCSharpExpression.cspans.txt | 15 - .../AllowsBracesInCSharpExpression.stree.txt | 65 - .../BalancesBraces.cspans.txt | 14 - .../BalancesBraces.stree.txt | 51 - ...uresNewlineImmediatelyFollowing.cspans.txt | 4 - ...pturesNewlineImmediatelyFollowing.diag.txt | 1 - ...turesNewlineImmediatelyFollowing.stree.txt | 14 - ...neInSectionStatementMissingName.cspans.txt | 6 - ...LineInSectionStatementMissingName.diag.txt | 1 - ...ineInSectionStatementMissingName.stree.txt | 19 - ...ectionStatementMissingOpenBrace.cspans.txt | 7 - ...nSectionStatementMissingOpenBrace.diag.txt | 1 - ...SectionStatementMissingOpenBrace.stree.txt | 22 - .../CommentRecoversFromUnclosedTag.cspans.txt | 15 - .../CommentRecoversFromUnclosedTag.stree.txt | 52 - ...seBraceImmediatelyFollowsMarkup.cspans.txt | 10 - ...oseBraceImmediatelyFollowsMarkup.stree.txt | 27 - ...eBetweenSectionNameAndOpenBrace.cspans.txt | 13 - ...ceBetweenSectionNameAndOpenBrace.stree.txt | 39 - .../HandlesEOFAfterOpenBrace.cspans.txt | 8 - .../HandlesEOFAfterOpenBrace.diag.txt | 1 - .../HandlesEOFAfterOpenBrace.stree.txt | 25 - .../HandlesEOFAfterOpenContent1.cspans.txt | 8 - .../HandlesEOFAfterOpenContent1.diag.txt | 1 - .../HandlesEOFAfterOpenContent1.stree.txt | 25 - .../HandlesEOFAfterOpenContent2.cspans.txt | 8 - .../HandlesEOFAfterOpenContent2.diag.txt | 1 - .../HandlesEOFAfterOpenContent2.stree.txt | 25 - .../HandlesEOFAfterOpenContent3.cspans.txt | 8 - .../HandlesEOFAfterOpenContent3.diag.txt | 1 - .../HandlesEOFAfterOpenContent3.stree.txt | 25 - .../HandlesEOFAfterOpenContent4.cspans.txt | 8 - .../HandlesEOFAfterOpenContent4.diag.txt | 1 - .../HandlesEOFAfterOpenContent4.stree.txt | 27 - .../HandlesUnterminatedSection.cspans.txt | 11 - .../HandlesUnterminatedSection.diag.txt | 1 - .../HandlesUnterminatedSection.stree.txt | 39 - ...UnterminatedSectionWithNestedIf.cspans.txt | 17 - ...esUnterminatedSectionWithNestedIf.diag.txt | 1 - ...sUnterminatedSectionWithNestedIf.stree.txt | 61 - ...gnoresSectionUnlessAllLowerCase.cspans.txt | 4 - ...IgnoresSectionUnlessAllLowerCase.stree.txt | 15 - ...utputErrorOtherNestedDirectives.cspans.txt | 16 - ...tOutputErrorOtherNestedDirectives.diag.txt | 2 - ...OutputErrorOtherNestedDirectives.stree.txt | 43 - ...tsErrorOnMultipleNestedSections.cspans.txt | 32 - ...putsErrorOnMultipleNestedSections.diag.txt | 4 - ...utsErrorOnMultipleNestedSections.stree.txt | 87 - ...serOutputsErrorOnNestedSections.cspans.txt | 23 - ...arserOutputsErrorOnNestedSections.diag.txt | 2 - ...rserOutputsErrorOnNestedSections.stree.txt | 64 - .../ParsesComment.cspans.txt | 13 - .../CSharpSectionTest/ParsesComment.stree.txt | 37 - .../ParsesCommentWithDelimiters.cspans.txt | 13 - .../ParsesCommentWithDelimiters.stree.txt | 42 - .../ParsesNamedSectionCorrectly.cspans.txt | 14 - .../ParsesNamedSectionCorrectly.stree.txt | 41 - .../ParsesXmlProcessingInstruction.cspans.txt | 10 - .../ParsesXmlProcessingInstruction.stree.txt | 36 - ...IfSectionNotFollowedByOpenBrace.cspans.txt | 7 - ...OLIfSectionNotFollowedByOpenBrace.diag.txt | 1 - ...LIfSectionNotFollowedByOpenBrace.stree.txt | 21 - ...otFollowedByIdentifierStartChar.cspans.txt | 9 - ...dNotFollowedByIdentifierStartChar.diag.txt | 1 - ...NotFollowedByIdentifierStartChar.stree.txt | 34 - ...ockIfNameNotFollowedByOpenBrace.cspans.txt | 10 - ...BlockIfNameNotFollowedByOpenBrace.diag.txt | 1 - ...lockIfNameNotFollowedByOpenBrace.stree.txt | 36 - ...aceFollowsCodeBlockNoWhitespace.cspans.txt | 12 - ...raceFollowsCodeBlockNoWhitespace.stree.txt | 39 - ...raceImmediatelyFollowsCodeBlock.cspans.txt | 12 - ...BraceImmediatelyFollowsCodeBlock.stree.txt | 40 - .../_WithDoubleTransition1.cspans.txt | 15 - .../_WithDoubleTransition1.stree.txt | 50 - .../_WithDoubleTransition2.cspans.txt | 17 - .../_WithDoubleTransition2.stree.txt | 63 - ...IsBraceAndReturnsSpanOfTypeCode.cspans.txt | 6 - ...rIsBraceAndReturnsSpanOfTypeCode.stree.txt | 37 - ...IsParenAndReturnsSpanOfTypeExpr.cspans.txt | 6 - ...rIsParenAndReturnsSpanOfTypeExpr.stree.txt | 37 - ...mportInsideCodeBlockCausesError.cspans.txt | 6 - ...ImportInsideCodeBlockCausesError.stree.txt | 36 - ...ntInCodeBlockIsHandledCorrectly.cspans.txt | 6 - ...entInCodeBlockIsHandledCorrectly.stree.txt | 37 - ...eBlockIgnoresSingleSlashAtStart.cspans.txt | 4 - ...rseBlockIgnoresSingleSlashAtStart.diag.txt | 1 - ...seBlockIgnoresSingleSlashAtStart.stree.txt | 16 - ...tesSingleLineCommentAtEndOfLine.cspans.txt | 9 - ...atesSingleLineCommentAtEndOfLine.stree.txt | 43 - ...eCodeBlockIsNotHandledSpecially.cspans.txt | 6 - ...deCodeBlockIsNotHandledSpecially.stree.txt | 38 - .../AwaitForEachStatement.cspans.txt | 4 - .../AwaitForEachStatement.stree.txt | 31 - .../CatchClause.cspans.txt | 3 - .../CSharpStatementTest/CatchClause.stree.txt | 50 - .../DoStatement.cspans.txt | 4 - .../CSharpStatementTest/DoStatement.stree.txt | 26 - .../CSharpStatementTest/ElseClause.cspans.txt | 4 - .../CSharpStatementTest/ElseClause.stree.txt | 34 - .../ElseIfClause.cspans.txt | 3 - .../ElseIfClause.stree.txt | 54 - ...ror_TryCatchWhen_InCompleteBody.cspans.txt | 3 - ...Error_TryCatchWhen_InCompleteBody.diag.txt | 1 - ...rror_TryCatchWhen_InCompleteBody.stree.txt | 31 - ...ryCatchWhen_InCompleteCondition.cspans.txt | 3 - ..._TryCatchWhen_InCompleteCondition.diag.txt | 1 - ...TryCatchWhen_InCompleteCondition.stree.txt | 27 - ...er_IncompleteTryCatchNoBodyWhen.cspans.txt | 3 - ...ter_IncompleteTryCatchNoBodyWhen.stree.txt | 34 - ...onFilter_IncompleteTryCatchWhen.cspans.txt | 3 - ...ionFilter_IncompleteTryCatchWhen.stree.txt | 25 - ..._IncompleteTryCatchWhenNoBodies.cspans.txt | 3 - ...r_IncompleteTryCatchWhenNoBodies.stree.txt | 29 - ...ceptionFilter_IncompleteTryWhen.cspans.txt | 4 - ...xceptionFilter_IncompleteTryWhen.stree.txt | 21 - .../ExceptionFilter_MultiLine.cspans.txt | 3 - .../ExceptionFilter_MultiLine.stree.txt | 58 - ...eptionFilter_NestedTryCatchWhen.cspans.txt | 6 - ...ceptionFilter_NestedTryCatchWhen.stree.txt | 47 - ...henCatchWhenComplete_SingleLine.cspans.txt | 3 - ...WhenCatchWhenComplete_SingleLine.stree.txt | 58 - ...TryCatchWhenComplete_SingleLine.cspans.txt | 3 - ..._TryCatchWhenComplete_SingleLine.stree.txt | 38 - ...hWhenFinallyComplete_SingleLine.cspans.txt | 4 - ...chWhenFinallyComplete_SingleLine.stree.txt | 51 - .../FinallyClause.cspans.txt | 4 - .../FinallyClause.stree.txt | 31 - .../ForEachStatement.cspans.txt | 4 - .../ForEachStatement.stree.txt | 29 - .../ForStatement.cspans.txt | 4 - .../ForStatement.stree.txt | 40 - .../IfStatement.cspans.txt | 3 - .../CSharpStatementTest/IfStatement.stree.txt | 21 - .../LockStatement.cspans.txt | 4 - .../LockStatement.stree.txt | 23 - .../MalformedAwaitForEachStatement.cspans.txt | 3 - .../MalformedAwaitForEachStatement.diag.txt | 1 - .../MalformedAwaitForEachStatement.stree.txt | 27 - ...wordTreatedAsImplicitExpression.cspans.txt | 4 - ...ywordTreatedAsImplicitExpression.stree.txt | 15 - .../StaticUsing_Complete_Spaced.cspans.txt | 4 - .../StaticUsing_Complete_Spaced.stree.txt | 21 - .../StaticUsing_GlobalPrefix.cspans.txt | 4 - .../StaticUsing_GlobalPrefix.stree.txt | 21 - ...StaticUsing_MultipleIdentifiers.cspans.txt | 4 - .../StaticUsing_MultipleIdentifiers.stree.txt | 19 - .../StaticUsing_NoUsing.cspans.txt | 4 - .../StaticUsing_NoUsing.stree.txt | 15 - .../StaticUsing_SingleIdentifier.cspans.txt | 4 - .../StaticUsing_SingleIdentifier.stree.txt | 17 - .../SwitchStatement.cspans.txt | 4 - .../SwitchStatement.stree.txt | 23 - .../TryStatement.cspans.txt | 3 - .../TryStatement.stree.txt | 18 - .../UsingNamespaceImport.cspans.txt | 4 - .../UsingNamespaceImport.stree.txt | 21 - .../UsingStatement.cspans.txt | 4 - .../UsingStatement.stree.txt | 35 - .../UsingTypeAlias.cspans.txt | 4 - .../UsingTypeAlias.stree.txt | 31 - ...ing_VariableDeclaration_Complex.cspans.txt | 6 - ...sing_VariableDeclaration_Complex.stree.txt | 61 - ...sing_VariableDeclaration_Simple.cspans.txt | 6 - ...Using_VariableDeclaration_Simple.stree.txt | 29 - .../WhileStatement.cspans.txt | 4 - .../WhileStatement.stree.txt | 23 - ...plateInExplicitExpressionParens.cspans.txt | 13 - ...mplateInExplicitExpressionParens.stree.txt | 52 - ...plateInImplicitExpressionParens.cspans.txt | 11 - ...mplateInImplicitExpressionParens.stree.txt | 48 - ...plateInStatementWithinCodeBlock.cspans.txt | 11 - ...mplateInStatementWithinCodeBlock.stree.txt | 59 - ...InStatementWithinStatementBlock.cspans.txt | 13 - ...eInStatementWithinStatementBlock.stree.txt | 64 - ...mediatelyFollowingStatementChar.cspans.txt | 10 - ...mmediatelyFollowingStatementChar.stree.txt | 30 - .../HandlesSingleLineTemplate.cspans.txt | 10 - .../HandlesSingleLineTemplate.stree.txt | 37 - ...latesInImplicitExpressionParens.cspans.txt | 18 - ...platesInImplicitExpressionParens.stree.txt | 77 - ...latesInStatementWithinCodeBlock.cspans.txt | 18 - ...platesInStatementWithinCodeBlock.stree.txt | 88 - ...InStatementWithinStatementBlock.cspans.txt | 20 - ...sInStatementWithinStatementBlock.stree.txt | 93 - ...tedTemplateInImplicitExprParens.cspans.txt | 18 - ...estedTemplateInImplicitExprParens.diag.txt | 1 - ...stedTemplateInImplicitExprParens.stree.txt | 80 - ...edTemplateInStmtWithinCodeBlock.cspans.txt | 18 - ...stedTemplateInStmtWithinCodeBlock.diag.txt | 1 - ...tedTemplateInStmtWithinCodeBlock.stree.txt | 91 - ...edTemplateInStmtWithinStmtBlock.cspans.txt | 20 - ...stedTemplateInStmtWithinStmtBlock.diag.txt | 1 - ...tedTemplateInStmtWithinStmtBlock.stree.txt | 96 - ...thDoubleTransition_DoesNotThrow.cspans.txt | 18 - ...ithDoubleTransition_DoesNotThrow.stree.txt | 80 - .../AllowsMarkupInIfBodyWithBraces.cspans.txt | 22 - .../AllowsMarkupInIfBodyWithBraces.stree.txt | 86 - ...IfBodyWithBracesWithinCodeBlock.cspans.txt | 24 - ...nIfBodyWithBracesWithinCodeBlock.stree.txt | 95 - ...rnsFromMarkupBlockWithPseudoTag.cspans.txt | 7 - ...urnsFromMarkupBlockWithPseudoTag.stree.txt | 36 - ...upBlockWithPseudoTagInCodeBlock.cspans.txt | 10 - ...kupBlockWithPseudoTagInCodeBlock.stree.txt | 47 - ...neToMarkupExclPreceedingNewline.cspans.txt | 17 - ...ineToMarkupExclPreceedingNewline.stree.txt | 82 - ...plateTransitionInDesignTimeMode.cspans.txt | 8 - ...mplateTransitionInDesignTimeMode.stree.txt | 36 - ...ColonTransitionInDesignTimeMode.cspans.txt | 10 - ...tColonTransitionInDesignTimeMode.stree.txt | 37 - ...plateTransitionInDesignTimeMode.cspans.txt | 9 - ...mplateTransitionInDesignTimeMode.stree.txt | 35 - ...AtTagTransitionInDesignTimeMode.cspans.txt | 11 - ...idAtTagTransitionInDesignTimeMode.diag.txt | 5 - ...dAtTagTransitionInDesignTimeMode.stree.txt | 37 - ...OnTagTransitionInDesignTimeMode.cspans.txt | 10 - ...eOnTagTransitionInDesignTimeMode.stree.txt | 35 - ...rkupStatementOnOpenAngleBracket.cspans.txt | 10 - ...arkupStatementOnOpenAngleBracket.stree.txt | 52 - ...ntOnOpenAngleBracketInCodeBlock.cspans.txt | 12 - ...entOnOpenAngleBracketInCodeBlock.stree.txt | 61 - ...nSwitchCharacterFollowedByColon.cspans.txt | 9 - ...OnSwitchCharacterFollowedByColon.stree.txt | 29 - ...acterFollowedByColonInCodeBlock.cspans.txt | 11 - ...racterFollowedByColonInCodeBlock.stree.txt | 38 - ...hCharacterFollowedByDoubleColon.cspans.txt | 8 - ...chCharacterFollowedByDoubleColon.stree.txt | 26 - ...hCharacterFollowedByTripleColon.cspans.txt | 8 - ...chCharacterFollowedByTripleColon.stree.txt | 26 - ...rkupWithoutPreceedingWhitespace.cspans.txt | 17 - ...arkupWithoutPreceedingWhitespace.stree.txt | 66 - ...eMarkupContainingStatementBlock.cspans.txt | 13 - ...neMarkupContainingStatementBlock.stree.txt | 43 - ...eSwitchIfOuterBlockIsTerminated.cspans.txt | 6 - ...seSwitchIfOuterBlockIsTerminated.stree.txt | 21 - ...indsOfImplicitMarkupInCodeBlock.cspans.txt | 23 - ...KindsOfImplicitMarkupInCodeBlock.stree.txt | 134 - ...nCaseAndDefaultBranchesOfSwitch.cspans.txt | 33 - ...InCaseAndDefaultBranchesOfSwitch.stree.txt | 143 - ...aultBranchesOfSwitchInCodeBlock.cspans.txt | 35 - ...faultBranchesOfSwitchInCodeBlock.stree.txt | 152 - ...TrailingNewlineInDesignTimeMode.cspans.txt | 9 - ...sTrailingNewlineInDesignTimeMode.stree.txt | 29 - ...icitExprDoesNotAcceptDotAfterAt.cspans.txt | 9 - ...plicitExprDoesNotAcceptDotAfterAt.diag.txt | 1 - ...licitExprDoesNotAcceptDotAfterAt.stree.txt | 28 - ...eptTrailingNewlineInRunTimeMode.cspans.txt | 9 - ...ceptTrailingNewlineInRunTimeMode.stree.txt | 29 - ...ingleSpaceOrNewlineAtDesignTime.cspans.txt | 9 - ...sSingleSpaceOrNewlineAtDesignTime.diag.txt | 1 - ...SingleSpaceOrNewlineAtDesignTime.stree.txt | 29 - ...ngleAtOutputsZeroLengthCodeSpan.cspans.txt | 9 - ...SingleAtOutputsZeroLengthCodeSpan.diag.txt | 1 - ...ingleAtOutputsZeroLengthCodeSpan.stree.txt | 28 - .../VerbatimBlock.cspans.txt | 6 - .../VerbatimBlock.stree.txt | 23 - ...eIfTheyAreSignificantToAncestor.cspans.txt | 12 - ...neIfTheyAreSignificantToAncestor.stree.txt | 40 - ...rsesDirectiveAttributesAsMarkup.cspans.txt | 7 - ...arsesDirectiveAttributesAsMarkup.stree.txt | 34 - ...AttributesWithParameterAsMarkup.cspans.txt | 7 - ...eAttributesWithParameterAsMarkup.stree.txt | 34 - ...isabledForDataAttributesInBlock.cspans.txt | 13 - ...DisabledForDataAttributesInBlock.stree.txt | 48 - ...bledForDataAttributesInDocument.cspans.txt | 13 - ...abledForDataAttributesInDocument.stree.txt | 48 - ...aAttributesWithExperimentalFlag.cspans.txt | 13 - ...taAttributesWithExperimentalFlag.stree.txt | 50 - ...isabledForDataAttributesInBlock.cspans.txt | 13 - ...DisabledForDataAttributesInBlock.stree.txt | 51 - ...bledForDataAttributesInDocument.cspans.txt | 12 - ...abledForDataAttributesInDocument.stree.txt | 47 - .../DoubleQuotedLiteralAttribute.cspans.txt | 13 - .../DoubleQuotedLiteralAttribute.stree.txt | 52 - ...WithWhitespaceSurroundingEquals.cspans.txt | 12 - ...eWithWhitespaceSurroundingEquals.stree.txt | 54 - .../MultiPartLiteralAttribute.cspans.txt | 13 - .../MultiPartLiteralAttribute.stree.txt | 52 - .../MultiValueExpressionAttribute.cspans.txt | 16 - .../MultiValueExpressionAttribute.stree.txt | 66 - .../NewLineBetweenAttributes.cspans.txt | 14 - .../NewLineBetweenAttributes.stree.txt | 56 - .../NewLinePrecedingAttribute.cspans.txt | 11 - .../NewLinePrecedingAttribute.stree.txt | 42 - .../SimpleExpressionAttribute.cspans.txt | 12 - .../SimpleExpressionAttribute.stree.txt | 49 - .../SimpleLiteralAttribute.cspans.txt | 11 - .../SimpleLiteralAttribute.stree.txt | 42 - ...WithWhitespaceSurroundingEquals.cspans.txt | 11 - ...eWithWhitespaceSurroundingEquals.stree.txt | 47 - .../SymbolBoundAttributes1.cspans.txt | 11 - .../SymbolBoundAttributes1.stree.txt | 44 - .../SymbolBoundAttributes2.cspans.txt | 11 - .../SymbolBoundAttributes2.stree.txt | 43 - .../SymbolBoundAttributes3.cspans.txt | 11 - .../SymbolBoundAttributes3.stree.txt | 42 - .../SymbolBoundAttributes4.cspans.txt | 11 - .../SymbolBoundAttributes4.stree.txt | 42 - .../SymbolBoundAttributes5.cspans.txt | 11 - .../SymbolBoundAttributes5.stree.txt | 42 - .../SymbolBoundAttributes6.cspans.txt | 11 - .../SymbolBoundAttributes6.stree.txt | 42 - ...tributes_BeforeEqualWhitespace1.cspans.txt | 14 - ...ttributes_BeforeEqualWhitespace1.stree.txt | 63 - ...tributes_BeforeEqualWhitespace2.cspans.txt | 14 - ...ttributes_BeforeEqualWhitespace2.stree.txt | 61 - ...tributes_BeforeEqualWhitespace3.cspans.txt | 14 - ...ttributes_BeforeEqualWhitespace3.stree.txt | 59 - ...tributes_BeforeEqualWhitespace4.cspans.txt | 14 - ...ttributes_BeforeEqualWhitespace4.stree.txt | 59 - ...tributes_BeforeEqualWhitespace5.cspans.txt | 14 - ...ttributes_BeforeEqualWhitespace5.stree.txt | 59 - ...tributes_BeforeEqualWhitespace6.cspans.txt | 14 - ...ttributes_BeforeEqualWhitespace6.stree.txt | 59 - ...mbolBoundAttributes_Whitespace1.cspans.txt | 14 - ...ymbolBoundAttributes_Whitespace1.stree.txt | 63 - ...mbolBoundAttributes_Whitespace2.cspans.txt | 14 - ...ymbolBoundAttributes_Whitespace2.stree.txt | 61 - ...mbolBoundAttributes_Whitespace3.cspans.txt | 14 - ...ymbolBoundAttributes_Whitespace3.stree.txt | 59 - ...mbolBoundAttributes_Whitespace4.cspans.txt | 14 - ...ymbolBoundAttributes_Whitespace4.stree.txt | 59 - ...mbolBoundAttributes_Whitespace5.cspans.txt | 14 - ...ymbolBoundAttributes_Whitespace5.stree.txt | 59 - ...mbolBoundAttributes_Whitespace6.cspans.txt | 14 - ...ymbolBoundAttributes_Whitespace6.stree.txt | 59 - ...ributeWithCodeWithSpacesInBlock.cspans.txt | 11 - ...tributeWithCodeWithSpacesInBlock.stree.txt | 45 - ...uteWithCodeWithSpacesInDocument.cspans.txt | 6 - ...buteWithCodeWithSpacesInDocument.stree.txt | 30 - .../UnquotedLiteralAttribute.cspans.txt | 12 - .../UnquotedLiteralAttribute.stree.txt | 48 - ...esWorkWithConditionalAttributes.cspans.txt | 13 - ...tesWorkWithConditionalAttributes.stree.txt | 58 - ...aceAndNewLinePrecedingAttribute.cspans.txt | 11 - ...paceAndNewLinePrecedingAttribute.stree.txt | 43 - .../AcceptsEmptyTextTag.cspans.txt | 7 - .../AcceptsEmptyTextTag.stree.txt | 25 - ...xtTagAsOuterTagButDoesNotRender.cspans.txt | 11 - ...extTagAsOuterTagButDoesNotRender.stree.txt | 43 - ...tInAttributeValueIfDoubleQuoted.cspans.txt | 13 - ...etInAttributeValueIfDoubleQuoted.stree.txt | 52 - ...tInAttributeValueIfSingleQuoted.cspans.txt | 13 - ...etInAttributeValueIfSingleQuoted.stree.txt | 52 - ...hInAttributeValueIfDoubleQuoted.cspans.txt | 14 - ...shInAttributeValueIfDoubleQuoted.stree.txt | 53 - ...hInAttributeValueIfSingleQuoted.cspans.txt | 14 - ...shInAttributeValueIfSingleQuoted.stree.txt | 53 - ...wsStartAndEndTagsToDifferInCase.cspans.txt | 11 - ...owsStartAndEndTagsToDifferInCase.stree.txt | 41 - ...sItCanRecoverToAnExpectedEndTag.cspans.txt | 10 - ...AsItCanRecoverToAnExpectedEndTag.stree.txt | 39 - ...andleSelfClosingTagsWithinBlock.cspans.txt | 9 - ...HandleSelfClosingTagsWithinBlock.stree.txt | 38 - ...neOfMarkupWithEmbeddedStatement.cspans.txt | 12 - ...ineOfMarkupWithEmbeddedStatement.stree.txt | 46 - ...siderPsuedoTagWithinMarkupBlock.cspans.txt | 11 - ...nsiderPsuedoTagWithinMarkupBlock.stree.txt | 44 - ...leUnlessPreceededByQuestionMark.cspans.txt | 9 - ...gleUnlessPreceededByQuestionMark.stree.txt | 42 - ...sForwardSlashInAttributeContent.cspans.txt | 10 - ...esForwardSlashInAttributeContent.stree.txt | 44 - .../HandlesOpenAngleAtEof.cspans.txt | 5 - .../HandlesOpenAngleAtEof.diag.txt | 2 - .../HandlesOpenAngleAtEof.stree.txt | 22 - ...enAngleWithProperTagFollowingIt.cspans.txt | 7 - ...OpenAngleWithProperTagFollowingIt.diag.txt | 3 - ...penAngleWithProperTagFollowingIt.stree.txt | 34 - ...nbalancedTripleDashHTMLComments.cspans.txt | 12 - ...UnbalancedTripleDashHTMLComments.stree.txt | 56 - ...mlCommentSupportsMultipleDashes.cspans.txt | 24 - ...tmlCommentSupportsMultipleDashes.stree.txt | 130 - ...gnoresTagsInContentsOfScriptTag.cspans.txt | 12 - ...IgnoresTagsInContentsOfScriptTag.stree.txt | 48 - ...minatesCommentOnFullEndSequence.cspans.txt | 9 - ...rminatesCommentOnFullEndSequence.stree.txt | 36 - ...ParsesSGMLDeclarationAsEmptyTag.cspans.txt | 9 - .../ParsesSGMLDeclarationAsEmptyTag.stree.txt | 40 - ...onWhitespaceCharacterIsStartTag.cspans.txt | 12 - ...NonWhitespaceCharacterIsStartTag.stree.txt | 49 - ...ProcessingInstructionAsEmptyTag.cspans.txt | 9 - ...LProcessingInstructionAsEmptyTag.stree.txt | 41 - ...yBalancesCommentStartAndEndTags.cspans.txt | 9 - ...lyBalancesCommentStartAndEndTags.stree.txt | 35 - ...CharacterAfterTransitionIsColon.cspans.txt | 9 - ...tCharacterAfterTransitionIsColon.stree.txt | 33 - .../RendersLiteralTextTagIfDoubled.cspans.txt | 13 - .../RendersLiteralTextTagIfDoubled.stree.txt | 53 - ...opsAtMatchingCloseTagToStartTag.cspans.txt | 12 - ...topsAtMatchingCloseTagToStartTag.stree.txt | 50 - ...sParsingMidEmptyTagIfEOFReached.cspans.txt | 6 - ...opsParsingMidEmptyTagIfEOFReached.diag.txt | 1 - ...psParsingMidEmptyTagIfEOFReached.stree.txt | 23 - ...gleLineBlockAtEOFIfNoEOLReached.cspans.txt | 6 - ...ingleLineBlockAtEOFIfNoEOLReached.diag.txt | 1 - ...ngleLineBlockAtEOFIfNoEOLReached.stree.txt | 23 - .../SupportsCommentAsBlock.cspans.txt | 9 - .../SupportsCommentAsBlock.stree.txt | 31 - ...ortsCommentWithExtraDashAsBlock.cspans.txt | 9 - ...portsCommentWithExtraDashAsBlock.stree.txt | 32 - .../SupportsCommentWithinBlock.cspans.txt | 13 - .../SupportsCommentWithinBlock.stree.txt | 45 - ...riptTagsWithLessThanSignsInThem.cspans.txt | 9 - ...criptTagsWithLessThanSignsInThem.stree.txt | 41 - ...gsWithSpacedLessThanSignsInThem.cspans.txt | 9 - ...agsWithSpacedLessThanSignsInThem.stree.txt | 43 - .../SupportsTagsWithAttributes.cspans.txt | 18 - .../SupportsTagsWithAttributes.stree.txt | 69 - ...CloseAngleDoesNotTerminateBlock.cspans.txt | 4 - ...utCloseAngleDoesNotTerminateBlock.diag.txt | 2 - ...tCloseAngleDoesNotTerminateBlock.stree.txt | 25 - .../HtmlBlockTest/TerminatesAtEOF.cspans.txt | 5 - .../HtmlBlockTest/TerminatesAtEOF.diag.txt | 2 - .../HtmlBlockTest/TerminatesAtEOF.stree.txt | 22 - ...rminatesAtEOFWhenParsingComment.cspans.txt | 5 - ...TerminatesAtEOFWhenParsingComment.diag.txt | 1 - ...erminatesAtEOFWhenParsingComment.stree.txt | 24 - ...tAtFirstOccurrenceOfEndSequence.cspans.txt | 12 - ...ntAtFirstOccurrenceOfEndSequence.stree.txt | 47 - ...GMLDeclarationAtFirstCloseAngle.cspans.txt | 10 - ...SGMLDeclarationAtFirstCloseAngle.stree.txt | 42 - ...ionAtQuestionMarkCloseAnglePair.cspans.txt | 10 - ...tionAtQuestionMarkCloseAnglePair.stree.txt | 44 - .../TreatsMalformedTagsAsContent.cspans.txt | 9 - .../TreatsMalformedTagsAsContent.diag.txt | 2 - .../TreatsMalformedTagsAsContent.stree.txt | 45 - .../WithSelfClosingTagJustEmitsTag.cspans.txt | 7 - .../WithSelfClosingTagJustEmitsTag.stree.txt | 28 - ...ptsEndTagWithNoMatchingStartTag.cspans.txt | 3 - ...eptsEndTagWithNoMatchingStartTag.stree.txt | 14 - ...ileAndOutputsZeroLengthCodeSpan.cspans.txt | 4 - ...fFileAndOutputsZeroLengthCodeSpan.diag.txt | 1 - ...FileAndOutputsZeroLengthCodeSpan.stree.txt | 14 - ...yHandlesOddlySpacedHTMLElements.cspans.txt | 9 - ...lyHandlesOddlySpacedHTMLElements.stree.txt | 49 - ...neOfMarkupWithEmbeddedStatement.cspans.txt | 6 - ...ineOfMarkupWithEmbeddedStatement.stree.txt | 29 - ...oreNewLineAtTheEndOfMarkupBlock.cspans.txt | 8 - ...noreNewLineAtTheEndOfMarkupBlock.stree.txt | 25 - ...VerbatimBlockIfNoNewlinePresent.cspans.txt | 8 - ...fVerbatimBlockIfNoNewlinePresent.stree.txt | 25 - ...aNewLineAtTheEndOfVerbatimBlock.cspans.txt | 7 - ...raNewLineAtTheEndOfVerbatimBlock.stree.txt | 23 - ...dNewLineAtTheEndOfVerbatimBlock.cspans.txt | 7 - ...ndNewLineAtTheEndOfVerbatimBlock.stree.txt | 24 - ...VerbatimBlockIfFollowedByCSharp.cspans.txt | 9 - ...nVerbatimBlockIfFollowedByCSharp.stree.txt | 35 - ...sNotReturnErrorOnMismatchedTags.cspans.txt | 6 - ...esNotReturnErrorOnMismatchedTags.stree.txt | 29 - ...ToCodeOnEmailAddressInAttribute.cspans.txt | 7 - ...hToCodeOnEmailAddressInAttribute.stree.txt | 30 - ...mitsAtSignAsMarkupIfAtEndOfFile.cspans.txt | 4 - .../EmitsAtSignAsMarkupIfAtEndOfFile.diag.txt | 1 - ...EmitsAtSignAsMarkupIfAtEndOfFile.stree.txt | 15 - ...IfFirstCharacterIsSwapCharacter.cspans.txt | 4 - ...kIfFirstCharacterIsSwapCharacter.stree.txt | 14 - ...ewLineBeforeMarkupInNestedBlock.cspans.txt | 12 - ...NewLineBeforeMarkupInNestedBlock.stree.txt | 46 - ...esNewLineAndMarkupInNestedBlock.cspans.txt | 12 - ...lesNewLineAndMarkupInNestedBlock.stree.txt | 41 - .../HandlesNewLineInNestedBlock.cspans.txt | 10 - .../HandlesNewLineInNestedBlock.stree.txt | 37 - ...AtSignEncounteredAndEmitsOutput.cspans.txt | 4 - ...nAtSignEncounteredAndEmitsOutput.stree.txt | 16 - ...gnoresTagsInContentsOfScriptTag.cspans.txt | 6 - ...IgnoresTagsInContentsOfScriptTag.stree.txt | 31 - ...eBlockWithMarkupSetsDotAsMarkup.cspans.txt | 15 - ...deBlockWithMarkupSetsDotAsMarkup.stree.txt | 58 - ...portsDollarOpenBraceCombination.cspans.txt | 3 - ...pportsDollarOpenBraceCombination.stree.txt | 14 - ...arkupSpanIfContentIsEmptyString.cspans.txt | 1 - ...MarkupSpanIfContentIsEmptyString.stree.txt | 4 - ...entAsSingleWhitespaceMarkupSpan.cspans.txt | 1 - ...tentAsSingleWhitespaceMarkupSpan.stree.txt | 4 - ...witchToCodeOnEmailAddressInText.cspans.txt | 1 - ...SwitchToCodeOnEmailAddressInText.stree.txt | 4 - ...gnoresTagsInContentsOfScriptTag.cspans.txt | 17 - ...IgnoresTagsInContentsOfScriptTag.stree.txt | 58 - ...panIfNoSwapCharacterEncountered.cspans.txt | 1 - ...SpanIfNoSwapCharacterEncountered.stree.txt | 6 - ...InVerbatimBlockIfFollowedByHtml.cspans.txt | 12 - ...gInVerbatimBlockIfFollowedByHtml.stree.txt | 45 - ...ockIfFollowedByMarkupTransition.cspans.txt | 13 - ...lockIfFollowedByMarkupTransition.stree.txt | 45 - .../RendersTextPseudoTagAsMarkup.cspans.txt | 4 - .../RendersTextPseudoTagAsMarkup.stree.txt | 17 - ...egmentIfNoCodeBlocksEncountered.cspans.txt | 6 - ...SegmentIfNoCodeBlocksEncountered.stree.txt | 26 - ...ngOfAttributeValue_DoesNotThrow.cspans.txt | 9 - ...ingOfAttributeValue_DoesNotThrow.stree.txt | 34 - ...ndOfAttributeValue_DoesNotThrow.cspans.txt | 9 - ...EndOfAttributeValue_DoesNotThrow.stree.txt | 34 - ...weenAttributeValue_DoesNotThrow.cspans.txt | 10 - ...tweenAttributeValue_DoesNotThrow.stree.txt | 40 - ...onInAttributeValue_DoesNotThrow.cspans.txt | 8 - ...ionInAttributeValue_DoesNotThrow.stree.txt | 31 - ...eTransitionInEmail_DoesNotThrow.cspans.txt | 13 - ...leTransitionInEmail_DoesNotThrow.stree.txt | 48 - ...eTransitionInRegex_DoesNotThrow.cspans.txt | 10 - ...leTransitionInRegex_DoesNotThrow.stree.txt | 79 - ...ithExpressionBlock_DoesNotThrow.cspans.txt | 43 - ...WithExpressionBlock_DoesNotThrow.stree.txt | 182 - ...nsitionsInAttributeValue_Throws.cspans.txt | 9 - ...ransitionsInAttributeValue_Throws.diag.txt | 2 - ...ansitionsInAttributeValue_Throws.stree.txt | 44 - ...nDoesNotCreateDocumentLevelSpan.cspans.txt | 13 - ...onDoesNotCreateDocumentLevelSpan.stree.txt | 40 - ...AsLongAsParserCanIdentifyEndTag.cspans.txt | 9 - ...sAsLongAsParserCanIdentifyEndTag.stree.txt | 31 - ...EndTextTagContainsTextAfterName.cspans.txt | 7 - ...IfEndTextTagContainsTextAfterName.diag.txt | 1 - ...fEndTextTagContainsTextAfterName.stree.txt | 33 - ...artTextTagContainsTextAfterName.cspans.txt | 8 - ...StartTextTagContainsTextAfterName.diag.txt | 1 - ...tartTextTagContainsTextAfterName.stree.txt | 35 - ...utputsMarkupSegmentAndEndsBlock.cspans.txt | 8 - ...nOutputsMarkupSegmentAndEndsBlock.diag.txt | 1 - ...OutputsMarkupSegmentAndEndsBlock.stree.txt | 29 - ...edTagAtEOFErrorsOnMissingEndTag.cspans.txt | 5 - ...osedTagAtEOFErrorsOnMissingEndTag.diag.txt | 2 - ...sedTagAtEOFErrorsOnMissingEndTag.stree.txt | 30 - ...TagErrorsOnOutermostUnclosedTag.cspans.txt | 9 - ...elTagErrorsOnOutermostUnclosedTag.diag.txt | 1 - ...lTagErrorsOnOutermostUnclosedTag.stree.txt | 35 - ...TagAtEOFErrorsWithIncompleteTag.cspans.txt | 6 - ...edTagAtEOFErrorsWithIncompleteTag.diag.txt | 2 - ...dTagAtEOFErrorsWithIncompleteTag.stree.txt | 30 - .../HtmlTagsTest/CDataTag.cspans.txt | 8 - .../HtmlTagsTest/CDataTag.stree.txt | 31 - .../HtmlTagsTest/CommentTag.cspans.txt | 10 - .../HtmlTagsTest/CommentTag.stree.txt | 31 - .../HtmlTagsTest/DocTypeTag.cspans.txt | 8 - .../HtmlTagsTest/DocTypeTag.stree.txt | 28 - .../HtmlTagsTest/ElementTags.cspans.txt | 10 - .../HtmlTagsTest/ElementTags.stree.txt | 33 - .../HtmlTagsTest/EmptyTag.cspans.txt | 9 - .../HtmlTagsTest/EmptyTag.stree.txt | 31 - .../EmptyTagNestsLikeNormalTag.cspans.txt | 9 - .../EmptyTagNestsLikeNormalTag.diag.txt | 1 - .../EmptyTagNestsLikeNormalTag.stree.txt | 32 - .../IncompleteVoidElementEndTag.cspans.txt | 36 - .../IncompleteVoidElementEndTag.diag.txt | 1 - .../IncompleteVoidElementEndTag.stree.txt | 317 - .../ProcessingInstructionTag.cspans.txt | 8 - .../ProcessingInstructionTag.stree.txt | 34 - .../HtmlTagsTest/ScriptTag.cspans.txt | 3 - .../HtmlTagsTest/ScriptTag.stree.txt | 28 - .../ScriptTag_Incomplete.cspans.txt | 2 - .../ScriptTag_Incomplete.stree.txt | 13 - .../HtmlTagsTest/ScriptTag_Invalid.cspans.txt | 10 - .../HtmlTagsTest/ScriptTag_Invalid.stree.txt | 38 - .../ScriptTag_WithNestedBeginTag.cspans.txt | 3 - .../ScriptTag_WithNestedBeginTag.stree.txt | 16 - .../ScriptTag_WithNestedEndTag.cspans.txt | 3 - .../ScriptTag_WithNestedEndTag.stree.txt | 17 - ...criptTag_WithNestedMalformedTag.cspans.txt | 3 - ...ScriptTag_WithNestedMalformedTag.stree.txt | 29 - .../ScriptTag_WithNestedTag.cspans.txt | 3 - .../ScriptTag_WithNestedTag.stree.txt | 20 - .../HtmlTagsTest/TextTags.cspans.txt | 9 - .../HtmlTagsTest/TextTags.stree.txt | 31 - .../VoidElementFollowedByCloseTag.cspans.txt | 145 - .../VoidElementFollowedByCloseTag.stree.txt | 596 - .../VoidElementFollowedByContent.cspans.txt | 113 - .../VoidElementFollowedByContent.stree.txt | 484 - .../VoidElementFollowedByOtherTag.cspans.txt | 49 - .../VoidElementFollowedByOtherTag.stree.txt | 387 - ...rTrailingWhitespaceInDesignMode.cspans.txt | 19 - ...OrTrailingWhitespaceInDesignMode.stree.txt | 83 - ...ToCodeOnEmailAddressInAttribute.cspans.txt | 13 - ...hToCodeOnEmailAddressInAttribute.stree.txt | 47 - ...witchToCodeOnEmailAddressInText.cspans.txt | 9 - ...SwitchToCodeOnEmailAddressInText.stree.txt | 31 - ...CodeIfThereIsNoMarkupOnThatLine.cspans.txt | 22 - ...oCodeIfThereIsNoMarkupOnThatLine.stree.txt | 86 - ...CodeIfThereIsNoMarkupOnThatLine.cspans.txt | 16 - ...oCodeIfThereIsNoMarkupOnThatLine.stree.txt | 69 - ...sPairsOfAtSignsAsEscapeSequence.cspans.txt | 8 - ...tsPairsOfAtSignsAsEscapeSequence.stree.txt | 28 - ...reatsTwoAtSignsAsEscapeSequence.cspans.txt | 4 - ...TreatsTwoAtSignsAsEscapeSequence.stree.txt | 17 - ...arsesCodeWithinSingleLineMarkup.cspans.txt | 12 - ...ParsesCodeWithinSingleLineMarkup.stree.txt | 41 - ...sPairsOfAtSignsAsEscapeSequence.cspans.txt | 19 - ...tsPairsOfAtSignsAsEscapeSequence.stree.txt | 55 - ...reatsTwoAtSignsAsEscapeSequence.cspans.txt | 15 - ...TreatsTwoAtSignsAsEscapeSequence.stree.txt | 44 - ...CodeIfThereIsNoMarkupOnThatLine.cspans.txt | 31 - ...ToCodeIfThereIsNoMarkupOnThatLine.diag.txt | 1 - ...oCodeIfThereIsNoMarkupOnThatLine.stree.txt | 109 - ...portsCodeWithinCDataDeclaration.cspans.txt | 12 - ...pportsCodeWithinCDataDeclaration.stree.txt | 52 - .../SupportsCodeWithinComment.cspans.txt | 14 - .../SupportsCodeWithinComment.stree.txt | 49 - ...pportsCodeWithinSGMLDeclaration.cspans.txt | 12 - ...upportsCodeWithinSGMLDeclaration.stree.txt | 48 - ...eWithinXMLProcessingInstruction.cspans.txt | 12 - ...deWithinXMLProcessingInstruction.stree.txt | 49 - ...cterEncounteredInAttributeValue.cspans.txt | 12 - ...acterEncounteredInAttributeValue.stree.txt | 49 - ...haracterEncounteredInTagContent.cspans.txt | 16 - ...CharacterEncounteredInTagContent.stree.txt | 59 - ...nSwapCharacterEncounteredMidTag.cspans.txt | 10 - ...enSwapCharacterEncounteredMidTag.stree.txt | 38 - ...cterBeforeSwapIsNonAlphanumeric.cspans.txt | 11 - ...acterBeforeSwapIsNonAlphanumeric.stree.txt | 39 - ...sPairsOfAtSignsAsEscapeSequence.cspans.txt | 14 - ...tsPairsOfAtSignsAsEscapeSequence.stree.txt | 45 - ...reatsTwoAtSignsAsEscapeSequence.cspans.txt | 10 - ...TreatsTwoAtSignsAsEscapeSequence.stree.txt | 34 - ...les_DoesNotSpecialCase_VoidTags.cspans.txt | 5 - ...dles_DoesNotSpecialCase_VoidTags.stree.txt | 18 - ...les_EndTagsWithMissingStartTags.cspans.txt | 3 - ...dles_EndTagsWithMissingStartTags.stree.txt | 13 - .../Handles_IncompleteTags.cspans.txt | 8 - .../Handles_IncompleteTags.stree.txt | 38 - ...formedTags_RecoversSuccessfully.cspans.txt | 7 - ...lformedTags_RecoversSuccessfully.stree.txt | 26 - ...cedEndTags_RecoversSuccessfully.cspans.txt | 8 - ...acedEndTags_RecoversSuccessfully.stree.txt | 31 - .../Handles_SelfClosingTags.cspans.txt | 5 - .../Handles_SelfClosingTags.stree.txt | 23 - ...cialCasesVoidTags_WithNoEndTags.cspans.txt | 8 - ...ecialCasesVoidTags_WithNoEndTags.stree.txt | 27 - ...les_StartTagsWithMissingEndTags.cspans.txt | 7 - ...dles_StartTagsWithMissingEndTags.stree.txt | 34 - .../Handles_ValidNestedTags.cspans.txt | 8 - .../Handles_ValidNestedTags.stree.txt | 37 - ...es_ValidNestedTagsMixedWithCode.cspans.txt | 16 - ...les_ValidNestedTagsMixedWithCode.stree.txt | 67 - .../Handles_ValidTags.cspans.txt | 9 - .../Handles_ValidTags.stree.txt | 32 - ...RequiresDoubleQuotesAroundValue.cspans.txt | 6 - ...teRequiresDoubleQuotesAroundValue.diag.txt | 1 - ...eRequiresDoubleQuotesAroundValue.stree.txt | 19 - ...ive_InvalidLookupText_AddsError.cspans.txt | 6 - ...tive_InvalidLookupText_AddsError.stree.txt | 18 - ...HelperDirective_NoValue_Invalid.cspans.txt | 6 - ...gHelperDirective_NoValue_Invalid.stree.txt | 18 - ...agHelperDirective_RequiresValue.cspans.txt | 6 - ...TagHelperDirective_RequiresValue.stree.txt | 18 - ...irective_SingleQuotes_AddsError.cspans.txt | 6 - ...Directive_SingleQuotes_AddsError.stree.txt | 18 - ...RequiresDoubleQuotesAroundValue.cspans.txt | 6 - ...teRequiresDoubleQuotesAroundValue.diag.txt | 1 - ...eRequiresDoubleQuotesAroundValue.stree.txt | 18 - ...gHelperDirective_SupportsSpaces.cspans.txt | 6 - ...agHelperDirective_SupportsSpaces.stree.txt | 22 - ...tes_InvalidLookupText_AddsError.cspans.txt | 6 - ...otes_InvalidLookupText_AddsError.stree.txt | 18 - ...tStartOfLineBecauseOfWhitespace.cspans.txt | 7 - ...AtStartOfLineBecauseOfWhitespace.stree.txt | 20 - ...rectiveErrorsIfNotAtStartOfLine.cspans.txt | 6 - ...irectiveErrorsIfNotAtStartOfLine.stree.txt | 20 - ...eDescriptor_AllowsNullableTypes.cspans.txt | 16 - ...veDescriptor_AllowsNullableTypes.stree.txt | 80 - ...tiveDescriptor_AllowsTupleTypes.cspans.txt | 16 - ...ctiveDescriptor_AllowsTupleTypes.stree.txt | 164 - ...Types_IgnoresTrailingWhitespace.cspans.txt | 7 - ...eTypes_IgnoresTrailingWhitespace.stree.txt | 26 - ...or_AllowsWhiteSpaceAroundTokens.cspans.txt | 9 - ...tor_AllowsWhiteSpaceAroundTokens.stree.txt | 30 - ...AttributeToken_BalancesBrackets.cspans.txt | 6 - ..._AttributeToken_BalancesBrackets.stree.txt | 38 - ...rsIfDoesNotStartWithOpenBracket.cspans.txt | 5 - ...rorsIfDoesNotStartWithOpenBracket.diag.txt | 1 - ...orsIfDoesNotStartWithOpenBracket.stree.txt | 17 - ...dleEOFIncompleteNamespaceTokens.cspans.txt | 5 - ...andleEOFIncompleteNamespaceTokens.diag.txt | 1 - ...ndleEOFIncompleteNamespaceTokens.stree.txt | 16 - ...HandleEOFInvalidNamespaceTokens.cspans.txt | 6 - ...anHandleEOFInvalidNamespaceTokens.diag.txt | 1 - ...nHandleEOFInvalidNamespaceTokens.stree.txt | 21 - ...HandleIncompleteNamespaceTokens.cspans.txt | 5 - ...anHandleIncompleteNamespaceTokens.diag.txt | 1 - ...nHandleIncompleteNamespaceTokens.stree.txt | 17 - ...CanHandleInvalidNamespaceTokens.cspans.txt | 6 - ...r_CanHandleInvalidNamespaceTokens.diag.txt | 1 - ..._CanHandleInvalidNamespaceTokens.stree.txt | 24 - ...rrorsExtraContentAfterDirective.cspans.txt | 7 - ..._ErrorsExtraContentAfterDirective.diag.txt | 1 - ...ErrorsExtraContentAfterDirective.stree.txt | 22 - ...or_ErrorsForInvalidMemberTokens.cspans.txt | 5 - ...ptor_ErrorsForInvalidMemberTokens.diag.txt | 1 - ...tor_ErrorsForInvalidMemberTokens.stree.txt | 16 - ...henEOFBeforeDirectiveBlockStart.cspans.txt | 6 - ...sWhenEOFBeforeDirectiveBlockStart.diag.txt | 1 - ...WhenEOFBeforeDirectiveBlockStart.stree.txt | 18 - ...henExtraContentBeforeBlockStart.cspans.txt | 7 - ...sWhenExtraContentBeforeBlockStart.diag.txt | 1 - ...WhenExtraContentBeforeBlockStart.stree.txt | 28 - ...iptor_ErrorsWhenMissingEndBrace.cspans.txt | 8 - ...criptor_ErrorsWhenMissingEndBrace.diag.txt | 1 - ...riptor_ErrorsWhenMissingEndBrace.stree.txt | 25 - ...ipleOccurring_CanHaveDuplicates.cspans.txt | 12 - ...tipleOccurring_CanHaveDuplicates.stree.txt | 46 - ...nglyOccurring_ErrorsIfDuplicate.cspans.txt | 12 - ...SinglyOccurring_ErrorsIfDuplicate.diag.txt | 1 - ...inglyOccurring_ErrorsIfDuplicate.stree.txt | 46 - ...ped_CanBeBeneathOtherDirectives.cspans.txt | 12 - ...oped_CanBeBeneathOtherDirectives.stree.txt | 40 - ...WhiteSpaceCommentsAndDirectives.cspans.txt | 22 - ...rWhiteSpaceCommentsAndDirectives.stree.txt | 66 - ...AttributeToken_BalancesBrackets.cspans.txt | 7 - ...eAttributeToken_BalancesBrackets.stree.txt | 45 - ...NoErrorsSemicolonAfterDirective.cspans.txt | 9 - ..._NoErrorsSemicolonAfterDirective.stree.txt | 24 - ...en_ParserErrorForNonStringValue.cspans.txt | 5 - ...oken_ParserErrorForNonStringValue.diag.txt | 1 - ...ken_ParserErrorForNonStringValue.stree.txt | 18 - ...arserErrorForPartialQuotedValue.cspans.txt | 5 - ..._ParserErrorForPartialQuotedValue.diag.txt | 1 - ...ParserErrorForPartialQuotedValue.stree.txt | 17 - ...ParserErrorForSingleQuotedValue.cspans.txt | 5 - ...n_ParserErrorForSingleQuotedValue.diag.txt | 1 - ..._ParserErrorForSingleQuotedValue.stree.txt | 18 - ...ken_ParserErrorForUnquotedValue.cspans.txt | 5 - ...Token_ParserErrorForUnquotedValue.diag.txt | 1 - ...oken_ParserErrorForUnquotedValue.stree.txt | 16 - ...or_TokensMustBeSeparatedBySpace.cspans.txt | 6 - ...ptor_TokensMustBeSeparatedBySpace.diag.txt | 1 - ...tor_TokensMustBeSeparatedBySpace.stree.txt | 20 - ...ptor_UnderstandsAttributeTokens.cspans.txt | 13 - ...iptor_UnderstandsAttributeTokens.stree.txt | 53 - ...escriptor_UnderstandsCodeBlocks.cspans.txt | 10 - ...Descriptor_UnderstandsCodeBlocks.stree.txt | 37 - ...criptor_UnderstandsMemberTokens.cspans.txt | 6 - ...scriptor_UnderstandsMemberTokens.stree.txt | 18 - ...iptor_UnderstandsMultipleTokens.cspans.txt | 10 - ...riptor_UnderstandsMultipleTokens.stree.txt | 32 - ...scriptor_UnderstandsRazorBlocks.cspans.txt | 14 - ...escriptor_UnderstandsRazorBlocks.stree.txt | 45 - ...criptor_UnderstandsStringTokens.cspans.txt | 6 - ...scriptor_UnderstandsStringTokens.stree.txt | 18 - ...escriptor_UnderstandsTypeTokens.cspans.txt | 6 - ...Descriptor_UnderstandsTypeTokens.stree.txt | 24 - ...ctives_CanUseReservedWord_Class.cspans.txt | 4 - ...ectives_CanUseReservedWord_Class.stree.txt | 14 - ...es_CanUseReservedWord_Namespace.cspans.txt | 4 - ...ves_CanUseReservedWord_Namespace.stree.txt | 14 - ...ves_ReservedWordInsideCodeBlock.cspans.txt | 6 - ...ives_ReservedWordInsideCodeBlock.stree.txt | 20 - .../EmptyFunctionsDirective.cspans.txt | 8 - .../EmptyFunctionsDirective.stree.txt | 23 - ...tStartOfLineBecauseOfWhitespace.cspans.txt | 7 - ...AtStartOfLineBecauseOfWhitespace.stree.txt | 26 - ...rectiveErrorsIfNotAtStartOfLine.cspans.txt | 7 - ...DirectiveErrorsIfNotAtStartOfLine.diag.txt | 1 - ...irectiveErrorsIfNotAtStartOfLine.stree.txt | 27 - ...InheritsDirectiveSupportsArrays.cspans.txt | 6 - .../InheritsDirectiveSupportsArrays.stree.txt | 24 - ...DirectiveSupportsNestedGenerics.cspans.txt | 6 - ...sDirectiveSupportsNestedGenerics.stree.txt | 34 - ...tsDirectiveSupportsTypeKeywords.cspans.txt | 6 - ...itsDirectiveSupportsTypeKeywords.stree.txt | 18 - ...ionalDirectiveTokens_AreSkipped.cspans.txt | 5 - ...tionalDirectiveTokens_AreSkipped.stree.txt | 16 - ...tiveTokens_WithBraces_AreParsed.cspans.txt | 6 - ...ctiveTokens_WithBraces_AreParsed.stree.txt | 18 - ...ultipleOptionalTokens_AreParsed.cspans.txt | 8 - ...MultipleOptionalTokens_AreParsed.stree.txt | 24 - ...kens_WithSimpleTokens_AreParsed.cspans.txt | 6 - ...okens_WithSimpleTokens_AreParsed.stree.txt | 18 - ...ns_WithMemberSpecified_IsParsed.cspans.txt | 6 - ...ens_WithMemberSpecified_IsParsed.stree.txt | 18 - ...kens_WithMissingMember_IsParsed.cspans.txt | 6 - ...okens_WithMissingMember_IsParsed.stree.txt | 18 - .../Parse_FunctionsDirective.cspans.txt | 8 - .../Parse_FunctionsDirective.stree.txt | 33 - .../Parse_SectionDirective.cspans.txt | 14 - .../Parse_SectionDirective.stree.txt | 45 - ...ctiveToken_WithMultipleSegments.cspans.txt | 6 - ...ectiveToken_WithMultipleSegments.stree.txt | 22 - ...irectiveToken_WithSingleSegment.cspans.txt | 6 - ...DirectiveToken_WithSingleSegment.stree.txt | 18 - ...RequiresDoubleQuotesAroundValue.cspans.txt | 6 - ...teRequiresDoubleQuotesAroundValue.diag.txt | 1 - ...eRequiresDoubleQuotesAroundValue.stree.txt | 19 - ...ive_InvalidLookupText_AddsError.cspans.txt | 6 - ...tive_InvalidLookupText_AddsError.stree.txt | 18 - ...HelperDirective_NoValue_Invalid.cspans.txt | 6 - ...gHelperDirective_NoValue_Invalid.stree.txt | 18 - ...agHelperDirective_RequiresValue.cspans.txt | 6 - ...TagHelperDirective_RequiresValue.stree.txt | 18 - ...irective_SingleQuotes_AddsError.cspans.txt | 6 - ...Directive_SingleQuotes_AddsError.stree.txt | 18 - ...RequiresDoubleQuotesAroundValue.cspans.txt | 6 - ...teRequiresDoubleQuotesAroundValue.diag.txt | 1 - ...eRequiresDoubleQuotesAroundValue.stree.txt | 18 - ...gHelperDirective_SupportsSpaces.cspans.txt | 6 - ...agHelperDirective_SupportsSpaces.stree.txt | 22 - ...tes_InvalidLookupText_AddsError.cspans.txt | 6 - ...otes_InvalidLookupText_AddsError.stree.txt | 18 - ...RequiresDoubleQuotesAroundValue.cspans.txt | 6 - ...teRequiresDoubleQuotesAroundValue.diag.txt | 1 - ...eRequiresDoubleQuotesAroundValue.stree.txt | 20 - ...PrefixDirective_NoValueSucceeds.cspans.txt | 6 - ...rPrefixDirective_NoValueSucceeds.stree.txt | 18 - ...erPrefixDirective_RequiresValue.cspans.txt | 6 - ...perPrefixDirective_RequiresValue.stree.txt | 18 - ...RequiresDoubleQuotesAroundValue.cspans.txt | 6 - ...teRequiresDoubleQuotesAroundValue.diag.txt | 1 - ...eRequiresDoubleQuotesAroundValue.stree.txt | 18 - ...gHelperPrefixDirective_Succeeds.cspans.txt | 6 - ...agHelperPrefixDirective_Succeeds.stree.txt | 18 - ...ixDirective_WithQuotes_Succeeds.cspans.txt | 6 - ...fixDirective_WithQuotes_Succeeds.stree.txt | 18 - .../AllowsCompatibleTagStructures1.cspans.txt | 0 .../AllowsCompatibleTagStructures1.stree.txt | 12 - .../AllowsCompatibleTagStructures1.tspans.txt | 1 - .../AllowsCompatibleTagStructures2.cspans.txt | 0 .../AllowsCompatibleTagStructures2.stree.txt | 11 - .../AllowsCompatibleTagStructures2.tspans.txt | 1 - .../AllowsCompatibleTagStructures3.cspans.txt | 1 - .../AllowsCompatibleTagStructures3.stree.txt | 21 - .../AllowsCompatibleTagStructures3.tspans.txt | 1 - .../AllowsCompatibleTagStructures4.cspans.txt | 0 .../AllowsCompatibleTagStructures4.stree.txt | 12 - .../AllowsCompatibleTagStructures4.tspans.txt | 2 - .../AllowsCompatibleTagStructures5.cspans.txt | 1 - .../AllowsCompatibleTagStructures5.stree.txt | 26 - .../AllowsCompatibleTagStructures5.tspans.txt | 1 - .../AllowsCompatibleTagStructures6.cspans.txt | 0 .../AllowsCompatibleTagStructures6.stree.txt | 11 - .../AllowsCompatibleTagStructures6.tspans.txt | 1 - .../AllowsCompatibleTagStructures7.cspans.txt | 0 .../AllowsCompatibleTagStructures7.stree.txt | 11 - .../AllowsCompatibleTagStructures7.tspans.txt | 1 - .../AllowsCompatibleTagStructures8.cspans.txt | 1 - .../AllowsCompatibleTagStructures8.stree.txt | 13 - .../AllowsCompatibleTagStructures8.tspans.txt | 1 - ..._DirectiveAttribute_SelfClosing.cspans.txt | 7 - ...s_DirectiveAttribute_SelfClosing.stree.txt | 32 - ...uctures_DirectiveAttribute_Void.cspans.txt | 7 - ...ructures_DirectiveAttribute_Void.stree.txt | 31 - ...CanHandleSymbolBoundAttributes1.cspans.txt | 1 - .../CanHandleSymbolBoundAttributes1.diag.txt | 5 - .../CanHandleSymbolBoundAttributes1.stree.txt | 32 - ...CanHandleSymbolBoundAttributes1.tspans.txt | 1 - ...CanHandleSymbolBoundAttributes2.cspans.txt | 1 - .../CanHandleSymbolBoundAttributes2.diag.txt | 5 - .../CanHandleSymbolBoundAttributes2.stree.txt | 32 - ...CanHandleSymbolBoundAttributes2.tspans.txt | 1 - ...CanHandleSymbolBoundAttributes3.cspans.txt | 2 - .../CanHandleSymbolBoundAttributes3.diag.txt | 5 - .../CanHandleSymbolBoundAttributes3.stree.txt | 34 - ...CanHandleSymbolBoundAttributes3.tspans.txt | 1 - ...CanHandleSymbolBoundAttributes4.cspans.txt | 2 - .../CanHandleSymbolBoundAttributes4.diag.txt | 5 - .../CanHandleSymbolBoundAttributes4.stree.txt | 34 - ...CanHandleSymbolBoundAttributes4.tspans.txt | 1 - ...CanHandleSymbolBoundAttributes5.cspans.txt | 1 - .../CanHandleSymbolBoundAttributes5.diag.txt | 5 - .../CanHandleSymbolBoundAttributes5.stree.txt | 30 - ...CanHandleSymbolBoundAttributes5.tspans.txt | 1 - ...CanHandleSymbolBoundAttributes6.cspans.txt | 0 .../CanHandleSymbolBoundAttributes6.diag.txt | 5 - .../CanHandleSymbolBoundAttributes6.stree.txt | 22 - ...CanHandleSymbolBoundAttributes6.tspans.txt | 1 - ...CanHandleSymbolBoundAttributes7.cspans.txt | 1 - .../CanHandleSymbolBoundAttributes7.diag.txt | 5 - .../CanHandleSymbolBoundAttributes7.stree.txt | 30 - ...CanHandleSymbolBoundAttributes7.tspans.txt | 1 - ...andleWithoutEndTagTagStructure1.cspans.txt | 0 ...HandleWithoutEndTagTagStructure1.stree.txt | 7 - ...andleWithoutEndTagTagStructure1.tspans.txt | 1 - ...andleWithoutEndTagTagStructure2.cspans.txt | 1 - ...HandleWithoutEndTagTagStructure2.stree.txt | 21 - ...andleWithoutEndTagTagStructure2.tspans.txt | 1 - ...andleWithoutEndTagTagStructure3.cspans.txt | 0 ...HandleWithoutEndTagTagStructure3.stree.txt | 12 - ...andleWithoutEndTagTagStructure3.tspans.txt | 2 - ...andleWithoutEndTagTagStructure4.cspans.txt | 1 - ...HandleWithoutEndTagTagStructure4.stree.txt | 26 - ...andleWithoutEndTagTagStructure4.tspans.txt | 2 - ...andleWithoutEndTagTagStructure5.cspans.txt | 2 - ...HandleWithoutEndTagTagStructure5.stree.txt | 22 - ...andleWithoutEndTagTagStructure5.tspans.txt | 2 - ...rEmptyTagHelperBoundAttributes1.cspans.txt | 1 - ...ForEmptyTagHelperBoundAttributes1.diag.txt | 1 - ...orEmptyTagHelperBoundAttributes1.stree.txt | 23 - ...rEmptyTagHelperBoundAttributes1.tspans.txt | 1 - ...EmptyTagHelperBoundAttributes10.cspans.txt | 1 - ...orEmptyTagHelperBoundAttributes10.diag.txt | 1 - ...rEmptyTagHelperBoundAttributes10.stree.txt | 23 - ...EmptyTagHelperBoundAttributes10.tspans.txt | 1 - ...EmptyTagHelperBoundAttributes11.cspans.txt | 2 - ...orEmptyTagHelperBoundAttributes11.diag.txt | 2 - ...rEmptyTagHelperBoundAttributes11.stree.txt | 35 - ...EmptyTagHelperBoundAttributes11.tspans.txt | 1 - ...EmptyTagHelperBoundAttributes12.cspans.txt | 2 - ...orEmptyTagHelperBoundAttributes12.diag.txt | 1 - ...rEmptyTagHelperBoundAttributes12.stree.txt | 33 - ...EmptyTagHelperBoundAttributes12.tspans.txt | 1 - ...EmptyTagHelperBoundAttributes13.cspans.txt | 4 - ...rEmptyTagHelperBoundAttributes13.stree.txt | 37 - ...EmptyTagHelperBoundAttributes13.tspans.txt | 1 - ...EmptyTagHelperBoundAttributes14.cspans.txt | 6 - ...rEmptyTagHelperBoundAttributes14.stree.txt | 41 - ...EmptyTagHelperBoundAttributes14.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes2.cspans.txt | 1 - ...orEmptyTagHelperBoundAttributes2.stree.txt | 25 - ...rEmptyTagHelperBoundAttributes2.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes3.cspans.txt | 1 - ...ForEmptyTagHelperBoundAttributes3.diag.txt | 1 - ...orEmptyTagHelperBoundAttributes3.stree.txt | 24 - ...rEmptyTagHelperBoundAttributes3.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes4.cspans.txt | 2 - ...ForEmptyTagHelperBoundAttributes4.diag.txt | 2 - ...orEmptyTagHelperBoundAttributes4.stree.txt | 35 - ...rEmptyTagHelperBoundAttributes4.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes5.cspans.txt | 2 - ...ForEmptyTagHelperBoundAttributes5.diag.txt | 2 - ...orEmptyTagHelperBoundAttributes5.stree.txt | 37 - ...rEmptyTagHelperBoundAttributes5.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes6.cspans.txt | 2 - ...ForEmptyTagHelperBoundAttributes6.diag.txt | 1 - ...orEmptyTagHelperBoundAttributes6.stree.txt | 32 - ...rEmptyTagHelperBoundAttributes6.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes7.cspans.txt | 2 - ...ForEmptyTagHelperBoundAttributes7.diag.txt | 1 - ...orEmptyTagHelperBoundAttributes7.stree.txt | 31 - ...rEmptyTagHelperBoundAttributes7.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes8.cspans.txt | 2 - ...ForEmptyTagHelperBoundAttributes8.diag.txt | 1 - ...orEmptyTagHelperBoundAttributes8.stree.txt | 32 - ...rEmptyTagHelperBoundAttributes8.tspans.txt | 1 - ...rEmptyTagHelperBoundAttributes9.cspans.txt | 4 - ...ForEmptyTagHelperBoundAttributes9.diag.txt | 1 - ...orEmptyTagHelperBoundAttributes9.stree.txt | 53 - ...rEmptyTagHelperBoundAttributes9.tspans.txt | 1 - ...atesErrorForMalformedTagHelper1.cspans.txt | 0 ...reatesErrorForMalformedTagHelper1.diag.txt | 2 - ...eatesErrorForMalformedTagHelper1.stree.txt | 7 - ...atesErrorForMalformedTagHelper1.tspans.txt | 1 - ...atesErrorForMalformedTagHelper2.cspans.txt | 0 ...reatesErrorForMalformedTagHelper2.diag.txt | 1 - ...eatesErrorForMalformedTagHelper2.stree.txt | 12 - ...atesErrorForMalformedTagHelper2.tspans.txt | 1 - ...atesErrorForMalformedTagHelper3.cspans.txt | 0 ...reatesErrorForMalformedTagHelper3.diag.txt | 3 - ...eatesErrorForMalformedTagHelper3.stree.txt | 12 - ...atesErrorForMalformedTagHelper3.tspans.txt | 2 - ...atesErrorForMalformedTagHelper4.cspans.txt | 0 ...reatesErrorForMalformedTagHelper4.diag.txt | 3 - ...eatesErrorForMalformedTagHelper4.stree.txt | 15 - ...atesErrorForMalformedTagHelper4.tspans.txt | 2 - ...atesErrorForMalformedTagHelper5.cspans.txt | 0 ...reatesErrorForMalformedTagHelper5.diag.txt | 2 - ...eatesErrorForMalformedTagHelper5.stree.txt | 15 - ...atesErrorForMalformedTagHelper5.tspans.txt | 1 - ...atesErrorForMalformedTagHelper6.cspans.txt | 5 - ...reatesErrorForMalformedTagHelper6.diag.txt | 2 - ...eatesErrorForMalformedTagHelper6.stree.txt | 30 - ...atesErrorForMalformedTagHelper6.tspans.txt | 1 - ...atesErrorForMalformedTagHelper7.cspans.txt | 6 - ...reatesErrorForMalformedTagHelper7.diag.txt | 1 - ...eatesErrorForMalformedTagHelper7.stree.txt | 32 - ...atesErrorForMalformedTagHelper7.tspans.txt | 1 - ...atesErrorForMalformedTagHelper8.cspans.txt | 2 - ...reatesErrorForMalformedTagHelper8.diag.txt | 1 - ...eatesErrorForMalformedTagHelper8.stree.txt | 23 - ...atesErrorForMalformedTagHelper8.tspans.txt | 1 - ...formedTagHelpersWithAttributes1.cspans.txt | 1 - ...alformedTagHelpersWithAttributes1.diag.txt | 2 - ...lformedTagHelpersWithAttributes1.stree.txt | 17 - ...formedTagHelpersWithAttributes1.tspans.txt | 1 - ...ormedTagHelpersWithAttributes10.cspans.txt | 1 - ...lformedTagHelpersWithAttributes10.diag.txt | 3 - ...formedTagHelpersWithAttributes10.stree.txt | 29 - ...ormedTagHelpersWithAttributes10.tspans.txt | 1 - ...ormedTagHelpersWithAttributes11.cspans.txt | 2 - ...lformedTagHelpersWithAttributes11.diag.txt | 3 - ...formedTagHelpersWithAttributes11.stree.txt | 36 - ...ormedTagHelpersWithAttributes11.tspans.txt | 2 - ...ormedTagHelpersWithAttributes12.cspans.txt | 2 - ...formedTagHelpersWithAttributes12.stree.txt | 36 - ...ormedTagHelpersWithAttributes12.tspans.txt | 1 - ...ormedTagHelpersWithAttributes13.cspans.txt | 0 ...lformedTagHelpersWithAttributes13.diag.txt | 1 - ...formedTagHelpersWithAttributes13.stree.txt | 32 - ...ormedTagHelpersWithAttributes13.tspans.txt | 1 - ...ormedTagHelpersWithAttributes14.cspans.txt | 0 ...lformedTagHelpersWithAttributes14.diag.txt | 1 - ...formedTagHelpersWithAttributes14.stree.txt | 30 - ...ormedTagHelpersWithAttributes14.tspans.txt | 1 - ...ormedTagHelpersWithAttributes15.cspans.txt | 2 - ...lformedTagHelpersWithAttributes15.diag.txt | 3 - ...formedTagHelpersWithAttributes15.stree.txt | 34 - ...ormedTagHelpersWithAttributes15.tspans.txt | 1 - ...ormedTagHelpersWithAttributes16.cspans.txt | 2 - ...lformedTagHelpersWithAttributes16.diag.txt | 3 - ...formedTagHelpersWithAttributes16.stree.txt | 25 - ...ormedTagHelpersWithAttributes16.tspans.txt | 1 - ...ormedTagHelpersWithAttributes17.cspans.txt | 2 - ...lformedTagHelpersWithAttributes17.diag.txt | 4 - ...formedTagHelpersWithAttributes17.stree.txt | 26 - ...ormedTagHelpersWithAttributes17.tspans.txt | 1 - ...ormedTagHelpersWithAttributes18.cspans.txt | 0 ...lformedTagHelpersWithAttributes18.diag.txt | 5 - ...formedTagHelpersWithAttributes18.stree.txt | 31 - ...ormedTagHelpersWithAttributes18.tspans.txt | 1 - ...ormedTagHelpersWithAttributes19.cspans.txt | 1 - ...lformedTagHelpersWithAttributes19.diag.txt | 1 - ...formedTagHelpersWithAttributes19.stree.txt | 40 - ...ormedTagHelpersWithAttributes19.tspans.txt | 1 - ...formedTagHelpersWithAttributes2.cspans.txt | 1 - ...alformedTagHelpersWithAttributes2.diag.txt | 3 - ...lformedTagHelpersWithAttributes2.stree.txt | 28 - ...formedTagHelpersWithAttributes2.tspans.txt | 1 - ...ormedTagHelpersWithAttributes20.cspans.txt | 11 - ...lformedTagHelpersWithAttributes20.diag.txt | 3 - ...formedTagHelpersWithAttributes20.stree.txt | 67 - ...ormedTagHelpersWithAttributes20.tspans.txt | 1 - ...formedTagHelpersWithAttributes3.cspans.txt | 2 - ...alformedTagHelpersWithAttributes3.diag.txt | 2 - ...lformedTagHelpersWithAttributes3.stree.txt | 26 - ...formedTagHelpersWithAttributes3.tspans.txt | 1 - ...formedTagHelpersWithAttributes4.cspans.txt | 2 - ...alformedTagHelpersWithAttributes4.diag.txt | 2 - ...lformedTagHelpersWithAttributes4.stree.txt | 27 - ...formedTagHelpersWithAttributes4.tspans.txt | 1 - ...formedTagHelpersWithAttributes5.cspans.txt | 1 - ...alformedTagHelpersWithAttributes5.diag.txt | 3 - ...lformedTagHelpersWithAttributes5.stree.txt | 20 - ...formedTagHelpersWithAttributes5.tspans.txt | 1 - ...formedTagHelpersWithAttributes6.cspans.txt | 1 - ...alformedTagHelpersWithAttributes6.diag.txt | 2 - ...lformedTagHelpersWithAttributes6.stree.txt | 20 - ...formedTagHelpersWithAttributes6.tspans.txt | 1 - ...formedTagHelpersWithAttributes7.cspans.txt | 2 - ...alformedTagHelpersWithAttributes7.diag.txt | 2 - ...lformedTagHelpersWithAttributes7.stree.txt | 29 - ...formedTagHelpersWithAttributes7.tspans.txt | 1 - ...formedTagHelpersWithAttributes8.cspans.txt | 0 ...alformedTagHelpersWithAttributes8.diag.txt | 3 - ...lformedTagHelpersWithAttributes8.stree.txt | 22 - ...formedTagHelpersWithAttributes8.tspans.txt | 2 - ...formedTagHelpersWithAttributes9.cspans.txt | 1 - ...alformedTagHelpersWithAttributes9.diag.txt | 3 - ...lformedTagHelpersWithAttributes9.stree.txt | 25 - ...formedTagHelpersWithAttributes9.tspans.txt | 1 - ...orNonStringTagHelperAttributes1.cspans.txt | 1 - ...ForNonStringTagHelperAttributes1.stree.txt | 24 - ...orNonStringTagHelperAttributes1.tspans.txt | 1 - ...rNonStringTagHelperAttributes10.cspans.txt | 5 - ...orNonStringTagHelperAttributes10.stree.txt | 55 - ...rNonStringTagHelperAttributes10.tspans.txt | 1 - ...rNonStringTagHelperAttributes11.cspans.txt | 12 - ...orNonStringTagHelperAttributes11.stree.txt | 85 - ...rNonStringTagHelperAttributes11.tspans.txt | 1 - ...rNonStringTagHelperAttributes12.cspans.txt | 4 - ...orNonStringTagHelperAttributes12.stree.txt | 47 - ...rNonStringTagHelperAttributes12.tspans.txt | 1 - ...orNonStringTagHelperAttributes2.cspans.txt | 1 - ...ForNonStringTagHelperAttributes2.stree.txt | 24 - ...orNonStringTagHelperAttributes2.tspans.txt | 1 - ...orNonStringTagHelperAttributes3.cspans.txt | 2 - ...ForNonStringTagHelperAttributes3.stree.txt | 35 - ...orNonStringTagHelperAttributes3.tspans.txt | 1 - ...orNonStringTagHelperAttributes4.cspans.txt | 3 - ...ForNonStringTagHelperAttributes4.stree.txt | 39 - ...orNonStringTagHelperAttributes4.tspans.txt | 1 - ...orNonStringTagHelperAttributes5.cspans.txt | 1 - ...ForNonStringTagHelperAttributes5.stree.txt | 24 - ...orNonStringTagHelperAttributes5.tspans.txt | 1 - ...orNonStringTagHelperAttributes6.cspans.txt | 4 - ...ForNonStringTagHelperAttributes6.stree.txt | 37 - ...orNonStringTagHelperAttributes6.tspans.txt | 1 - ...orNonStringTagHelperAttributes7.cspans.txt | 18 - ...ForNonStringTagHelperAttributes7.stree.txt | 99 - ...orNonStringTagHelperAttributes7.tspans.txt | 1 - ...orNonStringTagHelperAttributes8.cspans.txt | 6 - ...ForNonStringTagHelperAttributes8.stree.txt | 63 - ...orNonStringTagHelperAttributes8.tspans.txt | 1 - ...orNonStringTagHelperAttributes9.cspans.txt | 8 - ...ForNonStringTagHelperAttributes9.stree.txt | 69 - ...orNonStringTagHelperAttributes9.tspans.txt | 1 - ...MinimizedBooleanBoundAttributes.cspans.txt | 0 ...orMinimizedBooleanBoundAttributes.diag.txt | 2 - ...rMinimizedBooleanBoundAttributes.stree.txt | 21 - ...MinimizedBooleanBoundAttributes.tspans.txt | 1 - ...nboundDataDashAttributes_Block1.cspans.txt | 8 - ...UnboundDataDashAttributes_Block1.stree.txt | 49 - ...nboundDataDashAttributes_Block1.tspans.txt | 1 - ...nboundDataDashAttributes_Block2.cspans.txt | 7 - ...UnboundDataDashAttributes_Block2.stree.txt | 41 - ...nboundDataDashAttributes_Block2.tspans.txt | 1 - ...nboundDataDashAttributes_Block3.cspans.txt | 9 - ...UnboundDataDashAttributes_Block3.stree.txt | 52 - ...nboundDataDashAttributes_Block3.tspans.txt | 1 - ...nboundDataDashAttributes_Block4.cspans.txt | 9 - ...UnboundDataDashAttributes_Block4.stree.txt | 52 - ...nboundDataDashAttributes_Block4.tspans.txt | 1 - ...nboundDataDashAttributes_Block5.cspans.txt | 10 - ...UnboundDataDashAttributes_Block5.stree.txt | 55 - ...nboundDataDashAttributes_Block5.tspans.txt | 1 - ...nboundDataDashAttributes_Block6.cspans.txt | 10 - ...UnboundDataDashAttributes_Block6.stree.txt | 65 - ...nboundDataDashAttributes_Block6.tspans.txt | 1 - ...nboundDataDashAttributes_Block7.cspans.txt | 11 - ...UnboundDataDashAttributes_Block7.stree.txt | 63 - ...nboundDataDashAttributes_Block7.tspans.txt | 1 - ...undDataDashAttributes_Document1.cspans.txt | 2 - ...oundDataDashAttributes_Document1.stree.txt | 32 - ...undDataDashAttributes_Document1.tspans.txt | 1 - ...undDataDashAttributes_Document2.cspans.txt | 1 - ...oundDataDashAttributes_Document2.stree.txt | 24 - ...undDataDashAttributes_Document2.tspans.txt | 1 - ...undDataDashAttributes_Document3.cspans.txt | 3 - ...oundDataDashAttributes_Document3.stree.txt | 35 - ...undDataDashAttributes_Document3.tspans.txt | 1 - ...undDataDashAttributes_Document4.cspans.txt | 3 - ...oundDataDashAttributes_Document4.stree.txt | 35 - ...undDataDashAttributes_Document4.tspans.txt | 1 - ...undDataDashAttributes_Document5.cspans.txt | 4 - ...oundDataDashAttributes_Document5.stree.txt | 38 - ...undDataDashAttributes_Document5.tspans.txt | 1 - ...undDataDashAttributes_Document6.cspans.txt | 4 - ...oundDataDashAttributes_Document6.stree.txt | 48 - ...undDataDashAttributes_Document6.tspans.txt | 1 - ...undDataDashAttributes_Document7.cspans.txt | 5 - ...oundDataDashAttributes_Document7.stree.txt | 46 - ...undDataDashAttributes_Document7.tspans.txt | 1 - ...es_ComponentDirectiveAttributes.cspans.txt | 5 - ...tes_ComponentDirectiveAttributes.stree.txt | 45 - ...es_ComponentDirectiveAttributes.tspans.txt | 1 - ...zedComponentDirectiveAttributes.cspans.txt | 3 - ...mizedComponentDirectiveAttributes.diag.txt | 2 - ...izedComponentDirectiveAttributes.stree.txt | 29 - ...zedComponentDirectiveAttributes.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml1.cspans.txt | 3 - ...eTreeRewriter_AllowsInvalidHtml1.stree.txt | 25 - ...TreeRewriter_AllowsInvalidHtml1.tspans.txt | 1 - ...reeRewriter_AllowsInvalidHtml10.cspans.txt | 8 - ...TreeRewriter_AllowsInvalidHtml10.stree.txt | 53 - ...reeRewriter_AllowsInvalidHtml10.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml2.cspans.txt | 1 - ...eTreeRewriter_AllowsInvalidHtml2.stree.txt | 16 - ...TreeRewriter_AllowsInvalidHtml2.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml3.cspans.txt | 3 - ...eTreeRewriter_AllowsInvalidHtml3.stree.txt | 16 - ...TreeRewriter_AllowsInvalidHtml4.cspans.txt | 1 - ...eTreeRewriter_AllowsInvalidHtml4.stree.txt | 19 - ...TreeRewriter_AllowsInvalidHtml4.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml5.cspans.txt | 5 - ...eTreeRewriter_AllowsInvalidHtml5.stree.txt | 33 - ...TreeRewriter_AllowsInvalidHtml5.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml6.cspans.txt | 4 - ...eTreeRewriter_AllowsInvalidHtml6.stree.txt | 28 - ...TreeRewriter_AllowsInvalidHtml6.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml7.cspans.txt | 5 - ...eTreeRewriter_AllowsInvalidHtml7.stree.txt | 33 - ...TreeRewriter_AllowsInvalidHtml7.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml8.cspans.txt | 7 - ...eTreeRewriter_AllowsInvalidHtml8.stree.txt | 43 - ...TreeRewriter_AllowsInvalidHtml8.tspans.txt | 1 - ...TreeRewriter_AllowsInvalidHtml9.cspans.txt | 8 - ...eTreeRewriter_AllowsInvalidHtml9.stree.txt | 59 - ...TreeRewriter_AllowsInvalidHtml9.tspans.txt | 1 - ...tesErrorForIncompleteTagHelper1.cspans.txt | 5 - ...eatesErrorForIncompleteTagHelper1.diag.txt | 2 - ...atesErrorForIncompleteTagHelper1.stree.txt | 62 - ...tesErrorForIncompleteTagHelper1.tspans.txt | 2 - ...tesErrorForIncompleteTagHelper2.cspans.txt | 4 - ...eatesErrorForIncompleteTagHelper2.diag.txt | 1 - ...atesErrorForIncompleteTagHelper2.stree.txt | 32 - ...tesErrorForIncompleteTagHelper2.tspans.txt | 2 - ...tesErrorForIncompleteTagHelper3.cspans.txt | 4 - ...eatesErrorForIncompleteTagHelper3.diag.txt | 2 - ...atesErrorForIncompleteTagHelper3.stree.txt | 27 - ...tesErrorForIncompleteTagHelper3.tspans.txt | 2 - ...tesErrorForIncompleteTagHelper4.cspans.txt | 4 - ...eatesErrorForIncompleteTagHelper4.diag.txt | 1 - ...atesErrorForIncompleteTagHelper4.stree.txt | 50 - ...tesErrorForIncompleteTagHelper4.tspans.txt | 2 - ...lexAttributeTagHelperTagBlocks1.cspans.txt | 4 - ...plexAttributeTagHelperTagBlocks1.stree.txt | 58 - ...lexAttributeTagHelperTagBlocks1.tspans.txt | 1 - ...lexAttributeTagHelperTagBlocks2.cspans.txt | 12 - ...plexAttributeTagHelperTagBlocks2.stree.txt | 132 - ...lexAttributeTagHelperTagBlocks2.tspans.txt | 1 - ...lexAttributeTagHelperTagBlocks3.cspans.txt | 5 - ...plexAttributeTagHelperTagBlocks3.stree.txt | 62 - ...lexAttributeTagHelperTagBlocks3.tspans.txt | 1 - ...lexAttributeTagHelperTagBlocks4.cspans.txt | 13 - ...plexAttributeTagHelperTagBlocks4.stree.txt | 136 - ...lexAttributeTagHelperTagBlocks4.tspans.txt | 1 - ...lexAttributeTagHelperTagBlocks5.cspans.txt | 7 - ...plexAttributeTagHelperTagBlocks5.stree.txt | 74 - ...lexAttributeTagHelperTagBlocks5.tspans.txt | 2 - ...lexAttributeTagHelperTagBlocks6.cspans.txt | 15 - ...plexAttributeTagHelperTagBlocks6.stree.txt | 148 - ...lexAttributeTagHelperTagBlocks6.tspans.txt | 2 - ...lexAttributeTagHelperTagBlocks7.cspans.txt | 13 - ...plexAttributeTagHelperTagBlocks7.stree.txt | 104 - ...lexAttributeTagHelperTagBlocks7.tspans.txt | 1 - ...ritesComplexTagHelperTagBlocks1.cspans.txt | 2 - ...writesComplexTagHelperTagBlocks1.stree.txt | 22 - ...ritesComplexTagHelperTagBlocks1.tspans.txt | 1 - ...ritesComplexTagHelperTagBlocks2.cspans.txt | 6 - ...writesComplexTagHelperTagBlocks2.stree.txt | 61 - ...ritesComplexTagHelperTagBlocks2.tspans.txt | 2 - ...ritesComplexTagHelperTagBlocks3.cspans.txt | 3 - ...writesComplexTagHelperTagBlocks3.stree.txt | 27 - ...ritesComplexTagHelperTagBlocks3.tspans.txt | 1 - ...ritesComplexTagHelperTagBlocks4.cspans.txt | 7 - ...writesComplexTagHelperTagBlocks4.stree.txt | 66 - ...ritesComplexTagHelperTagBlocks4.tspans.txt | 2 - ...ritesComplexTagHelperTagBlocks5.cspans.txt | 5 - ...writesComplexTagHelperTagBlocks5.stree.txt | 44 - ...ritesComplexTagHelperTagBlocks5.tspans.txt | 2 - ...ritesComplexTagHelperTagBlocks6.cspans.txt | 13 - ...writesComplexTagHelperTagBlocks6.stree.txt | 122 - ...ritesComplexTagHelperTagBlocks6.tspans.txt | 4 - ...ritesComplexTagHelperTagBlocks7.cspans.txt | 9 - ...writesComplexTagHelperTagBlocks7.stree.txt | 55 - ...ritesComplexTagHelperTagBlocks7.tspans.txt | 1 - ...ritesComplexTagHelperTagBlocks8.cspans.txt | 17 - ...writesComplexTagHelperTagBlocks8.stree.txt | 133 - ...ritesComplexTagHelperTagBlocks8.tspans.txt | 3 - ...sOddlySpacedTagHelperTagBlocks1.cspans.txt | 6 - ...esOddlySpacedTagHelperTagBlocks1.stree.txt | 65 - ...sOddlySpacedTagHelperTagBlocks1.tspans.txt | 1 - ...sOddlySpacedTagHelperTagBlocks2.cspans.txt | 7 - ...esOddlySpacedTagHelperTagBlocks2.stree.txt | 69 - ...sOddlySpacedTagHelperTagBlocks2.tspans.txt | 1 - ...sOddlySpacedTagHelperTagBlocks3.cspans.txt | 7 - ...esOddlySpacedTagHelperTagBlocks3.stree.txt | 72 - ...sOddlySpacedTagHelperTagBlocks3.tspans.txt | 2 - ...ewritesPlainTagHelperTagBlocks1.cspans.txt | 0 ...RewritesPlainTagHelperTagBlocks1.stree.txt | 12 - ...ewritesPlainTagHelperTagBlocks1.tspans.txt | 1 - ...ewritesPlainTagHelperTagBlocks2.cspans.txt | 1 - ...RewritesPlainTagHelperTagBlocks2.stree.txt | 16 - ...ewritesPlainTagHelperTagBlocks2.tspans.txt | 1 - ...ewritesPlainTagHelperTagBlocks3.cspans.txt | 3 - ...RewritesPlainTagHelperTagBlocks3.stree.txt | 28 - ...ewritesPlainTagHelperTagBlocks3.tspans.txt | 2 - ...ewritesPlainTagHelperTagBlocks4.cspans.txt | 4 - ...RewritesPlainTagHelperTagBlocks4.stree.txt | 35 - ...ewritesPlainTagHelperTagBlocks4.tspans.txt | 1 - ...riter_RewritesScriptTagHelpers1.cspans.txt | 1 - ...writer_RewritesScriptTagHelpers1.stree.txt | 20 - ...riter_RewritesScriptTagHelpers1.tspans.txt | 1 - ...riter_RewritesScriptTagHelpers2.cspans.txt | 1 - ...writer_RewritesScriptTagHelpers2.stree.txt | 24 - ...riter_RewritesScriptTagHelpers2.tspans.txt | 1 - ...riter_RewritesScriptTagHelpers3.cspans.txt | 3 - ...writer_RewritesScriptTagHelpers3.stree.txt | 46 - ...riter_RewritesScriptTagHelpers3.tspans.txt | 3 - ...riter_RewritesScriptTagHelpers4.cspans.txt | 3 - ...writer_RewritesScriptTagHelpers4.stree.txt | 43 - ...riter_RewritesScriptTagHelpers4.tspans.txt | 2 - ...riter_RewritesScriptTagHelpers5.cspans.txt | 2 - ...writer_RewritesScriptTagHelpers5.stree.txt | 39 - ...riter_RewritesScriptTagHelpers5.tspans.txt | 1 - ...riter_RewritesScriptTagHelpers6.cspans.txt | 4 - ...writer_RewritesScriptTagHelpers6.stree.txt | 56 - ...riter_RewritesScriptTagHelpers6.tspans.txt | 2 - ...riter_RewritesScriptTagHelpers7.cspans.txt | 6 - ...writer_RewritesScriptTagHelpers7.stree.txt | 61 - ...riter_RewritesScriptTagHelpers7.tspans.txt | 2 - ..._RewritesSelfClosingTagHelpers1.cspans.txt | 2 - ...r_RewritesSelfClosingTagHelpers1.stree.txt | 39 - ..._RewritesSelfClosingTagHelpers1.tspans.txt | 1 - ..._RewritesSelfClosingTagHelpers2.cspans.txt | 4 - ...r_RewritesSelfClosingTagHelpers2.stree.txt | 55 - ..._RewritesSelfClosingTagHelpers2.tspans.txt | 2 - ..._RewritesSelfClosingTagHelpers3.cspans.txt | 5 - ...r_RewritesSelfClosingTagHelpers3.stree.txt | 54 - ..._RewritesSelfClosingTagHelpers3.tspans.txt | 2 - ...sTagHelpersWithPlainAttributes1.cspans.txt | 2 - ...esTagHelpersWithPlainAttributes1.stree.txt | 40 - ...sTagHelpersWithPlainAttributes1.tspans.txt | 1 - ...sTagHelpersWithPlainAttributes2.cspans.txt | 3 - ...esTagHelpersWithPlainAttributes2.stree.txt | 44 - ...sTagHelpersWithPlainAttributes2.tspans.txt | 1 - ...sTagHelpersWithPlainAttributes3.cspans.txt | 5 - ...esTagHelpersWithPlainAttributes3.stree.txt | 56 - ...sTagHelpersWithPlainAttributes3.tspans.txt | 2 - ...sTagHelpersWithPlainAttributes4.cspans.txt | 10 - ...esTagHelpersWithPlainAttributes4.stree.txt | 77 - ...sTagHelpersWithPlainAttributes4.tspans.txt | 1 - ...HelpersWithQuotelessAttributes1.cspans.txt | 4 - ...gHelpersWithQuotelessAttributes1.stree.txt | 51 - ...HelpersWithQuotelessAttributes1.tspans.txt | 1 - ...HelpersWithQuotelessAttributes2.cspans.txt | 5 - ...gHelpersWithQuotelessAttributes2.stree.txt | 55 - ...HelpersWithQuotelessAttributes2.tspans.txt | 1 - ...HelpersWithQuotelessAttributes3.cspans.txt | 8 - ...gHelpersWithQuotelessAttributes3.stree.txt | 63 - ...HelpersWithQuotelessAttributes3.tspans.txt | 1 - ...HelpersWithQuotelessAttributes4.cspans.txt | 9 - ...gHelpersWithQuotelessAttributes4.stree.txt | 86 - ...HelpersWithQuotelessAttributes4.tspans.txt | 2 - ...HelpersWithQuotelessAttributes5.cspans.txt | 12 - ...gHelpersWithQuotelessAttributes5.stree.txt | 88 - ...HelpersWithQuotelessAttributes5.tspans.txt | 1 - ...standsEmptyAttributeTagHelpers1.cspans.txt | 1 - ...rstandsEmptyAttributeTagHelpers1.stree.txt | 24 - ...standsEmptyAttributeTagHelpers1.tspans.txt | 1 - ...standsEmptyAttributeTagHelpers2.cspans.txt | 1 - ...rstandsEmptyAttributeTagHelpers2.stree.txt | 24 - ...standsEmptyAttributeTagHelpers2.tspans.txt | 1 - ...standsEmptyAttributeTagHelpers3.cspans.txt | 1 - ...rstandsEmptyAttributeTagHelpers3.stree.txt | 20 - ...standsEmptyAttributeTagHelpers3.tspans.txt | 1 - ...standsEmptyAttributeTagHelpers4.cspans.txt | 3 - ...rstandsEmptyAttributeTagHelpers4.stree.txt | 43 - ...standsEmptyAttributeTagHelpers4.tspans.txt | 1 - ...standsEmptyAttributeTagHelpers5.cspans.txt | 3 - ...rstandsEmptyAttributeTagHelpers5.stree.txt | 39 - ...standsEmptyAttributeTagHelpers5.tspans.txt | 1 - ...tandsMinimizedAttributes_Block1.cspans.txt | 6 - ...standsMinimizedAttributes_Block1.stree.txt | 33 - ...tandsMinimizedAttributes_Block1.tspans.txt | 1 - ...andsMinimizedAttributes_Block10.cspans.txt | 6 - ...standsMinimizedAttributes_Block10.diag.txt | 1 - ...tandsMinimizedAttributes_Block10.stree.txt | 30 - ...andsMinimizedAttributes_Block10.tspans.txt | 1 - ...andsMinimizedAttributes_Block11.cspans.txt | 6 - ...standsMinimizedAttributes_Block11.diag.txt | 1 - ...tandsMinimizedAttributes_Block11.stree.txt | 33 - ...andsMinimizedAttributes_Block11.tspans.txt | 1 - ...andsMinimizedAttributes_Block12.cspans.txt | 7 - ...standsMinimizedAttributes_Block12.diag.txt | 1 - ...tandsMinimizedAttributes_Block12.stree.txt | 40 - ...andsMinimizedAttributes_Block12.tspans.txt | 1 - ...andsMinimizedAttributes_Block13.cspans.txt | 7 - ...tandsMinimizedAttributes_Block13.stree.txt | 37 - ...andsMinimizedAttributes_Block13.tspans.txt | 1 - ...andsMinimizedAttributes_Block14.cspans.txt | 7 - ...tandsMinimizedAttributes_Block14.stree.txt | 38 - ...andsMinimizedAttributes_Block14.tspans.txt | 1 - ...andsMinimizedAttributes_Block15.cspans.txt | 8 - ...tandsMinimizedAttributes_Block15.stree.txt | 44 - ...andsMinimizedAttributes_Block15.tspans.txt | 1 - ...andsMinimizedAttributes_Block16.cspans.txt | 6 - ...standsMinimizedAttributes_Block16.diag.txt | 1 - ...tandsMinimizedAttributes_Block16.stree.txt | 38 - ...andsMinimizedAttributes_Block16.tspans.txt | 1 - ...andsMinimizedAttributes_Block17.cspans.txt | 6 - ...standsMinimizedAttributes_Block17.diag.txt | 2 - ...tandsMinimizedAttributes_Block17.stree.txt | 39 - ...andsMinimizedAttributes_Block17.tspans.txt | 1 - ...andsMinimizedAttributes_Block18.cspans.txt | 6 - ...standsMinimizedAttributes_Block18.diag.txt | 2 - ...tandsMinimizedAttributes_Block18.stree.txt | 43 - ...andsMinimizedAttributes_Block18.tspans.txt | 1 - ...andsMinimizedAttributes_Block19.cspans.txt | 6 - ...standsMinimizedAttributes_Block19.diag.txt | 3 - ...tandsMinimizedAttributes_Block19.stree.txt | 44 - ...andsMinimizedAttributes_Block19.tspans.txt | 1 - ...tandsMinimizedAttributes_Block2.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block2.diag.txt | 1 - ...standsMinimizedAttributes_Block2.stree.txt | 34 - ...tandsMinimizedAttributes_Block2.tspans.txt | 1 - ...andsMinimizedAttributes_Block20.cspans.txt | 7 - ...tandsMinimizedAttributes_Block20.stree.txt | 47 - ...andsMinimizedAttributes_Block20.tspans.txt | 1 - ...andsMinimizedAttributes_Block21.cspans.txt | 7 - ...standsMinimizedAttributes_Block21.diag.txt | 1 - ...tandsMinimizedAttributes_Block21.stree.txt | 48 - ...andsMinimizedAttributes_Block21.tspans.txt | 1 - ...andsMinimizedAttributes_Block22.cspans.txt | 7 - ...tandsMinimizedAttributes_Block22.stree.txt | 47 - ...andsMinimizedAttributes_Block22.tspans.txt | 1 - ...andsMinimizedAttributes_Block23.cspans.txt | 7 - ...standsMinimizedAttributes_Block23.diag.txt | 1 - ...tandsMinimizedAttributes_Block23.stree.txt | 48 - ...andsMinimizedAttributes_Block23.tspans.txt | 1 - ...andsMinimizedAttributes_Block24.cspans.txt | 7 - ...standsMinimizedAttributes_Block24.diag.txt | 1 - ...tandsMinimizedAttributes_Block24.stree.txt | 47 - ...andsMinimizedAttributes_Block24.tspans.txt | 1 - ...andsMinimizedAttributes_Block25.cspans.txt | 7 - ...standsMinimizedAttributes_Block25.diag.txt | 1 - ...tandsMinimizedAttributes_Block25.stree.txt | 47 - ...andsMinimizedAttributes_Block25.tspans.txt | 1 - ...andsMinimizedAttributes_Block26.cspans.txt | 7 - ...standsMinimizedAttributes_Block26.diag.txt | 1 - ...tandsMinimizedAttributes_Block26.stree.txt | 47 - ...andsMinimizedAttributes_Block26.tspans.txt | 1 - ...andsMinimizedAttributes_Block27.cspans.txt | 7 - ...standsMinimizedAttributes_Block27.diag.txt | 1 - ...tandsMinimizedAttributes_Block27.stree.txt | 48 - ...andsMinimizedAttributes_Block27.tspans.txt | 1 - ...andsMinimizedAttributes_Block28.cspans.txt | 7 - ...standsMinimizedAttributes_Block28.diag.txt | 1 - ...tandsMinimizedAttributes_Block28.stree.txt | 47 - ...andsMinimizedAttributes_Block28.tspans.txt | 1 - ...andsMinimizedAttributes_Block29.cspans.txt | 7 - ...standsMinimizedAttributes_Block29.diag.txt | 1 - ...tandsMinimizedAttributes_Block29.stree.txt | 48 - ...andsMinimizedAttributes_Block29.tspans.txt | 1 - ...tandsMinimizedAttributes_Block3.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block3.diag.txt | 1 - ...standsMinimizedAttributes_Block3.stree.txt | 33 - ...tandsMinimizedAttributes_Block3.tspans.txt | 1 - ...andsMinimizedAttributes_Block30.cspans.txt | 10 - ...standsMinimizedAttributes_Block30.diag.txt | 1 - ...tandsMinimizedAttributes_Block30.stree.txt | 66 - ...andsMinimizedAttributes_Block30.tspans.txt | 1 - ...andsMinimizedAttributes_Block31.cspans.txt | 10 - ...standsMinimizedAttributes_Block31.diag.txt | 1 - ...tandsMinimizedAttributes_Block31.stree.txt | 67 - ...andsMinimizedAttributes_Block31.tspans.txt | 1 - ...andsMinimizedAttributes_Block32.cspans.txt | 14 - ...standsMinimizedAttributes_Block32.diag.txt | 2 - ...tandsMinimizedAttributes_Block32.stree.txt | 109 - ...andsMinimizedAttributes_Block32.tspans.txt | 1 - ...andsMinimizedAttributes_Block33.cspans.txt | 14 - ...standsMinimizedAttributes_Block33.diag.txt | 3 - ...tandsMinimizedAttributes_Block33.stree.txt | 110 - ...andsMinimizedAttributes_Block33.tspans.txt | 1 - ...tandsMinimizedAttributes_Block4.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block4.diag.txt | 1 - ...standsMinimizedAttributes_Block4.stree.txt | 33 - ...tandsMinimizedAttributes_Block4.tspans.txt | 1 - ...tandsMinimizedAttributes_Block5.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block5.diag.txt | 1 - ...standsMinimizedAttributes_Block5.stree.txt | 34 - ...tandsMinimizedAttributes_Block5.tspans.txt | 1 - ...tandsMinimizedAttributes_Block6.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block6.diag.txt | 1 - ...standsMinimizedAttributes_Block6.stree.txt | 30 - ...tandsMinimizedAttributes_Block6.tspans.txt | 1 - ...tandsMinimizedAttributes_Block7.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block7.diag.txt | 1 - ...standsMinimizedAttributes_Block7.stree.txt | 33 - ...tandsMinimizedAttributes_Block7.tspans.txt | 1 - ...tandsMinimizedAttributes_Block8.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block8.diag.txt | 2 - ...standsMinimizedAttributes_Block8.stree.txt | 33 - ...tandsMinimizedAttributes_Block8.tspans.txt | 1 - ...tandsMinimizedAttributes_Block9.cspans.txt | 6 - ...rstandsMinimizedAttributes_Block9.diag.txt | 2 - ...standsMinimizedAttributes_Block9.stree.txt | 30 - ...tandsMinimizedAttributes_Block9.tspans.txt | 1 - ...dsMinimizedAttributes_Document1.cspans.txt | 0 ...ndsMinimizedAttributes_Document1.stree.txt | 16 - ...dsMinimizedAttributes_Document1.tspans.txt | 1 - ...sMinimizedAttributes_Document10.cspans.txt | 0 ...ndsMinimizedAttributes_Document10.diag.txt | 1 - ...dsMinimizedAttributes_Document10.stree.txt | 13 - ...sMinimizedAttributes_Document10.tspans.txt | 1 - ...sMinimizedAttributes_Document11.cspans.txt | 0 ...ndsMinimizedAttributes_Document11.diag.txt | 1 - ...dsMinimizedAttributes_Document11.stree.txt | 16 - ...sMinimizedAttributes_Document11.tspans.txt | 1 - ...sMinimizedAttributes_Document12.cspans.txt | 1 - ...ndsMinimizedAttributes_Document12.diag.txt | 1 - ...dsMinimizedAttributes_Document12.stree.txt | 23 - ...sMinimizedAttributes_Document12.tspans.txt | 1 - ...sMinimizedAttributes_Document13.cspans.txt | 1 - ...dsMinimizedAttributes_Document13.stree.txt | 20 - ...sMinimizedAttributes_Document13.tspans.txt | 1 - ...sMinimizedAttributes_Document14.cspans.txt | 1 - ...dsMinimizedAttributes_Document14.stree.txt | 21 - ...sMinimizedAttributes_Document14.tspans.txt | 1 - ...sMinimizedAttributes_Document15.cspans.txt | 2 - ...dsMinimizedAttributes_Document15.stree.txt | 27 - ...sMinimizedAttributes_Document15.tspans.txt | 1 - ...sMinimizedAttributes_Document16.cspans.txt | 0 ...ndsMinimizedAttributes_Document16.diag.txt | 1 - ...dsMinimizedAttributes_Document16.stree.txt | 21 - ...sMinimizedAttributes_Document16.tspans.txt | 1 - ...sMinimizedAttributes_Document17.cspans.txt | 0 ...ndsMinimizedAttributes_Document17.diag.txt | 2 - ...dsMinimizedAttributes_Document17.stree.txt | 22 - ...sMinimizedAttributes_Document17.tspans.txt | 1 - ...sMinimizedAttributes_Document18.cspans.txt | 0 ...ndsMinimizedAttributes_Document18.diag.txt | 2 - ...dsMinimizedAttributes_Document18.stree.txt | 26 - ...sMinimizedAttributes_Document18.tspans.txt | 1 - ...sMinimizedAttributes_Document19.cspans.txt | 0 ...ndsMinimizedAttributes_Document19.diag.txt | 3 - ...dsMinimizedAttributes_Document19.stree.txt | 27 - ...sMinimizedAttributes_Document19.tspans.txt | 1 - ...dsMinimizedAttributes_Document2.cspans.txt | 0 ...andsMinimizedAttributes_Document2.diag.txt | 1 - ...ndsMinimizedAttributes_Document2.stree.txt | 17 - ...dsMinimizedAttributes_Document2.tspans.txt | 1 - ...sMinimizedAttributes_Document20.cspans.txt | 1 - ...dsMinimizedAttributes_Document20.stree.txt | 30 - ...sMinimizedAttributes_Document20.tspans.txt | 1 - ...sMinimizedAttributes_Document21.cspans.txt | 1 - ...ndsMinimizedAttributes_Document21.diag.txt | 1 - ...dsMinimizedAttributes_Document21.stree.txt | 31 - ...sMinimizedAttributes_Document21.tspans.txt | 1 - ...sMinimizedAttributes_Document22.cspans.txt | 1 - ...dsMinimizedAttributes_Document22.stree.txt | 30 - ...sMinimizedAttributes_Document22.tspans.txt | 1 - ...sMinimizedAttributes_Document23.cspans.txt | 1 - ...ndsMinimizedAttributes_Document23.diag.txt | 1 - ...dsMinimizedAttributes_Document23.stree.txt | 31 - ...sMinimizedAttributes_Document23.tspans.txt | 1 - ...sMinimizedAttributes_Document24.cspans.txt | 1 - ...ndsMinimizedAttributes_Document24.diag.txt | 1 - ...dsMinimizedAttributes_Document24.stree.txt | 30 - ...sMinimizedAttributes_Document24.tspans.txt | 1 - ...sMinimizedAttributes_Document25.cspans.txt | 1 - ...ndsMinimizedAttributes_Document25.diag.txt | 1 - ...dsMinimizedAttributes_Document25.stree.txt | 30 - ...sMinimizedAttributes_Document25.tspans.txt | 1 - ...sMinimizedAttributes_Document26.cspans.txt | 1 - ...ndsMinimizedAttributes_Document26.diag.txt | 1 - ...dsMinimizedAttributes_Document26.stree.txt | 30 - ...sMinimizedAttributes_Document26.tspans.txt | 1 - ...sMinimizedAttributes_Document27.cspans.txt | 1 - ...ndsMinimizedAttributes_Document27.diag.txt | 1 - ...dsMinimizedAttributes_Document27.stree.txt | 31 - ...sMinimizedAttributes_Document27.tspans.txt | 1 - ...sMinimizedAttributes_Document28.cspans.txt | 1 - ...ndsMinimizedAttributes_Document28.diag.txt | 1 - ...dsMinimizedAttributes_Document28.stree.txt | 30 - ...sMinimizedAttributes_Document28.tspans.txt | 1 - ...sMinimizedAttributes_Document29.cspans.txt | 1 - ...ndsMinimizedAttributes_Document29.diag.txt | 1 - ...dsMinimizedAttributes_Document29.stree.txt | 31 - ...sMinimizedAttributes_Document29.tspans.txt | 1 - ...dsMinimizedAttributes_Document3.cspans.txt | 0 ...andsMinimizedAttributes_Document3.diag.txt | 1 - ...ndsMinimizedAttributes_Document3.stree.txt | 16 - ...dsMinimizedAttributes_Document3.tspans.txt | 1 - ...sMinimizedAttributes_Document30.cspans.txt | 4 - ...ndsMinimizedAttributes_Document30.diag.txt | 1 - ...dsMinimizedAttributes_Document30.stree.txt | 49 - ...sMinimizedAttributes_Document30.tspans.txt | 1 - ...sMinimizedAttributes_Document31.cspans.txt | 4 - ...ndsMinimizedAttributes_Document31.diag.txt | 1 - ...dsMinimizedAttributes_Document31.stree.txt | 50 - ...sMinimizedAttributes_Document31.tspans.txt | 1 - ...sMinimizedAttributes_Document32.cspans.txt | 8 - ...ndsMinimizedAttributes_Document32.diag.txt | 2 - ...dsMinimizedAttributes_Document32.stree.txt | 92 - ...sMinimizedAttributes_Document32.tspans.txt | 1 - ...sMinimizedAttributes_Document33.cspans.txt | 8 - ...ndsMinimizedAttributes_Document33.diag.txt | 3 - ...dsMinimizedAttributes_Document33.stree.txt | 93 - ...sMinimizedAttributes_Document33.tspans.txt | 1 - ...dsMinimizedAttributes_Document4.cspans.txt | 0 ...andsMinimizedAttributes_Document4.diag.txt | 1 - ...ndsMinimizedAttributes_Document4.stree.txt | 16 - ...dsMinimizedAttributes_Document4.tspans.txt | 1 - ...dsMinimizedAttributes_Document5.cspans.txt | 0 ...andsMinimizedAttributes_Document5.diag.txt | 1 - ...ndsMinimizedAttributes_Document5.stree.txt | 17 - ...dsMinimizedAttributes_Document5.tspans.txt | 1 - ...dsMinimizedAttributes_Document6.cspans.txt | 0 ...andsMinimizedAttributes_Document6.diag.txt | 1 - ...ndsMinimizedAttributes_Document6.stree.txt | 13 - ...dsMinimizedAttributes_Document6.tspans.txt | 1 - ...dsMinimizedAttributes_Document7.cspans.txt | 0 ...andsMinimizedAttributes_Document7.diag.txt | 1 - ...ndsMinimizedAttributes_Document7.stree.txt | 16 - ...dsMinimizedAttributes_Document7.tspans.txt | 1 - ...dsMinimizedAttributes_Document8.cspans.txt | 0 ...andsMinimizedAttributes_Document8.diag.txt | 2 - ...ndsMinimizedAttributes_Document8.stree.txt | 16 - ...dsMinimizedAttributes_Document8.tspans.txt | 1 - ...dsMinimizedAttributes_Document9.cspans.txt | 0 ...andsMinimizedAttributes_Document9.diag.txt | 2 - ...ndsMinimizedAttributes_Document9.stree.txt | 13 - ...dsMinimizedAttributes_Document9.tspans.txt | 1 - ...inimizedAttributes_PartialTags1.cspans.txt | 0 ...sMinimizedAttributes_PartialTags1.diag.txt | 2 - ...MinimizedAttributes_PartialTags1.stree.txt | 12 - ...inimizedAttributes_PartialTags1.tspans.txt | 1 - ...inimizedAttributes_PartialTags2.cspans.txt | 0 ...sMinimizedAttributes_PartialTags2.diag.txt | 3 - ...MinimizedAttributes_PartialTags2.stree.txt | 12 - ...inimizedAttributes_PartialTags2.tspans.txt | 1 - ...inimizedAttributes_PartialTags3.cspans.txt | 0 ...sMinimizedAttributes_PartialTags3.diag.txt | 3 - ...MinimizedAttributes_PartialTags3.stree.txt | 12 - ...inimizedAttributes_PartialTags3.tspans.txt | 1 - ...inimizedAttributes_PartialTags4.cspans.txt | 0 ...sMinimizedAttributes_PartialTags4.diag.txt | 4 - ...MinimizedAttributes_PartialTags4.stree.txt | 22 - ...inimizedAttributes_PartialTags4.tspans.txt | 1 - ...inimizedAttributes_PartialTags5.cspans.txt | 0 ...sMinimizedAttributes_PartialTags5.diag.txt | 3 - ...MinimizedAttributes_PartialTags5.stree.txt | 12 - ...inimizedAttributes_PartialTags5.tspans.txt | 1 - ...inimizedAttributes_PartialTags6.cspans.txt | 0 ...sMinimizedAttributes_PartialTags6.diag.txt | 3 - ...MinimizedAttributes_PartialTags6.stree.txt | 12 - ...inimizedAttributes_PartialTags6.tspans.txt | 1 - ...inimizedAttributes_PartialTags7.cspans.txt | 0 ...sMinimizedAttributes_PartialTags7.diag.txt | 4 - ...MinimizedAttributes_PartialTags7.stree.txt | 17 - ...inimizedAttributes_PartialTags7.tspans.txt | 1 - ...inimizedAttributes_PartialTags8.cspans.txt | 0 ...sMinimizedAttributes_PartialTags8.diag.txt | 8 - ...MinimizedAttributes_PartialTags8.stree.txt | 37 - ...inimizedAttributes_PartialTags8.tspans.txt | 2 - ...MinimizedBooleanBoundAttributes.cspans.txt | 0 ...sMinimizedBooleanBoundAttributes.stree.txt | 21 - ...MinimizedBooleanBoundAttributes.tspans.txt | 1 - ...artNonStringTagHelperAttributes.cspans.txt | 1 - ...partNonStringTagHelperAttributes.stree.txt | 29 - ...artNonStringTagHelperAttributes.tspans.txt | 1 - .../AllowsPrefixedTagHelpers1.cspans.txt | 1 - .../AllowsPrefixedTagHelpers1.stree.txt | 11 - .../AllowsPrefixedTagHelpers10.cspans.txt | 2 - .../AllowsPrefixedTagHelpers10.stree.txt | 32 - .../AllowsPrefixedTagHelpers10.tspans.txt | 1 - .../AllowsPrefixedTagHelpers11.cspans.txt | 2 - .../AllowsPrefixedTagHelpers11.stree.txt | 33 - .../AllowsPrefixedTagHelpers11.tspans.txt | 1 - .../AllowsPrefixedTagHelpers2.cspans.txt | 3 - .../AllowsPrefixedTagHelpers2.stree.txt | 18 - .../AllowsPrefixedTagHelpers3.cspans.txt | 0 .../AllowsPrefixedTagHelpers3.stree.txt | 11 - .../AllowsPrefixedTagHelpers3.tspans.txt | 1 - .../AllowsPrefixedTagHelpers4.cspans.txt | 0 .../AllowsPrefixedTagHelpers4.stree.txt | 12 - .../AllowsPrefixedTagHelpers4.tspans.txt | 1 - .../AllowsPrefixedTagHelpers5.cspans.txt | 2 - .../AllowsPrefixedTagHelpers5.stree.txt | 22 - .../AllowsPrefixedTagHelpers5.tspans.txt | 1 - .../AllowsPrefixedTagHelpers6.cspans.txt | 3 - .../AllowsPrefixedTagHelpers6.stree.txt | 12 - .../AllowsPrefixedTagHelpers7.cspans.txt | 6 - .../AllowsPrefixedTagHelpers7.stree.txt | 14 - .../AllowsPrefixedTagHelpers8.cspans.txt | 1 - .../AllowsPrefixedTagHelpers8.stree.txt | 25 - .../AllowsPrefixedTagHelpers8.tspans.txt | 1 - .../AllowsPrefixedTagHelpers9.cspans.txt | 1 - .../AllowsPrefixedTagHelpers9.stree.txt | 25 - .../AllowsPrefixedTagHelpers9.tspans.txt | 1 - .../AllowsRazorCommentsAsChildren.cspans.txt | 8 - .../AllowsRazorCommentsAsChildren.stree.txt | 30 - .../AllowsRazorCommentsAsChildren.tspans.txt | 1 - .../AllowsRazorMarkupInHtmlComment.cspans.txt | 8 - .../AllowsRazorMarkupInHtmlComment.stree.txt | 43 - .../AllowsRazorMarkupInHtmlComment.tspans.txt | 1 - ...owsSimpleHtmlCommentsAsChildren.cspans.txt | 6 - ...lowsSimpleHtmlCommentsAsChildren.stree.txt | 36 - ...owsSimpleHtmlCommentsAsChildren.tspans.txt | 1 - ...gInCSharpBlock_WithAttrTextTag1.cspans.txt | 11 - ...TagInCSharpBlock_WithAttrTextTag1.diag.txt | 2 - ...agInCSharpBlock_WithAttrTextTag1.stree.txt | 37 - ...gInCSharpBlock_WithAttrTextTag2.cspans.txt | 16 - ...agInCSharpBlock_WithAttrTextTag2.stree.txt | 45 - ...gInCSharpBlock_WithAttrTextTag3.cspans.txt | 17 - ...agInCSharpBlock_WithAttrTextTag3.stree.txt | 51 - ...gInCSharpBlock_WithAttrTextTag4.cspans.txt | 19 - ...agInCSharpBlock_WithAttrTextTag4.stree.txt | 60 - ...gInCSharpBlock_WithAttrTextTag5.cspans.txt | 20 - ...agInCSharpBlock_WithAttrTextTag5.stree.txt | 64 - ...InCSharpBlock_WithBlockTextTag1.cspans.txt | 7 - ...agInCSharpBlock_WithBlockTextTag1.diag.txt | 2 - ...gInCSharpBlock_WithBlockTextTag1.stree.txt | 23 - ...InCSharpBlock_WithBlockTextTag2.cspans.txt | 9 - ...agInCSharpBlock_WithBlockTextTag2.diag.txt | 1 - ...gInCSharpBlock_WithBlockTextTag2.stree.txt | 26 - ...InCSharpBlock_WithBlockTextTag3.cspans.txt | 12 - ...gInCSharpBlock_WithBlockTextTag3.stree.txt | 31 - ...InCSharpBlock_WithBlockTextTag4.cspans.txt | 13 - ...gInCSharpBlock_WithBlockTextTag4.stree.txt | 37 - ...InCSharpBlock_WithBlockTextTag5.cspans.txt | 10 - ...agInCSharpBlock_WithBlockTextTag5.diag.txt | 2 - ...gInCSharpBlock_WithBlockTextTag5.stree.txt | 31 - ...InCSharpBlock_WithBlockTextTag6.cspans.txt | 10 - ...agInCSharpBlock_WithBlockTextTag6.diag.txt | 1 - ...gInCSharpBlock_WithBlockTextTag6.stree.txt | 31 - ...InCSharpBlock_WithBlockTextTag7.cspans.txt | 12 - ...gInCSharpBlock_WithBlockTextTag7.stree.txt | 41 - ...InCSharpBlock_WithBlockTextTag7.tspans.txt | 1 - ...InCSharpBlock_WithBlockTextTag8.cspans.txt | 11 - ...agInCSharpBlock_WithBlockTextTag8.diag.txt | 2 - ...gInCSharpBlock_WithBlockTextTag8.stree.txt | 34 - ...InCSharpBlock_WithBlockTextTag9.cspans.txt | 13 - ...agInCSharpBlock_WithBlockTextTag9.diag.txt | 2 - ...gInCSharpBlock_WithBlockTextTag9.stree.txt | 38 - ...perElementOptForIncompleteHTML1.cspans.txt | 1 - ...lperElementOptForIncompleteHTML1.stree.txt | 5 - ...perElementOptForIncompleteHTML2.cspans.txt | 3 - ...lperElementOptForIncompleteHTML2.stree.txt | 8 - ...perElementOptForIncompleteHTML3.cspans.txt | 3 - ...lperElementOptForIncompleteHTML3.stree.txt | 14 - ...perElementOptForIncompleteHTML4.cspans.txt | 4 - ...lperElementOptForIncompleteHTML4.stree.txt | 14 - ...perElementOptForIncompleteHTML5.cspans.txt | 5 - ...lperElementOptForIncompleteHTML5.stree.txt | 20 - ...perElementOptForIncompleteHTML6.cspans.txt | 6 - ...lperElementOptForIncompleteHTML6.stree.txt | 22 - ...perElementOptForIncompleteHTML7.cspans.txt | 7 - ...lperElementOptForIncompleteHTML7.stree.txt | 28 - ...ForIncompleteHTMLInCSharpBlock1.cspans.txt | 6 - ...ptForIncompleteHTMLInCSharpBlock1.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock1.stree.txt | 21 - ...ForIncompleteHTMLInCSharpBlock2.cspans.txt | 6 - ...ptForIncompleteHTMLInCSharpBlock2.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock2.stree.txt | 21 - ...ForIncompleteHTMLInCSharpBlock3.cspans.txt | 7 - ...ptForIncompleteHTMLInCSharpBlock3.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock3.stree.txt | 30 - ...ForIncompleteHTMLInCSharpBlock4.cspans.txt | 8 - ...ptForIncompleteHTMLInCSharpBlock4.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock4.stree.txt | 31 - ...ForIncompleteHTMLInCSharpBlock5.cspans.txt | 8 - ...ptForIncompleteHTMLInCSharpBlock5.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock5.stree.txt | 33 - ...ForIncompleteHTMLInCSharpBlock6.cspans.txt | 11 - ...ptForIncompleteHTMLInCSharpBlock6.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock6.stree.txt | 41 - ...ForIncompleteHTMLInCSharpBlock7.cspans.txt | 10 - ...ptForIncompleteHTMLInCSharpBlock7.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock7.stree.txt | 38 - ...ForIncompleteHTMLInCSharpBlock8.cspans.txt | 11 - ...ptForIncompleteHTMLInCSharpBlock8.diag.txt | 2 - ...tForIncompleteHTMLInCSharpBlock8.stree.txt | 44 - ...IncompleteTextTagInCSharpBlock1.cspans.txt | 6 - ...orIncompleteTextTagInCSharpBlock1.diag.txt | 2 - ...rIncompleteTextTagInCSharpBlock1.stree.txt | 21 - ...IncompleteTextTagInCSharpBlock2.cspans.txt | 7 - ...orIncompleteTextTagInCSharpBlock2.diag.txt | 2 - ...rIncompleteTextTagInCSharpBlock2.stree.txt | 30 - ...IncompleteTextTagInCSharpBlock3.cspans.txt | 8 - ...orIncompleteTextTagInCSharpBlock3.diag.txt | 2 - ...rIncompleteTextTagInCSharpBlock3.stree.txt | 31 - ...IncompleteTextTagInCSharpBlock4.cspans.txt | 8 - ...orIncompleteTextTagInCSharpBlock4.diag.txt | 2 - ...rIncompleteTextTagInCSharpBlock4.stree.txt | 33 - ...IncompleteTextTagInCSharpBlock5.cspans.txt | 10 - ...orIncompleteTextTagInCSharpBlock5.diag.txt | 2 - ...rIncompleteTextTagInCSharpBlock5.stree.txt | 38 - ...IncompleteTextTagInCSharpBlock6.cspans.txt | 11 - ...orIncompleteTextTagInCSharpBlock6.diag.txt | 2 - ...rIncompleteTextTagInCSharpBlock6.stree.txt | 44 - ...OptOutCSharp_WithAttributeData1.cspans.txt | 11 - ...ntOptOutCSharp_WithAttributeData1.diag.txt | 2 - ...tOptOutCSharp_WithAttributeData1.stree.txt | 37 - ...OptOutCSharp_WithAttributeData2.cspans.txt | 16 - ...tOptOutCSharp_WithAttributeData2.stree.txt | 45 - ...OptOutCSharp_WithAttributeData3.cspans.txt | 17 - ...tOptOutCSharp_WithAttributeData3.stree.txt | 51 - ...OptOutCSharp_WithAttributeData4.cspans.txt | 19 - ...tOptOutCSharp_WithAttributeData4.stree.txt | 60 - ...OptOutCSharp_WithAttributeData5.cspans.txt | 20 - ...tOptOutCSharp_WithAttributeData5.stree.txt | 64 - ...mentOptOutCSharp_WithBlockData1.cspans.txt | 7 - ...lementOptOutCSharp_WithBlockData1.diag.txt | 2 - ...ementOptOutCSharp_WithBlockData1.stree.txt | 23 - ...entOptOutCSharp_WithBlockData10.cspans.txt | 10 - ...ementOptOutCSharp_WithBlockData10.diag.txt | 4 - ...mentOptOutCSharp_WithBlockData10.stree.txt | 38 - ...entOptOutCSharp_WithBlockData10.tspans.txt | 1 - ...entOptOutCSharp_WithBlockData11.cspans.txt | 12 - ...mentOptOutCSharp_WithBlockData11.stree.txt | 42 - ...entOptOutCSharp_WithBlockData11.tspans.txt | 1 - ...entOptOutCSharp_WithBlockData12.cspans.txt | 16 - ...ementOptOutCSharp_WithBlockData12.diag.txt | 6 - ...mentOptOutCSharp_WithBlockData12.stree.txt | 57 - ...entOptOutCSharp_WithBlockData12.tspans.txt | 2 - ...mentOptOutCSharp_WithBlockData2.cspans.txt | 9 - ...lementOptOutCSharp_WithBlockData2.diag.txt | 1 - ...ementOptOutCSharp_WithBlockData2.stree.txt | 26 - ...mentOptOutCSharp_WithBlockData3.cspans.txt | 12 - ...ementOptOutCSharp_WithBlockData3.stree.txt | 31 - ...mentOptOutCSharp_WithBlockData4.cspans.txt | 13 - ...ementOptOutCSharp_WithBlockData4.stree.txt | 37 - ...mentOptOutCSharp_WithBlockData5.cspans.txt | 10 - ...lementOptOutCSharp_WithBlockData5.diag.txt | 2 - ...ementOptOutCSharp_WithBlockData5.stree.txt | 31 - ...mentOptOutCSharp_WithBlockData6.cspans.txt | 9 - ...lementOptOutCSharp_WithBlockData6.diag.txt | 2 - ...ementOptOutCSharp_WithBlockData6.stree.txt | 31 - ...mentOptOutCSharp_WithBlockData6.tspans.txt | 1 - ...mentOptOutCSharp_WithBlockData7.cspans.txt | 12 - ...ementOptOutCSharp_WithBlockData7.stree.txt | 41 - ...mentOptOutCSharp_WithBlockData7.tspans.txt | 1 - ...mentOptOutCSharp_WithBlockData8.cspans.txt | 10 - ...lementOptOutCSharp_WithBlockData8.diag.txt | 3 - ...ementOptOutCSharp_WithBlockData8.stree.txt | 34 - ...mentOptOutCSharp_WithBlockData8.tspans.txt | 1 - ...mentOptOutCSharp_WithBlockData9.cspans.txt | 13 - ...lementOptOutCSharp_WithBlockData9.diag.txt | 2 - ...ementOptOutCSharp_WithBlockData9.stree.txt | 38 - ...ntOptOutHTML_WithAttributeData1.cspans.txt | 7 - ...entOptOutHTML_WithAttributeData1.stree.txt | 22 - ...ntOptOutHTML_WithAttributeData2.cspans.txt | 10 - ...entOptOutHTML_WithAttributeData2.stree.txt | 28 - ...ntOptOutHTML_WithAttributeData3.cspans.txt | 11 - ...entOptOutHTML_WithAttributeData3.stree.txt | 34 - ...ntOptOutHTML_WithAttributeData4.cspans.txt | 13 - ...entOptOutHTML_WithAttributeData4.stree.txt | 43 - ...ntOptOutHTML_WithAttributeData5.cspans.txt | 14 - ...entOptOutHTML_WithAttributeData5.stree.txt | 47 - ...lementOptOutHTML_WithBlockData1.cspans.txt | 3 - ...ElementOptOutHTML_WithBlockData1.stree.txt | 8 - ...ementOptOutHTML_WithBlockData10.cspans.txt | 3 - ...lementOptOutHTML_WithBlockData10.stree.txt | 19 - ...ementOptOutHTML_WithBlockData10.tspans.txt | 1 - ...ementOptOutHTML_WithBlockData11.cspans.txt | 6 - ...lementOptOutHTML_WithBlockData11.stree.txt | 24 - ...ementOptOutHTML_WithBlockData11.tspans.txt | 1 - ...ementOptOutHTML_WithBlockData12.cspans.txt | 9 - ...ElementOptOutHTML_WithBlockData12.diag.txt | 1 - ...lementOptOutHTML_WithBlockData12.stree.txt | 37 - ...ementOptOutHTML_WithBlockData12.tspans.txt | 2 - ...lementOptOutHTML_WithBlockData2.cspans.txt | 3 - ...ElementOptOutHTML_WithBlockData2.stree.txt | 9 - ...lementOptOutHTML_WithBlockData3.cspans.txt | 6 - ...ElementOptOutHTML_WithBlockData3.stree.txt | 14 - ...lementOptOutHTML_WithBlockData4.cspans.txt | 7 - ...ElementOptOutHTML_WithBlockData4.stree.txt | 20 - ...lementOptOutHTML_WithBlockData5.cspans.txt | 4 - ...rElementOptOutHTML_WithBlockData5.diag.txt | 1 - ...ElementOptOutHTML_WithBlockData5.stree.txt | 14 - ...lementOptOutHTML_WithBlockData6.cspans.txt | 3 - ...rElementOptOutHTML_WithBlockData6.diag.txt | 1 - ...ElementOptOutHTML_WithBlockData6.stree.txt | 14 - ...lementOptOutHTML_WithBlockData6.tspans.txt | 1 - ...lementOptOutHTML_WithBlockData7.cspans.txt | 6 - ...ElementOptOutHTML_WithBlockData7.stree.txt | 24 - ...lementOptOutHTML_WithBlockData7.tspans.txt | 1 - ...lementOptOutHTML_WithBlockData8.cspans.txt | 6 - ...rElementOptOutHTML_WithBlockData8.diag.txt | 1 - ...ElementOptOutHTML_WithBlockData8.stree.txt | 19 - ...lementOptOutHTML_WithBlockData8.tspans.txt | 1 - ...lementOptOutHTML_WithBlockData9.cspans.txt | 7 - ...rElementOptOutHTML_WithBlockData9.diag.txt | 1 - ...ElementOptOutHTML_WithBlockData9.stree.txt | 20 - ...leInvalidChildrenWithWhitespace.cspans.txt | 5 - ...ndleInvalidChildrenWithWhitespace.diag.txt | 1 - ...dleInvalidChildrenWithWhitespace.stree.txt | 33 - ...leInvalidChildrenWithWhitespace.tspans.txt | 1 - ...leTagHelpersWithAllowedChildren.cspans.txt | 1 - ...pleTagHelpersWithAllowedChildren.stree.txt | 31 - ...leTagHelpersWithAllowedChildren.tspans.txt | 3 - ...persWithAllowedChildren_OneNull.cspans.txt | 1 - ...lpersWithAllowedChildren_OneNull.stree.txt | 31 - ...persWithAllowedChildren_OneNull.tspans.txt | 3 - ...CanHandleStartTagOnlyTagTagMode.cspans.txt | 0 .../CanHandleStartTagOnlyTagTagMode.stree.txt | 7 - ...CanHandleStartTagOnlyTagTagMode.tspans.txt | 1 - ...rorForInconsistentTagStructures.cspans.txt | 0 ...ErrorForInconsistentTagStructures.diag.txt | 1 - ...rrorForInconsistentTagStructures.stree.txt | 7 - ...rorForInconsistentTagStructures.tspans.txt | 1 - ...outEndTagTagStructureForEndTags.cspans.txt | 1 - ...thoutEndTagTagStructureForEndTags.diag.txt | 1 - ...houtEndTagTagStructureForEndTags.stree.txt | 8 - ...NotRewriteSpecialTagTagHelpers1.cspans.txt | 5 - ...esNotRewriteSpecialTagTagHelpers1.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers1.stree.txt | 26 - ...NotRewriteSpecialTagTagHelpers2.cspans.txt | 8 - ...esNotRewriteSpecialTagTagHelpers2.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers2.stree.txt | 32 - ...NotRewriteSpecialTagTagHelpers3.cspans.txt | 3 - ...esNotRewriteSpecialTagTagHelpers3.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers3.stree.txt | 23 - ...NotRewriteSpecialTagTagHelpers4.cspans.txt | 6 - ...esNotRewriteSpecialTagTagHelpers4.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers4.stree.txt | 29 - ...NotRewriteSpecialTagTagHelpers5.cspans.txt | 6 - ...esNotRewriteSpecialTagTagHelpers5.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers5.stree.txt | 28 - ...NotRewriteSpecialTagTagHelpers6.cspans.txt | 3 - ...esNotRewriteSpecialTagTagHelpers6.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers6.stree.txt | 24 - ...NotRewriteSpecialTagTagHelpers7.cspans.txt | 3 - ...esNotRewriteSpecialTagTagHelpers7.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers7.stree.txt | 26 - ...NotRewriteSpecialTagTagHelpers8.cspans.txt | 6 - ...esNotRewriteSpecialTagTagHelpers8.diag.txt | 5 - ...sNotRewriteSpecialTagTagHelpers8.stree.txt | 32 - ...iteTextTagTransitionTagHelpers1.cspans.txt | 1 - ...riteTextTagTransitionTagHelpers1.stree.txt | 16 - ...iteTextTagTransitionTagHelpers1.tspans.txt | 1 - ...iteTextTagTransitionTagHelpers2.cspans.txt | 9 - ...riteTextTagTransitionTagHelpers2.stree.txt | 33 - ...iteTextTagTransitionTagHelpers3.cspans.txt | 9 - ...riteTextTagTransitionTagHelpers3.stree.txt | 43 - ...iteTextTagTransitionTagHelpers3.tspans.txt | 1 - ...iteTextTagTransitionTagHelpers4.cspans.txt | 7 - ...riteTextTagTransitionTagHelpers4.stree.txt | 43 - ...iteTextTagTransitionTagHelpers4.tspans.txt | 2 - ...rsInInvalidHtmlTypedScriptTags1.cspans.txt | 5 - ...ersInInvalidHtmlTypedScriptTags1.stree.txt | 23 - ...rsInInvalidHtmlTypedScriptTags2.cspans.txt | 7 - ...ersInInvalidHtmlTypedScriptTags2.stree.txt | 34 - ...rsInInvalidHtmlTypedScriptTags3.cspans.txt | 8 - ...ersInInvalidHtmlTypedScriptTags3.stree.txt | 39 - ...rsInInvalidHtmlTypedScriptTags4.cspans.txt | 10 - ...ersInInvalidHtmlTypedScriptTags4.stree.txt | 50 - ...sAsChildrenWhenFeatureFlagIsOff.cspans.txt | 3 - ...ntsAsChildrenWhenFeatureFlagIsOff.diag.txt | 3 - ...tsAsChildrenWhenFeatureFlagIsOff.stree.txt | 22 - ...sAsChildrenWhenFeatureFlagIsOff.tspans.txt | 1 - ...orContentWithCommentsAsChildren.cspans.txt | 7 - ...sForContentWithCommentsAsChildren.diag.txt | 1 - ...ForContentWithCommentsAsChildren.stree.txt | 34 - ...orContentWithCommentsAsChildren.tspans.txt | 1 - ...seSensitiveTagHelpersCorrectly1.cspans.txt | 1 - ...aseSensitiveTagHelpersCorrectly1.stree.txt | 31 - ...seSensitiveTagHelpersCorrectly1.tspans.txt | 1 - ...seSensitiveTagHelpersCorrectly2.cspans.txt | 1 - ...aseSensitiveTagHelpersCorrectly2.stree.txt | 31 - ...seSensitiveTagHelpersCorrectly2.tspans.txt | 1 - ...seSensitiveTagHelpersCorrectly3.cspans.txt | 1 - ...aseSensitiveTagHelpersCorrectly3.stree.txt | 31 - ...seSensitiveTagHelpersCorrectly3.tspans.txt | 1 - ...seSensitiveTagHelpersCorrectly4.cspans.txt | 6 - ...aseSensitiveTagHelpersCorrectly4.stree.txt | 26 - ...seSensitiveTagHelpersCorrectly5.cspans.txt | 6 - ...aseSensitiveTagHelpersCorrectly5.stree.txt | 26 - ...estedNonTagHelperTags_Correctly.cspans.txt | 7 - ...dNestedNonTagHelperTags_Correctly.diag.txt | 1 - ...NestedNonTagHelperTags_Correctly.stree.txt | 28 - ...erStartAndEndVoidTags_Correctly.cspans.txt | 3 - ...perStartAndEndVoidTags_Correctly.stree.txt | 14 - ...AllowedChildrenAndRequireParent.cspans.txt | 1 - ...ndAllowedChildrenAndRequireParent.diag.txt | 1 - ...dAllowedChildrenAndRequireParent.stree.txt | 18 - ...AllowedChildrenAndRequireParent.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly1.cspans.txt | 3 - ...sCreateTagHelperBlocksCorrectly1.stree.txt | 36 - ...CreateTagHelperBlocksCorrectly1.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly10.cspans.txt | 8 - ...CreateTagHelperBlocksCorrectly10.stree.txt | 80 - ...reateTagHelperBlocksCorrectly10.tspans.txt | 2 - ...CreateTagHelperBlocksCorrectly2.cspans.txt | 3 - ...sCreateTagHelperBlocksCorrectly2.stree.txt | 36 - ...CreateTagHelperBlocksCorrectly2.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly3.cspans.txt | 5 - ...sCreateTagHelperBlocksCorrectly3.stree.txt | 46 - ...CreateTagHelperBlocksCorrectly3.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly4.cspans.txt | 5 - ...sCreateTagHelperBlocksCorrectly4.stree.txt | 46 - ...CreateTagHelperBlocksCorrectly4.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly5.cspans.txt | 4 - ...sCreateTagHelperBlocksCorrectly5.stree.txt | 60 - ...CreateTagHelperBlocksCorrectly5.tspans.txt | 2 - ...CreateTagHelperBlocksCorrectly6.cspans.txt | 4 - ...sCreateTagHelperBlocksCorrectly6.stree.txt | 60 - ...CreateTagHelperBlocksCorrectly6.tspans.txt | 2 - ...CreateTagHelperBlocksCorrectly7.cspans.txt | 4 - ...sCreateTagHelperBlocksCorrectly7.stree.txt | 60 - ...CreateTagHelperBlocksCorrectly7.tspans.txt | 2 - ...CreateTagHelperBlocksCorrectly8.cspans.txt | 4 - ...sCreateTagHelperBlocksCorrectly8.stree.txt | 60 - ...CreateTagHelperBlocksCorrectly8.tspans.txt | 2 - ...CreateTagHelperBlocksCorrectly9.cspans.txt | 8 - ...sCreateTagHelperBlocksCorrectly9.stree.txt | 80 - ...CreateTagHelperBlocksCorrectly9.tspans.txt | 2 - ...gHelperPrefixAndAllowedChildren.cspans.txt | 2 - ...agHelperPrefixAndAllowedChildren.stree.txt | 22 - ...gHelperPrefixAndAllowedChildren.tspans.txt | 1 - ...teMismatchAndRestrictedChildren.cspans.txt | 2 - ...buteMismatchAndRestrictedChildren.diag.txt | 1 - ...uteMismatchAndRestrictedChildren.stree.txt | 27 - ...teMismatchAndRestrictedChildren.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly1.cspans.txt | 1 - ...lformedTagHelperBlocksCorrectly1.stree.txt | 7 - ...ormedTagHelperBlocksCorrectly10.cspans.txt | 2 - ...lformedTagHelperBlocksCorrectly10.diag.txt | 2 - ...formedTagHelperBlocksCorrectly10.stree.txt | 43 - ...ormedTagHelperBlocksCorrectly10.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly2.cspans.txt | 1 - ...alformedTagHelperBlocksCorrectly2.diag.txt | 2 - ...lformedTagHelperBlocksCorrectly2.stree.txt | 21 - ...formedTagHelperBlocksCorrectly2.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly3.cspans.txt | 2 - ...alformedTagHelperBlocksCorrectly3.diag.txt | 2 - ...lformedTagHelperBlocksCorrectly3.stree.txt | 35 - ...formedTagHelperBlocksCorrectly3.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly4.cspans.txt | 2 - ...lformedTagHelperBlocksCorrectly4.stree.txt | 12 - ...formedTagHelperBlocksCorrectly5.cspans.txt | 1 - ...alformedTagHelperBlocksCorrectly5.diag.txt | 1 - ...lformedTagHelperBlocksCorrectly5.stree.txt | 26 - ...formedTagHelperBlocksCorrectly5.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly6.cspans.txt | 2 - ...alformedTagHelperBlocksCorrectly6.diag.txt | 1 - ...lformedTagHelperBlocksCorrectly6.stree.txt | 40 - ...formedTagHelperBlocksCorrectly6.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly7.cspans.txt | 2 - ...alformedTagHelperBlocksCorrectly7.diag.txt | 2 - ...lformedTagHelperBlocksCorrectly7.stree.txt | 29 - ...formedTagHelperBlocksCorrectly7.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly8.cspans.txt | 3 - ...alformedTagHelperBlocksCorrectly8.diag.txt | 2 - ...lformedTagHelperBlocksCorrectly8.stree.txt | 43 - ...formedTagHelperBlocksCorrectly8.tspans.txt | 1 - ...formedTagHelperBlocksCorrectly9.cspans.txt | 1 - ...alformedTagHelperBlocksCorrectly9.diag.txt | 2 - ...lformedTagHelperBlocksCorrectly9.stree.txt | 29 - ...formedTagHelperBlocksCorrectly9.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly1.cspans.txt | 1 - ...sCreateTagHelperBlocksCorrectly1.stree.txt | 11 - ...reateTagHelperBlocksCorrectly10.cspans.txt | 1 - ...CreateTagHelperBlocksCorrectly10.stree.txt | 25 - ...reateTagHelperBlocksCorrectly10.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly11.cspans.txt | 2 - ...CreateTagHelperBlocksCorrectly11.stree.txt | 34 - ...reateTagHelperBlocksCorrectly11.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly12.cspans.txt | 2 - ...CreateTagHelperBlocksCorrectly12.stree.txt | 32 - ...reateTagHelperBlocksCorrectly12.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly13.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly13.stree.txt | 41 - ...reateTagHelperBlocksCorrectly13.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly14.cspans.txt | 5 - ...CreateTagHelperBlocksCorrectly14.stree.txt | 25 - ...reateTagHelperBlocksCorrectly15.cspans.txt | 6 - ...CreateTagHelperBlocksCorrectly15.stree.txt | 26 - ...reateTagHelperBlocksCorrectly16.cspans.txt | 2 - ...CreateTagHelperBlocksCorrectly16.stree.txt | 39 - ...reateTagHelperBlocksCorrectly16.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly17.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly17.stree.txt | 48 - ...reateTagHelperBlocksCorrectly17.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly18.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly18.stree.txt | 46 - ...reateTagHelperBlocksCorrectly18.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly19.cspans.txt | 2 - ...CreateTagHelperBlocksCorrectly19.stree.txt | 37 - ...reateTagHelperBlocksCorrectly19.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly2.cspans.txt | 2 - ...sCreateTagHelperBlocksCorrectly2.stree.txt | 12 - ...reateTagHelperBlocksCorrectly20.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly20.stree.txt | 48 - ...reateTagHelperBlocksCorrectly20.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly21.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly21.stree.txt | 44 - ...reateTagHelperBlocksCorrectly21.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly22.cspans.txt | 5 - ...CreateTagHelperBlocksCorrectly22.stree.txt | 64 - ...reateTagHelperBlocksCorrectly22.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly23.cspans.txt | 7 - ...CreateTagHelperBlocksCorrectly23.stree.txt | 54 - ...reateTagHelperBlocksCorrectly23.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly24.cspans.txt | 2 - ...CreateTagHelperBlocksCorrectly24.stree.txt | 39 - ...reateTagHelperBlocksCorrectly24.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly25.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly25.stree.txt | 46 - ...reateTagHelperBlocksCorrectly25.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly26.cspans.txt | 3 - ...CreateTagHelperBlocksCorrectly26.stree.txt | 51 - ...reateTagHelperBlocksCorrectly26.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly27.cspans.txt | 4 - ...CreateTagHelperBlocksCorrectly27.stree.txt | 61 - ...reateTagHelperBlocksCorrectly27.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly28.cspans.txt | 6 - ...CreateTagHelperBlocksCorrectly28.stree.txt | 66 - ...reateTagHelperBlocksCorrectly28.tspans.txt | 1 - ...reateTagHelperBlocksCorrectly29.cspans.txt | 7 - ...CreateTagHelperBlocksCorrectly29.stree.txt | 90 - ...reateTagHelperBlocksCorrectly29.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly3.cspans.txt | 1 - ...sCreateTagHelperBlocksCorrectly3.stree.txt | 11 - ...reateTagHelperBlocksCorrectly30.cspans.txt | 8 - ...CreateTagHelperBlocksCorrectly30.stree.txt | 71 - ...reateTagHelperBlocksCorrectly30.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly4.cspans.txt | 2 - ...sCreateTagHelperBlocksCorrectly4.stree.txt | 12 - ...CreateTagHelperBlocksCorrectly5.cspans.txt | 1 - ...sCreateTagHelperBlocksCorrectly5.stree.txt | 25 - ...CreateTagHelperBlocksCorrectly5.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly6.cspans.txt | 2 - ...sCreateTagHelperBlocksCorrectly6.stree.txt | 34 - ...CreateTagHelperBlocksCorrectly6.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly7.cspans.txt | 2 - ...sCreateTagHelperBlocksCorrectly7.stree.txt | 32 - ...CreateTagHelperBlocksCorrectly7.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly8.cspans.txt | 3 - ...sCreateTagHelperBlocksCorrectly8.stree.txt | 41 - ...CreateTagHelperBlocksCorrectly8.tspans.txt | 1 - ...CreateTagHelperBlocksCorrectly9.cspans.txt | 6 - ...sCreateTagHelperBlocksCorrectly9.stree.txt | 42 - ...CreateTagHelperBlocksCorrectly9.tspans.txt | 1 - ...writesNestedTagHelperTagBlocks1.cspans.txt | 0 ...ewritesNestedTagHelperTagBlocks1.stree.txt | 22 - ...writesNestedTagHelperTagBlocks1.tspans.txt | 2 - ...writesNestedTagHelperTagBlocks2.cspans.txt | 1 - ...ewritesNestedTagHelperTagBlocks2.stree.txt | 27 - ...writesNestedTagHelperTagBlocks2.tspans.txt | 2 - ...writesNestedTagHelperTagBlocks3.cspans.txt | 4 - ...ewritesNestedTagHelperTagBlocks3.stree.txt | 50 - ...writesNestedTagHelperTagBlocks3.tspans.txt | 4 - ...writesNestedTagHelperTagBlocks4.cspans.txt | 8 - ...ewritesNestedTagHelperTagBlocks4.stree.txt | 50 - ...writesNestedTagHelperTagBlocks4.tspans.txt | 2 - .../UnderstandsAllowedChildren1.cspans.txt | 0 .../UnderstandsAllowedChildren1.stree.txt | 21 - .../UnderstandsAllowedChildren1.tspans.txt | 2 - .../UnderstandsAllowedChildren10.cspans.txt | 5 - .../UnderstandsAllowedChildren10.diag.txt | 5 - .../UnderstandsAllowedChildren10.stree.txt | 56 - .../UnderstandsAllowedChildren10.tspans.txt | 4 - .../UnderstandsAllowedChildren11.cspans.txt | 7 - .../UnderstandsAllowedChildren11.diag.txt | 2 - .../UnderstandsAllowedChildren11.stree.txt | 56 - .../UnderstandsAllowedChildren11.tspans.txt | 3 - .../UnderstandsAllowedChildren12.cspans.txt | 1 - .../UnderstandsAllowedChildren12.diag.txt | 1 - .../UnderstandsAllowedChildren12.stree.txt | 18 - .../UnderstandsAllowedChildren12.tspans.txt | 1 - .../UnderstandsAllowedChildren13.cspans.txt | 1 - .../UnderstandsAllowedChildren13.diag.txt | 1 - .../UnderstandsAllowedChildren13.stree.txt | 17 - .../UnderstandsAllowedChildren13.tspans.txt | 1 - .../UnderstandsAllowedChildren14.cspans.txt | 6 - .../UnderstandsAllowedChildren14.diag.txt | 1 - .../UnderstandsAllowedChildren14.stree.txt | 58 - .../UnderstandsAllowedChildren14.tspans.txt | 4 - .../UnderstandsAllowedChildren2.cspans.txt | 2 - .../UnderstandsAllowedChildren2.stree.txt | 25 - .../UnderstandsAllowedChildren2.tspans.txt | 2 - .../UnderstandsAllowedChildren3.cspans.txt | 0 .../UnderstandsAllowedChildren3.diag.txt | 1 - .../UnderstandsAllowedChildren3.stree.txt | 17 - .../UnderstandsAllowedChildren3.tspans.txt | 2 - .../UnderstandsAllowedChildren4.cspans.txt | 1 - .../UnderstandsAllowedChildren4.diag.txt | 1 - .../UnderstandsAllowedChildren4.stree.txt | 14 - .../UnderstandsAllowedChildren4.tspans.txt | 1 - .../UnderstandsAllowedChildren5.cspans.txt | 1 - .../UnderstandsAllowedChildren5.diag.txt | 1 - .../UnderstandsAllowedChildren5.stree.txt | 21 - .../UnderstandsAllowedChildren5.tspans.txt | 1 - .../UnderstandsAllowedChildren6.cspans.txt | 1 - .../UnderstandsAllowedChildren6.diag.txt | 2 - .../UnderstandsAllowedChildren6.stree.txt | 19 - .../UnderstandsAllowedChildren6.tspans.txt | 2 - .../UnderstandsAllowedChildren7.cspans.txt | 2 - .../UnderstandsAllowedChildren7.diag.txt | 3 - .../UnderstandsAllowedChildren7.stree.txt | 35 - .../UnderstandsAllowedChildren7.tspans.txt | 3 - .../UnderstandsAllowedChildren8.cspans.txt | 2 - .../UnderstandsAllowedChildren8.diag.txt | 2 - .../UnderstandsAllowedChildren8.stree.txt | 35 - .../UnderstandsAllowedChildren8.tspans.txt | 3 - .../UnderstandsAllowedChildren9.cspans.txt | 4 - .../UnderstandsAllowedChildren9.diag.txt | 2 - .../UnderstandsAllowedChildren9.stree.txt | 40 - .../UnderstandsAllowedChildren9.tspans.txt | 3 - ...nderstandsNestedRequiredParent1.cspans.txt | 2 - ...UnderstandsNestedRequiredParent1.stree.txt | 12 - ...nderstandsNestedRequiredParent2.cspans.txt | 0 ...UnderstandsNestedRequiredParent2.stree.txt | 22 - ...nderstandsNestedRequiredParent2.tspans.txt | 2 - ...nderstandsNestedRequiredParent3.cspans.txt | 2 - ...UnderstandsNestedRequiredParent3.stree.txt | 22 - ...nderstandsNestedRequiredParent3.tspans.txt | 1 - ...nderstandsNestedRequiredParent4.cspans.txt | 4 - ...UnderstandsNestedRequiredParent4.stree.txt | 22 - ...nderstandsNestedRequiredParent5.cspans.txt | 2 - ...UnderstandsNestedRequiredParent5.stree.txt | 32 - ...nderstandsNestedRequiredParent5.tspans.txt | 2 - ...dVoidSelfClosingRequiredParent1.cspans.txt | 2 - ...edVoidSelfClosingRequiredParent1.stree.txt | 17 - ...dVoidSelfClosingRequiredParent1.tspans.txt | 1 - ...dVoidSelfClosingRequiredParent2.cspans.txt | 0 ...edVoidSelfClosingRequiredParent2.stree.txt | 27 - ...dVoidSelfClosingRequiredParent2.tspans.txt | 3 - ...dVoidSelfClosingRequiredParent3.cspans.txt | 1 - ...edVoidSelfClosingRequiredParent3.stree.txt | 27 - ...dVoidSelfClosingRequiredParent3.tspans.txt | 2 - ...dVoidSelfClosingRequiredParent4.cspans.txt | 1 - ...edVoidSelfClosingRequiredParent4.stree.txt | 37 - ...dVoidSelfClosingRequiredParent4.tspans.txt | 3 - ...dVoidSelfClosingRequiredParent5.cspans.txt | 2 - ...edVoidSelfClosingRequiredParent5.stree.txt | 17 - ...dVoidSelfClosingRequiredParent5.tspans.txt | 1 - ...dVoidSelfClosingRequiredParent6.cspans.txt | 0 ...edVoidSelfClosingRequiredParent6.stree.txt | 30 - ...dVoidSelfClosingRequiredParent6.tspans.txt | 3 - ...dVoidSelfClosingRequiredParent7.cspans.txt | 1 - ...edVoidSelfClosingRequiredParent7.stree.txt | 30 - ...dVoidSelfClosingRequiredParent7.tspans.txt | 2 - ...dVoidSelfClosingRequiredParent8.cspans.txt | 1 - ...edVoidSelfClosingRequiredParent8.stree.txt | 40 - ...dVoidSelfClosingRequiredParent8.tspans.txt | 3 - ...eWithAllowedChildrenForCatchAll.cspans.txt | 1 - ...ameWithAllowedChildrenForCatchAll.diag.txt | 1 - ...meWithAllowedChildrenForCatchAll.stree.txt | 18 - ...eWithAllowedChildrenForCatchAll.tspans.txt | 1 - ...edChildrenForCatchAllWithPrefix.cspans.txt | 1 - ...owedChildrenForCatchAllWithPrefix.diag.txt | 1 - ...wedChildrenForCatchAllWithPrefix.stree.txt | 18 - ...edChildrenForCatchAllWithPrefix.tspans.txt | 1 - ...tandsPartialRequiredParentTags1.cspans.txt | 0 ...rstandsPartialRequiredParentTags1.diag.txt | 2 - ...standsPartialRequiredParentTags1.stree.txt | 12 - ...tandsPartialRequiredParentTags1.tspans.txt | 2 - ...tandsPartialRequiredParentTags2.cspans.txt | 0 ...rstandsPartialRequiredParentTags2.diag.txt | 1 - ...standsPartialRequiredParentTags2.stree.txt | 17 - ...tandsPartialRequiredParentTags2.tspans.txt | 2 - ...tandsPartialRequiredParentTags3.cspans.txt | 0 ...rstandsPartialRequiredParentTags3.diag.txt | 2 - ...standsPartialRequiredParentTags3.stree.txt | 22 - ...tandsPartialRequiredParentTags3.tspans.txt | 3 - ...tandsPartialRequiredParentTags4.cspans.txt | 4 - ...rstandsPartialRequiredParentTags4.diag.txt | 2 - ...standsPartialRequiredParentTags4.stree.txt | 44 - ...tandsPartialRequiredParentTags4.tspans.txt | 2 - ...tandsPartialRequiredParentTags5.cspans.txt | 4 - ...rstandsPartialRequiredParentTags5.diag.txt | 1 - ...standsPartialRequiredParentTags5.stree.txt | 44 - ...tandsPartialRequiredParentTags5.tspans.txt | 2 - ...tandsPartialRequiredParentTags6.cspans.txt | 5 - ...rstandsPartialRequiredParentTags6.diag.txt | 1 - ...standsPartialRequiredParentTags6.stree.txt | 49 - ...tandsPartialRequiredParentTags6.tspans.txt | 2 - ...gHelperPrefixAndAllowedChildren.cspans.txt | 0 ...agHelperPrefixAndAllowedChildren.stree.txt | 22 - ...gHelperPrefixAndAllowedChildren.tspans.txt | 2 - ...AllowedChildrenAndRequireParent.cspans.txt | 0 ...dAllowedChildrenAndRequireParent.stree.txt | 22 - ...AllowedChildrenAndRequireParent.tspans.txt | 2 - ...agHelpersInHtmlTypedScriptTags1.cspans.txt | 6 - ...TagHelpersInHtmlTypedScriptTags1.stree.txt | 37 - ...agHelpersInHtmlTypedScriptTags1.tspans.txt | 1 - ...agHelpersInHtmlTypedScriptTags2.cspans.txt | 12 - ...TagHelpersInHtmlTypedScriptTags2.stree.txt | 65 - ...agHelpersInHtmlTypedScriptTags2.tspans.txt | 1 - ...agHelpersInHtmlTypedScriptTags3.cspans.txt | 12 - ...TagHelpersInHtmlTypedScriptTags3.stree.txt | 73 - ...agHelpersInHtmlTypedScriptTags3.tspans.txt | 2 - ...agHelpersInHtmlTypedScriptTags4.cspans.txt | 14 - ...TagHelpersInHtmlTypedScriptTags4.stree.txt | 74 - ...agHelpersInHtmlTypedScriptTags4.tspans.txt | 1 - ...ExpressionBlock_To_Parent_Block.cspans.txt | 18 - ..._ExpressionBlock_To_Parent_Block.stree.txt | 58 - .../TestFiles/Source/BasicMarkup.cshtml | 8 - .../TestFiles/nested-1000.html | 2002 -- .../RazorLanguage.Test/TestRazorProject.cs | 47 - .../VirtualRazorProjectFileSystemTest.cs | 400 - .../test/RazorLanguage.Test/xunit.runner.json | 4 - .../RazorPageGenerator.Test.csproj | 30 - .../RazorPageGeneratorTest.cs | 69 - .../TestFiles/Views/TestFile.js | 1 - .../Views/TestView.Designer.expected.cs | 26 - .../TestFiles/Views/TestView.cshtml | 3 - .../RazorPageGenerator.Test/xunit.runner.json | 4 - 5898 files changed, 321101 deletions(-) delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/CSharpIdentifier.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ExtensionInitializer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IInjectTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IViewComponentTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/LegacySectionTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelExpressionPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcImportProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcViewDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensionsDiagnosticFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Resources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/TagHelperDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentResources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperConventions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperMetadata.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypeVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypes.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/AssemblyAttributeInjectionPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/CSharpIdentifier.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ExtensionInitializer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IInjectTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IViewComponentTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InstrumentationPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelExpressionPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcImportProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcViewDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/NamespaceDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PageDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PagesPropertyInjectionPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensionsDiagnosticFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorPageDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Resources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/TagHelperDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentResources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperConventions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperMetadata.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypeVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypes.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netcore.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netframework.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ExtensionInitializer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IViewComponentTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcImportProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensionsDiagnosticFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Resources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/TagHelperDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentResources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperConventions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperMetadata.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypeVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypes.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netcore.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netframework.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netcore.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netframework.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/AttributeStructure.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CSharpIdentifier.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Checksum.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/ClassifiedSpanVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeRenderingContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTarget.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTargetBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriterExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeRenderingContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTarget.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTargetBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/ICodeTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IntermediateNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LinePragma.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LiteralRuntimeNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperRenderingContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/ComponentResources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentBindLoweringPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentChildContentDiagnosticPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeTarget.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentComplexAttributeContentPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDesignTimeNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDiagnosticFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDuplicateAttributeDiagnosticPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentEventHandlerLoweringPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentGenericTypePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentImportProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentIntermediateNodePassBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentKeyLoweringPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLoweringPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupBlockPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupEncodingPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMetadata.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentReferenceCaptureLoweringPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentRuntimeNodeWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentScriptTagPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentSplatLoweringPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentTemplateDiagnosticPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentTemplateTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentTypeParamDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentWhitespacePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentsApi.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/RouteAttributeExtensionNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ScopeStack.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/TagHelperBoundAttributeDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/TagHelperDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultAllowedChildTagDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultAllowedChildTagDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultBoundAttributeDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultBoundAttributeDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultBoundAttributeParameterDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultBoundAttributeParameterDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultDirectiveSyntaxTreePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultImportProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCSharpDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCSharpLoweringPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCodeDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCodeGenerationOptions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCodeGenerationOptionsBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCodeGenerationOptionsFactoryProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCodeGenerationOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDiagnostic.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDirectiveClassifierPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDirectiveFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDocumentClassifierPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorEngine.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorEngineBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorHtmlDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIntermediateNodeLoweringPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorOptimizationPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorParserOptions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorParserOptionsBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorParserOptionsFactoryProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorParserOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorParsingPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorProjectEngine.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorProjectEngineBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorProjectFileSystem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorProjectItem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorSourceLineCollection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorSyntaxTree.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorSyntaxTreePhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorTagHelperBinderPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorTargetExtensionFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRequiredAttributeDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultRequiredAttributeDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultTagHelperDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultTagHelperDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultTagMatchingRuleDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DefaultTagMatchingRuleDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveDescriptorBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveKind.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalOptimizationPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveTokenDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveTokenDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveTokenEditHandler.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveTokenKind.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DirectiveUsage.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/EmptyProjectFileSystem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/AttributeDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/AttributeDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultMetadataIdentifierFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperBodyIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperCreateIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperExecuteIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperHtmlAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperOptimizationPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperPropertyIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperRuntimeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DefaultTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DesignTimeDirectiveIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DesignTimeDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/DesignTimeDirectiveTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/EliminateMethodBodyPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/IDefaultTagHelperTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/IDesignTimeDirectiveTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/IMetadataAttributeTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/IMetadataIdentifierFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/IPreallocatedAttributeTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/ISectionTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/ITemplateTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/ImplementsDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/ImplementsDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/InheritsDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/InheritsDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/MetadataAttributePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/MetadataAttributeTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/NamespaceDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/PreallocatedAttributeTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/PreallocatedTagHelperAttributeOptimizationPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/PreallocatedTagHelperHtmlAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/PreallocatedTagHelperHtmlAttributeValueIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/PreallocatedTagHelperPropertyIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/PreallocatedTagHelperPropertyValueIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/RazorCompiledItemAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/RazorCompiledItemMetadataAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/RazorSourceChecksumAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionDirective.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionDirectivePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateTargetExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/FileKindDirectiveFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/FileKinds.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/HtmlConventions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/HtmlNodeOptimizationPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IConfigureRazorCodeGenerationOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IConfigureRazorParserOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IDirectiveDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IImportProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorCSharpLoweringPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorCodeGenerationOptionsFactoryProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorCodeGenerationOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorEngineBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorEngineFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorEnginePhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorIntermediateNodeLoweringPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorParserOptionsFactoryProjectFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorParserOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorParsingPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorProjectEngineFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorSyntaxTreePass.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorSyntaxTreePhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorTagHelperBinderPhase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IRazorTargetExtensionFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/ITagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/ITagHelperFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CommonAnnotations.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ComponentAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ComponentChildContentIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ComponentIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ComponentTypeArgumentIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ComponentTypeInferenceMethodIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DebuggerDisplayFormatter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIntermediateNodeBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNodeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIntermediateNodeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIntermediateNodeVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeCollection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeFormatter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeFormatterBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeReference.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeWalker.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateToken.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MarkupBlockIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MarkupElementIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodParameter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReferenceCaptureIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetKeyIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SplatIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperDirectiveAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperDirectiveAttributeParameterIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperHtmlAttributeIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperPropertyIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TokenKind.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TypeParameter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingDirectiveIntermediateNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/IntermediateNodePassBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/ItemCollection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/LargeTextSourceDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/AcceptedCharactersInternal.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/AddImportChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/AddTagHelperChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/AutoCompleteEditHandler.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/BalancingModes.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/BlockKindInternal.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpCodeParser.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpKeyword.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpLanguageCharacteristics.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpTokenizer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ClassifiedSpanInternal.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/CodeBlockEditHandler.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/DirectiveCSharpTokenizer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/DirectiveHtmlTokenizer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/DirectiveTokenChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/DisposableAction.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/EditResult.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ErrorSink.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ExpressionChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/FirstDirectiveCSharpLanguageCharacteristics.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/FirstDirectiveHtmlLanguageCharacteristics.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlLanguageCharacteristics.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlMarkupParser.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlTokenizer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ISpanChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ITextBuffer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ITextDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ITokenizer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ImplicitExpressionEditHandler.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/KnownTokenType.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/LanguageCharacteristics.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/LegacySyntaxNodeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/LineTrackingStringBuffer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/LiteralAttributeChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/LocationTagged.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/MarkupChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ParserBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ParserContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ParserHelpers.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/ParserState.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/PartialParseResultInternal.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/RazorParser.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/RazorSyntaxTreeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/RemoveTagHelperChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SeekableTextReader.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SourceLocationTracker.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SpanChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SpanContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SpanEditHandler.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SpanKindInternal.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/StatementChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/SyntaxConstants.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperAttributeNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperBlockRewriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperDirectiveType.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperParseTreeRewriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperPrefixDirectiveChunkGenerator.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperSpanInternal.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TextReaderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/Tokenizer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TokenizerBackedParser.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/TokenizerView.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Legacy/WhiteSpaceRewriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Microsoft.AspNetCore.Razor.Language.csproj delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/NotFoundProjectItem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/ProvideRazorExtensionInitializerAttribute.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorCSharpDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocumentExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorCodeGenerationOptions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorCodeGenerationOptionsBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorConfiguration.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnostic.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticCollection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticSeverity.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorEngineBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorEngineFeatureBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorEnginePhaseBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorExtension.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorExtensionInitializer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorHtmlDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorHtmlWriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorLanguageVersion.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorParserFeatureFlags.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorParserOptions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorParserOptionsBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProject.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProjectEngine.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProjectEngineBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProjectEngineBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProjectEngineFeatureBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProjectFileSystem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorProjectItem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorSourceDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorSourceDocumentProperties.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorSourceLineCollection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RazorSyntaxTree.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RequiredAttributeDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RequiredAttributeDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RequiredAttributeDescriptorBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RequiredAttributeDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/RequiredAttributeDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Resources.resx delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/SourceChange.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/SourceLocation.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/SourceMapping.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/SourceSpan.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/StreamSourceDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/StringSourceDocument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/SuppressChecksumOptionsFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/ArrayElement.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/ChildSyntaxList.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/Generated/Syntax.xml.Internal.Generated.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/Generated/Syntax.xml.Main.Generated.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/Generated/Syntax.xml.Syntax.Generated.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/GreenNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/GreenNodeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/MarkupEndTagSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/MarkupStartTagSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/RazorDirectiveSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/RazorSyntaxNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxList.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxListBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxListBuilderOfT.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxListOfT.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxListPool.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxRewriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxToken.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxTrivia.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/SyntaxVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/InternalSyntax/WhitespaceTokenCache.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupEndTagSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupMinimizedTagHelperAttributeSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupMinimizedTagHelperDirectiveAttributeSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupStartTagSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupTagHelperAttributeSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupTagHelperDirectiveAttributeSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupTagHelperElementSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupTagHelperEndTagSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/MarkupTagHelperStartTagSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/NodeFlags.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/ObjectPool.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/RazorDirectiveSyntax.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/RazorSyntaxNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SpecializedCollections.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/StackGuard.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/Syntax.xml delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxAnnotation.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxFactory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxKind.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxList.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxListBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxListBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxListBuilderOfT.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxListOfT.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxNode.Iterators.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxNode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxNodeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxReplacer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxRewriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxSerializer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxToken.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxTrivia.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxTriviaList.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxTriviaListBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxUtilities.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/SyntaxWalker.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/Syntax/TextSpan.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperAttributeInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperBinder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperBinding.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperConventions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptorBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptorExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDescriptorProviderContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperDocumentContext.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperMatchingConventions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperMetadata.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagHelperSpanVisitor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagMatchingRuleDescriptor.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagMatchingRuleDescriptorBuilder.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagMatchingRuleDescriptorComparer.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagMode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TagStructure.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TypeNameFeature.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/TypeNameRewriter.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/VirtualRazorProjectFileSystem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/baseline.netcore.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/baseline.netframework.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/breakingchanges.netcore.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Language/breakingchanges.netframework.json delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Application.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/CachingMetadataReference.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Client.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/CommandBase.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/CompilerHost.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/CompositeRazorProjectFileSystem.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ConcurrentLruCache.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Connection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ConnectionHost.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ConnectionResult.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/DebugMode.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/DefaultExtensionAssemblyLoader.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/DefaultExtensionDependencyChecker.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/DefaultRequestDispatcher.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/DiscoverCommand.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/EventBus.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ExtensionAssemblyLoader.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ExtensionDependencyChecker.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/GenerateCommand.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Memory.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/MetadataCache.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/MetadataReaderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Microsoft.AspNetCore.Razor.Tools.csproj delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/MutexName.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/PipeName.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Program.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/RequestDispatcher.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerCommand.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/CompletedServerResponse.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/MismatchedVersionServerResponse.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/NativeMethods.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/RejectedServerResponse.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/RequestArgument.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ServerConnection.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ServerLogger.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ServerPaths.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ServerProtocol.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ServerRequest.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ServerResponse.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ServerProtocol/ShutdownServerResponse.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ShadowCopyManager.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/ShutdownCommand.cs delete mode 100644 src/Razor/src/Microsoft.AspNetCore.Razor.Tools/runtimeconfig.template.json delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/AssemblyIdentityEqualityComparer.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/BindTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/CompilationTagHelperFeature.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/CompilerFeatures.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/ComponentDetectionConventions.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/ComponentTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/DefaultMetadataReferenceFeature.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/DefaultTagHelperDescriptorFactory.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/DefaultTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/DefaultTypeNameFeature.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/EventHandlerTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/FilePathComparer.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/FilePathComparison.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/GenericTypeNameRewriter.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/GlobalQualifiedTypeNameRewriter.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/IMetadataReferenceFeature.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/KeyTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/Microsoft.CodeAnalysis.Razor.csproj delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/RazorDiagnosticFactory.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/RazorLanguage.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/RazorProjectEngineBuilderExtensions.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/RefTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/RequiredAttributeParser.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/Resources.resx delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/SourceSpanExtensions.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/SplatTagHelperDescriptorProvider.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/TagHelperDescriptorProviderContextExtensions.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/TagHelperTypeVisitor.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/TagHelperTypes.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/TextChangeExtensions.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/TextSpanExtensions.cs delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/baseline.netcore.json delete mode 100644 src/Razor/src/Microsoft.CodeAnalysis.Razor/baseline.netframework.json delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/AssemblyItem.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/DotnetToolTask.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/FindAssembliesWithReferencesTo.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/GenerateStaticWebAssetsManifest.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/GenerateStaticWebAsssetsPropsFile.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/Microsoft.NET.Sdk.Razor.csproj delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/Microsoft.NET.Sdk.Razor.nuspec delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/RazorGenerate.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/RazorTagHelper.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/ReferenceAssemblyNotFoundException.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/ReferenceResolver.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/Sdk/Sdk.Razor.StaticAssets.ProjectSystem.props delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/Sdk/Sdk.props delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/Sdk/Sdk.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/StaticWebAssetsGeneratePackagePropsFile.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/ValidateStaticWebAssetsUniquePaths.cs delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/_._ delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/baseline.netcore.json delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/baseline.netframework.json delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Component.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Configuration.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.DesignTime.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.GenerateAssemblyInfo.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.MvcApplicationPartsDiscovery.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.props delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Rules/RazorComponentWithTargetPath.xaml delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Rules/RazorConfiguration.xaml delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Rules/RazorExtension.xaml delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Rules/RazorGeneral.xaml delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Rules/RazorGenerateWithTargetPath.xaml delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Sdk.Razor.CurrentVersion.props delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/buildMultiTargeting/Microsoft.NET.Sdk.Razor.props delete mode 100644 src/Razor/src/Microsoft.NET.Sdk.Razor/buildMultiTargeting/Sdk.Razor.CurrentVersion.MultiTargeting.targets delete mode 100644 src/Razor/src/RazorPageGenerator/Program.cs delete mode 100644 src/Razor/src/RazorPageGenerator/RazorPageGenerator.csproj delete mode 100644 src/Razor/src/RazorPageGenerator/RazorPageGeneratorResult.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/CodeGenerationIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcImportProjectFeatureTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcShim.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/PageDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/SourceMappingsSerializer.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TagHelperDescriptorExtensionsTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirectiveWithViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.html delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperDescriptorFactoryTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTypeVisitorTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/xunit.runner.json delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/InjectDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/InjectTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/IntegrationTests/CodeGenerationIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/LegacySectionTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test.csproj delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ModelDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ModelExpressionPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/MvcImportProjectFeatureTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/MvcShim.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/MvcViewDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/SourceMappingsSerializer.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TagHelperDescriptorExtensionsTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ViewComponentTagHelperDescriptorFactoryTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ViewComponentTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ViewComponentTagHelperPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ViewComponentTagHelperTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/ViewComponentTypeVisitorTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/xunit.runner.json delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/AssemblyAttributeInjectionPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InjectDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InjectTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InstrumentationPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/IntegrationTests/CodeGenerationIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/IntegrationTests/InstrumentationPassIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test.csproj delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ModelDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ModelExpressionPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/MvcImportProjectFeatureTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/MvcShim.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/MvcViewDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/NamespaceDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/PageDirectiveTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/RazorPageDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/SourceMappingsSerializer.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TagHelperDescriptorExtensionsTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPageWithNoLeadingPageDirective_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.codegen.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.ir.txt delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ViewComponentTagHelperDescriptorFactoryTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ViewComponentTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ViewComponentTagHelperPassTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ViewComponentTagHelperTargetExtensionTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/ViewComponentTypeVisitorTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/xunit.runner.json delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/CompositeRazorProjectFileSystemTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/ConcurrentLruCacheTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/DefaultExtensionAssemblyLoaderTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/DefaultExtensionDependencyCheckerTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/DefaultRequestDispatcherTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/Infrastructure/ServerData.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/Infrastructure/ServerStats.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/Infrastructure/ServerUtilities.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/Infrastructure/TestableEventBus.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/LoaderTestResources.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/MetadataCacheTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/Microsoft.AspNetCore.Razor.Tools.Test.csproj delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/MvcShim.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/ServerCommandTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/ServerLifecycleTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/ServerProtocol/ServerProtocolTest.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/TempDirectory.cs delete mode 100644 src/Razor/test/Microsoft.AspNetCore.Razor.Tools.Test/TestDefaultExtensionAssemblyLoader.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/BuildVariables.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/GenerateAspNetCoreStaticAssetsManifestTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/GenerateStaticWebAssetsPropsFileTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/ApplicationPartDiscoveryIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/Assert.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIncrementalismTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntegrationTest11.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntegrationTest21.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntegrationTest22.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntegrationTest22NetFx.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntegrationTestLegacy.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildIntrospectionTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildPerformanceTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildServerIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildServerTestFixture.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildServerTestFixtureBase.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/BuildWithComponentsIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/ConfigurationMetadataIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/DesignTimeBuildIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/FIleThumbPrint.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/InitializeTestProjectAttribute.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/LegacyBuildServerTestFixture.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/MSBuildIntegrationTestBase.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/MSBuildProcessKind.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/MSBuildProcessManager.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/MSBuildResult.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/PackIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/ProjectDirectory.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/PublishIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/RazorCompileIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/RazorGenerateIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/IntegrationTests/StaticWebAssetsIntegrationTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/Microsoft.NET.Sdk.Razor.Test.csproj delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/ReferenceResolverTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/StaticWebAssetsGeneratePackagePropsFileTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/ValidateStaticWebAssetsUniquePathsTest.cs delete mode 100644 src/Razor/test/Microsoft.NET.Sdk.Razor.Test/xunit.runner.json delete mode 100644 src/Razor/test/RazorLanguage.Test/BoundAttributeDescriptorExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/CSharpCodeWriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/CodeTargetTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/DefaultCodeTargetBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/DefaultCodeTargetTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/DefaultDocumentWriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/DesignTimeNodeWriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/LiteralRuntimeNodeWriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/RuntimeNodeWriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Components/ComponentDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Components/ComponentDuplicateAttributeDiagnosticPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Components/ComponentMarkupBlockPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Components/ComponentMarkupEncodingPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Components/NodeAssert.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultAllowedChildTagDescriptorBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultBoundAttributeDescriptorBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultDocumentClassifierPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultItemCollectionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorCSharpLoweringPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorCodeDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorDiagnosticTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorDirectiveClassifierPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorDocumentClassifierPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorEngineBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorEngineTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorOptimizationPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorParsingPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorProjectFileSystemTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorProjectItemTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorSyntaxTreePhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRazorTagHelperBinderPhaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DefaultRequiredAttributeDescriptorBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DirectiveDescriptorBuilderExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DirectiveDescriptorTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DirectiveRemovalOptimizationPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DirectiveTokenEditHandlerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/DocumentClassifierPassBaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/DefaultMetadataIdentifierFeatureTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperOptimizationPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/FunctionsDirectivePassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/InheritsDirectivePassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributePassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributeTargetExtensionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/PreallocatedAttributeTargetExtensionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/SectionDirectivePassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/SectionTargetExtensionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Extensions/TemplateTargetExtensionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/HtmlConventionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/HtmlNodeOptimizationPassTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/BasicIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/CodeGenerationIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentBindIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentChildContentIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentCodeGenerationTestBase.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDesignTimeCodeGenerationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDirectiveIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiscoveryIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentFilePathIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentGenericTypeIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentImportsIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentRuntimeCodeGenerationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTemplateIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTypingTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/ExtensibleDirectiveTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/TagHelpersIntegrationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/IntegrationTests/TestTagHelperDescriptors.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Intermediate/ExtensionIntermediateNodeTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeReferenceTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeWalkerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/LargeTextSourceDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/BaselineWriter.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpAutoCompleteTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpBlockTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpCodeParserTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpErrorTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpExplicitExpressionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpFunctionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpImplicitExpressionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpLanguageCharacteristicsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpNestedStatementsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpRazorCommentsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpReservedWordsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpSectionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpSpecialBlockTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpStatementTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTemplateTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpToMarkupSwitchTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerCommentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerIdentifierTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerLiteralTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerOperatorsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTestBase.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpVerbatimBlockTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CSharpWhitespaceHandlingTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/CodeBlockEditHandlerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/DirectiveCSharpTokenizerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/DirectiveHtmlTokenizerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/DisposableActionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlAttributeTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlBlockTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlErrorTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlMarkupParserTests.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlTagsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlToCodeSwitchTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTestBase.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/ImplicitExpressionEditHandlerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/LineTrackingStringBufferTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/MarkupElementGroupingTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/RazorDirectivesTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/RazorParserTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/SourceLocationTrackerTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/TagHelperBlockRewriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/TagHelperParseTreeRewriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/TagHelperRewritingTestBase.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/TextReaderExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/TokenizerLookaheadTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/TokenizerTestBase.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Legacy/WhiteSpaceRewriterTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/Microsoft.AspNetCore.Razor.Language.Test.csproj delete mode 100644 src/Razor/test/RazorLanguage.Test/Properties/AssemblyInfo.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorCodeDocumentExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorCodeDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorDiagnosticDescriptorTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorDiagnosticTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorEngineBuilderExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorEngineTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorLanguageVersionTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorParserFeatureFlagsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorProjectEngineBuilderExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorProjectEngineFeatureBaseTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorProjectEngineTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorProjectItemTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorProjectTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorSourceDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/RazorSyntaxTreeTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/SourceChangeTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/SourceLocationTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/SourceSpanTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/StreamSourceDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/StringSourceDocumentTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TagHelperBinderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TagHelperDescriptorBuilderTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TagHelperDescriptorExtensionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TagHelperMatchingConventionsTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Home.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/About/About.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/_ViewImports.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/_ViewImports.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.codegen.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithCulture/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithCulture/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithCulture/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentImports/_Imports.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentImports/_Imports.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentImports/_Imports.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentImports/_Imports.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithImportsFile/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithImportsFile/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithKey/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithKey/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithKey/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatExplictExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatExplictExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatExplictExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfT/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfT/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfT/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_597/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_609/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_772/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_773/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_784/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_Delegate_SpecifiesValueAndExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_Delegate_SpecifiesValueAndExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_Delegate_SpecifiesValueAndExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithCulture/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithCulture/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithCulture/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_StartEndTag/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentImports/_Imports.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentImports/_Imports.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentImports/_Imports.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameters/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithDocType/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithDocType/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImportsFile/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImportsFile/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_Generic_TypeInferenceBug/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_Generic_TypeInferenceBug/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_Generic_TypeInferenceBug/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplatExplictExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplatExplictExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplatExplictExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfT/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfT/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfT/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.diagnostics.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_773/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_773/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_784/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_784/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_784/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ScriptTag_WithErrorSuppressed/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.codegen.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.mappings.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithConditionalAttribute.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithConditionalAttribute.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithDataDashAttribute.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithDataDashAttribute.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/NestedTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/NestedTagHelpers.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/SimpleTagHelpers.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/SimpleTagHelpers.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.ir.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/FunctionsDirectiveAutoCompleteAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/FunctionsDirectiveAutoCompleteAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/FunctionsDirectiveAutoCompleteAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/FunctionsDirectiveAutoCompleteAtStartOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/FunctionsDirectiveAutoCompleteAtStartOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/FunctionsDirectiveAutoCompleteAtStartOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/SectionDirectiveAutoCompleteAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/SectionDirectiveAutoCompleteAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/SectionDirectiveAutoCompleteAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/SectionDirectiveAutoCompleteAtStartOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/SectionDirectiveAutoCompleteAtStartOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/SectionDirectiveAutoCompleteAtStartOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/VerbatimBlockAutoCompleteAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/VerbatimBlockAutoCompleteAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/VerbatimBlockAutoCompleteAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/VerbatimBlockAutoCompleteAtStartOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/VerbatimBlockAutoCompleteAtStartOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpAutoCompleteTest/VerbatimBlockAutoCompleteAtStartOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/AcceptsElseIfWithNoCondition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/AcceptsElseIfWithNoCondition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/AcceptsTrailingDotIntoImplicitExpressionWhenEmbeddedInCode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/AcceptsTrailingDotIntoImplicitExpressionWhenEmbeddedInCode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/AllowsEmptyBlockStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/AllowsEmptyBlockStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/BalancingBracketsIgnoresStringLiteralCharactersAndBrackets.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/BalancingBracketsIgnoresStringLiteralCharactersAndBrackets.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/BalancingBracketsIgnoresStringLiteralCharactersAndBracketsInsideBlockComments.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/BalancingBracketsIgnoresStringLiteralCharactersAndBracketsInsideBlockComments.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CSharpBlock_SingleLineControlFlowStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CSharpBlock_SingleLineControlFlowStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CSharpBlock_SingleLineControlFlowStatement_Error.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CSharpBlock_SingleLineControlFlowStatement_Error.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CSharpBlock_SingleLineControlFlowStatement_Error.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CapturesNewlineAfterUsing.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CapturesNewlineAfterUsing.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingSemicolon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingSemicolon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingWhileClauseEntirely.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingWhileClauseEntirely.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingWhileCondition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingWhileCondition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingWhileConditionWithSemicolon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesDoWhileBlockMissingWhileConditionWithSemicolon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesMarkupInDoWhileBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/CorrectlyParsesMarkupInDoWhileBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/DoesNotAllowMultipleFinallyBlocks.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/DoesNotAllowMultipleFinallyBlocks.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/DoesNotParseOnSwitchCharacterNotFollowedByOpenAngleOrColon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/DoesNotParseOnSwitchCharacterNotFollowedByOpenAngleOrColon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/DoesntCaptureWhitespaceAfterUsing.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/DoesntCaptureWhitespaceAfterUsing.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/HasErrorsIfNamespaceAliasMissingSemicolon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/HasErrorsIfNamespaceAliasMissingSemicolon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/HasErrorsIfNamespaceImportMissingSemicolon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/HasErrorsIfNamespaceImportMissingSemicolon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/LocalFunctionsWithGenerics.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/LocalFunctionsWithGenerics.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/LocalFunctionsWithRazor.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/LocalFunctionsWithRazor.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/NestedCodeBlockWithAtDoesntCauseError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/NestedCodeBlockWithAtDoesntCauseError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/NestedCodeBlockWithCSharpAt.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/NestedCodeBlockWithCSharpAt.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsersCanNestRecursively.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsersCanNestRecursively.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesCommentAtFirstOccurrenceOfEndSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesCommentAtFirstOccurrenceOfEndSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInEmail_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInRegex_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithinSectionDoesNotCreateDocumentLevelSpan.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/WithinSectionDoesNotCreateDocumentLevelSpan.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/AllowsInvalidTagNamesAsLongAsParserCanIdentifyEndTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/AllowsInvalidTagNamesAsLongAsParserCanIdentifyEndTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/ErrorIfEndTextTagContainsTextAfterName.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/ErrorIfEndTextTagContainsTextAfterName.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/ErrorIfEndTextTagContainsTextAfterName.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/ErrorIfStartTextTagContainsTextAfterName.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/ErrorIfStartTextTagContainsTextAfterName.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/ErrorIfStartTextTagContainsTextAfterName.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/StartingWithEndTagErrorsThenOutputsMarkupSegmentAndEndsBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/StartingWithEndTagErrorsThenOutputsMarkupSegmentAndEndsBlock.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/StartingWithEndTagErrorsThenOutputsMarkupSegmentAndEndsBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnclosedTagAtEOFErrorsOnMissingEndTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnclosedTagAtEOFErrorsOnMissingEndTag.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnclosedTagAtEOFErrorsOnMissingEndTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnclosedTopLevelTagErrorsOnOutermostUnclosedTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnclosedTopLevelTagErrorsOnOutermostUnclosedTag.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnclosedTopLevelTagErrorsOnOutermostUnclosedTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/CDataTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/CDataTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/CommentTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/CommentTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Invalid.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Invalid.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.diag.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.tspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.cspans.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.stree.txt delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/Source/BasicMarkup.cshtml delete mode 100644 src/Razor/test/RazorLanguage.Test/TestFiles/nested-1000.html delete mode 100644 src/Razor/test/RazorLanguage.Test/TestRazorProject.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/VirtualRazorProjectFileSystemTest.cs delete mode 100644 src/Razor/test/RazorLanguage.Test/xunit.runner.json delete mode 100644 src/Razor/test/RazorPageGenerator.Test/RazorPageGenerator.Test.csproj delete mode 100644 src/Razor/test/RazorPageGenerator.Test/RazorPageGeneratorTest.cs delete mode 100644 src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestFile.js delete mode 100644 src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.Designer.expected.cs delete mode 100644 src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.cshtml delete mode 100644 src/Razor/test/RazorPageGenerator.Test/xunit.runner.json diff --git a/eng/Versions.props b/eng/Versions.props index 224948d8fe1..e61ac7b5624 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -82,8 +82,6 @@ 5.0.0-preview.2.20121.3 5.0.0-preview.2.20121.3 - 5.0.0-preview.2.20121.3 - 5.0.0-preview.2.20121.3 5.0.0-preview.2.20121.3 0.10.13 15.8.166 diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/CSharpIdentifier.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/CSharpIdentifier.cs deleted file mode 100644 index a7571910d7c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/CSharpIdentifier.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Globalization; -using System.Text; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal static class CSharpIdentifier - { - private const string CshtmlExtension = ".cshtml"; - - public static string GetClassNameFromPath(string path) - { - if (string.IsNullOrEmpty(path)) - { - return path; - } - - if (path.EndsWith(CshtmlExtension, StringComparison.OrdinalIgnoreCase)) - { - path = path.Substring(0, path.Length - CshtmlExtension.Length); - } - - return SanitizeClassName(path); - } - - // CSharp Spec §2.4.2 - private static bool IsIdentifierStart(char character) - { - return char.IsLetter(character) || - character == '_' || - CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.LetterNumber; - } - - public static bool IsIdentifierPart(char character) - { - return char.IsDigit(character) || - IsIdentifierStart(character) || - IsIdentifierPartByUnicodeCategory(character); - } - - private static bool IsIdentifierPartByUnicodeCategory(char character) - { - var category = CharUnicodeInfo.GetUnicodeCategory(character); - - return category == UnicodeCategory.NonSpacingMark || // Mn - category == UnicodeCategory.SpacingCombiningMark || // Mc - category == UnicodeCategory.ConnectorPunctuation || // Pc - category == UnicodeCategory.Format; // Cf - } - - public static string SanitizeClassName(string inputName) - { - if (string.IsNullOrEmpty(inputName)) - { - return inputName; - } - - if (!IsIdentifierStart(inputName[0]) && IsIdentifierPart(inputName[0])) - { - inputName = "_" + inputName; - } - - var builder = new StringBuilder(inputName.Length); - for (var i = 0; i < inputName.Length; i++) - { - var ch = inputName[i]; - builder.Append(IsIdentifierPart(ch) ? ch : '_'); - } - - return builder.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ExtensionInitializer.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ExtensionInitializer.cs deleted file mode 100644 index 51f16b552f8..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ExtensionInitializer.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal class ExtensionInitializer : RazorExtensionInitializer - { - public override void Initialize(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - if (builder.Configuration.ConfigurationName == "MVC-1.0") - { - RazorExtensions.Register(builder); - } - else if (builder.Configuration.ConfigurationName == "MVC-1.1") - { - RazorExtensions.Register(builder); - RazorExtensions.RegisterViewComponentTagHelpers(builder); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IInjectTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IInjectTargetExtension.cs deleted file mode 100644 index 781932ba8c9..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IInjectTargetExtension.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public interface IInjectTargetExtension : ICodeTargetExtension - { - void WriteInjectProperty(CodeRenderingContext context, InjectIntermediateNode node); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IViewComponentTagHelperTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IViewComponentTagHelperTargetExtension.cs deleted file mode 100644 index 45a0d581a50..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/IViewComponentTagHelperTargetExtension.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public interface IViewComponentTagHelperTargetExtension : ICodeTargetExtension - { - void WriteViewComponentTagHelper(CodeRenderingContext context, ViewComponentTagHelperIntermediateNode node); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectDirective.cs deleted file mode 100644 index f5ea5831217..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectDirective.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public static class InjectDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "inject", - DirectiveKind.SingleLine, - builder => - { - builder - .AddTypeToken(Resources.InjectDirective_TypeToken_Name, Resources.InjectDirective_TypeToken_Description) - .AddMemberToken(Resources.InjectDirective_MemberToken_Name, Resources.InjectDirective_MemberToken_Description); - - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = Resources.InjectDirective_Description; - }); - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - builder.AddTargetExtension(new InjectTargetExtension()); - return builder; - } - - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - // Runs after the @model and @namespace directives - public override int Order => 10; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - var modelType = ModelDirective.GetModelType(documentNode); - - var properties = new HashSet(StringComparer.Ordinal); - - for (var i = visitor.Directives.Count - 1; i >= 0; i--) - { - var directive = visitor.Directives[i]; - var tokens = directive.Tokens.ToArray(); - if (tokens.Length < 2) - { - continue; - } - - var typeName = tokens[0].Content; - var memberName = tokens[1].Content; - - if (!properties.Add(memberName)) - { - continue; - } - - typeName = typeName.Replace("", "<" + modelType + ">"); - - var injectNode = new InjectIntermediateNode() - { - TypeName = typeName, - MemberName = memberName, - }; - - visitor.Class.Children.Add(injectNode); - } - } - } - - private class Visitor : IntermediateNodeWalker - { - public ClassDeclarationIntermediateNode Class { get; private set; } - - public IList Directives { get; } = new List(); - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - Directives.Add(node); - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - builder.AddTargetExtension(new InjectTargetExtension()); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectIntermediateNode.cs deleted file mode 100644 index 8325c2b7a1f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectIntermediateNode.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public class InjectIntermediateNode : ExtensionIntermediateNode - { - public string TypeName { get; set; } - - public string MemberName { get; set; } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var extension = target.GetExtension(); - if (extension == null) - { - ReportMissingCodeTargetExtension(context); - return; - } - - extension.WriteInjectProperty(context, this); - } - - public override void FormatNode(IntermediateNodeFormatter formatter) - { - formatter.WriteContent(MemberName); - - formatter.WriteProperty(nameof(MemberName), MemberName); - formatter.WriteProperty(nameof(TypeName), TypeName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectTargetExtension.cs deleted file mode 100644 index d64023ade7e..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/InjectTargetExtension.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public class InjectTargetExtension : IInjectTargetExtension - { - private const string RazorInjectAttribute = "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]"; - - public void WriteInjectProperty(CodeRenderingContext context, InjectIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var property = $"public {node.TypeName} {node.MemberName} {{ get; private set; }}"; - - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.CodeWriter - .WriteLine(RazorInjectAttribute) - .WriteLine(property); - } - } - else - { - context.CodeWriter - .WriteLine(RazorInjectAttribute) - .WriteLine(property); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/LegacySectionTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/LegacySectionTargetExtension.cs deleted file mode 100644 index 52698cdfe86..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/LegacySectionTargetExtension.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - internal class LegacySectionTargetExtension : ISectionTargetExtension - { - private static readonly string DefaultWriterName = "__razor_section_writer"; - - public static readonly string DefaultSectionMethodName = "DefineSection"; - - public string SectionMethodName { get; set; } = DefaultSectionMethodName; - - public void WriteSection(CodeRenderingContext context, SectionIntermediateNode node) - { - context.CodeWriter - .WriteStartMethodInvocation(SectionMethodName) - .Write("\"") - .Write(node.SectionName) - .Write("\", "); - - using (context.CodeWriter.BuildAsyncLambda(DefaultWriterName)) - { - context.RenderChildren(node); - } - - context.CodeWriter.WriteEndMethodInvocation(endLine: true); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj deleted file mode 100644 index f949a8e8ca7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj +++ /dev/null @@ -1,22 +0,0 @@ - - - - ASP.NET Core design time hosting infrastructure for the Razor view engine. - netstandard2.0 - $(PackageTags);aspnetcoremvc - false - false - - - - - Shared\CodeWriterExtensions.cs - - - - - - - - - diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelDirective.cs deleted file mode 100644 index c16f46153ff..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelDirective.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public static class ModelDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "model", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken(Resources.ModelDirective_TypeToken_Name, Resources.ModelDirective_TypeToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.ModelDirective_Description; - }); - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - return builder; - } - - public static string GetModelType(DocumentIntermediateNode document) - { - if (document == null) - { - throw new ArgumentNullException(nameof(document)); - } - - var visitor = new Visitor(); - return GetModelType(document, visitor); - } - - private static string GetModelType(DocumentIntermediateNode document, Visitor visitor) - { - visitor.Visit(document); - - for (var i = visitor.ModelDirectives.Count - 1; i >= 0; i--) - { - var directive = visitor.ModelDirectives[i]; - - var tokens = directive.Tokens.ToArray(); - if (tokens.Length >= 1) - { - return tokens[0].Content; - } - } - - return "dynamic"; - } - - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - // Runs after the @inherits directive - public override int Order => 5; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - var modelType = GetModelType(documentNode, visitor); - - if (documentNode.Options.DesignTime) - { - // Alias the TModel token to a known type. - // This allows design time compilation to succeed for Razor files where the token isn't replaced. - var typeName = $"global::{typeof(object).FullName}"; - var usingNode = new UsingDirectiveIntermediateNode() - { - Content = $"TModel = {typeName}" - }; - - visitor.Namespace?.Children.Insert(0, usingNode); - } - - var baseType = visitor.Class?.BaseType?.Replace("", "<" + modelType + ">"); - visitor.Class.BaseType = baseType; - } - } - - private class Visitor : IntermediateNodeWalker - { - public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - - public ClassDeclarationIntermediateNode Class { get; private set; } - - public IList ModelDirectives { get; } = new List(); - - public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) - { - if (Namespace == null) - { - Namespace = node; - } - - base.VisitNamespaceDeclaration(node); - } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - ModelDirectives.Add(node); - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelExpressionPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelExpressionPass.cs deleted file mode 100644 index c943afe5bc2..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ModelExpressionPass.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public class ModelExpressionPass : IntermediateNodePassBase, IRazorOptimizationPass - { - private const string ModelExpressionTypeName = "Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression"; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - public List TagHelpers { get; } = new List(); - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - if (string.Equals(node.BoundAttribute.TypeName, ModelExpressionTypeName, StringComparison.Ordinal) || - (node.IsIndexerNameMatch && - string.Equals(node.BoundAttribute.IndexerTypeName, ModelExpressionTypeName, StringComparison.Ordinal))) - { - var expression = new CSharpExpressionIntermediateNode(); - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "ModelExpressionProvider.CreateModelExpression(ViewData, __model => ", - }); - - if (node.Children.Count == 1 && node.Children[0] is IntermediateToken token && token.IsCSharp) - { - // A 'simple' expression will look like __model => __model.Foo - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "__model." - }); - - expression.Children.Add(token); - } - else - { - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is CSharpExpressionIntermediateNode nestedExpression) - { - for (var j = 0; j < nestedExpression.Children.Count; j++) - { - if (nestedExpression.Children[j] is IntermediateToken cSharpToken && - cSharpToken.IsCSharp) - { - expression.Children.Add(cSharpToken); - } - } - - continue; - } - } - } - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = ")", - }); - - node.Children.Clear(); - - node.Children.Add(expression); - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcImportProjectFeature.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcImportProjectFeature.cs deleted file mode 100644 index fa8a40fedb7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcImportProjectFeature.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal class MvcImportProjectFeature : RazorProjectEngineFeatureBase, IImportProjectFeature - { - private const string ImportsFileName = "_ViewImports.cshtml"; - - public IReadOnlyList GetImports(RazorProjectItem projectItem) - { - if (projectItem == null) - { - throw new ArgumentNullException(nameof(projectItem)); - } - - // Don't add MVC imports for a component - this shouldn't happen for v1, but just in case. - if (FileKinds.IsComponent(projectItem.FileKind)) - { - return Array.Empty(); - } - - var imports = new List(); - AddDefaultDirectivesImport(imports); - - // We add hierarchical imports second so any default directive imports can be overridden. - AddHierarchicalImports(projectItem, imports); - - return imports; - } - - // Internal for testing - internal static void AddDefaultDirectivesImport(List imports) - { - imports.Add(DefaultDirectivesProjectItem.Instance); - } - - // Internal for testing - internal void AddHierarchicalImports(RazorProjectItem projectItem, List imports) - { - // We want items in descending order. FindHierarchicalItems returns items in ascending order. - var importProjectItems = ProjectEngine.FileSystem.FindHierarchicalItems(projectItem.FilePath, ImportsFileName).Reverse(); - imports.AddRange(importProjectItems); - } - - private class DefaultDirectivesProjectItem : RazorProjectItem - { - private readonly byte[] _defaultImportBytes; - - private DefaultDirectivesProjectItem() - { - var preamble = Encoding.UTF8.GetPreamble(); - var content = @" -@using System -@using System.Collections.Generic -@using System.Linq -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Mvc -@using Microsoft.AspNetCore.Mvc.Rendering -@using Microsoft.AspNetCore.Mvc.ViewFeatures -@inject global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper Html -@inject global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json -@inject global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component -@inject global::Microsoft.AspNetCore.Mvc.IUrlHelper Url -@inject global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor -"; - var contentBytes = Encoding.UTF8.GetBytes(content); - - _defaultImportBytes = new byte[preamble.Length + contentBytes.Length]; - preamble.CopyTo(_defaultImportBytes, 0); - contentBytes.CopyTo(_defaultImportBytes, preamble.Length); - } - - public override string BasePath => null; - - public override string FilePath => null; - - public override string PhysicalPath => null; - - public override bool Exists => true; - - public static DefaultDirectivesProjectItem Instance { get; } = new DefaultDirectivesProjectItem(); - - public override Stream Read() => new MemoryStream(_defaultImportBytes); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcViewDocumentClassifierPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcViewDocumentClassifierPass.cs deleted file mode 100644 index b4a5c930f6a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/MvcViewDocumentClassifierPass.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public class MvcViewDocumentClassifierPass : DocumentClassifierPassBase - { - public static readonly string MvcViewDocumentKind = "mvc.1.0.view"; - - protected override string DocumentKind => MvcViewDocumentKind; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) => true; - - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); - - @namespace.Content = "AspNetCore"; - - var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; - if (string.IsNullOrEmpty(filePath)) - { - // It's possible for a Razor document to not have a file path. - // Eg. When we try to generate code for an in memory document like default imports. - var checksum = BytesToString(codeDocument.Source.GetChecksum()); - @class.ClassName = $"AspNetCore_{checksum}"; - } - else - { - @class.ClassName = CSharpIdentifier.GetClassNameFromPath(filePath); - } - - @class.BaseType = "global::Microsoft.AspNetCore.Mvc.Razor.RazorPage"; - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - - method.MethodName = "ExecuteAsync"; - method.Modifiers.Clear(); - method.Modifiers.Add("public"); - method.Modifiers.Add("async"); - method.Modifiers.Add("override"); - method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; - } - - private static string BytesToString(byte[] bytes) - { - if (bytes == null) - { - throw new ArgumentNullException(nameof(bytes)); - } - - var result = new StringBuilder(bytes.Length); - for (var i = 0; i < bytes.Length; i++) - { - // The x2 format means lowercase hex, where each byte is a 2-character string. - result.Append(bytes[i].ToString("x2")); - } - - return result.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Properties/AssemblyInfo.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Properties/AssemblyInfo.cs deleted file mode 100644 index 8233c626078..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X; -using Microsoft.AspNetCore.Razor.Language; - -[assembly: ProvideRazorExtensionInitializer("MVC-1.0", typeof(ExtensionInitializer))] -[assembly: ProvideRazorExtensionInitializer("MVC-1.1", typeof(ExtensionInitializer))] - -[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensions.cs deleted file mode 100644 index 6fe73b57aeb..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensions.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public static class RazorExtensions - { - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - InjectDirective.Register(builder); - ModelDirective.Register(builder); - - InheritsDirective.Register(builder); - - builder.Features.Add(new DefaultTagHelperDescriptorProvider()); - - // Register section directive with the 1.x compatible target extension. - builder.AddDirective(SectionDirective.Directive); - builder.Features.Add(new SectionDirectivePass()); - builder.AddTargetExtension(new LegacySectionTargetExtension()); - - builder.AddTargetExtension(new TemplateTargetExtension() - { - TemplateTypeName = "global::Microsoft.AspNetCore.Mvc.Razor.HelperResult", - }); - - builder.Features.Add(new ModelExpressionPass()); - builder.Features.Add(new MvcViewDocumentClassifierPass()); - - builder.Features.Add(new MvcImportProjectFeature()); - - // The default C# language version for what this Razor configuration supports. - builder.SetCSharpLanguageVersion(LanguageVersion.CSharp7_3); - } - - public static void RegisterViewComponentTagHelpers(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.Features.Add(new ViewComponentTagHelperDescriptorProvider()); - - builder.Features.Add(new ViewComponentTagHelperPass()); - builder.AddTargetExtension(new ViewComponentTagHelperTargetExtension()); - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static void Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - EnsureDesignTime(builder); - - InjectDirective.Register(builder); - ModelDirective.Register(builder); - - FunctionsDirective.Register(builder); - InheritsDirective.Register(builder); - - builder.Features.Add(new DefaultTagHelperDescriptorProvider()); - - // Register section directive with the 1.x compatible target extension. - builder.AddDirective(SectionDirective.Directive); - builder.Features.Add(new SectionDirectivePass()); - builder.AddTargetExtension(new LegacySectionTargetExtension()); - - builder.AddTargetExtension(new TemplateTargetExtension() - { - TemplateTypeName = "global::Microsoft.AspNetCore.Mvc.Razor.HelperResult", - }); - - builder.Features.Add(new ModelExpressionPass()); - builder.Features.Add(new MvcViewDocumentClassifierPass()); - } - - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static void RegisterViewComponentTagHelpers(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - EnsureDesignTime(builder); - - builder.Features.Add(new ViewComponentTagHelperDescriptorProvider()); - builder.Features.Add(new ViewComponentTagHelperPass()); - builder.AddTargetExtension(new ViewComponentTagHelperTargetExtension()); - } - -#pragma warning disable CS0618 // Type or member is obsolete - private static void EnsureDesignTime(IRazorEngineBuilder builder) -#pragma warning restore CS0618 // Type or member is obsolete - { - if (builder.DesignTime) - { - return; - } - - throw new NotSupportedException(Resources.RuntimeCodeGenerationNotSupported); - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensionsDiagnosticFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensionsDiagnosticFactory.cs deleted file mode 100644 index af883af3d4d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/RazorExtensionsDiagnosticFactory.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal class RazorExtensionsDiagnosticFactory - { - private const string DiagnosticPrefix = "RZ"; - - internal static readonly RazorDiagnosticDescriptor ViewComponent_CannotFindMethod = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3900", - () => ViewComponentResources.ViewComponent_CannotFindMethod, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_CannotFindMethod(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_CannotFindMethod, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - ViewComponentTypes.AsyncMethodName, - tagHelperType); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_AmbiguousMethods = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3901", - () => ViewComponentResources.ViewComponent_AmbiguousMethods, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_AmbiguousMethods(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_AmbiguousMethods, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - tagHelperType, - ViewComponentTypes.SyncMethodName, - ViewComponentTypes.AsyncMethodName); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_AsyncMethod_ShouldReturnTask = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3902", - () => ViewComponentResources.ViewComponent_AsyncMethod_ShouldReturnTask, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_AsyncMethod_ShouldReturnTask(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_AsyncMethod_ShouldReturnTask, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.AsyncMethodName, - tagHelperType, - nameof(Task)); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_SyncMethod_ShouldReturnValue = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3903", - () => ViewComponentResources.ViewComponent_SyncMethod_ShouldReturnValue, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_SyncMethod_ShouldReturnValue(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_SyncMethod_ShouldReturnValue, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - tagHelperType); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_SyncMethod_CannotReturnTask = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3904", - () => ViewComponentResources.ViewComponent_SyncMethod_CannotReturnTask, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_SyncMethod_CannotReturnTask(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_SyncMethod_CannotReturnTask, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - tagHelperType, - nameof(Task)); - - return diagnostic; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Resources.resx b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Resources.resx deleted file mode 100644 index 6754c87c528..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/Resources.resx +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Value cannot be null or empty. - - - Inject a service from the application's service container into a property. - - - The name of the property. - - - PropertyName - - - The type of the service to inject. - - - TypeName - - - Specify the view or page model for the page. - - - The model type. - - - TypeName - - - The 'inherits' keyword is not allowed when a '{0}' keyword is used. - - - A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - - - The '{0}' keyword must be followed by a type name on the same line. - - - Only one '{0}' statement is allowed in a file. - - - Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - - - The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - - - Runtime code generation for Mvc 1.x is not supported. - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/TagHelperDescriptorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/TagHelperDescriptorExtensions.cs deleted file mode 100644 index b455fc74231..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/TagHelperDescriptorExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public static class TagHelperDescriptorExtensions - { - /// - /// Indicates whether a represents a view component. - /// - /// The to check. - /// Whether a represents a view component. - public static bool IsViewComponentKind(this TagHelperDescriptor tagHelper) - { - if (tagHelper == null) - { - throw new ArgumentNullException(nameof(tagHelper)); - } - - return string.Equals(ViewComponentTagHelperConventions.Kind, tagHelper.Kind, StringComparison.Ordinal); - } - - public static string GetViewComponentName(this TagHelperDescriptor tagHelper) - { - if (tagHelper == null) - { - throw new ArgumentNullException(nameof(tagHelper)); - } - - tagHelper.Metadata.TryGetValue(ViewComponentTagHelperMetadata.Name, out var result); - return result; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentResources.resx b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentResources.resx deleted file mode 100644 index d6aad4ff3fc..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentResources.resx +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - View component '{0}' must have exactly one public method named '{1}' or '{2}'. - - - Method '{0}' of view component '{1}' should be declared to return {2}&lt;T&gt;. - - - Could not find an '{0}' or '{1}' method for the view component '{2}'. - - - Method '{0}' of view component '{1}' cannot return a {2}. - - - Method '{0}' of view component '{1}' should be declared to return a value. - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperConventions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperConventions.cs deleted file mode 100644 index f02d874dc5a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperConventions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public static class ViewComponentTagHelperConventions - { - public static readonly string Kind = "MVC.ViewComponent"; - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorFactory.cs deleted file mode 100644 index 795786f5b80..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorFactory.cs +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal class ViewComponentTagHelperDescriptorFactory - { - private readonly INamedTypeSymbol _viewComponentAttributeSymbol; - private readonly INamedTypeSymbol _genericTaskSymbol; - private readonly INamedTypeSymbol _taskSymbol; - private readonly INamedTypeSymbol _iDictionarySymbol; - - private static readonly SymbolDisplayFormat FullNameTypeDisplayFormat = - SymbolDisplayFormat.FullyQualifiedFormat - .WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted) - .WithMiscellaneousOptions(SymbolDisplayFormat.FullyQualifiedFormat.MiscellaneousOptions & (~SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); - - private static readonly IReadOnlyDictionary PrimitiveDisplayTypeNameLookups = new Dictionary(StringComparer.Ordinal) - { - [typeof(byte).FullName] = "byte", - [typeof(sbyte).FullName] = "sbyte", - [typeof(int).FullName] = "int", - [typeof(uint).FullName] = "uint", - [typeof(short).FullName] = "short", - [typeof(ushort).FullName] = "ushort", - [typeof(long).FullName] = "long", - [typeof(ulong).FullName] = "ulong", - [typeof(float).FullName] = "float", - [typeof(double).FullName] = "double", - [typeof(char).FullName] = "char", - [typeof(bool).FullName] = "bool", - [typeof(object).FullName] = "object", - [typeof(string).FullName] = "string", - [typeof(decimal).FullName] = "decimal", - }; - - public ViewComponentTagHelperDescriptorFactory(Compilation compilation) - { - _viewComponentAttributeSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); - _genericTaskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.GenericTask); - _taskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.Task); - _iDictionarySymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.IDictionary); - } - - public virtual TagHelperDescriptor CreateDescriptor(INamedTypeSymbol type) - { - var assemblyName = type.ContainingAssembly.Name; - var shortName = GetShortName(type); - var tagName = $"vc:{HtmlConventions.ToHtmlCase(shortName)}"; - var typeName = $"__Generated__{shortName}ViewComponentTagHelper"; - var displayName = shortName + "ViewComponentTagHelper"; - var descriptorBuilder = TagHelperDescriptorBuilder.Create(ViewComponentTagHelperConventions.Kind, typeName, assemblyName); - descriptorBuilder.SetTypeName(typeName); - descriptorBuilder.DisplayName = displayName; - - if (TryFindInvokeMethod(type, out var method, out var diagnostic)) - { - var methodParameters = method.Parameters; - descriptorBuilder.TagMatchingRule(ruleBuilder => - { - ruleBuilder.TagName = tagName; - AddRequiredAttributes(methodParameters, ruleBuilder); - }); - - AddBoundAttributes(methodParameters, displayName, descriptorBuilder); - } - else - { - descriptorBuilder.Diagnostics.Add(diagnostic); - } - - descriptorBuilder.Metadata[ViewComponentTagHelperMetadata.Name] = shortName; - - var descriptor = descriptorBuilder.Build(); - return descriptor; - } - - private bool TryFindInvokeMethod(INamedTypeSymbol type, out IMethodSymbol method, out RazorDiagnostic diagnostic) - { - var methods = type.GetMembers() - .OfType() - .Where(m => - m.DeclaredAccessibility == Accessibility.Public && - (string.Equals(m.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal) || - string.Equals(m.Name, ViewComponentTypes.SyncMethodName, StringComparison.Ordinal))) - .ToArray(); - - if (methods.Length == 0) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_CannotFindMethod(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (methods.Length > 1) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_AmbiguousMethods(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - - var selectedMethod = methods[0]; - var returnType = selectedMethod.ReturnType as INamedTypeSymbol; - if (string.Equals(selectedMethod.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal)) - { - // Will invoke asynchronously. Method must not return Task or Task. - if (SymbolEqualityComparer.Default.Equals(returnType, _taskSymbol)) - { - // This is ok. - } - else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) - { - // This is ok. - } - else - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_AsyncMethod_ShouldReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - } - else - { - // Will invoke synchronously. Method must not return void, Task or Task. - if (returnType.SpecialType == SpecialType.System_Void) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_ShouldReturnValue(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (SymbolEqualityComparer.Default.Equals(returnType, _taskSymbol)) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_CannotReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_CannotReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - } - - method = selectedMethod; - diagnostic = null; - return true; - } - - private void AddRequiredAttributes(ImmutableArray methodParameters, TagMatchingRuleDescriptorBuilder builder) - { - foreach (var parameter in methodParameters) - { - if (GetIndexerValueTypeName(parameter) == null) - { - // Set required attributes only for non-indexer attributes. Indexer attributes can't be required attributes - // because there are two ways of setting values for the attribute. - builder.Attribute(attributeBuilder => - { - var lowerKebabName = HtmlConventions.ToHtmlCase(parameter.Name); - attributeBuilder.Name =lowerKebabName; - }); - } - } - } - - private void AddBoundAttributes(ImmutableArray methodParameters, string containingDisplayName, TagHelperDescriptorBuilder builder) - { - foreach (var parameter in methodParameters) - { - var lowerKebabName = HtmlConventions.ToHtmlCase(parameter.Name); - var typeName = parameter.Type.ToDisplayString(FullNameTypeDisplayFormat); - - if (!PrimitiveDisplayTypeNameLookups.TryGetValue(typeName, out var simpleName)) - { - simpleName = typeName; - } - - builder.BindAttribute(attributeBuilder => - { - attributeBuilder.Name = lowerKebabName; - attributeBuilder.TypeName = typeName; - attributeBuilder.DisplayName = $"{simpleName} {containingDisplayName}.{parameter.Name}"; - attributeBuilder.SetPropertyName(parameter.Name); - - if (parameter.Type.TypeKind == TypeKind.Enum) - { - attributeBuilder.IsEnum = true; - } - else - { - var dictionaryValueType = GetIndexerValueTypeName(parameter); - if (dictionaryValueType != null) - { - attributeBuilder.AsDictionary(lowerKebabName + "-", dictionaryValueType); - } - } - }); - } - } - - private string GetIndexerValueTypeName(IParameterSymbol parameter) - { - INamedTypeSymbol dictionaryType; - if (SymbolEqualityComparer.Default.Equals((parameter.Type as INamedTypeSymbol)?.ConstructedFrom, _iDictionarySymbol)) - { - dictionaryType = (INamedTypeSymbol)parameter.Type; - } - else if (parameter.Type.AllInterfaces.Any(s => SymbolEqualityComparer.Default.Equals(s.ConstructedFrom, _iDictionarySymbol))) - { - dictionaryType = parameter.Type.AllInterfaces.First(s => SymbolEqualityComparer.Default.Equals(s.ConstructedFrom, _iDictionarySymbol)); - } - else - { - dictionaryType = null; - } - - if (dictionaryType == null || dictionaryType.TypeArguments[0].SpecialType != SpecialType.System_String) - { - return null; - } - - var type = dictionaryType.TypeArguments[1]; - var typeName = type.ToDisplayString(FullNameTypeDisplayFormat); - - return typeName; - } - - private string GetShortName(INamedTypeSymbol componentType) - { - var viewComponentAttribute = componentType.GetAttributes().Where(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, _viewComponentAttributeSymbol)).FirstOrDefault(); - var name = viewComponentAttribute - ?.NamedArguments - .Where(namedArgument => string.Equals(namedArgument.Key, ViewComponentTypes.ViewComponent.Name, StringComparison.Ordinal)) - .FirstOrDefault() - .Value - .Value as string; - - if (!string.IsNullOrEmpty(name)) - { - var separatorIndex = name.LastIndexOf('.'); - if (separatorIndex >= 0) - { - return name.Substring(separatorIndex + 1); - } - else - { - return name; - } - } - - // Get name by convention - if (componentType.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) - { - return componentType.Name.Substring(0, componentType.Name.Length - ViewComponentTypes.ViewComponentSuffix.Length); - } - else - { - return componentType.Name; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorProvider.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorProvider.cs deleted file mode 100644 index 318994ec0eb..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public sealed class ViewComponentTagHelperDescriptorProvider : RazorEngineFeatureBase, ITagHelperDescriptorProvider - { - public int Order { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var compilation = context.GetCompilation(); - if (compilation == null) - { - // No compilation, nothing to do. - return; - } - - var vcAttribute = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); - var nonVCAttribute = compilation.GetTypeByMetadataName(ViewComponentTypes.NonViewComponentAttribute); - if (vcAttribute == null || vcAttribute.TypeKind == TypeKind.Error) - { - // Could not find attributes we care about in the compilation. Nothing to do. - return; - } - - var types = new List(); - var visitor = new ViewComponentTypeVisitor(vcAttribute, nonVCAttribute, types); - - // We always visit the global namespace. - visitor.Visit(compilation.Assembly.GlobalNamespace); - - foreach (var reference in compilation.References) - { - if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly) - { - if (IsTagHelperAssembly(assembly)) - { - visitor.Visit(assembly.GlobalNamespace); - } - } - } - - var factory = new ViewComponentTagHelperDescriptorFactory(compilation); - for (var i = 0; i < types.Count; i++) - { - var descriptor = factory.CreateDescriptor(types[i]); - - if (descriptor != null) - { - context.Results.Add(descriptor); - } - } - } - - private bool IsTagHelperAssembly(IAssemblySymbol assembly) - { - return assembly.Name != null && !assembly.Name.StartsWith("System.", StringComparison.Ordinal); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperIntermediateNode.cs deleted file mode 100644 index b1399ffbeab..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperIntermediateNode.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public sealed class ViewComponentTagHelperIntermediateNode : ExtensionIntermediateNode - { - public override IntermediateNodeCollection Children { get; } = IntermediateNodeCollection.ReadOnly; - - public string ClassName { get; set; } - - public TagHelperDescriptor TagHelper { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var extension = target.GetExtension(); - if (extension == null) - { - ReportMissingCodeTargetExtension(context); - return; - } - - extension.WriteViewComponentTagHelper(context, this); - } - - public override void FormatNode(IntermediateNodeFormatter formatter) - { - formatter.WriteContent(ClassName); - - formatter.WriteProperty(nameof(ClassName), ClassName); - formatter.WriteProperty(nameof(TagHelper), TagHelper?.DisplayName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperMetadata.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperMetadata.cs deleted file mode 100644 index 1718829c390..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperMetadata.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public static class ViewComponentTagHelperMetadata - { - /// - /// The key in a containing - /// the short name of a view component. - /// - public static readonly string Name = "MVC.ViewComponent.Name"; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperPass.cs deleted file mode 100644 index ba9938a1238..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperPass.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - public class ViewComponentTagHelperPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run after the default taghelper pass - public override int Order => IntermediateNodePassBase.DefaultFeatureOrder + 2000; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - var context = new Context(@namespace, @class); - - // For each VCTH *usage* we need to rewrite the tag helper node to use the tag helper runtime to construct - // and set properties on the the correct field, and using the name of the type we will generate. - var nodes = documentNode.FindDescendantNodes(); - for (var i = 0; i < nodes.Count; i++) - { - var node = nodes[i]; - foreach (var tagHelper in node.TagHelpers) - { - RewriteUsage(context, node, tagHelper); - } - } - - // Then for each VCTH *definition* that we've seen we need to generate the class that implements - // ITagHelper and the field that will hold it. - foreach (var tagHelper in context.TagHelpers) - { - AddField(context, tagHelper); - AddTagHelperClass(context, tagHelper); - } - } - - private void RewriteUsage(Context context, TagHelperIntermediateNode node, TagHelperDescriptor tagHelper) - { - if (!tagHelper.IsViewComponentKind()) - { - return; - } - - context.Add(tagHelper); - - // Now we need to insert a create node using the default tag helper runtime. This is similar to - // code in DefaultTagHelperOptimizationPass. - // - // Find the body node. - var i = 0; - while (i < node.Children.Count && node.Children[i] is TagHelperBodyIntermediateNode) - { - i++; - } - while (i < node.Children.Count && node.Children[i] is DefaultTagHelperBodyIntermediateNode) - { - i++; - } - - // Now find the last create node. - while (i < node.Children.Count && node.Children[i] is DefaultTagHelperCreateIntermediateNode) - { - i++; - } - - // Now i has the right insertion point. - node.Children.Insert(i, new DefaultTagHelperCreateIntermediateNode() - { - FieldName = context.GetFieldName(tagHelper), - TagHelper = tagHelper, - TypeName = context.GetFullyQualifiedName(tagHelper), - }); - - // Now we need to rewrite any set property nodes to use the default runtime. - for (i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is TagHelperPropertyIntermediateNode propertyNode && - propertyNode.TagHelper == tagHelper) - { - // This is a set property for this VCTH - we need to replace it with a node - // that will use our field and property name. - node.Children[i] = new DefaultTagHelperPropertyIntermediateNode(propertyNode) - { - FieldName = context.GetFieldName(tagHelper), - PropertyName = propertyNode.BoundAttribute.GetPropertyName(), - }; - } - } - } - - private void AddField(Context context, TagHelperDescriptor tagHelper) - { - // We need to insert a node for the field that will hold the tag helper. We've already generated a field name - // at this time and use it for all uses of the same tag helper type. - // - // We also want to preserve the ordering of the nodes for testability. So insert at the end of any existing - // field nodes. - var i = 0; - while (i < context.Class.Children.Count && context.Class.Children[i] is DefaultTagHelperRuntimeIntermediateNode) - { - i++; - } - - while (i < context.Class.Children.Count && context.Class.Children[i] is FieldDeclarationIntermediateNode) - { - i++; - } - - context.Class.Children.Insert(i, new FieldDeclarationIntermediateNode() - { - Annotations = - { - { CommonAnnotations.DefaultTagHelperExtension.TagHelperField, bool.TrueString }, - }, - Modifiers = - { - "private", - }, - FieldName = context.GetFieldName(tagHelper), - FieldType = "global::" + context.GetFullyQualifiedName(tagHelper), - }); - } - - private void AddTagHelperClass(Context context, TagHelperDescriptor tagHelper) - { - var node = new ViewComponentTagHelperIntermediateNode() - { - ClassName = context.GetClassName(tagHelper), - TagHelper = tagHelper - }; - - context.Class.Children.Add(node); - } - - private struct Context - { - private Dictionary _tagHelpers; - - public Context(NamespaceDeclarationIntermediateNode @namespace, ClassDeclarationIntermediateNode @class) - { - Namespace = @namespace; - Class = @class; - - _tagHelpers = new Dictionary(); - } - - public ClassDeclarationIntermediateNode Class { get; } - - public NamespaceDeclarationIntermediateNode Namespace { get; } - - - public IEnumerable TagHelpers => _tagHelpers.Keys; - - public bool Add(TagHelperDescriptor tagHelper) - { - if (_tagHelpers.ContainsKey(tagHelper)) - { - return false; - } - - var className = $"__Generated__{tagHelper.GetViewComponentName()}ViewComponentTagHelper"; - var fullyQualifiedName = $"{Namespace.Content}.{Class.ClassName}.{className}"; - var fieldName = GenerateFieldName(tagHelper); - - _tagHelpers.Add(tagHelper, (className, fullyQualifiedName, fieldName)); - - return true; - } - - public string GetClassName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].className; - } - - public string GetFullyQualifiedName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].fullyQualifiedName; - } - - public string GetFieldName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].fieldName; - } - - private static string GenerateFieldName(TagHelperDescriptor tagHelper) - { - return $"__{tagHelper.GetViewComponentName()}ViewComponentTagHelper"; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperTargetExtension.cs deleted file mode 100644 index eb426d0607d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTagHelperTargetExtension.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal class ViewComponentTagHelperTargetExtension : IViewComponentTagHelperTargetExtension - { - private static readonly string[] PublicModifiers = new[] { "public" }; - - public string TagHelperTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelper"; - - public string ViewComponentHelperTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.IViewComponentHelper"; - - public string ViewComponentHelperVariableName { get; set; } = "_helper"; - - public string ViewComponentInvokeMethodName { get; set; } = "InvokeAsync"; - - public string HtmlAttributeNotBoundAttributeTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute"; - - public string ViewContextAttributeTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute"; - - public string ViewContextTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext"; - - public string ViewContextPropertyName { get; set; } = "ViewContext"; - - public string HtmlTargetElementAttributeTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute"; - - public string TagHelperProcessMethodName { get; set; } = "ProcessAsync"; - - public string TagHelperContextTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext"; - - public string TagHelperContextVariableName { get; set; } = "context"; - - public string TagHelperOutputTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput"; - - public string TagHelperOutputVariableName { get; set; } = "output"; - - public string TagHelperOutputTagNamePropertyName { get; set; } = "TagName"; - - public string TagHelperOutputContentPropertyName { get; set; } = "Content"; - - public string TagHelperContentSetMethodName { get; set; } = "SetHtmlContent"; - - public string TagHelperContentVariableName { get; set; } = "content"; - - public string IViewContextAwareTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware"; - - public string IViewContextAwareContextualizeMethodName { get; set; } = "Contextualize"; - - public void WriteViewComponentTagHelper(CodeRenderingContext context, ViewComponentTagHelperIntermediateNode node) - { - // Add target element. - WriteTargetElementString(context.CodeWriter, node.TagHelper); - - // Initialize declaration. - using (context.CodeWriter.BuildClassDeclaration( - PublicModifiers, - node.ClassName, - TagHelperTypeName, - interfaces: null, - typeParameters: null)) - { - // Add view component helper. - context.CodeWriter.WriteVariableDeclaration( - $"private readonly {ViewComponentHelperTypeName}", - ViewComponentHelperVariableName, - value: null); - - // Add constructor. - WriteConstructorString(context.CodeWriter, node.ClassName); - - // Add attributes. - WriteAttributeDeclarations(context.CodeWriter, node.TagHelper); - - // Add process method. - WriteProcessMethodString(context.CodeWriter, node.TagHelper); - } - } - - private void WriteConstructorString(CodeWriter writer, string className) - { - writer.Write("public ") - .Write(className) - .Write("(") - .Write($"{ViewComponentHelperTypeName} helper") - .WriteLine(")"); - using (writer.BuildScope()) - { - writer.WriteStartAssignment(ViewComponentHelperVariableName) - .Write("helper") - .WriteLine(";"); - } - } - - private void WriteAttributeDeclarations(CodeWriter writer, TagHelperDescriptor tagHelper) - { - writer.Write("[") - .Write(HtmlAttributeNotBoundAttributeTypeName) - .WriteParameterSeparator() - .Write(ViewContextAttributeTypeName) - .WriteLine("]"); - - writer.WriteAutoPropertyDeclaration( - PublicModifiers, - ViewContextTypeName, - ViewContextPropertyName); - - foreach (var attribute in tagHelper.BoundAttributes) - { - writer.WriteAutoPropertyDeclaration( - PublicModifiers, - attribute.TypeName, - attribute.GetPropertyName()); - - if (attribute.IndexerTypeName != null) - { - writer.Write(" = ") - .WriteStartNewObject(attribute.TypeName) - .WriteEndMethodInvocation(); - } - } - } - - private void WriteProcessMethodString(CodeWriter writer, TagHelperDescriptor tagHelper) - { - using (writer.BuildMethodDeclaration( - $"public override async", - $"global::{typeof(Task).FullName}", - TagHelperProcessMethodName, - new Dictionary() - { - { TagHelperContextTypeName, TagHelperContextVariableName }, - { TagHelperOutputTypeName, TagHelperOutputVariableName } - })) - { - writer.WriteInstanceMethodInvocation( - $"({ViewComponentHelperVariableName} as {IViewContextAwareTypeName})?", - IViewContextAwareContextualizeMethodName, - new[] { ViewContextPropertyName }); - - var methodParameters = GetMethodParameters(tagHelper); - writer.Write("var ") - .WriteStartAssignment(TagHelperContentVariableName) - .WriteInstanceMethodInvocation($"await {ViewComponentHelperVariableName}", ViewComponentInvokeMethodName, methodParameters); - writer.WriteStartAssignment($"{TagHelperOutputVariableName}.{TagHelperOutputTagNamePropertyName}") - .WriteLine("null;"); - writer.WriteInstanceMethodInvocation( - $"{TagHelperOutputVariableName}.{TagHelperOutputContentPropertyName}", - TagHelperContentSetMethodName, - new[] { TagHelperContentVariableName }); - } - } - - private string[] GetMethodParameters(TagHelperDescriptor tagHelper) - { - var propertyNames = tagHelper.BoundAttributes.Select(attribute => attribute.GetPropertyName()); - var joinedPropertyNames = string.Join(", ", propertyNames); - var parametersString = $"new {{ { joinedPropertyNames } }}"; - var viewComponentName = tagHelper.GetViewComponentName(); - var methodParameters = new[] { $"\"{viewComponentName}\"", parametersString }; - return methodParameters; - } - - private void WriteTargetElementString(CodeWriter writer, TagHelperDescriptor tagHelper) - { - Debug.Assert(tagHelper.TagMatchingRules.Count() == 1); - - var rule = tagHelper.TagMatchingRules.First(); - - writer.Write("[") - .WriteStartMethodInvocation(HtmlTargetElementAttributeTypeName) - .WriteStringLiteral(rule.TagName) - .WriteLine(")]"); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypeVisitor.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypeVisitor.cs deleted file mode 100644 index 450e4e15572..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypeVisitor.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.CodeAnalysis; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal class ViewComponentTypeVisitor : SymbolVisitor - { - private static readonly Version SupportedVCTHMvcVersion = new Version(1, 1); - - private readonly INamedTypeSymbol _viewComponentAttribute; - private readonly INamedTypeSymbol _nonViewComponentAttribute; - private readonly List _results; - - public ViewComponentTypeVisitor( - INamedTypeSymbol viewComponentAttribute, - INamedTypeSymbol nonViewComponentAttribute, - List results) - { - _viewComponentAttribute = viewComponentAttribute; - _nonViewComponentAttribute = nonViewComponentAttribute; - _results = results; - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (IsViewComponent(symbol)) - { - _results.Add(symbol); - } - - if (symbol.DeclaredAccessibility != Accessibility.Public) - { - return; - } - - foreach (var member in symbol.GetTypeMembers()) - { - Visit(member); - } - } - - public override void VisitNamespace(INamespaceSymbol symbol) - { - foreach (var member in symbol.GetMembers()) - { - Visit(member); - } - } - - internal bool IsViewComponent(INamedTypeSymbol symbol) - { - if (symbol.DeclaredAccessibility != Accessibility.Public || - symbol.IsAbstract || - symbol.IsGenericType || - AttributeIsDefined(symbol, _nonViewComponentAttribute)) - { - return false; - } - - return symbol.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix) || - AttributeIsDefined(symbol, _viewComponentAttribute); - } - - private static bool AttributeIsDefined(INamedTypeSymbol type, INamedTypeSymbol queryAttribute) - { - if (type == null || queryAttribute == null) - { - return false; - } - - var attribute = type.GetAttributes().Where(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, queryAttribute)).FirstOrDefault(); - - if (attribute != null) - { - return true; - } - - return AttributeIsDefined(type.BaseType, queryAttribute); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypes.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypes.cs deleted file mode 100644 index e9d8f598f85..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/ViewComponentTypes.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X -{ - internal static class ViewComponentTypes - { - public const string Assembly = "Microsoft.AspNetCore.Mvc.ViewFeatures"; - - public static readonly Version AssemblyVersion = new Version(1, 1, 0, 0); - - public const string ViewComponentSuffix = "ViewComponent"; - - public const string ViewComponentAttribute = "Microsoft.AspNetCore.Mvc.ViewComponentAttribute"; - - public const string NonViewComponentAttribute = "Microsoft.AspNetCore.Mvc.NonViewComponentAttribute"; - - public const string GenericTask = "System.Threading.Tasks.Task`1"; - - public const string Task = "System.Threading.Tasks.Task"; - - public const string IDictionary = "System.Collections.Generic.IDictionary`2"; - - public const string AsyncMethodName = "InvokeAsync"; - - public const string SyncMethodName = "Invoke"; - - public static class ViewComponent - { - public const string Name = "Name"; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/AssemblyAttributeInjectionPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/AssemblyAttributeInjectionPass.cs deleted file mode 100644 index 021c61c3680..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/AssemblyAttributeInjectionPass.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Diagnostics; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class AssemblyAttributeInjectionPass : IntermediateNodePassBase, IRazorOptimizationPass - { - private const string RazorViewAttribute = "global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute"; - private const string RazorPageAttribute = "global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute"; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.Options.DesignTime) - { - return; - } - - var @namespace = documentNode.FindPrimaryNamespace(); - if (@namespace == null || string.IsNullOrEmpty(@namespace.Content)) - { - // No namespace node or it's incomplete. Skip. - return; - } - - var @class = documentNode.FindPrimaryClass(); - if (@class == null || string.IsNullOrEmpty(@class.ClassName)) - { - // No class node or it's incomplete. Skip. - return; - } - - var generatedTypeName = $"{@namespace.Content}.{@class.ClassName}"; - - // The MVC attributes require a relative path to be specified so that we can make a view engine path. - // We can't use a rooted path because we don't know what the project root is. - // - // If we can't sanitize the path, we'll just set it to null and let is blow up at runtime - we don't - // want to create noise if this code has to run in some unanticipated scenario. - var escapedPath = MakeVerbatimStringLiteral(ConvertToViewEnginePath(codeDocument.Source.RelativePath)); - - string attribute; - if (documentNode.DocumentKind == MvcViewDocumentClassifierPass.MvcViewDocumentKind) - { - attribute = $"[assembly:{RazorViewAttribute}({escapedPath}, typeof({generatedTypeName}))]"; - } - else if (documentNode.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind && - PageDirective.TryGetPageDirective(documentNode, out var pageDirective)) - { - var escapedRoutePrefix = MakeVerbatimStringLiteral(pageDirective.RouteTemplate); - attribute = $"[assembly:{RazorPageAttribute}({escapedPath}, typeof({generatedTypeName}), {escapedRoutePrefix})]"; - } - else - { - return; - } - - var index = documentNode.Children.IndexOf(@namespace); - Debug.Assert(index >= 0); - - var pageAttribute = new CSharpCodeIntermediateNode(); - pageAttribute.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = attribute, - }); - - documentNode.Children.Insert(index, pageAttribute); - } - - private static string MakeVerbatimStringLiteral(string value) - { - if (value == null) - { - return "null"; - } - - value = value.Replace("\"", "\"\""); - return $"@\"{value}\""; - } - - private static string ConvertToViewEnginePath(string relativePath) - { - if (string.IsNullOrEmpty(relativePath)) - { - return null; - } - - // Checking for both / and \ because a \ will become a /. - if (!relativePath.StartsWith("/") && !relativePath.StartsWith("\\")) - { - relativePath = "/" + relativePath; - } - - relativePath = relativePath.Replace('\\', '/'); - return relativePath; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/CSharpIdentifier.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/CSharpIdentifier.cs deleted file mode 100644 index 28e08063e6a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/CSharpIdentifier.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Globalization; -using System.Text; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal static class CSharpIdentifier - { - private const string CshtmlExtension = ".cshtml"; - - public static string GetClassNameFromPath(string path) - { - if (string.IsNullOrEmpty(path)) - { - return path; - } - - if (path.EndsWith(CshtmlExtension, StringComparison.OrdinalIgnoreCase)) - { - path = path.Substring(0, path.Length - CshtmlExtension.Length); - } - - return SanitizeClassName(path); - } - - // CSharp Spec §2.4.2 - private static bool IsIdentifierStart(char character) - { - return char.IsLetter(character) || - character == '_' || - CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.LetterNumber; - } - - public static bool IsIdentifierPart(char character) - { - return char.IsDigit(character) || - IsIdentifierStart(character) || - IsIdentifierPartByUnicodeCategory(character); - } - - private static bool IsIdentifierPartByUnicodeCategory(char character) - { - var category = CharUnicodeInfo.GetUnicodeCategory(character); - - return category == UnicodeCategory.NonSpacingMark || // Mn - category == UnicodeCategory.SpacingCombiningMark || // Mc - category == UnicodeCategory.ConnectorPunctuation || // Pc - category == UnicodeCategory.Format; // Cf - } - - public static string SanitizeClassName(string inputName) - { - if (string.IsNullOrEmpty(inputName)) - { - return inputName; - } - - if (!IsIdentifierStart(inputName[0]) && IsIdentifierPart(inputName[0])) - { - inputName = "_" + inputName; - } - - var builder = new StringBuilder(inputName.Length); - for (var i = 0; i < inputName.Length; i++) - { - var ch = inputName[i]; - builder.Append(IsIdentifierPart(ch) ? ch : '_'); - } - - return builder.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ExtensionInitializer.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ExtensionInitializer.cs deleted file mode 100644 index 03d05f7f9bb..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ExtensionInitializer.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal class ExtensionInitializer : RazorExtensionInitializer - { - public override void Initialize(RazorProjectEngineBuilder builder) - { - RazorExtensions.Register(builder); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IInjectTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IInjectTargetExtension.cs deleted file mode 100644 index c334e23c2bb..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IInjectTargetExtension.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public interface IInjectTargetExtension : ICodeTargetExtension - { - void WriteInjectProperty(CodeRenderingContext context, InjectIntermediateNode node); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IViewComponentTagHelperTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IViewComponentTagHelperTargetExtension.cs deleted file mode 100644 index f3e07a2b75b..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/IViewComponentTagHelperTargetExtension.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public interface IViewComponentTagHelperTargetExtension : ICodeTargetExtension - { - void WriteViewComponentTagHelper(CodeRenderingContext context, ViewComponentTagHelperIntermediateNode node); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectDirective.cs deleted file mode 100644 index 9442aaf6416..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectDirective.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class InjectDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "inject", - DirectiveKind.SingleLine, - builder => - { - builder - .AddTypeToken(Resources.InjectDirective_TypeToken_Name, Resources.InjectDirective_TypeToken_Description) - .AddMemberToken(Resources.InjectDirective_MemberToken_Name, Resources.InjectDirective_MemberToken_Description); - - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = Resources.InjectDirective_Description; - }); - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - builder.AddTargetExtension(new InjectTargetExtension()); - return builder; - } - - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - // Runs after the @model and @namespace directives - public override int Order => 10; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - var modelType = ModelDirective.GetModelType(documentNode); - - var properties = new HashSet(StringComparer.Ordinal); - - for (var i = visitor.Directives.Count - 1; i >= 0; i--) - { - var directive = visitor.Directives[i]; - var tokens = directive.Tokens.ToArray(); - if (tokens.Length < 2) - { - continue; - } - - var typeName = tokens[0].Content; - var memberName = tokens[1].Content; - - if (!properties.Add(memberName)) - { - continue; - } - - typeName = typeName.Replace("", "<" + modelType + ">"); - - var injectNode = new InjectIntermediateNode() - { - TypeName = typeName, - MemberName = memberName, - }; - - visitor.Class.Children.Add(injectNode); - } - } - } - - private class Visitor : IntermediateNodeWalker - { - public ClassDeclarationIntermediateNode Class { get; private set; } - - public IList Directives { get; } = new List(); - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - Directives.Add(node); - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - builder.AddTargetExtension(new InjectTargetExtension()); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectIntermediateNode.cs deleted file mode 100644 index 4e3603f40de..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectIntermediateNode.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class InjectIntermediateNode : ExtensionIntermediateNode - { - public string TypeName { get; set; } - - public string MemberName { get; set; } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var extension = target.GetExtension(); - if (extension == null) - { - ReportMissingCodeTargetExtension(context); - return; - } - - extension.WriteInjectProperty(context, this); - } - - public override void FormatNode(IntermediateNodeFormatter formatter) - { - formatter.WriteContent(MemberName); - - formatter.WriteProperty(nameof(MemberName), MemberName); - formatter.WriteProperty(nameof(TypeName), TypeName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectTargetExtension.cs deleted file mode 100644 index d2723ba99d7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InjectTargetExtension.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class InjectTargetExtension : IInjectTargetExtension - { - private const string RazorInjectAttribute = "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]"; - - public void WriteInjectProperty(CodeRenderingContext context, InjectIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var property = $"public {node.TypeName} {node.MemberName} {{ get; private set; }}"; - - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.CodeWriter - .WriteLine(RazorInjectAttribute) - .WriteLine(property); - } - } - else - { - context.CodeWriter - .WriteLine(RazorInjectAttribute) - .WriteLine(property); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InstrumentationPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InstrumentationPass.cs deleted file mode 100644 index f82ed32e456..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/InstrumentationPass.cs +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Globalization; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class InstrumentationPass : IntermediateNodePassBase, IRazorOptimizationPass - { - public override int Order => DefaultFeatureOrder; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.Options.DesignTime) - { - return; - } - - var walker = new Visitor(); - walker.VisitDocument(documentNode); - - for (var i = 0; i < walker.Items.Count; i++) - { - var node = walker.Items[i]; - - AddInstrumentation(node); - } - } - - private static void AddInstrumentation(InstrumentationItem item) - { - var beginContextMethodName = "BeginContext"; // ORIGINAL: BeginContextMethodName - var endContextMethodName = "EndContext"; // ORIGINAL: EndContextMethodName - - var beginNode = new CSharpCodeIntermediateNode(); - beginNode.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = string.Format("{0}({1}, {2}, {3});", - beginContextMethodName, - item.Source.AbsoluteIndex.ToString(CultureInfo.InvariantCulture), - item.Source.Length.ToString(CultureInfo.InvariantCulture), - item.IsLiteral ? "true" : "false") - }); - - var endNode = new CSharpCodeIntermediateNode(); - endNode.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = string.Format("{0}();", endContextMethodName) - }); - - var nodeIndex = item.Parent.Children.IndexOf(item.Node); - item.Parent.Children.Insert(nodeIndex, beginNode); - item.Parent.Children.Insert(nodeIndex + 2, endNode); - } - - private struct InstrumentationItem - { - public InstrumentationItem(IntermediateNode node, IntermediateNode parent, bool isLiteral, SourceSpan source) - { - Node = node; - Parent = parent; - IsLiteral = isLiteral; - Source = source; - } - - public IntermediateNode Node { get; } - - public IntermediateNode Parent { get; } - - public bool IsLiteral { get; } - - public SourceSpan Source { get; } - } - - private class Visitor : IntermediateNodeWalker - { - public List Items { get; } = new List(); - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - if (node.Source != null) - { - Items.Add(new InstrumentationItem(node, Parent, isLiteral: true, source: node.Source.Value)); - } - - VisitDefault(node); - } - - public override void VisitCSharpExpression(CSharpExpressionIntermediateNode node) - { - if (node.Source != null) - { - Items.Add(new InstrumentationItem(node, Parent, isLiteral: false, source: node.Source.Value)); - } - - VisitDefault(node); - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - if (node.Source != null) - { - Items.Add(new InstrumentationItem(node, Parent, isLiteral: false, source: node.Source.Value)); - } - - // Inside a tag helper we only want to visit inside of the body (skip all of the attributes and properties). - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - if (child is TagHelperBodyIntermediateNode || - child is DefaultTagHelperBodyIntermediateNode) - { - VisitDefault(child); - } - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj deleted file mode 100644 index ce96dad3fe5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - ASP.NET Core design time hosting infrastructure for the Razor view engine. - netstandard2.0 - $(PackageTags);aspnetcoremvc - false - - - - - Shared\CodeWriterExtensions.cs - - - - - - - - - diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelDirective.cs deleted file mode 100644 index cf80df5f686..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelDirective.cs +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class ModelDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "model", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken(Resources.ModelDirective_TypeToken_Name, Resources.ModelDirective_TypeToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.ModelDirective_Description; - }); - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - return builder; - } - - public static string GetModelType(DocumentIntermediateNode document) - { - if (document == null) - { - throw new ArgumentNullException(nameof(document)); - } - - var visitor = new Visitor(); - return GetModelType(document, visitor); - } - - private static string GetModelType(DocumentIntermediateNode document, Visitor visitor) - { - visitor.Visit(document); - - for (var i = visitor.ModelDirectives.Count - 1; i >= 0; i--) - { - var directive = visitor.ModelDirectives[i]; - - var tokens = directive.Tokens.ToArray(); - if (tokens.Length >= 1) - { - return tokens[0].Content; - } - } - - if (document.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind) - { - return visitor.Class.ClassName; - } - else - { - return "dynamic"; - } - } - - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - // Runs after the @inherits directive - public override int Order => 5; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - var modelType = GetModelType(documentNode, visitor); - - if (documentNode.Options.DesignTime) - { - // Alias the TModel token to a known type. - // This allows design time compilation to succeed for Razor files where the token isn't replaced. - var typeName = $"global::{typeof(object).FullName}"; - var usingNode = new UsingDirectiveIntermediateNode() - { - Content = $"TModel = {typeName}" - }; - - visitor.Namespace?.Children.Insert(0, usingNode); - } - - var baseType = visitor.Class?.BaseType?.Replace("", "<" + modelType + ">"); - visitor.Class.BaseType = baseType; - } - } - - private class Visitor : IntermediateNodeWalker - { - public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - - public ClassDeclarationIntermediateNode Class { get; private set; } - - public IList ModelDirectives { get; } = new List(); - - public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) - { - if (Namespace == null) - { - Namespace = node; - } - - base.VisitNamespaceDeclaration(node); - } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - ModelDirectives.Add(node); - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelExpressionPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelExpressionPass.cs deleted file mode 100644 index ef8e8fb181d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ModelExpressionPass.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class ModelExpressionPass : IntermediateNodePassBase, IRazorOptimizationPass - { - private const string ModelExpressionTypeName = "Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression"; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - public List TagHelpers { get; } = new List(); - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - if (string.Equals(node.BoundAttribute.TypeName, ModelExpressionTypeName, StringComparison.Ordinal) || - (node.IsIndexerNameMatch && - string.Equals(node.BoundAttribute.IndexerTypeName, ModelExpressionTypeName, StringComparison.Ordinal))) - { - var expression = new CSharpExpressionIntermediateNode(); - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "ModelExpressionProvider.CreateModelExpression(ViewData, __model => ", - }); - - if (node.Children.Count == 1 && node.Children[0] is IntermediateToken token && token.IsCSharp) - { - // A 'simple' expression will look like __model => __model.Foo - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "__model." - }); - - expression.Children.Add(token); - } - else - { - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is CSharpExpressionIntermediateNode nestedExpression) - { - for (var j = 0; j < nestedExpression.Children.Count; j++) - { - if (nestedExpression.Children[j] is IntermediateToken cSharpToken && - cSharpToken.IsCSharp) - { - expression.Children.Add(cSharpToken); - } - } - - continue; - } - } - } - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = ")", - }); - - node.Children.Clear(); - - node.Children.Add(expression); - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcImportProjectFeature.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcImportProjectFeature.cs deleted file mode 100644 index b5a58519225..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcImportProjectFeature.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal class MvcImportProjectFeature : RazorProjectEngineFeatureBase, IImportProjectFeature - { - private const string ImportsFileName = "_ViewImports.cshtml"; - - public IReadOnlyList GetImports(RazorProjectItem projectItem) - { - if (projectItem == null) - { - throw new ArgumentNullException(nameof(projectItem)); - } - - // Don't add MVC imports for a component - this shouldn't happen for v2, but just in case. - if (FileKinds.IsComponent(projectItem.FileKind)) - { - return Array.Empty(); - } - - var imports = new List(); - AddDefaultDirectivesImport(imports); - - // We add hierarchical imports second so any default directive imports can be overridden. - AddHierarchicalImports(projectItem, imports); - - return imports; - } - - // Internal for testing - internal static void AddDefaultDirectivesImport(List imports) - { - imports.Add(DefaultDirectivesProjectItem.Instance); - } - - // Internal for testing - internal void AddHierarchicalImports(RazorProjectItem projectItem, List imports) - { - // We want items in descending order. FindHierarchicalItems returns items in ascending order. - var importProjectItems = ProjectEngine.FileSystem.FindHierarchicalItems(projectItem.FilePath, ImportsFileName).Reverse(); - imports.AddRange(importProjectItems); - } - - private class DefaultDirectivesProjectItem : RazorProjectItem - { - private readonly byte[] _defaultImportBytes; - - private DefaultDirectivesProjectItem() - { - var preamble = Encoding.UTF8.GetPreamble(); - var content = @" -@using System -@using System.Collections.Generic -@using System.Linq -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Mvc -@using Microsoft.AspNetCore.Mvc.Rendering -@using Microsoft.AspNetCore.Mvc.ViewFeatures -@inject global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper Html -@inject global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json -@inject global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component -@inject global::Microsoft.AspNetCore.Mvc.IUrlHelper Url -@inject global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor -"; - var contentBytes = Encoding.UTF8.GetBytes(content); - - _defaultImportBytes = new byte[preamble.Length + contentBytes.Length]; - preamble.CopyTo(_defaultImportBytes, 0); - contentBytes.CopyTo(_defaultImportBytes, preamble.Length); - } - - public override string BasePath => null; - - public override string FilePath => null; - - public override string PhysicalPath => null; - - public override bool Exists => true; - - public static DefaultDirectivesProjectItem Instance { get; } = new DefaultDirectivesProjectItem(); - - public override Stream Read() => new MemoryStream(_defaultImportBytes); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcViewDocumentClassifierPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcViewDocumentClassifierPass.cs deleted file mode 100644 index 7ec6a1360e7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/MvcViewDocumentClassifierPass.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class MvcViewDocumentClassifierPass : DocumentClassifierPassBase - { - public static readonly string MvcViewDocumentKind = "mvc.1.0.view"; - - protected override string DocumentKind => MvcViewDocumentKind; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) => true; - - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); - - @namespace.Content = "AspNetCore"; - - var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; - if (string.IsNullOrEmpty(filePath)) - { - // It's possible for a Razor document to not have a file path. - // Eg. When we try to generate code for an in memory document like default imports. - var checksum = BytesToString(codeDocument.Source.GetChecksum()); - @class.ClassName = $"AspNetCore_{checksum}"; - } - else - { - @class.ClassName = CSharpIdentifier.GetClassNameFromPath(filePath); - } - - @class.BaseType = "global::Microsoft.AspNetCore.Mvc.Razor.RazorPage"; - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - - method.MethodName = "ExecuteAsync"; - method.Modifiers.Clear(); - method.Modifiers.Add("public"); - method.Modifiers.Add("async"); - method.Modifiers.Add("override"); - method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; - } - - private static string BytesToString(byte[] bytes) - { - if (bytes == null) - { - throw new ArgumentNullException(nameof(bytes)); - } - - var result = new StringBuilder(bytes.Length); - for (var i = 0; i < bytes.Length; i++) - { - // The x2 format means lowercase hex, where each byte is a 2-character string. - result.Append(bytes[i].ToString("x2")); - } - - return result.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/NamespaceDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/NamespaceDirective.cs deleted file mode 100644 index de05d354b1f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/NamespaceDirective.cs +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class NamespaceDirective - { - private static readonly char[] Separators = new char[] { '\\', '/' }; - - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "namespace", - DirectiveKind.SingleLine, - builder => - { - builder.AddNamespaceToken( - Resources.NamespaceDirective_NamespaceToken_Name, - Resources.NamespaceDirective_NamespaceToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.NamespaceDirective_Description; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - } - - // internal for testing - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind && - documentNode.DocumentKind != MvcViewDocumentClassifierPass.MvcViewDocumentKind) - { - // Not a page. Skip. - return; - } - - var visitor = new Visitor(); - visitor.Visit(documentNode); - - var directive = visitor.LastNamespaceDirective; - if (directive == null) - { - // No namespace set. Skip. - return; - } - - var @namespace = visitor.FirstNamespace; - if (@namespace == null) - { - // No namespace node. Skip. - return; - } - - @namespace.Content = GetNamespace(codeDocument.Source.FilePath, directive); - } - } - - // internal for testing. - // - // This code does a best-effort attempt to compute a namespace 'suffix' - the path difference between - // where the @namespace directive appears and where the current document is on disk. - // - // In the event that these two source either don't have FileNames set or don't follow a coherent hierarchy, - // we will just use the namespace verbatim. - internal static string GetNamespace(string source, DirectiveIntermediateNode directive) - { - var directiveSource = NormalizeDirectory(directive.Source?.FilePath); - - var baseNamespace = directive.Tokens.FirstOrDefault()?.Content; - if (string.IsNullOrEmpty(baseNamespace)) - { - // The namespace directive was incomplete. - return string.Empty; - } - - if (string.IsNullOrEmpty(source) || directiveSource == null) - { - // No sources, can't compute a suffix. - return baseNamespace; - } - - // We're specifically using OrdinalIgnoreCase here because Razor treats all paths as case-insensitive. - if (!source.StartsWith(directiveSource, StringComparison.OrdinalIgnoreCase) || - source.Length <= directiveSource.Length) - { - // The imports are not from the directory hierarchy, can't compute a suffix. - return baseNamespace; - } - - // OK so that this point we know that the 'imports' file containing this directive is in the directory - // hierarchy of this soure file. This is the case where we can append a suffix to the baseNamespace. - // - // Everything so far has just been defensiveness on our part. - - var builder = new StringBuilder(baseNamespace); - - var segments = source.Substring(directiveSource.Length).Split(Separators); - - // Skip the last segment because it's the FileName. - for (var i = 0; i < segments.Length - 1; i++) - { - builder.Append('.'); - builder.Append(CSharpIdentifier.SanitizeClassName(segments[i])); - } - - return builder.ToString(); - } - - // We want to normalize the path of the file containing the '@namespace' directive to just the containing - // directory with a trailing separator. - // - // Not using Path.GetDirectoryName here because it doesn't meet these requirements, and we want to handle - // both 'view engine' style paths and absolute paths. - // - // We also don't normalize the separators here. We expect that all documents are using a consistent style of path. - // - // If we can't normalize the path, we just return null so it will be ignored. - private static string NormalizeDirectory(string path) - { - if (string.IsNullOrEmpty(path)) - { - return null; - } - - var lastSeparator = path.LastIndexOfAny(Separators); - if (lastSeparator == -1) - { - return null; - } - - // Includes the separator - return path.Substring(0, lastSeparator + 1); - } - - private class Visitor : IntermediateNodeWalker - { - public ClassDeclarationIntermediateNode FirstClass { get; private set; } - - public NamespaceDeclarationIntermediateNode FirstNamespace { get; private set; } - - // We want the last one, so get them all and then . - public DirectiveIntermediateNode LastNamespaceDirective { get; private set; } - - public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) - { - if (FirstNamespace == null) - { - FirstNamespace = node; - } - - base.VisitNamespaceDeclaration(node); - } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (FirstClass == null) - { - FirstClass = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - LastNamespaceDirective = node; - } - - base.VisitDirective(node); - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static void Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PageDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PageDirective.cs deleted file mode 100644 index 9b483f9b9f5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PageDirective.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class PageDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "page", - DirectiveKind.SingleLine, - builder => - { - builder.AddOptionalStringToken(Resources.PageDirective_RouteToken_Name, Resources.PageDirective_RouteToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.PageDirective_Description; - }); - - private PageDirective(string routeTemplate, IntermediateNode directiveNode) - { - RouteTemplate = routeTemplate; - DirectiveNode = directiveNode; - } - - public string RouteTemplate { get; } - - public IntermediateNode DirectiveNode { get; } - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - return builder; - } - - public static bool TryGetPageDirective(DocumentIntermediateNode documentNode, out PageDirective pageDirective) - { - var visitor = new Visitor(); - for (var i = 0; i < documentNode.Children.Count; i++) - { - visitor.Visit(documentNode.Children[i]); - } - - if (visitor.DirectiveTokens == null) - { - pageDirective = null; - return false; - } - - var tokens = visitor.DirectiveTokens.ToList(); - string routeTemplate = null; - if (tokens.Count > 0) - { - routeTemplate = TrimQuotes(tokens[0].Content); - } - - pageDirective = new PageDirective(routeTemplate, visitor.DirectiveNode); - return true; - } - - private static string TrimQuotes(string content) - { - // Tokens aren't captured if they're malformed. Therefore, this method will - // always be called with a valid token content. - Debug.Assert(content.Length >= 2); - Debug.Assert(content.StartsWith("\"", StringComparison.Ordinal)); - Debug.Assert(content.EndsWith("\"", StringComparison.Ordinal)); - - return content.Substring(1, content.Length - 2); - } - - private class Visitor : IntermediateNodeWalker - { - public IntermediateNode DirectiveNode { get; private set; } - - public IEnumerable DirectiveTokens { get; private set; } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - DirectiveNode = node; - DirectiveTokens = node.Tokens; - } - } - - public override void VisitMalformedDirective(MalformedDirectiveIntermediateNode node) - { - if (DirectiveTokens == null && node.Directive == Directive) - { - DirectiveNode = node; - DirectiveTokens = node.Tokens; - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PagesPropertyInjectionPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PagesPropertyInjectionPass.cs deleted file mode 100644 index 4010c1903b0..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/PagesPropertyInjectionPass.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class PagesPropertyInjectionPass : IntermediateNodePassBase, IRazorOptimizationPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind) - { - return; - } - - var modelType = ModelDirective.GetModelType(documentNode); - var visitor = new Visitor(); - visitor.Visit(documentNode); - - var @class = visitor.Class; - - var viewDataType = $"global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<{modelType}>"; - var vddProperty = new CSharpCodeIntermediateNode(); - vddProperty.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"public {viewDataType} ViewData => ({viewDataType})PageContext?.ViewData;", - }); - @class.Children.Add(vddProperty); - - var modelProperty = new CSharpCodeIntermediateNode(); - modelProperty.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"public {modelType} Model => ViewData.Model;", - }); - @class.Children.Add(modelProperty); - } - - private class Visitor : IntermediateNodeWalker - { - public ClassDeclarationIntermediateNode Class { get; private set; } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Properties/AssemblyInfo.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Properties/AssemblyInfo.cs deleted file mode 100644 index a7a402e09a6..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X; -using Microsoft.AspNetCore.Razor.Language; - -[assembly: ProvideRazorExtensionInitializer("MVC-2.0", typeof(ExtensionInitializer))] -[assembly: ProvideRazorExtensionInitializer("MVC-2.1", typeof(ExtensionInitializer))] - -[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] -[assembly: InternalsVisibleTo("Microsoft.VisualStudio.Editor.Razor, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensions.cs deleted file mode 100644 index afb0e896e09..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensions.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class RazorExtensions - { - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - FunctionsDirective.Register(builder); - InjectDirective.Register(builder); - ModelDirective.Register(builder); - NamespaceDirective.Register(builder); - PageDirective.Register(builder); - - InheritsDirective.Register(builder); - SectionDirective.Register(builder); - - builder.Features.Add(new DefaultTagHelperDescriptorProvider()); - builder.Features.Add(new ViewComponentTagHelperDescriptorProvider()); - - builder.AddTargetExtension(new ViewComponentTagHelperTargetExtension()); - builder.AddTargetExtension(new TemplateTargetExtension() - { - TemplateTypeName = "global::Microsoft.AspNetCore.Mvc.Razor.HelperResult", - }); - - builder.Features.Add(new ModelExpressionPass()); - builder.Features.Add(new PagesPropertyInjectionPass()); - builder.Features.Add(new ViewComponentTagHelperPass()); - builder.Features.Add(new RazorPageDocumentClassifierPass()); - builder.Features.Add(new MvcViewDocumentClassifierPass()); - builder.Features.Add(new AssemblyAttributeInjectionPass()); - builder.Features.Add(new InstrumentationPass()); - - builder.Features.Add(new MvcImportProjectFeature()); - - // The default C# language version for what this Razor configuration supports. - builder.SetCSharpLanguageVersion(LanguageVersion.CSharp7_3); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensionsDiagnosticFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensionsDiagnosticFactory.cs deleted file mode 100644 index 05a01d38a9f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorExtensionsDiagnosticFactory.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal class RazorExtensionsDiagnosticFactory - { - private const string DiagnosticPrefix = "RZ"; - - internal static readonly RazorDiagnosticDescriptor ViewComponent_CannotFindMethod = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3900", - () => ViewComponentResources.ViewComponent_CannotFindMethod, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_CannotFindMethod(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_CannotFindMethod, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - ViewComponentTypes.AsyncMethodName, - tagHelperType); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_AmbiguousMethods = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3901", - () => ViewComponentResources.ViewComponent_AmbiguousMethods, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_AmbiguousMethods(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_AmbiguousMethods, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - tagHelperType, - ViewComponentTypes.SyncMethodName, - ViewComponentTypes.AsyncMethodName); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_AsyncMethod_ShouldReturnTask = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3902", - () => ViewComponentResources.ViewComponent_AsyncMethod_ShouldReturnTask, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_AsyncMethod_ShouldReturnTask(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_AsyncMethod_ShouldReturnTask, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.AsyncMethodName, - tagHelperType, - nameof(Task)); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_SyncMethod_ShouldReturnValue = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3903", - () => ViewComponentResources.ViewComponent_SyncMethod_ShouldReturnValue, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_SyncMethod_ShouldReturnValue(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_SyncMethod_ShouldReturnValue, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - tagHelperType); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_SyncMethod_CannotReturnTask = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3904", - () => ViewComponentResources.ViewComponent_SyncMethod_CannotReturnTask, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_SyncMethod_CannotReturnTask(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_SyncMethod_CannotReturnTask, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - tagHelperType, - nameof(Task)); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor PageDirective_CannotBeImported = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3905", - () => Resources.PageDirectiveCannotBeImported, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_CannotBeImported(SourceSpan source) - { - var fileName = Path.GetFileName(source.FilePath); - var diagnostic = RazorDiagnostic.Create(PageDirective_CannotBeImported, source, PageDirective.Directive.Directive, fileName); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor PageDirective_MustExistAtTheTopOfFile = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3906", - () => Resources.PageDirectiveMustExistAtTheTopOfFile, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_MustExistAtTheTopOfFile(SourceSpan source) - { - var fileName = Path.GetFileName(source.FilePath); - var diagnostic = RazorDiagnostic.Create(PageDirective_MustExistAtTheTopOfFile, source, PageDirective.Directive.Directive); - - return diagnostic; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorPageDocumentClassifierPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorPageDocumentClassifierPass.cs deleted file mode 100644 index b11912ff812..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/RazorPageDocumentClassifierPass.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Diagnostics; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class RazorPageDocumentClassifierPass : DocumentClassifierPassBase - { - public static readonly string RazorPageDocumentKind = "mvc.1.0.razor-page"; - public static readonly string RouteTemplateKey = "RouteTemplate"; - - private static readonly RazorProjectEngine LeadingDirectiveParsingEngine = RazorProjectEngine.Create( - RazorConfiguration.Create(RazorLanguageVersion.Version_2_1, "leading-directive-parser", Array.Empty()), - RazorProjectFileSystem.Create("/"), - builder => - { - for (var i = builder.Phases.Count - 1; i >= 0; i--) - { - var phase = builder.Phases[i]; - builder.Phases.RemoveAt(i); - if (phase is IRazorDocumentClassifierPhase) - { - break; - } - } - - RazorExtensions.Register(builder); - builder.Features.Add(new LeadingDirectiveParserOptionsFeature()); - }); - - protected override string DocumentKind => RazorPageDocumentKind; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - return PageDirective.TryGetPageDirective(documentNode, out var pageDirective); - } - - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); - - @namespace.Content = "AspNetCore"; - - @class.BaseType = "global::Microsoft.AspNetCore.Mvc.RazorPages.Page"; - - var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; - if (string.IsNullOrEmpty(filePath)) - { - // It's possible for a Razor document to not have a file path. - // Eg. When we try to generate code for an in memory document like default imports. - var checksum = BytesToString(codeDocument.Source.GetChecksum()); - @class.ClassName = $"AspNetCore_{checksum}"; - } - else - { - @class.ClassName = CSharpIdentifier.GetClassNameFromPath(filePath); - } - - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - - method.MethodName = "ExecuteAsync"; - method.Modifiers.Clear(); - method.Modifiers.Add("public"); - method.Modifiers.Add("async"); - method.Modifiers.Add("override"); - method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; - - var document = codeDocument.GetDocumentIntermediateNode(); - PageDirective.TryGetPageDirective(document, out var pageDirective); - - EnsureValidPageDirective(codeDocument, pageDirective); - - AddRouteTemplateMetadataAttribute(@namespace, @class, pageDirective); - } - - private static void AddRouteTemplateMetadataAttribute(NamespaceDeclarationIntermediateNode @namespace, ClassDeclarationIntermediateNode @class, PageDirective pageDirective) - { - if (string.IsNullOrEmpty(pageDirective.RouteTemplate)) - { - return; - } - - var classIndex = @namespace.Children.IndexOf(@class); - if (classIndex == -1) - { - return; - } - - var metadataAttributeNode = new RazorCompiledItemMetadataAttributeIntermediateNode - { - Key = RouteTemplateKey, - Value = pageDirective.RouteTemplate, - }; - // Metadata attributes need to be inserted right before the class declaration. - @namespace.Children.Insert(classIndex, metadataAttributeNode); - } - - private void EnsureValidPageDirective(RazorCodeDocument codeDocument, PageDirective pageDirective) - { - Debug.Assert(pageDirective != null); - - if (pageDirective.DirectiveNode.IsImported()) - { - pageDirective.DirectiveNode.Diagnostics.Add( - RazorExtensionsDiagnosticFactory.CreatePageDirective_CannotBeImported(pageDirective.DirectiveNode.Source.Value)); - } - else - { - // The document contains a page directive and it is not imported. - // We now want to make sure this page directive exists at the top of the file. - // We are going to do that by re-parsing the document until the very first line that is not Razor comment - // or whitespace. We then make sure the page directive still exists in the re-parsed IR tree. - var leadingDirectiveCodeDocument = RazorCodeDocument.Create(codeDocument.Source); - LeadingDirectiveParsingEngine.Engine.Process(leadingDirectiveCodeDocument); - - var leadingDirectiveDocumentNode = leadingDirectiveCodeDocument.GetDocumentIntermediateNode(); - if (!PageDirective.TryGetPageDirective(leadingDirectiveDocumentNode, out var _)) - { - // The page directive is not the leading directive. Add an error. - pageDirective.DirectiveNode.Diagnostics.Add( - RazorExtensionsDiagnosticFactory.CreatePageDirective_MustExistAtTheTopOfFile(pageDirective.DirectiveNode.Source.Value)); - } - } - } - - private class LeadingDirectiveParserOptionsFeature : RazorEngineFeatureBase, IConfigureRazorParserOptionsFeature - { - public int Order { get; } - - public void Configure(RazorParserOptionsBuilder options) - { - options.ParseLeadingDirectives = true; - } - } - - private static string BytesToString(byte[] bytes) - { - if (bytes == null) - { - throw new ArgumentNullException(nameof(bytes)); - } - - var result = new StringBuilder(bytes.Length); - for (var i = 0; i < bytes.Length; i++) - { - // The x2 format means lowercase hex, where each byte is a 2-character string. - result.Append(bytes[i].ToString("x2")); - } - - return result.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Resources.resx b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Resources.resx deleted file mode 100644 index 474537197e5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/Resources.resx +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Value cannot be null or empty. - - - Inject a service from the application's service container into a property. - - - The name of the property. - - - PropertyName - - - The type of the service to inject. - - - TypeName - - - Specify the view or page model for the page. - - - The model type. - - - TypeName - - - The 'inherits' keyword is not allowed when a '{0}' keyword is used. - - - A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - - - The '{0}' keyword must be followed by a type name on the same line. - - - Only one '{0}' statement is allowed in a file. - - - Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - - - Specify the base namespace for the page. - - - The namespace for the page. - - - Namespace - - - The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - - - The '@{0}' directive must precede all other elements defined in a Razor file. - - - Mark the page as a Razor Page. - - - An optional route template for the page. - - - RouteTemplate - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/TagHelperDescriptorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/TagHelperDescriptorExtensions.cs deleted file mode 100644 index b7bd72ec701..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/TagHelperDescriptorExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class TagHelperDescriptorExtensions - { - /// - /// Indicates whether a represents a view component. - /// - /// The to check. - /// Whether a represents a view component. - public static bool IsViewComponentKind(this TagHelperDescriptor tagHelper) - { - if (tagHelper == null) - { - throw new ArgumentNullException(nameof(tagHelper)); - } - - return string.Equals(ViewComponentTagHelperConventions.Kind, tagHelper.Kind, StringComparison.Ordinal); - } - - public static string GetViewComponentName(this TagHelperDescriptor tagHelper) - { - if (tagHelper == null) - { - throw new ArgumentNullException(nameof(tagHelper)); - } - - tagHelper.Metadata.TryGetValue(ViewComponentTagHelperMetadata.Name, out var result); - return result; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentResources.resx b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentResources.resx deleted file mode 100644 index d6aad4ff3fc..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentResources.resx +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - View component '{0}' must have exactly one public method named '{1}' or '{2}'. - - - Method '{0}' of view component '{1}' should be declared to return {2}&lt;T&gt;. - - - Could not find an '{0}' or '{1}' method for the view component '{2}'. - - - Method '{0}' of view component '{1}' cannot return a {2}. - - - Method '{0}' of view component '{1}' should be declared to return a value. - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperConventions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperConventions.cs deleted file mode 100644 index 30e8d1c36f9..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperConventions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class ViewComponentTagHelperConventions - { - public static readonly string Kind = "MVC.ViewComponent"; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorFactory.cs deleted file mode 100644 index ef989c3f7fc..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorFactory.cs +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal class ViewComponentTagHelperDescriptorFactory - { - private readonly INamedTypeSymbol _viewComponentAttributeSymbol; - private readonly INamedTypeSymbol _genericTaskSymbol; - private readonly INamedTypeSymbol _taskSymbol; - private readonly INamedTypeSymbol _iDictionarySymbol; - - private static readonly SymbolDisplayFormat FullNameTypeDisplayFormat = - SymbolDisplayFormat.FullyQualifiedFormat - .WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted) - .WithMiscellaneousOptions(SymbolDisplayFormat.FullyQualifiedFormat.MiscellaneousOptions & (~SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); - - private static readonly IReadOnlyDictionary PrimitiveDisplayTypeNameLookups = new Dictionary(StringComparer.Ordinal) - { - [typeof(byte).FullName] = "byte", - [typeof(sbyte).FullName] = "sbyte", - [typeof(int).FullName] = "int", - [typeof(uint).FullName] = "uint", - [typeof(short).FullName] = "short", - [typeof(ushort).FullName] = "ushort", - [typeof(long).FullName] = "long", - [typeof(ulong).FullName] = "ulong", - [typeof(float).FullName] = "float", - [typeof(double).FullName] = "double", - [typeof(char).FullName] = "char", - [typeof(bool).FullName] = "bool", - [typeof(object).FullName] = "object", - [typeof(string).FullName] = "string", - [typeof(decimal).FullName] = "decimal", - }; - - public ViewComponentTagHelperDescriptorFactory(Compilation compilation) - { - _viewComponentAttributeSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); - _genericTaskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.GenericTask); - _taskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.Task); - _iDictionarySymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.IDictionary); - } - - public virtual TagHelperDescriptor CreateDescriptor(INamedTypeSymbol type) - { - var assemblyName = type.ContainingAssembly.Name; - var shortName = GetShortName(type); - var tagName = $"vc:{HtmlConventions.ToHtmlCase(shortName)}"; - var typeName = $"__Generated__{shortName}ViewComponentTagHelper"; - var displayName = shortName + "ViewComponentTagHelper"; - var descriptorBuilder = TagHelperDescriptorBuilder.Create(ViewComponentTagHelperConventions.Kind, typeName, assemblyName); - descriptorBuilder.SetTypeName(typeName); - descriptorBuilder.DisplayName = displayName; - - if (TryFindInvokeMethod(type, out var method, out var diagnostic)) - { - var methodParameters = method.Parameters; - descriptorBuilder.TagMatchingRule(ruleBuilder => - { - ruleBuilder.TagName = tagName; - AddRequiredAttributes(methodParameters, ruleBuilder); - }); - - AddBoundAttributes(methodParameters, displayName, descriptorBuilder); - } - else - { - descriptorBuilder.Diagnostics.Add(diagnostic); - } - - descriptorBuilder.Metadata[ViewComponentTagHelperMetadata.Name] = shortName; - - var descriptor = descriptorBuilder.Build(); - return descriptor; - } - - private bool TryFindInvokeMethod(INamedTypeSymbol type, out IMethodSymbol method, out RazorDiagnostic diagnostic) - { - var methods = GetInvokeMethods(type); - - if (methods.Count == 0) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_CannotFindMethod(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (methods.Count > 1) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_AmbiguousMethods(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - - var selectedMethod = methods[0]; - var returnType = selectedMethod.ReturnType as INamedTypeSymbol; - if (string.Equals(selectedMethod.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal)) - { - // Will invoke asynchronously. Method must not return Task or Task. - if (SymbolEqualityComparer.Default.Equals(returnType, _taskSymbol)) - { - // This is ok. - } - else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) - { - // This is ok. - } - else - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_AsyncMethod_ShouldReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - } - else - { - // Will invoke synchronously. Method must not return void, Task or Task. - if (returnType.SpecialType == SpecialType.System_Void) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_ShouldReturnValue(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (SymbolEqualityComparer.Default.Equals(returnType, _taskSymbol)) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_CannotReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_CannotReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - } - - method = selectedMethod; - diagnostic = null; - return true; - } - - private static IReadOnlyList GetInvokeMethods(INamedTypeSymbol type) - { - var methods = new List(); - while (type != null) - { - var currentTypeMethods = type.GetMembers() - .OfType() - .Where(m => - m.DeclaredAccessibility == Accessibility.Public && - !m.IsStatic && - (string.Equals(m.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal) || - string.Equals(m.Name, ViewComponentTypes.SyncMethodName, StringComparison.Ordinal))); - - methods.AddRange(currentTypeMethods); - - type = type.BaseType; - } - - return methods; - } - - private void AddRequiredAttributes(ImmutableArray methodParameters, TagMatchingRuleDescriptorBuilder builder) - { - foreach (var parameter in methodParameters) - { - if (GetIndexerValueTypeName(parameter) == null) - { - // Set required attributes only for non-indexer attributes. Indexer attributes can't be required attributes - // because there are two ways of setting values for the attribute. - builder.Attribute(attributeBuilder => - { - var lowerKebabName = HtmlConventions.ToHtmlCase(parameter.Name); - attributeBuilder.Name = lowerKebabName; - }); - } - } - } - - private void AddBoundAttributes(ImmutableArray methodParameters, string containingDisplayName, TagHelperDescriptorBuilder builder) - { - foreach (var parameter in methodParameters) - { - var lowerKebabName = HtmlConventions.ToHtmlCase(parameter.Name); - var typeName = parameter.Type.ToDisplayString(FullNameTypeDisplayFormat); - - if (!PrimitiveDisplayTypeNameLookups.TryGetValue(typeName, out var simpleName)) - { - simpleName = typeName; - } - - builder.BindAttribute(attributeBuilder => - { - attributeBuilder.Name = lowerKebabName; - attributeBuilder.TypeName = typeName; - attributeBuilder.DisplayName = $"{simpleName} {containingDisplayName}.{parameter.Name}"; - attributeBuilder.SetPropertyName(parameter.Name); - - if (parameter.Type.TypeKind == TypeKind.Enum) - { - attributeBuilder.IsEnum = true; - } - else - { - var dictionaryValueType = GetIndexerValueTypeName(parameter); - if (dictionaryValueType != null) - { - attributeBuilder.AsDictionary(lowerKebabName + "-", dictionaryValueType); - } - } - }); - } - } - - private string GetIndexerValueTypeName(IParameterSymbol parameter) - { - INamedTypeSymbol dictionaryType; - if (SymbolEqualityComparer.Default.Equals((parameter.Type as INamedTypeSymbol)?.ConstructedFrom, _iDictionarySymbol)) - { - dictionaryType = (INamedTypeSymbol)parameter.Type; - } - else if (parameter.Type.AllInterfaces.Any(s => SymbolEqualityComparer.Default.Equals(s.ConstructedFrom, _iDictionarySymbol))) - { - dictionaryType = parameter.Type.AllInterfaces.First(s => SymbolEqualityComparer.Default.Equals(s.ConstructedFrom, _iDictionarySymbol)); - } - else - { - dictionaryType = null; - } - - if (dictionaryType == null || dictionaryType.TypeArguments[0].SpecialType != SpecialType.System_String) - { - return null; - } - - var type = dictionaryType.TypeArguments[1]; - var typeName = type.ToDisplayString(FullNameTypeDisplayFormat); - - return typeName; - } - - private string GetShortName(INamedTypeSymbol componentType) - { - var viewComponentAttribute = componentType.GetAttributes().Where(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, _viewComponentAttributeSymbol)).FirstOrDefault(); - var name = viewComponentAttribute - ?.NamedArguments - .Where(namedArgument => string.Equals(namedArgument.Key, ViewComponentTypes.ViewComponent.Name, StringComparison.Ordinal)) - .FirstOrDefault() - .Value - .Value as string; - - if (!string.IsNullOrEmpty(name)) - { - var separatorIndex = name.LastIndexOf('.'); - if (separatorIndex >= 0) - { - return name.Substring(separatorIndex + 1); - } - else - { - return name; - } - } - - // Get name by convention - if (componentType.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) - { - return componentType.Name.Substring(0, componentType.Name.Length - ViewComponentTypes.ViewComponentSuffix.Length); - } - else - { - return componentType.Name; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorProvider.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorProvider.cs deleted file mode 100644 index 4806acc806c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public sealed class ViewComponentTagHelperDescriptorProvider : RazorEngineFeatureBase, ITagHelperDescriptorProvider - { - public int Order { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var compilation = context.GetCompilation(); - if (compilation == null) - { - // No compilation, nothing to do. - return; - } - - var vcAttribute = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); - var nonVCAttribute = compilation.GetTypeByMetadataName(ViewComponentTypes.NonViewComponentAttribute); - if (vcAttribute == null || vcAttribute.TypeKind == TypeKind.Error) - { - // Could not find attributes we care about in the compilation. Nothing to do. - return; - } - - var types = new List(); - var visitor = new ViewComponentTypeVisitor(vcAttribute, nonVCAttribute, types); - - // We always visit the global namespace. - visitor.Visit(compilation.Assembly.GlobalNamespace); - - foreach (var reference in compilation.References) - { - if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly) - { - if (IsTagHelperAssembly(assembly)) - { - visitor.Visit(assembly.GlobalNamespace); - } - } - } - - var factory = new ViewComponentTagHelperDescriptorFactory(compilation); - for (var i = 0; i < types.Count; i++) - { - var descriptor = factory.CreateDescriptor(types[i]); - - if (descriptor != null) - { - context.Results.Add(descriptor); - } - } - } - - private bool IsTagHelperAssembly(IAssemblySymbol assembly) - { - return assembly.Name != null && !assembly.Name.StartsWith("System.", StringComparison.Ordinal); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperIntermediateNode.cs deleted file mode 100644 index a42b88416bc..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperIntermediateNode.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public sealed class ViewComponentTagHelperIntermediateNode : ExtensionIntermediateNode - { - public override IntermediateNodeCollection Children { get; } = IntermediateNodeCollection.ReadOnly; - - public string ClassName { get; set; } - - public TagHelperDescriptor TagHelper { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var extension = target.GetExtension(); - if (extension == null) - { - ReportMissingCodeTargetExtension(context); - return; - } - - extension.WriteViewComponentTagHelper(context, this); - } - - public override void FormatNode(IntermediateNodeFormatter formatter) - { - formatter.WriteContent(ClassName); - - formatter.WriteProperty(nameof(ClassName), ClassName); - formatter.WriteProperty(nameof(TagHelper), TagHelper?.DisplayName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperMetadata.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperMetadata.cs deleted file mode 100644 index ad77c7a29ee..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperMetadata.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public static class ViewComponentTagHelperMetadata - { - /// - /// The key in a containing - /// the short name of a view component. - /// - public static readonly string Name = "MVC.ViewComponent.Name"; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperPass.cs deleted file mode 100644 index f5c37eb13b0..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperPass.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - public class ViewComponentTagHelperPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run after the default taghelper pass - public override int Order => IntermediateNodePassBase.DefaultFeatureOrder + 2000; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - var context = new Context(@namespace, @class); - - // For each VCTH *usage* we need to rewrite the tag helper node to use the tag helper runtime to construct - // and set properties on the the correct field, and using the name of the type we will generate. - var nodes = documentNode.FindDescendantNodes(); - for (var i = 0; i < nodes.Count; i++) - { - var node = nodes[i]; - foreach (var tagHelper in node.TagHelpers) - { - RewriteUsage(context, node, tagHelper); - } - } - - // Then for each VCTH *definition* that we've seen we need to generate the class that implements - // ITagHelper and the field that will hold it. - foreach (var tagHelper in context.TagHelpers) - { - AddField(context, tagHelper); - AddTagHelperClass(context, tagHelper); - } - } - - private void RewriteUsage(Context context, TagHelperIntermediateNode node, TagHelperDescriptor tagHelper) - { - if (!tagHelper.IsViewComponentKind()) - { - return; - } - - context.Add(tagHelper); - - // Now we need to insert a create node using the default tag helper runtime. This is similar to - // code in DefaultTagHelperOptimizationPass. - // - // Find the body node. - var i = 0; - while (i < node.Children.Count && node.Children[i] is TagHelperBodyIntermediateNode) - { - i++; - } - while (i < node.Children.Count && node.Children[i] is DefaultTagHelperBodyIntermediateNode) - { - i++; - } - - // Now find the last create node. - while (i < node.Children.Count && node.Children[i] is DefaultTagHelperCreateIntermediateNode) - { - i++; - } - - // Now i has the right insertion point. - node.Children.Insert(i, new DefaultTagHelperCreateIntermediateNode() - { - FieldName = context.GetFieldName(tagHelper), - TagHelper = tagHelper, - TypeName = context.GetFullyQualifiedName(tagHelper), - }); - - // Now we need to rewrite any set property nodes to use the default runtime. - for (i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is TagHelperPropertyIntermediateNode propertyNode && - propertyNode.TagHelper == tagHelper) - { - // This is a set property for this VCTH - we need to replace it with a node - // that will use our field and property name. - node.Children[i] = new DefaultTagHelperPropertyIntermediateNode(propertyNode) - { - FieldName = context.GetFieldName(tagHelper), - PropertyName = propertyNode.BoundAttribute.GetPropertyName(), - }; - } - } - } - - private void AddField(Context context, TagHelperDescriptor tagHelper) - { - // We need to insert a node for the field that will hold the tag helper. We've already generated a field name - // at this time and use it for all uses of the same tag helper type. - // - // We also want to preserve the ordering of the nodes for testability. So insert at the end of any existing - // field nodes. - var i = 0; - while (i < context.Class.Children.Count && context.Class.Children[i] is DefaultTagHelperRuntimeIntermediateNode) - { - i++; - } - - while (i < context.Class.Children.Count && context.Class.Children[i] is FieldDeclarationIntermediateNode) - { - i++; - } - - context.Class.Children.Insert(i, new FieldDeclarationIntermediateNode() - { - Annotations = - { - { CommonAnnotations.DefaultTagHelperExtension.TagHelperField, bool.TrueString }, - }, - Modifiers = - { - "private", - }, - FieldName = context.GetFieldName(tagHelper), - FieldType = "global::" + context.GetFullyQualifiedName(tagHelper), - }); - } - - private void AddTagHelperClass(Context context, TagHelperDescriptor tagHelper) - { - var node = new ViewComponentTagHelperIntermediateNode() - { - ClassName = context.GetClassName(tagHelper), - TagHelper = tagHelper - }; - - context.Class.Children.Add(node); - } - - private struct Context - { - private Dictionary _tagHelpers; - - public Context(NamespaceDeclarationIntermediateNode @namespace, ClassDeclarationIntermediateNode @class) - { - Namespace = @namespace; - Class = @class; - - _tagHelpers = new Dictionary(); - } - - public ClassDeclarationIntermediateNode Class { get; } - - public NamespaceDeclarationIntermediateNode Namespace { get; } - - - public IEnumerable TagHelpers => _tagHelpers.Keys; - - public bool Add(TagHelperDescriptor tagHelper) - { - if (_tagHelpers.ContainsKey(tagHelper)) - { - return false; - } - - var className = $"__Generated__{tagHelper.GetViewComponentName()}ViewComponentTagHelper"; - var fullyQualifiedName = $"{Namespace.Content}.{Class.ClassName}.{className}"; - var fieldName = GenerateFieldName(tagHelper); - - _tagHelpers.Add(tagHelper, (className, fullyQualifiedName, fieldName)); - - return true; - } - - public string GetClassName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].className; - } - - public string GetFullyQualifiedName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].fullyQualifiedName; - } - - public string GetFieldName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].fieldName; - } - - private static string GenerateFieldName(TagHelperDescriptor tagHelper) - { - return $"__{tagHelper.GetViewComponentName()}ViewComponentTagHelper"; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperTargetExtension.cs deleted file mode 100644 index a56e86fdcae..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTagHelperTargetExtension.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal class ViewComponentTagHelperTargetExtension : IViewComponentTagHelperTargetExtension - { - private static readonly string[] PublicModifiers = new[] { "public" }; - - public string TagHelperTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelper"; - - public string ViewComponentHelperTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.IViewComponentHelper"; - - public string ViewComponentHelperVariableName { get; set; } = "_helper"; - - public string ViewComponentInvokeMethodName { get; set; } = "InvokeAsync"; - - public string HtmlAttributeNotBoundAttributeTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute"; - - public string ViewContextAttributeTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute"; - - public string ViewContextTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext"; - - public string ViewContextPropertyName { get; set; } = "ViewContext"; - - public string HtmlTargetElementAttributeTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute"; - - public string TagHelperProcessMethodName { get; set; } = "ProcessAsync"; - - public string TagHelperContextTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext"; - - public string TagHelperContextVariableName { get; set; } = "context"; - - public string TagHelperOutputTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput"; - - public string TagHelperOutputVariableName { get; set; } = "output"; - - public string TagHelperOutputTagNamePropertyName { get; set; } = "TagName"; - - public string TagHelperOutputContentPropertyName { get; set; } = "Content"; - - public string TagHelperContentSetMethodName { get; set; } = "SetHtmlContent"; - - public string TagHelperContentVariableName { get; set; } = "content"; - - public string IViewContextAwareTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware"; - - public string IViewContextAwareContextualizeMethodName { get; set; } = "Contextualize"; - - public void WriteViewComponentTagHelper(CodeRenderingContext context, ViewComponentTagHelperIntermediateNode node) - { - // Add target element. - WriteTargetElementString(context.CodeWriter, node.TagHelper); - - // Initialize declaration. - using (context.CodeWriter.BuildClassDeclaration( - PublicModifiers, - node.ClassName, - TagHelperTypeName, - interfaces: null, - typeParameters: null)) - { - // Add view component helper. - context.CodeWriter.WriteVariableDeclaration( - $"private readonly {ViewComponentHelperTypeName}", - ViewComponentHelperVariableName, - value: null); - - // Add constructor. - WriteConstructorString(context.CodeWriter, node.ClassName); - - // Add attributes. - WriteAttributeDeclarations(context.CodeWriter, node.TagHelper); - - // Add process method. - WriteProcessMethodString(context.CodeWriter, node.TagHelper); - } - } - - private void WriteConstructorString(CodeWriter writer, string className) - { - writer.Write("public ") - .Write(className) - .Write("(") - .Write($"{ViewComponentHelperTypeName} helper") - .WriteLine(")"); - using (writer.BuildScope()) - { - writer.WriteStartAssignment(ViewComponentHelperVariableName) - .Write("helper") - .WriteLine(";"); - } - } - - private void WriteAttributeDeclarations(CodeWriter writer, TagHelperDescriptor tagHelper) - { - writer.Write("[") - .Write(HtmlAttributeNotBoundAttributeTypeName) - .WriteParameterSeparator() - .Write(ViewContextAttributeTypeName) - .WriteLine("]"); - - writer.WriteAutoPropertyDeclaration( - PublicModifiers, - ViewContextTypeName, - ViewContextPropertyName); - - foreach (var attribute in tagHelper.BoundAttributes) - { - writer.WriteAutoPropertyDeclaration( - PublicModifiers, - attribute.TypeName, - attribute.GetPropertyName()); - - if (attribute.IndexerTypeName != null) - { - writer.Write(" = ") - .WriteStartNewObject(attribute.TypeName) - .WriteEndMethodInvocation(); - } - } - } - - private void WriteProcessMethodString(CodeWriter writer, TagHelperDescriptor tagHelper) - { - using (writer.BuildMethodDeclaration( - $"public override async", - $"global::{typeof(Task).FullName}", - TagHelperProcessMethodName, - new Dictionary() - { - { TagHelperContextTypeName, TagHelperContextVariableName }, - { TagHelperOutputTypeName, TagHelperOutputVariableName } - })) - { - writer.WriteInstanceMethodInvocation( - $"({ViewComponentHelperVariableName} as {IViewContextAwareTypeName})?", - IViewContextAwareContextualizeMethodName, - new[] { ViewContextPropertyName }); - - var methodParameters = GetMethodParameters(tagHelper); - writer.Write("var ") - .WriteStartAssignment(TagHelperContentVariableName) - .WriteInstanceMethodInvocation($"await {ViewComponentHelperVariableName}", ViewComponentInvokeMethodName, methodParameters); - writer.WriteStartAssignment($"{TagHelperOutputVariableName}.{TagHelperOutputTagNamePropertyName}") - .WriteLine("null;"); - writer.WriteInstanceMethodInvocation( - $"{TagHelperOutputVariableName}.{TagHelperOutputContentPropertyName}", - TagHelperContentSetMethodName, - new[] { TagHelperContentVariableName }); - } - } - - private string[] GetMethodParameters(TagHelperDescriptor tagHelper) - { - var propertyNames = tagHelper.BoundAttributes.Select(attribute => attribute.GetPropertyName()); - var joinedPropertyNames = string.Join(", ", propertyNames); - var parametersString = $"new {{ { joinedPropertyNames } }}"; - var viewComponentName = tagHelper.GetViewComponentName(); - var methodParameters = new[] { $"\"{viewComponentName}\"", parametersString }; - return methodParameters; - } - - private void WriteTargetElementString(CodeWriter writer, TagHelperDescriptor tagHelper) - { - Debug.Assert(tagHelper.TagMatchingRules.Count() == 1); - - var rule = tagHelper.TagMatchingRules.First(); - - writer.Write("[") - .WriteStartMethodInvocation(HtmlTargetElementAttributeTypeName) - .WriteStringLiteral(rule.TagName) - .WriteLine(")]"); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypeVisitor.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypeVisitor.cs deleted file mode 100644 index 1d7463884c6..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypeVisitor.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.CodeAnalysis; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal class ViewComponentTypeVisitor : SymbolVisitor - { - private readonly INamedTypeSymbol _viewComponentAttribute; - private readonly INamedTypeSymbol _nonViewComponentAttribute; - private readonly List _results; - - public ViewComponentTypeVisitor( - INamedTypeSymbol viewComponentAttribute, - INamedTypeSymbol nonViewComponentAttribute, - List results) - { - _viewComponentAttribute = viewComponentAttribute; - _nonViewComponentAttribute = nonViewComponentAttribute; - _results = results; - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (IsViewComponent(symbol)) - { - _results.Add(symbol); - } - - if (symbol.DeclaredAccessibility != Accessibility.Public) - { - return; - } - - foreach (var member in symbol.GetTypeMembers()) - { - Visit(member); - } - } - - public override void VisitNamespace(INamespaceSymbol symbol) - { - foreach (var member in symbol.GetMembers()) - { - Visit(member); - } - } - - internal bool IsViewComponent(INamedTypeSymbol symbol) - { - if (_viewComponentAttribute == null) - { - return false; - } - - if (symbol.DeclaredAccessibility != Accessibility.Public || - symbol.IsAbstract || - symbol.IsGenericType || - AttributeIsDefined(symbol, _nonViewComponentAttribute)) - { - return false; - } - - return symbol.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix) || - AttributeIsDefined(symbol, _viewComponentAttribute); - } - - private static bool AttributeIsDefined(INamedTypeSymbol type, INamedTypeSymbol queryAttribute) - { - if (type == null || queryAttribute == null) - { - return false; - } - - var attribute = type.GetAttributes().Where(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, queryAttribute)).FirstOrDefault(); - - if (attribute != null) - { - return true; - } - - return AttributeIsDefined(type.BaseType, queryAttribute); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypes.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypes.cs deleted file mode 100644 index cd7e2771be7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/ViewComponentTypes.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X -{ - internal static class ViewComponentTypes - { - public const string Assembly = "Microsoft.AspNetCore.Mvc.ViewFeatures"; - - public static readonly Version AssemblyVersion = new Version(1, 1, 0, 0); - - public const string ViewComponentSuffix = "ViewComponent"; - - public const string ViewComponentAttribute = "Microsoft.AspNetCore.Mvc.ViewComponentAttribute"; - - public const string NonViewComponentAttribute = "Microsoft.AspNetCore.Mvc.NonViewComponentAttribute"; - - public const string GenericTask = "System.Threading.Tasks.Task`1"; - - public const string Task = "System.Threading.Tasks.Task"; - - public const string IDictionary = "System.Collections.Generic.IDictionary`2"; - - public const string AsyncMethodName = "InvokeAsync"; - - public const string SyncMethodName = "Invoke"; - - public static class ViewComponent - { - public const string Name = "Name"; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netcore.json b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netcore.json deleted file mode 100644 index 87b3d074f3d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netcore.json +++ /dev/null @@ -1,1180 +0,0 @@ -{ - "AssemblyIdentity": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", - "Types": [ - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.AssemblyAttributeInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IInjectTargetExtension", - "Visibility": "Public", - "Kind": "Interface", - "Abstract": true, - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.CodeGeneration.ICodeTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectIntermediateNode", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.Intermediate.ExtensionIntermediateNode", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_TypeName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_TypeName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_MemberName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_MemberName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_Children", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeCollection", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Accept", - "Parameters": [ - { - "Name": "visitor", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeVisitor" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "WriteNode", - "Parameters": [ - { - "Name": "target", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeTarget" - }, - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectTargetExtension", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IInjectTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IInjectTargetExtension", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InstrumentationPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IViewComponentTagHelperTargetExtension", - "Visibility": "Public", - "Kind": "Interface", - "Abstract": true, - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.CodeGeneration.ICodeTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteViewComponentTagHelper", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperIntermediateNode" - } - ], - "ReturnType": "System.Void", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ModelDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetModelType", - "Parameters": [ - { - "Name": "document", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ModelExpressionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.MvcViewDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "MvcViewDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.NamespaceDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.PageDirective", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_RouteTemplate", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_DirectiveNode", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNode", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "TryGetPageDirective", - "Parameters": [ - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - }, - { - "Name": "pageDirective", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.PageDirective", - "Direction": "Out" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.PagesPropertyInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.RazorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.RazorPageDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "RazorPageDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "RouteTemplateKey", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.TagHelperDescriptorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "IsViewComponentKind", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetViewComponentName", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.String", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperConventions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Kind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperDescriptorProvider", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "Microsoft.AspNetCore.Razor.Language.RazorEngineFeatureBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_Order", - "Parameters": [ - { - "Name": "value", - "Type": "System.Int32" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Execute", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptorProviderContext" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperIntermediateNode", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "Microsoft.AspNetCore.Razor.Language.Intermediate.ExtensionIntermediateNode", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_Children", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeCollection", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_ClassName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_ClassName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_TagHelper", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_TagHelper", - "Parameters": [ - { - "Name": "value", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Accept", - "Parameters": [ - { - "Name": "visitor", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeVisitor" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "WriteNode", - "Parameters": [ - { - "Name": "target", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeTarget" - }, - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperMetadata", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriterExtensions+CSharpCodeWritingScope", - "Visibility": "Public", - "Kind": "Struct", - "Sealed": true, - "ImplementedInterfaces": [ - "System.IDisposable" - ], - "Members": [ - { - "Kind": "Method", - "Name": "Dispose", - "Parameters": [], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "System.IDisposable", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "writer", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter" - }, - { - "Name": "tabSize", - "Type": "System.Int32", - "DefaultValue": "4" - }, - { - "Name": "autoSpace", - "Type": "System.Boolean", - "DefaultValue": "True" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTypes+ViewComponent", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [], - "Constant": true, - "Literal": "\"Name\"" - } - ], - "GenericParameters": [] - } - ] -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netframework.json b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netframework.json deleted file mode 100644 index 93864962268..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/baseline.netframework.json +++ /dev/null @@ -1,982 +0,0 @@ -{ - "AssemblyIdentity": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X, Version=2.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", - "Types": [ - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.AssemblyAttributeInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IInjectTargetExtension", - "Visibility": "Public", - "Kind": "Interface", - "Abstract": true, - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.CodeGeneration.ICodeTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectIntermediateNode", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.Intermediate.ExtensionIntermediateNode", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_TypeName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_TypeName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_MemberName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_MemberName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_Children", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeCollection", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Accept", - "Parameters": [ - { - "Name": "visitor", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeVisitor" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "WriteNode", - "Parameters": [ - { - "Name": "target", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeTarget" - }, - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectTargetExtension", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IInjectTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.IInjectTargetExtension", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.InstrumentationPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ModelDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetModelType", - "Parameters": [ - { - "Name": "document", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ModelExpressionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.MvcViewDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "MvcViewDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.NamespaceDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.PageDirective", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_RouteTemplate", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_DirectiveNode", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNode", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "TryGetPageDirective", - "Parameters": [ - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - }, - { - "Name": "pageDirective", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.PageDirective", - "Direction": "Out" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.PagesPropertyInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.RazorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.RazorPageDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "RazorPageDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.TagHelperDescriptorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "IsViewComponentKind", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetViewComponentName", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.String", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperConventions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Kind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperDescriptorProvider", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "Microsoft.AspNetCore.Razor.Language.RazorEngineFeatureBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_Order", - "Parameters": [ - { - "Name": "value", - "Type": "System.Int32" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Execute", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptorProviderContext" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperMetadata", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTagHelperPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriterExtensions+CSharpCodeWritingScope", - "Visibility": "Public", - "Kind": "Struct", - "Sealed": true, - "ImplementedInterfaces": [ - "System.IDisposable" - ], - "Members": [ - { - "Kind": "Method", - "Name": "Dispose", - "Parameters": [], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "System.IDisposable", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "writer", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter" - }, - { - "Name": "tabSize", - "Type": "System.Int32", - "DefaultValue": "4" - }, - { - "Name": "autoSpace", - "Type": "System.Boolean", - "DefaultValue": "True" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.ViewComponentTypes+ViewComponent", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [], - "Constant": true, - "Literal": "\"Name\"" - } - ], - "GenericParameters": [] - } - ] -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ExtensionInitializer.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ExtensionInitializer.cs deleted file mode 100644 index 8c650ebedb7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ExtensionInitializer.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal class ExtensionInitializer : RazorExtensionInitializer - { - public override void Initialize(RazorProjectEngineBuilder builder) - { - RazorExtensions.Register(builder); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs deleted file mode 100644 index 89f74d5aaaf..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public interface IInjectTargetExtension : ICodeTargetExtension - { - void WriteInjectProperty(CodeRenderingContext context, InjectIntermediateNode node); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IViewComponentTagHelperTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IViewComponentTagHelperTargetExtension.cs deleted file mode 100644 index 1f303e7422d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IViewComponentTagHelperTargetExtension.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public interface IViewComponentTagHelperTargetExtension : ICodeTargetExtension - { - void WriteViewComponentTagHelper(CodeRenderingContext context, ViewComponentTagHelperIntermediateNode node); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs deleted file mode 100644 index 4282ea559f2..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public static class InjectDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "inject", - DirectiveKind.SingleLine, - builder => - { - builder - .AddTypeToken(Resources.InjectDirective_TypeToken_Name, Resources.InjectDirective_TypeToken_Description) - .AddMemberToken(Resources.InjectDirective_MemberToken_Name, Resources.InjectDirective_MemberToken_Description); - - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = Resources.InjectDirective_Description; - }); - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - builder.AddTargetExtension(new InjectTargetExtension()); - return builder; - } - - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - // Runs after the @model and @namespace directives - public override int Order => 10; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind && - documentNode.DocumentKind != MvcViewDocumentClassifierPass.MvcViewDocumentKind) - { - // Not a MVC file. Skip. - return; - } - - var visitor = new Visitor(); - visitor.Visit(documentNode); - var modelType = ModelDirective.GetModelType(documentNode); - - var properties = new HashSet(StringComparer.Ordinal); - - for (var i = visitor.Directives.Count - 1; i >= 0; i--) - { - var directive = visitor.Directives[i]; - var tokens = directive.Tokens.ToArray(); - if (tokens.Length < 2) - { - continue; - } - - var typeName = tokens[0].Content; - var memberName = tokens[1].Content; - - if (!properties.Add(memberName)) - { - continue; - } - - typeName = typeName.Replace("", "<" + modelType + ">"); - - var injectNode = new InjectIntermediateNode() - { - TypeName = typeName, - MemberName = memberName, - }; - - visitor.Class.Children.Add(injectNode); - } - } - } - - private class Visitor : IntermediateNodeWalker - { - public ClassDeclarationIntermediateNode Class { get; private set; } - - public IList Directives { get; } = new List(); - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - Directives.Add(node); - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - builder.AddTargetExtension(new InjectTargetExtension()); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs deleted file mode 100644 index 572d8bb1dc2..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class InjectIntermediateNode : ExtensionIntermediateNode - { - public string TypeName { get; set; } - - public string MemberName { get; set; } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var extension = target.GetExtension(); - if (extension == null) - { - ReportMissingCodeTargetExtension(context); - return; - } - - extension.WriteInjectProperty(context, this); - } - - public override void FormatNode(IntermediateNodeFormatter formatter) - { - formatter.WriteContent(MemberName); - - formatter.WriteProperty(nameof(MemberName), MemberName); - formatter.WriteProperty(nameof(TypeName), TypeName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs deleted file mode 100644 index d416d3aa0ad..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class InjectTargetExtension : IInjectTargetExtension - { - private const string RazorInjectAttribute = "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]"; - - public void WriteInjectProperty(CodeRenderingContext context, InjectIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var property = $"public {node.TypeName} {node.MemberName} {{ get; private set; }}"; - - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.CodeWriter - .WriteLine(RazorInjectAttribute) - .WriteLine(property); - } - } - else - { - context.CodeWriter - .WriteLine(RazorInjectAttribute) - .WriteLine(property); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj deleted file mode 100644 index afa5ecd6799..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - - ASP.NET Core design time hosting infrastructure for the Razor view engine. - netstandard2.0 - $(PackageTags);aspnetcoremvc - - - - - - - - - - - - - - diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs deleted file mode 100644 index 4e0973f14a8..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public static class ModelDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "model", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken(Resources.ModelDirective_TypeToken_Name, Resources.ModelDirective_TypeToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.ModelDirective_Description; - }); - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - return builder; - } - - public static string GetModelType(DocumentIntermediateNode document) - { - if (document == null) - { - throw new ArgumentNullException(nameof(document)); - } - - var visitor = new Visitor(); - return GetModelType(document, visitor); - } - - private static string GetModelType(DocumentIntermediateNode document, Visitor visitor) - { - visitor.Visit(document); - - for (var i = visitor.ModelDirectives.Count - 1; i >= 0; i--) - { - var directive = visitor.ModelDirectives[i]; - - var tokens = directive.Tokens.ToArray(); - if (tokens.Length >= 1) - { - return tokens[0].Content; - } - } - - if (document.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind) - { - return visitor.Class.ClassName; - } - else - { - return "dynamic"; - } - } - - internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - // Runs after the @inherits directive - public override int Order => 5; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind && - documentNode.DocumentKind != MvcViewDocumentClassifierPass.MvcViewDocumentKind) - { - // Not a MVC file. Skip. - return; - } - - var visitor = new Visitor(); - var modelType = GetModelType(documentNode, visitor); - - if (documentNode.Options.DesignTime) - { - // Alias the TModel token to a known type. - // This allows design time compilation to succeed for Razor files where the token isn't replaced. - var typeName = $"global::{typeof(object).FullName}"; - var usingNode = new UsingDirectiveIntermediateNode() - { - Content = $"TModel = {typeName}" - }; - - visitor.Namespace?.Children.Insert(0, usingNode); - } - - var baseType = visitor.Class?.BaseType?.Replace("", "<" + modelType + ">"); - visitor.Class.BaseType = baseType; - } - } - - private class Visitor : IntermediateNodeWalker - { - public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - - public ClassDeclarationIntermediateNode Class { get; private set; } - - public IList ModelDirectives { get; } = new List(); - - public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) - { - if (Namespace == null) - { - Namespace = node; - } - - base.VisitNamespaceDeclaration(node); - } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - ModelDirectives.Add(node); - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - builder.Features.Add(new Pass()); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs deleted file mode 100644 index 7b44002ff98..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class ModelExpressionPass : IntermediateNodePassBase, IRazorOptimizationPass - { - private const string ModelExpressionTypeName = "Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression"; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - public List TagHelpers { get; } = new List(); - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - if (string.Equals(node.BoundAttribute.TypeName, ModelExpressionTypeName, StringComparison.Ordinal) || - (node.IsIndexerNameMatch && - string.Equals(node.BoundAttribute.IndexerTypeName, ModelExpressionTypeName, StringComparison.Ordinal))) - { - var expression = new CSharpExpressionIntermediateNode(); - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "ModelExpressionProvider.CreateModelExpression(ViewData, __model => ", - }); - - if (node.Children.Count == 1 && node.Children[0] is IntermediateToken token && token.IsCSharp) - { - // A 'simple' expression will look like __model => __model.Foo - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "__model." - }); - - expression.Children.Add(token); - } - else - { - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is CSharpExpressionIntermediateNode nestedExpression) - { - for (var j = 0; j < nestedExpression.Children.Count; j++) - { - if (nestedExpression.Children[j] is IntermediateToken cSharpToken && - cSharpToken.IsCSharp) - { - expression.Children.Add(cSharpToken); - } - } - - continue; - } - } - } - - expression.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = ")", - }); - - node.Children.Clear(); - - node.Children.Add(expression); - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcImportProjectFeature.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcImportProjectFeature.cs deleted file mode 100644 index b85402ef79f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcImportProjectFeature.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal class MvcImportProjectFeature : RazorProjectEngineFeatureBase, IImportProjectFeature - { - private const string ImportsFileName = "_ViewImports.cshtml"; - - public IReadOnlyList GetImports(RazorProjectItem projectItem) - { - if (projectItem == null) - { - throw new ArgumentNullException(nameof(projectItem)); - } - - // Don't add MVC imports for a component - if (FileKinds.IsComponent(projectItem.FileKind)) - { - return Array.Empty(); - } - - var imports = new List(); - AddDefaultDirectivesImport(imports); - - // We add hierarchical imports second so any default directive imports can be overridden. - AddHierarchicalImports(projectItem, imports); - - return imports; - } - - // Internal for testing - internal static void AddDefaultDirectivesImport(List imports) - { - imports.Add(DefaultDirectivesProjectItem.Instance); - } - - // Internal for testing - internal void AddHierarchicalImports(RazorProjectItem projectItem, List imports) - { - // We want items in descending order. FindHierarchicalItems returns items in ascending order. - var importProjectItems = ProjectEngine.FileSystem.FindHierarchicalItems(projectItem.FilePath, ImportsFileName).Reverse(); - imports.AddRange(importProjectItems); - } - - private class DefaultDirectivesProjectItem : RazorProjectItem - { - private readonly byte[] _defaultImportBytes; - - private DefaultDirectivesProjectItem() - { - var preamble = Encoding.UTF8.GetPreamble(); - var content = @" -@using System -@using System.Collections.Generic -@using System.Linq -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Mvc -@using Microsoft.AspNetCore.Mvc.Rendering -@using Microsoft.AspNetCore.Mvc.ViewFeatures -@inject global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper Html -@inject global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json -@inject global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component -@inject global::Microsoft.AspNetCore.Mvc.IUrlHelper Url -@inject global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor -@addTagHelper Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor -"; - var contentBytes = Encoding.UTF8.GetBytes(content); - - _defaultImportBytes = new byte[preamble.Length + contentBytes.Length]; - preamble.CopyTo(_defaultImportBytes, 0); - contentBytes.CopyTo(_defaultImportBytes, preamble.Length); - } - - public override string BasePath => null; - - public override string FilePath => null; - - public override string PhysicalPath => null; - - public override bool Exists => true; - - public static DefaultDirectivesProjectItem Instance { get; } = new DefaultDirectivesProjectItem(); - - public override Stream Read() => new MemoryStream(_defaultImportBytes); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs deleted file mode 100644 index 7ab07afc8ba..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class MvcViewDocumentClassifierPass : DocumentClassifierPassBase - { - public static readonly string MvcViewDocumentKind = "mvc.1.0.view"; - - protected override string DocumentKind => MvcViewDocumentKind; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) => true; - - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); - - if (!codeDocument.TryComputeNamespace(fallbackToRootNamespace: false, out var namespaceName)) - { - @namespace.Content = "AspNetCore"; - } - else - { - @namespace.Content = namespaceName; - } - - if (!TryComputeClassName(codeDocument, out var className)) - { - // It's possible for a Razor document to not have a file path. - // Eg. When we try to generate code for an in memory document like default imports. - var checksum = Checksum.BytesToString(codeDocument.Source.GetChecksum()); - @class.ClassName = $"AspNetCore_{checksum}"; - } - else - { - @class.ClassName = className; - } - - - @class.BaseType = "global::Microsoft.AspNetCore.Mvc.Razor.RazorPage"; - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - - method.MethodName = "ExecuteAsync"; - method.Modifiers.Clear(); - method.Modifiers.Add("public"); - method.Modifiers.Add("async"); - method.Modifiers.Add("override"); - method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; - } - - private bool TryComputeClassName(RazorCodeDocument codeDocument, out string className) - { - var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; - if (string.IsNullOrEmpty(filePath)) - { - className = null; - return false; - } - - className = GetClassNameFromPath(filePath); - return true; - } - - private static string GetClassNameFromPath(string path) - { - const string cshtmlExtension = ".cshtml"; - - if (string.IsNullOrEmpty(path)) - { - return path; - } - - if (path.EndsWith(cshtmlExtension, StringComparison.OrdinalIgnoreCase)) - { - path = path.Substring(0, path.Length - cshtmlExtension.Length); - } - - return CSharpIdentifier.SanitizeIdentifier(path); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs deleted file mode 100644 index 322c6564ef4..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class PageDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "page", - DirectiveKind.SingleLine, - builder => - { - builder.AddOptionalStringToken(Resources.PageDirective_RouteToken_Name, Resources.PageDirective_RouteToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = Resources.PageDirective_Description; - }); - - private PageDirective(string routeTemplate, IntermediateNode directiveNode) - { - RouteTemplate = routeTemplate; - DirectiveNode = directiveNode; - } - - public string RouteTemplate { get; } - - public IntermediateNode DirectiveNode { get; } - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - return builder; - } - - public static bool TryGetPageDirective(DocumentIntermediateNode documentNode, out PageDirective pageDirective) - { - var visitor = new Visitor(); - for (var i = 0; i < documentNode.Children.Count; i++) - { - visitor.Visit(documentNode.Children[i]); - } - - if (visitor.DirectiveTokens == null) - { - pageDirective = null; - return false; - } - - var tokens = visitor.DirectiveTokens.ToList(); - string routeTemplate = null; - if (tokens.Count > 0) - { - routeTemplate = TrimQuotes(tokens[0].Content); - } - - pageDirective = new PageDirective(routeTemplate, visitor.DirectiveNode); - return true; - } - - private static string TrimQuotes(string content) - { - // Tokens aren't captured if they're malformed. Therefore, this method will - // always be called with a valid token content. - Debug.Assert(content.Length >= 2); - Debug.Assert(content.StartsWith("\"", StringComparison.Ordinal)); - Debug.Assert(content.EndsWith("\"", StringComparison.Ordinal)); - - return content.Substring(1, content.Length - 2); - } - - private class Visitor : IntermediateNodeWalker - { - public IntermediateNode DirectiveNode { get; private set; } - - public IEnumerable DirectiveTokens { get; private set; } - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == Directive) - { - DirectiveNode = node; - DirectiveTokens = node.Tokens; - } - } - - public override void VisitMalformedDirective(MalformedDirectiveIntermediateNode node) - { - if (DirectiveTokens == null && node.Directive == Directive) - { - DirectiveNode = node; - DirectiveTokens = node.Tokens; - } - } - } - - #region Obsolete - [Obsolete("This method is obsolete and will be removed in a future version.")] - public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive); - return builder; - } - #endregion - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs deleted file mode 100644 index 4a47275e136..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class PagesPropertyInjectionPass : IntermediateNodePassBase, IRazorOptimizationPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind) - { - return; - } - - var modelType = ModelDirective.GetModelType(documentNode); - var visitor = new Visitor(); - visitor.Visit(documentNode); - - var @class = visitor.Class; - - var viewDataType = $"global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<{modelType}>"; - var vddProperty = new CSharpCodeIntermediateNode(); - vddProperty.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"public {viewDataType} ViewData => ({viewDataType})PageContext?.ViewData;", - }); - @class.Children.Add(vddProperty); - - var modelProperty = new CSharpCodeIntermediateNode(); - modelProperty.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"public {modelType} Model => ViewData.Model;", - }); - @class.Children.Add(modelProperty); - } - - private class Visitor : IntermediateNodeWalker - { - public ClassDeclarationIntermediateNode Class { get; private set; } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - if (Class == null) - { - Class = node; - } - - base.VisitClassDeclaration(node); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Properties/AssemblyInfo.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d8a47bc677..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Runtime.CompilerServices; -using Microsoft.AspNetCore.Mvc.Razor.Extensions; -using Microsoft.AspNetCore.Razor.Language; - -[assembly: ProvideRazorExtensionInitializer("MVC-3.0", typeof(ExtensionInitializer))] - -[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Mvc.Razor.Extensions.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] -[assembly: InternalsVisibleTo("Microsoft.VisualStudio.Editor.Razor, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs deleted file mode 100644 index dfaebba0074..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public static class RazorExtensions - { - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - InjectDirective.Register(builder); - ModelDirective.Register(builder); - PageDirective.Register(builder); - - SectionDirective.Register(builder); - - builder.Features.Add(new DefaultTagHelperDescriptorProvider()); - builder.Features.Add(new ViewComponentTagHelperDescriptorProvider()); - - builder.AddTargetExtension(new ViewComponentTagHelperTargetExtension()); - builder.AddTargetExtension(new TemplateTargetExtension() - { - TemplateTypeName = "global::Microsoft.AspNetCore.Mvc.Razor.HelperResult", - }); - - builder.Features.Add(new ModelExpressionPass()); - builder.Features.Add(new PagesPropertyInjectionPass()); - builder.Features.Add(new ViewComponentTagHelperPass()); - builder.Features.Add(new RazorPageDocumentClassifierPass()); - builder.Features.Add(new MvcViewDocumentClassifierPass()); - - builder.Features.Add(new MvcImportProjectFeature()); - - // The default C# language version for what this Razor configuration supports. - builder.SetCSharpLanguageVersion(LanguageVersion.CSharp8); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensionsDiagnosticFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensionsDiagnosticFactory.cs deleted file mode 100644 index 74adb4fe932..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensionsDiagnosticFactory.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal class RazorExtensionsDiagnosticFactory - { - private const string DiagnosticPrefix = "RZ"; - - internal static readonly RazorDiagnosticDescriptor ViewComponent_CannotFindMethod = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3900", - () => ViewComponentResources.ViewComponent_CannotFindMethod, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_CannotFindMethod(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_CannotFindMethod, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - ViewComponentTypes.AsyncMethodName, - tagHelperType); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_AmbiguousMethods = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3901", - () => ViewComponentResources.ViewComponent_AmbiguousMethods, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_AmbiguousMethods(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_AmbiguousMethods, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - tagHelperType, - ViewComponentTypes.SyncMethodName, - ViewComponentTypes.AsyncMethodName); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_AsyncMethod_ShouldReturnTask = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3902", - () => ViewComponentResources.ViewComponent_AsyncMethod_ShouldReturnTask, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_AsyncMethod_ShouldReturnTask(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_AsyncMethod_ShouldReturnTask, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.AsyncMethodName, - tagHelperType, - nameof(Task)); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_SyncMethod_ShouldReturnValue = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3903", - () => ViewComponentResources.ViewComponent_SyncMethod_ShouldReturnValue, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_SyncMethod_ShouldReturnValue(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_SyncMethod_ShouldReturnValue, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - tagHelperType); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor ViewComponent_SyncMethod_CannotReturnTask = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3904", - () => ViewComponentResources.ViewComponent_SyncMethod_CannotReturnTask, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateViewComponent_SyncMethod_CannotReturnTask(string tagHelperType) - { - var diagnostic = RazorDiagnostic.Create( - ViewComponent_SyncMethod_CannotReturnTask, - new SourceSpan(SourceLocation.Undefined, contentLength: 0), - ViewComponentTypes.SyncMethodName, - tagHelperType, - nameof(Task)); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor PageDirective_CannotBeImported = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3905", - () => Resources.PageDirectiveCannotBeImported, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_CannotBeImported(SourceSpan source) - { - var fileName = Path.GetFileName(source.FilePath); - var diagnostic = RazorDiagnostic.Create(PageDirective_CannotBeImported, source, PageDirective.Directive.Directive, fileName); - - return diagnostic; - } - - internal static readonly RazorDiagnosticDescriptor PageDirective_MustExistAtTheTopOfFile = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}3906", - () => Resources.PageDirectiveMustExistAtTheTopOfFile, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_MustExistAtTheTopOfFile(SourceSpan source) - { - var fileName = Path.GetFileName(source.FilePath); - var diagnostic = RazorDiagnostic.Create(PageDirective_MustExistAtTheTopOfFile, source, PageDirective.Directive.Directive); - - return diagnostic; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs deleted file mode 100644 index 567754cd663..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Diagnostics; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class RazorPageDocumentClassifierPass : DocumentClassifierPassBase - { - public static readonly string RazorPageDocumentKind = "mvc.1.0.razor-page"; - public static readonly string RouteTemplateKey = "RouteTemplate"; - - private static readonly RazorProjectEngine LeadingDirectiveParsingEngine = RazorProjectEngine.Create( - RazorConfiguration.Create(RazorLanguageVersion.Version_3_0, "leading-directive-parser", Array.Empty()), - RazorProjectFileSystem.Create("/"), - builder => - { - for (var i = builder.Phases.Count - 1; i >= 0; i--) - { - var phase = builder.Phases[i]; - builder.Phases.RemoveAt(i); - if (phase is IRazorDocumentClassifierPhase) - { - break; - } - } - - RazorExtensions.Register(builder); - builder.Features.Add(new LeadingDirectiveParserOptionsFeature()); - }); - - protected override string DocumentKind => RazorPageDocumentKind; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - return PageDirective.TryGetPageDirective(documentNode, out var pageDirective); - } - - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); - - if (!codeDocument.TryComputeNamespace(fallbackToRootNamespace: false, out var namespaceName)) - { - @namespace.Content = "AspNetCore"; - } - else - { - @namespace.Content = namespaceName; - } - - if (!TryComputeClassName(codeDocument, out var className)) - { - // It's possible for a Razor document to not have a file path. - // Eg. When we try to generate code for an in memory document like default imports. - var checksum = Checksum.BytesToString(codeDocument.Source.GetChecksum()); - @class.ClassName = $"AspNetCore_{checksum}"; - } - else - { - @class.ClassName = className; - } - - @class.BaseType = "global::Microsoft.AspNetCore.Mvc.RazorPages.Page"; - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - - method.MethodName = "ExecuteAsync"; - method.Modifiers.Clear(); - method.Modifiers.Add("public"); - method.Modifiers.Add("async"); - method.Modifiers.Add("override"); - method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; - - var document = codeDocument.GetDocumentIntermediateNode(); - PageDirective.TryGetPageDirective(document, out var pageDirective); - - EnsureValidPageDirective(codeDocument, pageDirective); - - AddRouteTemplateMetadataAttribute(@namespace, @class, pageDirective); - } - - private static void AddRouteTemplateMetadataAttribute(NamespaceDeclarationIntermediateNode @namespace, ClassDeclarationIntermediateNode @class, PageDirective pageDirective) - { - if (string.IsNullOrEmpty(pageDirective.RouteTemplate)) - { - return; - } - - var classIndex = @namespace.Children.IndexOf(@class); - if (classIndex == -1) - { - return; - } - - var metadataAttributeNode = new RazorCompiledItemMetadataAttributeIntermediateNode - { - Key = RouteTemplateKey, - Value = pageDirective.RouteTemplate, - }; - // Metadata attributes need to be inserted right before the class declaration. - @namespace.Children.Insert(classIndex, metadataAttributeNode); - } - - private void EnsureValidPageDirective(RazorCodeDocument codeDocument, PageDirective pageDirective) - { - Debug.Assert(pageDirective != null); - - if (pageDirective.DirectiveNode.IsImported()) - { - pageDirective.DirectiveNode.Diagnostics.Add( - RazorExtensionsDiagnosticFactory.CreatePageDirective_CannotBeImported(pageDirective.DirectiveNode.Source.Value)); - } - else - { - // The document contains a page directive and it is not imported. - // We now want to make sure this page directive exists at the top of the file. - // We are going to do that by re-parsing the document until the very first line that is not Razor comment - // or whitespace. We then make sure the page directive still exists in the re-parsed IR tree. - var leadingDirectiveCodeDocument = RazorCodeDocument.Create(codeDocument.Source); - LeadingDirectiveParsingEngine.Engine.Process(leadingDirectiveCodeDocument); - - var leadingDirectiveDocumentNode = leadingDirectiveCodeDocument.GetDocumentIntermediateNode(); - if (!PageDirective.TryGetPageDirective(leadingDirectiveDocumentNode, out var _)) - { - // The page directive is not the leading directive. Add an error. - pageDirective.DirectiveNode.Diagnostics.Add( - RazorExtensionsDiagnosticFactory.CreatePageDirective_MustExistAtTheTopOfFile(pageDirective.DirectiveNode.Source.Value)); - } - } - } - - private class LeadingDirectiveParserOptionsFeature : RazorEngineFeatureBase, IConfigureRazorParserOptionsFeature - { - public int Order { get; } - - public void Configure(RazorParserOptionsBuilder options) - { - options.ParseLeadingDirectives = true; - } - } - - private bool TryComputeClassName(RazorCodeDocument codeDocument, out string className) - { - var filePath = codeDocument.Source.RelativePath ?? codeDocument.Source.FilePath; - if (string.IsNullOrEmpty(filePath)) - { - className = null; - return false; - } - - className = GetClassNameFromPath(filePath); - return true; - } - - private static string GetClassNameFromPath(string path) - { - const string cshtmlExtension = ".cshtml"; - - if (string.IsNullOrEmpty(path)) - { - return path; - } - - if (path.EndsWith(cshtmlExtension, StringComparison.OrdinalIgnoreCase)) - { - path = path.Substring(0, path.Length - cshtmlExtension.Length); - } - - return CSharpIdentifier.SanitizeIdentifier(path); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Resources.resx b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Resources.resx deleted file mode 100644 index 9a0b9cfdc49..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/Resources.resx +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Value cannot be null or empty. - - - Inject a service from the application's service container into a property. - - - The name of the property. - - - PropertyName - - - The type of the service to inject. - - - TypeName - - - Specify the view or page model for the page. - - - The model type. - - - TypeName - - - The 'inherits' keyword is not allowed when a '{0}' keyword is used. - - - A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'. - - - The '{0}' keyword must be followed by a type name on the same line. - - - Only one '{0}' statement is allowed in a file. - - - Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'. - - - The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor cshtml file. - - - The '@{0}' directive must precede all other elements defined in a Razor file. - - - Mark the page as a Razor Page. - - - An optional route template for the page. - - - RouteTemplate - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/TagHelperDescriptorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/TagHelperDescriptorExtensions.cs deleted file mode 100644 index dd32c0b013a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/TagHelperDescriptorExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public static class TagHelperDescriptorExtensions - { - /// - /// Indicates whether a represents a view component. - /// - /// The to check. - /// Whether a represents a view component. - public static bool IsViewComponentKind(this TagHelperDescriptor tagHelper) - { - if (tagHelper == null) - { - throw new ArgumentNullException(nameof(tagHelper)); - } - - return string.Equals(ViewComponentTagHelperConventions.Kind, tagHelper.Kind, StringComparison.Ordinal); - } - - public static string GetViewComponentName(this TagHelperDescriptor tagHelper) - { - if (tagHelper == null) - { - throw new ArgumentNullException(nameof(tagHelper)); - } - - tagHelper.Metadata.TryGetValue(ViewComponentTagHelperMetadata.Name, out var result); - return result; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentResources.resx b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentResources.resx deleted file mode 100644 index d6aad4ff3fc..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentResources.resx +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - View component '{0}' must have exactly one public method named '{1}' or '{2}'. - - - Method '{0}' of view component '{1}' should be declared to return {2}&lt;T&gt;. - - - Could not find an '{0}' or '{1}' method for the view component '{2}'. - - - Method '{0}' of view component '{1}' cannot return a {2}. - - - Method '{0}' of view component '{1}' should be declared to return a value. - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperConventions.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperConventions.cs deleted file mode 100644 index fa7563d37ba..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperConventions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public static class ViewComponentTagHelperConventions - { - public static readonly string Kind = "MVC.ViewComponent"; - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorFactory.cs deleted file mode 100644 index c266d7541db..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorFactory.cs +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal class ViewComponentTagHelperDescriptorFactory - { - private readonly INamedTypeSymbol _viewComponentAttributeSymbol; - private readonly INamedTypeSymbol _genericTaskSymbol; - private readonly INamedTypeSymbol _taskSymbol; - private readonly INamedTypeSymbol _iDictionarySymbol; - - private static readonly SymbolDisplayFormat FullNameTypeDisplayFormat = - SymbolDisplayFormat.FullyQualifiedFormat - .WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted) - .WithMiscellaneousOptions(SymbolDisplayFormat.FullyQualifiedFormat.MiscellaneousOptions & (~SymbolDisplayMiscellaneousOptions.UseSpecialTypes)); - - private static readonly IReadOnlyDictionary PrimitiveDisplayTypeNameLookups = new Dictionary(StringComparer.Ordinal) - { - [typeof(byte).FullName] = "byte", - [typeof(sbyte).FullName] = "sbyte", - [typeof(int).FullName] = "int", - [typeof(uint).FullName] = "uint", - [typeof(short).FullName] = "short", - [typeof(ushort).FullName] = "ushort", - [typeof(long).FullName] = "long", - [typeof(ulong).FullName] = "ulong", - [typeof(float).FullName] = "float", - [typeof(double).FullName] = "double", - [typeof(char).FullName] = "char", - [typeof(bool).FullName] = "bool", - [typeof(object).FullName] = "object", - [typeof(string).FullName] = "string", - [typeof(decimal).FullName] = "decimal", - }; - - public ViewComponentTagHelperDescriptorFactory(Compilation compilation) - { - _viewComponentAttributeSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); - _genericTaskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.GenericTask); - _taskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.Task); - _iDictionarySymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.IDictionary); - } - - public virtual TagHelperDescriptor CreateDescriptor(INamedTypeSymbol type) - { - var assemblyName = type.ContainingAssembly.Name; - var shortName = GetShortName(type); - var tagName = $"vc:{HtmlConventions.ToHtmlCase(shortName)}"; - var typeName = $"__Generated__{shortName}ViewComponentTagHelper"; - var displayName = shortName + "ViewComponentTagHelper"; - var descriptorBuilder = TagHelperDescriptorBuilder.Create(ViewComponentTagHelperConventions.Kind, typeName, assemblyName); - descriptorBuilder.SetTypeName(typeName); - descriptorBuilder.DisplayName = displayName; - - if (TryFindInvokeMethod(type, out var method, out var diagnostic)) - { - var methodParameters = method.Parameters; - descriptorBuilder.TagMatchingRule(ruleBuilder => - { - ruleBuilder.TagName = tagName; - AddRequiredAttributes(methodParameters, ruleBuilder); - }); - - AddBoundAttributes(methodParameters, displayName, descriptorBuilder); - } - else - { - descriptorBuilder.Diagnostics.Add(diagnostic); - } - - descriptorBuilder.Metadata[ViewComponentTagHelperMetadata.Name] = shortName; - - var descriptor = descriptorBuilder.Build(); - return descriptor; - } - - private bool TryFindInvokeMethod(INamedTypeSymbol type, out IMethodSymbol method, out RazorDiagnostic diagnostic) - { - var methods = GetInvokeMethods(type); - - if (methods.Count == 0) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_CannotFindMethod(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (methods.Count > 1) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_AmbiguousMethods(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - - var selectedMethod = methods[0]; - var returnType = selectedMethod.ReturnType as INamedTypeSymbol; - if (string.Equals(selectedMethod.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal)) - { - // Will invoke asynchronously. Method must not return Task or Task. - if (SymbolEqualityComparer.Default.Equals(returnType, _taskSymbol)) - { - // This is ok. - } - else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) - { - // This is ok. - } - else - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_AsyncMethod_ShouldReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - } - else - { - // Will invoke synchronously. Method must not return void, Task or Task. - if (returnType.SpecialType == SpecialType.System_Void) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_ShouldReturnValue(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (SymbolEqualityComparer.Default.Equals(returnType, _taskSymbol)) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_CannotReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - else if (returnType.IsGenericType && SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, _genericTaskSymbol)) - { - diagnostic = RazorExtensionsDiagnosticFactory.CreateViewComponent_SyncMethod_CannotReturnTask(type.ToDisplayString(FullNameTypeDisplayFormat)); - method = null; - return false; - } - } - - method = selectedMethod; - diagnostic = null; - return true; - } - - private static IReadOnlyList GetInvokeMethods(INamedTypeSymbol type) - { - var methods = new List(); - while (type != null) - { - var currentTypeMethods = type.GetMembers() - .OfType() - .Where(m => - m.DeclaredAccessibility == Accessibility.Public && - !m.IsStatic && - (string.Equals(m.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal) || - string.Equals(m.Name, ViewComponentTypes.SyncMethodName, StringComparison.Ordinal))); - - methods.AddRange(currentTypeMethods); - - type = type.BaseType; - } - - return methods; - } - - private void AddRequiredAttributes(ImmutableArray methodParameters, TagMatchingRuleDescriptorBuilder builder) - { - foreach (var parameter in methodParameters) - { - if (GetIndexerValueTypeName(parameter) == null) - { - // Set required attributes only for non-indexer attributes. Indexer attributes can't be required attributes - // because there are two ways of setting values for the attribute. - builder.Attribute(attributeBuilder => - { - var lowerKebabName = HtmlConventions.ToHtmlCase(parameter.Name); - attributeBuilder.Name = lowerKebabName; - }); - } - } - } - - private void AddBoundAttributes(ImmutableArray methodParameters, string containingDisplayName, TagHelperDescriptorBuilder builder) - { - foreach (var parameter in methodParameters) - { - var lowerKebabName = HtmlConventions.ToHtmlCase(parameter.Name); - var typeName = parameter.Type.ToDisplayString(FullNameTypeDisplayFormat); - - if (!PrimitiveDisplayTypeNameLookups.TryGetValue(typeName, out var simpleName)) - { - simpleName = typeName; - } - - builder.BindAttribute(attributeBuilder => - { - attributeBuilder.Name = lowerKebabName; - attributeBuilder.TypeName = typeName; - attributeBuilder.DisplayName = $"{simpleName} {containingDisplayName}.{parameter.Name}"; - attributeBuilder.SetPropertyName(parameter.Name); - - if (parameter.Type.TypeKind == TypeKind.Enum) - { - attributeBuilder.IsEnum = true; - } - else - { - var dictionaryValueType = GetIndexerValueTypeName(parameter); - if (dictionaryValueType != null) - { - attributeBuilder.AsDictionary(lowerKebabName + "-", dictionaryValueType); - } - } - }); - } - } - - private string GetIndexerValueTypeName(IParameterSymbol parameter) - { - INamedTypeSymbol dictionaryType; - if (SymbolEqualityComparer.Default.Equals((parameter.Type as INamedTypeSymbol)?.ConstructedFrom, _iDictionarySymbol)) - { - dictionaryType = (INamedTypeSymbol)parameter.Type; - } - else if (parameter.Type.AllInterfaces.Any(s => SymbolEqualityComparer.Default.Equals(s.ConstructedFrom, _iDictionarySymbol))) - { - dictionaryType = parameter.Type.AllInterfaces.First(s => SymbolEqualityComparer.Default.Equals(s.ConstructedFrom, _iDictionarySymbol)); - } - else - { - dictionaryType = null; - } - - if (dictionaryType == null || dictionaryType.TypeArguments[0].SpecialType != SpecialType.System_String) - { - return null; - } - - var type = dictionaryType.TypeArguments[1]; - var typeName = type.ToDisplayString(FullNameTypeDisplayFormat); - - return typeName; - } - - private string GetShortName(INamedTypeSymbol componentType) - { - var viewComponentAttribute = componentType.GetAttributes().Where(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, _viewComponentAttributeSymbol)).FirstOrDefault(); - var name = viewComponentAttribute - ?.NamedArguments - .Where(namedArgument => string.Equals(namedArgument.Key, ViewComponentTypes.ViewComponent.Name, StringComparison.Ordinal)) - .FirstOrDefault() - .Value - .Value as string; - - if (!string.IsNullOrEmpty(name)) - { - var separatorIndex = name.LastIndexOf('.'); - if (separatorIndex >= 0) - { - return name.Substring(separatorIndex + 1); - } - else - { - return name; - } - } - - // Get name by convention - if (componentType.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) - { - return componentType.Name.Substring(0, componentType.Name.Length - ViewComponentTypes.ViewComponentSuffix.Length); - } - else - { - return componentType.Name; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorProvider.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorProvider.cs deleted file mode 100644 index d0d9805f6b4..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperDescriptorProvider.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Razor; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public sealed class ViewComponentTagHelperDescriptorProvider : RazorEngineFeatureBase, ITagHelperDescriptorProvider - { - public int Order { get; set; } - - public void Execute(TagHelperDescriptorProviderContext context) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var compilation = context.GetCompilation(); - if (compilation == null) - { - // No compilation, nothing to do. - return; - } - - var vcAttribute = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); - var nonVCAttribute = compilation.GetTypeByMetadataName(ViewComponentTypes.NonViewComponentAttribute); - if (vcAttribute == null || vcAttribute.TypeKind == TypeKind.Error) - { - // Could not find attributes we care about in the compilation. Nothing to do. - return; - } - - var types = new List(); - var visitor = new ViewComponentTypeVisitor(vcAttribute, nonVCAttribute, types); - - // We always visit the global namespace. - visitor.Visit(compilation.Assembly.GlobalNamespace); - - foreach (var reference in compilation.References) - { - if (compilation.GetAssemblyOrModuleSymbol(reference) is IAssemblySymbol assembly) - { - if (IsTagHelperAssembly(assembly)) - { - visitor.Visit(assembly.GlobalNamespace); - } - } - } - - var factory = new ViewComponentTagHelperDescriptorFactory(compilation); - for (var i = 0; i < types.Count; i++) - { - var descriptor = factory.CreateDescriptor(types[i]); - - if (descriptor != null) - { - context.Results.Add(descriptor); - } - } - } - - private bool IsTagHelperAssembly(IAssemblySymbol assembly) - { - return assembly.Name != null && !assembly.Name.StartsWith("System.", StringComparison.Ordinal); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperIntermediateNode.cs deleted file mode 100644 index 9283b2c092a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperIntermediateNode.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public sealed class ViewComponentTagHelperIntermediateNode : ExtensionIntermediateNode - { - public override IntermediateNodeCollection Children { get; } = IntermediateNodeCollection.ReadOnly; - - public string ClassName { get; set; } - - public TagHelperDescriptor TagHelper { get; set; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - var extension = target.GetExtension(); - if (extension == null) - { - ReportMissingCodeTargetExtension(context); - return; - } - - extension.WriteViewComponentTagHelper(context, this); - } - - public override void FormatNode(IntermediateNodeFormatter formatter) - { - formatter.WriteContent(ClassName); - - formatter.WriteProperty(nameof(ClassName), ClassName); - formatter.WriteProperty(nameof(TagHelper), TagHelper?.DisplayName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperMetadata.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperMetadata.cs deleted file mode 100644 index ca8aae361da..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperMetadata.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public static class ViewComponentTagHelperMetadata - { - /// - /// The key in a containing - /// the short name of a view component. - /// - public static readonly string Name = "MVC.ViewComponent.Name"; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs deleted file mode 100644 index 0c3b14563e5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - public class ViewComponentTagHelperPass : IntermediateNodePassBase, IRazorOptimizationPass - { - // Run after the default taghelper pass - public override int Order => IntermediateNodePassBase.DefaultFeatureOrder + 2000; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - var context = new Context(@namespace, @class); - - // For each VCTH *usage* we need to rewrite the tag helper node to use the tag helper runtime to construct - // and set properties on the the correct field, and using the name of the type we will generate. - var nodes = documentNode.FindDescendantNodes(); - for (var i = 0; i < nodes.Count; i++) - { - var node = nodes[i]; - foreach (var tagHelper in node.TagHelpers) - { - RewriteUsage(context, node, tagHelper); - } - } - - // Then for each VCTH *definition* that we've seen we need to generate the class that implements - // ITagHelper and the field that will hold it. - foreach (var tagHelper in context.TagHelpers) - { - AddField(context, tagHelper); - AddTagHelperClass(context, tagHelper); - } - } - - private void RewriteUsage(Context context, TagHelperIntermediateNode node, TagHelperDescriptor tagHelper) - { - if (!tagHelper.IsViewComponentKind()) - { - return; - } - - context.Add(tagHelper); - - // Now we need to insert a create node using the default tag helper runtime. This is similar to - // code in DefaultTagHelperOptimizationPass. - // - // Find the body node. - var i = 0; - while (i < node.Children.Count && node.Children[i] is TagHelperBodyIntermediateNode) - { - i++; - } - while (i < node.Children.Count && node.Children[i] is DefaultTagHelperBodyIntermediateNode) - { - i++; - } - - // Now find the last create node. - while (i < node.Children.Count && node.Children[i] is DefaultTagHelperCreateIntermediateNode) - { - i++; - } - - // Now i has the right insertion point. - node.Children.Insert(i, new DefaultTagHelperCreateIntermediateNode() - { - FieldName = context.GetFieldName(tagHelper), - TagHelper = tagHelper, - TypeName = context.GetFullyQualifiedName(tagHelper), - }); - - // Now we need to rewrite any set property nodes to use the default runtime. - for (i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is TagHelperPropertyIntermediateNode propertyNode && - propertyNode.TagHelper == tagHelper) - { - // This is a set property for this VCTH - we need to replace it with a node - // that will use our field and property name. - node.Children[i] = new DefaultTagHelperPropertyIntermediateNode(propertyNode) - { - FieldName = context.GetFieldName(tagHelper), - PropertyName = propertyNode.BoundAttribute.GetPropertyName(), - }; - } - } - } - - private void AddField(Context context, TagHelperDescriptor tagHelper) - { - // We need to insert a node for the field that will hold the tag helper. We've already generated a field name - // at this time and use it for all uses of the same tag helper type. - // - // We also want to preserve the ordering of the nodes for testability. So insert at the end of any existing - // field nodes. - var i = 0; - while (i < context.Class.Children.Count && context.Class.Children[i] is DefaultTagHelperRuntimeIntermediateNode) - { - i++; - } - - while (i < context.Class.Children.Count && context.Class.Children[i] is FieldDeclarationIntermediateNode) - { - i++; - } - - context.Class.Children.Insert(i, new FieldDeclarationIntermediateNode() - { - Annotations = - { - { CommonAnnotations.DefaultTagHelperExtension.TagHelperField, bool.TrueString }, - }, - Modifiers = - { - "private", - }, - FieldName = context.GetFieldName(tagHelper), - FieldType = "global::" + context.GetFullyQualifiedName(tagHelper), - }); - } - - private void AddTagHelperClass(Context context, TagHelperDescriptor tagHelper) - { - var node = new ViewComponentTagHelperIntermediateNode() - { - ClassName = context.GetClassName(tagHelper), - TagHelper = tagHelper - }; - - context.Class.Children.Add(node); - } - - private struct Context - { - private Dictionary _tagHelpers; - - public Context(NamespaceDeclarationIntermediateNode @namespace, ClassDeclarationIntermediateNode @class) - { - Namespace = @namespace; - Class = @class; - - _tagHelpers = new Dictionary(); - } - - public ClassDeclarationIntermediateNode Class { get; } - - public NamespaceDeclarationIntermediateNode Namespace { get; } - - - public IEnumerable TagHelpers => _tagHelpers.Keys; - - public bool Add(TagHelperDescriptor tagHelper) - { - if (_tagHelpers.ContainsKey(tagHelper)) - { - return false; - } - - var className = $"__Generated__{tagHelper.GetViewComponentName()}ViewComponentTagHelper"; - var fullyQualifiedName = $"{Namespace.Content}.{Class.ClassName}.{className}"; - var fieldName = GenerateFieldName(tagHelper); - - _tagHelpers.Add(tagHelper, (className, fullyQualifiedName, fieldName)); - - return true; - } - - public string GetClassName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].className; - } - - public string GetFullyQualifiedName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].fullyQualifiedName; - } - - public string GetFieldName(TagHelperDescriptor taghelper) - { - return _tagHelpers[taghelper].fieldName; - } - - private static string GenerateFieldName(TagHelperDescriptor tagHelper) - { - return $"__{tagHelper.GetViewComponentName()}ViewComponentTagHelper"; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperTargetExtension.cs deleted file mode 100644 index 1e2e7c89c3c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperTargetExtension.cs +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal class ViewComponentTagHelperTargetExtension : IViewComponentTagHelperTargetExtension - { - private static readonly string[] PublicModifiers = new[] { "public" }; - - public string TagHelperTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelper"; - - public string ViewComponentHelperTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.IViewComponentHelper"; - - public string ViewComponentHelperVariableName { get; set; } = "__helper"; - - public string ViewComponentInvokeMethodName { get; set; } = "InvokeAsync"; - - public string HtmlAttributeNotBoundAttributeTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute"; - - public string ViewContextAttributeTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute"; - - public string ViewContextTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext"; - - public string ViewContextPropertyName { get; set; } = "ViewContext"; - - public string HtmlTargetElementAttributeTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute"; - - public string TagHelperProcessMethodName { get; set; } = "ProcessAsync"; - - public string TagHelperContextTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext"; - - public string TagHelperContextVariableName { get; set; } = "__context"; - - public string TagHelperOutputTypeName { get; set; } = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput"; - - public string TagHelperOutputVariableName { get; set; } = "__output"; - - public string TagHelperOutputTagNamePropertyName { get; set; } = "TagName"; - - public string TagHelperOutputContentPropertyName { get; set; } = "Content"; - - public string TagHelperContentSetMethodName { get; set; } = "SetHtmlContent"; - - public string TagHelperContentVariableName { get; set; } = "__helperContent"; - - public string IViewContextAwareTypeName { get; set; } = "global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware"; - - public string IViewContextAwareContextualizeMethodName { get; set; } = "Contextualize"; - - public void WriteViewComponentTagHelper(CodeRenderingContext context, ViewComponentTagHelperIntermediateNode node) - { - // Add target element. - WriteTargetElementString(context.CodeWriter, node.TagHelper); - - // Initialize declaration. - using (context.CodeWriter.BuildClassDeclaration( - PublicModifiers, - node.ClassName, - TagHelperTypeName, - interfaces: null, - typeParameters: null)) - { - // Add view component helper. - context.CodeWriter.WriteVariableDeclaration( - $"private readonly {ViewComponentHelperTypeName}", - ViewComponentHelperVariableName, - value: null); - - // Add constructor. - WriteConstructorString(context.CodeWriter, node.ClassName); - - // Add attributes. - WriteAttributeDeclarations(context.CodeWriter, node.TagHelper); - - // Add process method. - WriteProcessMethodString(context.CodeWriter, node.TagHelper); - } - } - - private void WriteConstructorString(CodeWriter writer, string className) - { - writer.Write("public ") - .Write(className) - .Write("(") - .Write($"{ViewComponentHelperTypeName} helper") - .WriteLine(")"); - using (writer.BuildScope()) - { - writer.WriteStartAssignment(ViewComponentHelperVariableName) - .Write("helper") - .WriteLine(";"); - } - } - - private void WriteAttributeDeclarations(CodeWriter writer, TagHelperDescriptor tagHelper) - { - writer.Write("[") - .Write(HtmlAttributeNotBoundAttributeTypeName) - .WriteParameterSeparator() - .Write(ViewContextAttributeTypeName) - .WriteLine("]"); - - writer.WriteAutoPropertyDeclaration( - PublicModifiers, - ViewContextTypeName, - ViewContextPropertyName); - - foreach (var attribute in tagHelper.BoundAttributes) - { - writer.WriteAutoPropertyDeclaration( - PublicModifiers, - attribute.TypeName, - attribute.GetPropertyName()); - - if (attribute.IndexerTypeName != null) - { - writer.Write(" = ") - .WriteStartNewObject(attribute.TypeName) - .WriteEndMethodInvocation(); - } - } - } - - private void WriteProcessMethodString(CodeWriter writer, TagHelperDescriptor tagHelper) - { - using (writer.BuildMethodDeclaration( - $"public override async", - $"global::{typeof(Task).FullName}", - TagHelperProcessMethodName, - new Dictionary() - { - { TagHelperContextTypeName, TagHelperContextVariableName }, - { TagHelperOutputTypeName, TagHelperOutputVariableName } - })) - { - writer.WriteInstanceMethodInvocation( - $"({ViewComponentHelperVariableName} as {IViewContextAwareTypeName})?", - IViewContextAwareContextualizeMethodName, - new[] { ViewContextPropertyName }); - - var methodParameters = GetMethodParameters(tagHelper); - writer.Write("var ") - .WriteStartAssignment(TagHelperContentVariableName) - .WriteInstanceMethodInvocation($"await {ViewComponentHelperVariableName}", ViewComponentInvokeMethodName, methodParameters); - writer.WriteStartAssignment($"{TagHelperOutputVariableName}.{TagHelperOutputTagNamePropertyName}") - .WriteLine("null;"); - writer.WriteInstanceMethodInvocation( - $"{TagHelperOutputVariableName}.{TagHelperOutputContentPropertyName}", - TagHelperContentSetMethodName, - new[] { TagHelperContentVariableName }); - } - } - - private string[] GetMethodParameters(TagHelperDescriptor tagHelper) - { - var propertyNames = tagHelper.BoundAttributes.Select(attribute => attribute.GetPropertyName()); - var joinedPropertyNames = string.Join(", ", propertyNames); - var parametersString = $"new {{ { joinedPropertyNames } }}"; - var viewComponentName = tagHelper.GetViewComponentName(); - var methodParameters = new[] { $"\"{viewComponentName}\"", parametersString }; - return methodParameters; - } - - private void WriteTargetElementString(CodeWriter writer, TagHelperDescriptor tagHelper) - { - Debug.Assert(tagHelper.TagMatchingRules.Count() == 1); - - var rule = tagHelper.TagMatchingRules.First(); - - writer.Write("[") - .WriteStartMethodInvocation(HtmlTargetElementAttributeTypeName) - .WriteStringLiteral(rule.TagName) - .WriteLine(")]"); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypeVisitor.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypeVisitor.cs deleted file mode 100644 index 8c7a3b4065b..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypeVisitor.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.CodeAnalysis; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal class ViewComponentTypeVisitor : SymbolVisitor - { - private readonly INamedTypeSymbol _viewComponentAttribute; - private readonly INamedTypeSymbol _nonViewComponentAttribute; - private readonly List _results; - - public ViewComponentTypeVisitor( - INamedTypeSymbol viewComponentAttribute, - INamedTypeSymbol nonViewComponentAttribute, - List results) - { - _viewComponentAttribute = viewComponentAttribute; - _nonViewComponentAttribute = nonViewComponentAttribute; - _results = results; - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (IsViewComponent(symbol)) - { - _results.Add(symbol); - } - - if (symbol.DeclaredAccessibility != Accessibility.Public) - { - return; - } - - foreach (var member in symbol.GetTypeMembers()) - { - Visit(member); - } - } - - public override void VisitNamespace(INamespaceSymbol symbol) - { - foreach (var member in symbol.GetMembers()) - { - Visit(member); - } - } - - internal bool IsViewComponent(INamedTypeSymbol symbol) - { - if (_viewComponentAttribute == null) - { - return false; - } - - if (symbol.DeclaredAccessibility != Accessibility.Public || - symbol.IsAbstract || - symbol.IsGenericType || - AttributeIsDefined(symbol, _nonViewComponentAttribute)) - { - return false; - } - - return symbol.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix) || - AttributeIsDefined(symbol, _viewComponentAttribute); - } - - private static bool AttributeIsDefined(INamedTypeSymbol type, INamedTypeSymbol queryAttribute) - { - if (type == null || queryAttribute == null) - { - return false; - } - - var attribute = type.GetAttributes().Where(a => SymbolEqualityComparer.Default.Equals(a.AttributeClass, queryAttribute)).FirstOrDefault(); - - if (attribute != null) - { - return true; - } - - return AttributeIsDefined(type.BaseType, queryAttribute); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypes.cs b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypes.cs deleted file mode 100644 index 5558ba5e06e..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTypes.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Mvc.Razor.Extensions -{ - internal static class ViewComponentTypes - { - public const string Assembly = "Microsoft.AspNetCore.Mvc.ViewFeatures"; - - public static readonly Version AssemblyVersion = new Version(1, 1, 0, 0); - - public const string ViewComponentSuffix = "ViewComponent"; - - public const string ViewComponentAttribute = "Microsoft.AspNetCore.Mvc.ViewComponentAttribute"; - - public const string NonViewComponentAttribute = "Microsoft.AspNetCore.Mvc.NonViewComponentAttribute"; - - public const string GenericTask = "System.Threading.Tasks.Task`1"; - - public const string Task = "System.Threading.Tasks.Task"; - - public const string IDictionary = "System.Collections.Generic.IDictionary`2"; - - public const string AsyncMethodName = "InvokeAsync"; - - public const string SyncMethodName = "Invoke"; - - public static class ViewComponent - { - public const string Name = "Name"; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netcore.json b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netcore.json deleted file mode 100644 index 488fa33c0e8..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netcore.json +++ /dev/null @@ -1,1235 +0,0 @@ -{ - "AssemblyIdentity": "Microsoft.AspNetCore.Mvc.Razor.Extensions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", - "Types": [ - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.AssemblyAttributeInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.IInjectTargetExtension", - "Visibility": "Public", - "Kind": "Interface", - "Abstract": true, - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.CodeGeneration.ICodeTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectIntermediateNode", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.Intermediate.ExtensionIntermediateNode", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_TypeName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_TypeName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_MemberName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_MemberName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_Children", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeCollection", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Accept", - "Parameters": [ - { - "Name": "visitor", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeVisitor" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "WriteNode", - "Parameters": [ - { - "Name": "target", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeTarget" - }, - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectTargetExtension", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Mvc.Razor.Extensions.IInjectTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Mvc.Razor.Extensions.IInjectTargetExtension", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InstrumentationPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.IViewComponentTagHelperTargetExtension", - "Visibility": "Public", - "Kind": "Interface", - "Abstract": true, - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.CodeGeneration.ICodeTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteViewComponentTagHelper", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperIntermediateNode" - } - ], - "ReturnType": "System.Void", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ModelDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetModelType", - "Parameters": [ - { - "Name": "document", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ModelExpressionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.MvcRazorTemplateEngine", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "CreateCodeDocument", - "Parameters": [ - { - "Name": "projectItem", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectItem" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "engine", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorEngine" - }, - { - "Name": "project", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProject" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.MvcViewDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "MvcViewDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.NamespaceDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.PageDirective", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_RouteTemplate", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_DirectiveNode", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNode", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "TryGetPageDirective", - "Parameters": [ - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - }, - { - "Name": "pageDirective", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.PageDirective", - "Direction": "Out" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.PagesPropertyInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorPageDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "RazorPageDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "RouteTemplateKey", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.TagHelperDescriptorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "IsViewComponentKind", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetViewComponentName", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.String", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperConventions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Kind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperDescriptorProvider", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "Microsoft.AspNetCore.Razor.Language.RazorEngineFeatureBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_Order", - "Parameters": [ - { - "Name": "value", - "Type": "System.Int32" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Execute", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptorProviderContext" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperIntermediateNode", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "Microsoft.AspNetCore.Razor.Language.Intermediate.ExtensionIntermediateNode", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_Children", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeCollection", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_ClassName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_ClassName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_TagHelper", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_TagHelper", - "Parameters": [ - { - "Name": "value", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Accept", - "Parameters": [ - { - "Name": "visitor", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeVisitor" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "WriteNode", - "Parameters": [ - { - "Name": "target", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeTarget" - }, - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperMetadata", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriterExtensions+CSharpCodeWritingScope", - "Visibility": "Public", - "Kind": "Struct", - "Sealed": true, - "ImplementedInterfaces": [ - "System.IDisposable" - ], - "Members": [ - { - "Kind": "Method", - "Name": "Dispose", - "Parameters": [], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "System.IDisposable", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "writer", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter" - }, - { - "Name": "tabSize", - "Type": "System.Int32", - "DefaultValue": "4" - }, - { - "Name": "autoSpace", - "Type": "System.Boolean", - "DefaultValue": "True" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTypes+ViewComponent", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [], - "Constant": true, - "Literal": "\"Name\"" - } - ], - "GenericParameters": [] - } - ] -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netframework.json b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netframework.json deleted file mode 100644 index 7d416ca9c37..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/baseline.netframework.json +++ /dev/null @@ -1,1023 +0,0 @@ -{ - "AssemblyIdentity": "Microsoft.AspNetCore.Mvc.Razor.Extensions, Version=2.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", - "Types": [ - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.AssemblyAttributeInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.IInjectTargetExtension", - "Visibility": "Public", - "Kind": "Interface", - "Abstract": true, - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.CodeGeneration.ICodeTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectIntermediateNode", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.Intermediate.ExtensionIntermediateNode", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_TypeName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_TypeName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_MemberName", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_MemberName", - "Parameters": [ - { - "Name": "value", - "Type": "System.String" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_Children", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeCollection", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Accept", - "Parameters": [ - { - "Name": "visitor", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeVisitor" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "WriteNode", - "Parameters": [ - { - "Name": "target", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeTarget" - }, - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectTargetExtension", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Mvc.Razor.Extensions.IInjectTargetExtension" - ], - "Members": [ - { - "Kind": "Method", - "Name": "WriteInjectProperty", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext" - }, - { - "Name": "node", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InjectIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Mvc.Razor.Extensions.IInjectTargetExtension", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.InstrumentationPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ModelDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetModelType", - "Parameters": [ - { - "Name": "document", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ModelExpressionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.MvcRazorTemplateEngine", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "CreateCodeDocument", - "Parameters": [ - { - "Name": "projectItem", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProjectItem" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument", - "Virtual": true, - "Override": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "engine", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorEngine" - }, - { - "Name": "project", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorProject" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.MvcViewDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "MvcViewDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.NamespaceDirective", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.PageDirective", - "Visibility": "Public", - "Kind": "Class", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_RouteTemplate", - "Parameters": [], - "ReturnType": "System.String", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "get_DirectiveNode", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNode", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "TryGetPageDirective", - "Parameters": [ - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - }, - { - "Name": "pageDirective", - "Type": "Microsoft.AspNetCore.Mvc.Razor.Extensions.PageDirective", - "Direction": "Out" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "Directive", - "Parameters": [], - "ReturnType": "Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.PagesPropertyInjectionPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "Register", - "Parameters": [ - { - "Name": "builder", - "Type": "Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder" - } - ], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorPageDocumentClassifierPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.DocumentClassifierPassBase", - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "get_DocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "IsMatch", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Boolean", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "OnDocumentStructureCreated", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "namespace", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.NamespaceDeclarationIntermediateNode" - }, - { - "Name": "class", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.ClassDeclarationIntermediateNode" - }, - { - "Name": "method", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.MethodDeclarationIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Field", - "Name": "RazorPageDocumentKind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.TagHelperDescriptorExtensions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "IsViewComponentKind", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.Boolean", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "GetViewComponentName", - "Parameters": [ - { - "Name": "tagHelper", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor" - } - ], - "ReturnType": "System.String", - "Static": true, - "Extension": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperConventions", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Kind", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperDescriptorProvider", - "Visibility": "Public", - "Kind": "Class", - "Sealed": true, - "BaseType": "Microsoft.AspNetCore.Razor.Language.RazorEngineFeatureBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "set_Order", - "Parameters": [ - { - "Name": "value", - "Type": "System.Int32" - } - ], - "ReturnType": "System.Void", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "Execute", - "Parameters": [ - { - "Name": "context", - "Type": "Microsoft.AspNetCore.Razor.Language.TagHelperDescriptorProviderContext" - } - ], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.ITagHelperDescriptorProvider", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperMetadata", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "ReadOnly": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTagHelperPass", - "Visibility": "Public", - "Kind": "Class", - "BaseType": "Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase", - "ImplementedInterfaces": [ - "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass" - ], - "Members": [ - { - "Kind": "Method", - "Name": "get_Order", - "Parameters": [], - "ReturnType": "System.Int32", - "Virtual": true, - "Override": true, - "ImplementedInterface": "Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Method", - "Name": "ExecuteCore", - "Parameters": [ - { - "Name": "codeDocument", - "Type": "Microsoft.AspNetCore.Razor.Language.RazorCodeDocument" - }, - { - "Name": "documentNode", - "Type": "Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode" - } - ], - "ReturnType": "System.Void", - "Virtual": true, - "Override": true, - "Visibility": "Protected", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriterExtensions+CSharpCodeWritingScope", - "Visibility": "Public", - "Kind": "Struct", - "Sealed": true, - "ImplementedInterfaces": [ - "System.IDisposable" - ], - "Members": [ - { - "Kind": "Method", - "Name": "Dispose", - "Parameters": [], - "ReturnType": "System.Void", - "Sealed": true, - "Virtual": true, - "ImplementedInterface": "System.IDisposable", - "Visibility": "Public", - "GenericParameter": [] - }, - { - "Kind": "Constructor", - "Name": ".ctor", - "Parameters": [ - { - "Name": "writer", - "Type": "Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter" - }, - { - "Name": "tabSize", - "Type": "System.Int32", - "DefaultValue": "4" - }, - { - "Name": "autoSpace", - "Type": "System.Boolean", - "DefaultValue": "True" - } - ], - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] - }, - { - "Name": "Microsoft.AspNetCore.Mvc.Razor.Extensions.ViewComponentTypes+ViewComponent", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Field", - "Name": "Name", - "Parameters": [], - "ReturnType": "System.String", - "Static": true, - "Visibility": "Public", - "GenericParameter": [], - "Constant": true, - "Literal": "\"Name\"" - } - ], - "GenericParameters": [] - } - ] -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netcore.json b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netcore.json deleted file mode 100644 index 5f5b6444f65..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netcore.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "TypeId": "public static class Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions", - "MemberId": "public static System.Void Register(Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder builder)", - "Kind": "Removal" - }, - { - "TypeId": "public class Microsoft.AspNetCore.Mvc.Razor.Extensions.InstrumentationPass : Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase, Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Kind": "Removal" - } -] diff --git a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netframework.json b/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netframework.json deleted file mode 100644 index 5f5b6444f65..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/breakingchanges.netframework.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "TypeId": "public static class Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions", - "MemberId": "public static System.Void Register(Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder builder)", - "Kind": "Removal" - }, - { - "TypeId": "public class Microsoft.AspNetCore.Mvc.Razor.Extensions.InstrumentationPass : Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase, Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass", - "Kind": "Removal" - } -] diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptor.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptor.cs deleted file mode 100644 index 84a83b3e8c7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptor.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public abstract class AllowedChildTagDescriptor : IEquatable - { - public string Name { get; protected set; } - - public string DisplayName { get; protected set; } - - public IReadOnlyList Diagnostics { get; protected set; } - - public bool HasErrors - { - get - { - var errors = Diagnostics.Any(diagnostic => diagnostic.Severity == RazorDiagnosticSeverity.Error); - - return errors; - } - } - - public override string ToString() - { - return DisplayName ?? base.ToString(); - } - - public bool Equals(AllowedChildTagDescriptor other) - { - return AllowedChildTagDescriptorComparer.Default.Equals(this, other); - } - - public override bool Equals(object obj) - { - return Equals(obj as AllowedChildTagDescriptor); - } - - public override int GetHashCode() - { - return AllowedChildTagDescriptorComparer.Default.GetHashCode(this); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorBuilder.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorBuilder.cs deleted file mode 100644 index 46fc3cc6aaa..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorBuilder.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public abstract class AllowedChildTagDescriptorBuilder - { - public abstract string Name { get; set; } - - public abstract string DisplayName { get; set; } - - public abstract RazorDiagnosticCollection Diagnostics { get; } - - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorComparer.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorComparer.cs deleted file mode 100644 index f6b4ea5776a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AllowedChildTagDescriptorComparer.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.Extensions.Internal; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal class AllowedChildTagDescriptorComparer : IEqualityComparer - { - /// - /// A default instance of the . - /// - public static readonly AllowedChildTagDescriptorComparer Default = - new AllowedChildTagDescriptorComparer(); - - private AllowedChildTagDescriptorComparer() - { - } - - /// - public virtual bool Equals( - AllowedChildTagDescriptor descriptorX, - AllowedChildTagDescriptor descriptorY) - { - if (object.ReferenceEquals(descriptorX, descriptorY)) - { - return true; - } - - if (descriptorX == null ^ descriptorY == null) - { - return false; - } - - return - string.Equals(descriptorX.Name, descriptorY.Name, StringComparison.Ordinal) && - string.Equals(descriptorX.DisplayName, descriptorY.DisplayName, StringComparison.Ordinal); - } - - /// - public virtual int GetHashCode(AllowedChildTagDescriptor descriptor) - { - var hash = HashCodeCombiner.Start(); - hash.Add(descriptor.Name, StringComparer.Ordinal); - - return hash.CombinedHash; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs deleted file mode 100644 index 97f1c31c153..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AssemblyExtension.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright(c) .NET Foundation.All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Reflection; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class AssemblyExtension : RazorExtension - { - public AssemblyExtension(string extensionName, Assembly assembly) - { - if (extensionName == null) - { - throw new ArgumentNullException(nameof(extensionName)); - } - - if (assembly == null) - { - throw new ArgumentNullException(nameof(assembly)); - } - - ExtensionName = extensionName; - Assembly = assembly; - } - - public override string ExtensionName { get; } - - public Assembly Assembly { get; } - - internal RazorExtensionInitializer CreateInitializer() - { - // It's not an error to have an assembly with no initializers. This is useful to specify a dependency - // that doesn't really provide any Razor configuration. - var attributes = Assembly.GetCustomAttributes(); - foreach (var attribute in attributes) - { - // Using extension names and requiring them to line up allows a single assembly to ship multiple - // extensions/initializers for different configurations. - if (!string.Equals(attribute.ExtensionName, ExtensionName, StringComparison.Ordinal)) - { - continue; - } - - // There's no real protection/exception handling here because this set isn't really user-extensible - // right now. This would be a great place to add some additional diagnostics and hardening in the - // future. - var initializer = (RazorExtensionInitializer)Activator.CreateInstance(attribute.InitializerType); - return initializer; - } - - return null; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AttributeStructure.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AttributeStructure.cs deleted file mode 100644 index 9a191578c49..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/AttributeStructure.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language -{ - // This is the design time equivalent of Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle. - // They should be kept in sync. - public enum AttributeStructure - { - DoubleQuotes, - SingleQuotes, - NoQuotes, - Minimized, - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptor.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptor.cs deleted file mode 100644 index ecfd96105f5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptor.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language -{ - /// - /// A metadata class describing a tag helper attribute. - /// - public abstract class BoundAttributeDescriptor : IEquatable - { - protected BoundAttributeDescriptor(string kind) - { - Kind = kind; - } - - public string Kind { get; } - - public bool IsIndexerStringProperty { get; protected set; } - - public bool IsIndexerBooleanProperty { get; protected set; } - - public bool IsEnum { get; protected set; } - - public bool IsStringProperty { get; protected set; } - - public bool IsBooleanProperty { get; protected set; } - - public string Name { get; protected set; } - - public string IndexerNamePrefix { get; protected set; } - - public string TypeName { get; protected set; } - - public string IndexerTypeName { get; protected set; } - - public bool HasIndexer { get; protected set; } - - public string Documentation { get; protected set; } - - public string DisplayName { get; protected set; } - - public bool CaseSensitive { get; protected set; } - - public IReadOnlyList Diagnostics { get; protected set; } - - public IReadOnlyDictionary Metadata { get; protected set; } - - public virtual IReadOnlyList BoundAttributeParameters { get; protected set; } - - public bool HasErrors - { - get - { - var errors = Diagnostics.Any(diagnostic => diagnostic.Severity == RazorDiagnosticSeverity.Error); - - return errors; - } - } - - public override string ToString() - { - return DisplayName ?? base.ToString(); - } - - public bool Equals(BoundAttributeDescriptor other) - { - return BoundAttributeDescriptorComparer.Default.Equals(this, other); - } - - public override bool Equals(object obj) - { - return Equals(obj as BoundAttributeDescriptor); - } - - public override int GetHashCode() - { - return BoundAttributeDescriptorComparer.Default.GetHashCode(this); - } - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilder.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilder.cs deleted file mode 100644 index b6fb01d7ad0..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public abstract class BoundAttributeDescriptorBuilder - { - public abstract string Name { get; set; } - - public abstract string TypeName { get; set; } - - public abstract bool IsEnum { get; set; } - - public abstract bool IsDictionary { get; set; } - - public abstract string IndexerAttributeNamePrefix { get; set; } - - public abstract string IndexerValueTypeName { get; set; } - - public abstract string Documentation { get; set; } - - public abstract string DisplayName { get; set; } - - public abstract IDictionary Metadata { get; } - - public abstract RazorDiagnosticCollection Diagnostics { get; } - - public virtual IReadOnlyList BoundAttributeParameters { get; } - - public virtual void BindAttributeParameter(Action configure) - { - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilderExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilderExtensions.cs deleted file mode 100644 index ac01e48aa1c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorBuilderExtensions.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Components; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public static class BoundAttributeDescriptorBuilderExtensions - { - public static void SetPropertyName(this BoundAttributeDescriptorBuilder builder, string propertyName) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - if (propertyName == null) - { - throw new ArgumentNullException(nameof(propertyName)); - } - - builder.Metadata[TagHelperMetadata.Common.PropertyName] = propertyName; - } - - public static string GetPropertyName(this BoundAttributeDescriptorBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - if (builder.Metadata.TryGetValue(TagHelperMetadata.Common.PropertyName, out var value)) - { - return value; - } - - return null; - } - - public static void AsDictionary( - this BoundAttributeDescriptorBuilder builder, - string attributeNamePrefix, - string valueTypeName) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.IsDictionary = true; - builder.IndexerAttributeNamePrefix = attributeNamePrefix; - builder.IndexerValueTypeName = valueTypeName; - } - - public static bool IsDirectiveAttribute(this BoundAttributeDescriptorBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - return - builder.Metadata.TryGetValue(ComponentMetadata.Common.DirectiveAttribute, out var value) && - string.Equals(bool.TrueString, value); - } - - public static void SetPropertyName(this BoundAttributeParameterDescriptorBuilder builder, string propertyName) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - if (propertyName == null) - { - throw new ArgumentNullException(nameof(propertyName)); - } - - builder.Metadata[TagHelperMetadata.Common.PropertyName] = propertyName; - } - - public static string GetPropertyName(this BoundAttributeParameterDescriptorBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - if (builder.Metadata.TryGetValue(TagHelperMetadata.Common.PropertyName, out var value)) - { - return value; - } - - return null; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorComparer.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorComparer.cs deleted file mode 100644 index 54154a7aaa8..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorComparer.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.Extensions.Internal; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal class BoundAttributeDescriptorComparer : IEqualityComparer - { - /// - /// A default instance of the . - /// - public static readonly BoundAttributeDescriptorComparer Default = new BoundAttributeDescriptorComparer(); - - private BoundAttributeDescriptorComparer() - { - } - - public virtual bool Equals(BoundAttributeDescriptor descriptorX, BoundAttributeDescriptor descriptorY) - { - if (object.ReferenceEquals(descriptorX, descriptorY)) - { - return true; - } - - if (descriptorX == null ^ descriptorY == null) - { - return false; - } - - return - string.Equals(descriptorX.Kind, descriptorY.Kind, StringComparison.Ordinal) && - descriptorX.IsIndexerStringProperty == descriptorY.IsIndexerStringProperty && - descriptorX.IsEnum == descriptorY.IsEnum && - descriptorX.HasIndexer == descriptorY.HasIndexer && - descriptorX.CaseSensitive == descriptorY.CaseSensitive && - string.Equals(descriptorX.Name, descriptorY.Name, StringComparison.Ordinal) && - string.Equals(descriptorX.IndexerNamePrefix, descriptorY.IndexerNamePrefix, StringComparison.Ordinal) && - string.Equals(descriptorX.TypeName, descriptorY.TypeName, StringComparison.Ordinal) && - string.Equals(descriptorX.IndexerTypeName, descriptorY.IndexerTypeName, StringComparison.Ordinal) && - string.Equals(descriptorX.Documentation, descriptorY.Documentation, StringComparison.Ordinal) && - string.Equals(descriptorX.DisplayName, descriptorY.DisplayName, StringComparison.Ordinal) && - Enumerable.SequenceEqual( - descriptorX.Metadata.OrderBy(propertyX => propertyX.Key, StringComparer.Ordinal), - descriptorY.Metadata.OrderBy(propertyY => propertyY.Key, StringComparer.Ordinal)); - } - - public virtual int GetHashCode(BoundAttributeDescriptor descriptor) - { - if (descriptor == null) - { - throw new ArgumentNullException(nameof(descriptor)); - } - - var hash = HashCodeCombiner.Start(); - hash.Add(descriptor.Kind); - hash.Add(descriptor.Name, StringComparer.Ordinal); - - return hash.CombinedHash; - } - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorExtensions.cs deleted file mode 100644 index 9ea08e85371..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeDescriptorExtensions.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Components; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public static class BoundAttributeDescriptorExtensions - { - public static string GetPropertyName(this BoundAttributeDescriptor attribute) - { - if (attribute == null) - { - throw new ArgumentNullException(nameof(attribute)); - } - - attribute.Metadata.TryGetValue(TagHelperMetadata.Common.PropertyName, out var propertyName); - return propertyName; - } - - public static bool IsDefaultKind(this BoundAttributeDescriptor attribute) - { - if (attribute == null) - { - throw new ArgumentNullException(nameof(attribute)); - } - - return string.Equals(attribute.Kind, TagHelperConventions.DefaultKind, StringComparison.Ordinal); - } - - internal static bool ExpectsStringValue(this BoundAttributeDescriptor attribute, string name) - { - if (attribute.IsStringProperty) - { - return true; - } - - var isIndexerNameMatch = TagHelperMatchingConventions.SatisfiesBoundAttributeIndexer(name, attribute); - return isIndexerNameMatch && attribute.IsIndexerStringProperty; - } - - internal static bool ExpectsBooleanValue(this BoundAttributeDescriptor attribute, string name) - { - if (attribute.IsBooleanProperty) - { - return true; - } - - var isIndexerNameMatch = TagHelperMatchingConventions.SatisfiesBoundAttributeIndexer(name, attribute); - return isIndexerNameMatch && attribute.IsIndexerBooleanProperty; - } - - public static bool IsDirectiveAttribute(this BoundAttributeDescriptor attribute) - { - if (attribute == null) - { - throw new ArgumentNullException(nameof(attribute)); - } - - return - attribute.Metadata.TryGetValue(ComponentMetadata.Common.DirectiveAttribute, out var value) && - string.Equals(bool.TrueString, value); - } - - public static bool IsDefaultKind(this BoundAttributeParameterDescriptor parameter) - { - if (parameter == null) - { - throw new ArgumentNullException(nameof(parameter)); - } - - return string.Equals(parameter.Kind, TagHelperConventions.DefaultKind, StringComparison.Ordinal); - } - - public static string GetPropertyName(this BoundAttributeParameterDescriptor parameter) - { - if (parameter == null) - { - throw new ArgumentNullException(nameof(parameter)); - } - - parameter.Metadata.TryGetValue(TagHelperMetadata.Common.PropertyName, out var propertyName); - return propertyName; - } - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptor.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptor.cs deleted file mode 100644 index 904718d7300..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptor.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public abstract class BoundAttributeParameterDescriptor : IEquatable - { - protected BoundAttributeParameterDescriptor(string kind) - { - Kind = kind; - } - - public string Kind { get; } - - public bool IsEnum { get; protected set; } - - public bool IsStringProperty { get; protected set; } - - public bool IsBooleanProperty { get; protected set; } - - public string Name { get; protected set; } - - public string TypeName { get; protected set; } - - public string Documentation { get; protected set; } - - public string DisplayName { get; protected set; } - - public bool CaseSensitive { get; protected set; } - - public IReadOnlyList Diagnostics { get; protected set; } - - public IReadOnlyDictionary Metadata { get; protected set; } - - public bool HasErrors - { - get - { - var errors = Diagnostics.Any(diagnostic => diagnostic.Severity == RazorDiagnosticSeverity.Error); - - return errors; - } - } - - public override string ToString() - { - return DisplayName ?? base.ToString(); - } - - public bool Equals(BoundAttributeParameterDescriptor other) - { - return BoundAttributeParameterDescriptorComparer.Default.Equals(this, other); - } - - public override bool Equals(object obj) - { - return Equals(obj as BoundAttributeParameterDescriptor); - } - - public override int GetHashCode() - { - return BoundAttributeParameterDescriptorComparer.Default.GetHashCode(this); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorBuilder.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorBuilder.cs deleted file mode 100644 index 64ab98a6edb..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorBuilder.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public abstract class BoundAttributeParameterDescriptorBuilder - { - public abstract string Name { get; set; } - - public abstract string TypeName { get; set; } - - public abstract bool IsEnum { get; set; } - - public abstract string Documentation { get; set; } - - public abstract string DisplayName { get; set; } - - public abstract IDictionary Metadata { get; } - - public abstract RazorDiagnosticCollection Diagnostics { get; } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorComparer.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorComparer.cs deleted file mode 100644 index 6cbc01017cb..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/BoundAttributeParameterDescriptorComparer.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.Extensions.Internal; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal class BoundAttributeParameterDescriptorComparer : IEqualityComparer - { - /// - /// A default instance of the . - /// - public static readonly BoundAttributeParameterDescriptorComparer Default = new BoundAttributeParameterDescriptorComparer(); - - private BoundAttributeParameterDescriptorComparer() - { - } - - public virtual bool Equals(BoundAttributeParameterDescriptor descriptorX, BoundAttributeParameterDescriptor descriptorY) - { - if (object.ReferenceEquals(descriptorX, descriptorY)) - { - return true; - } - - if (descriptorX == null ^ descriptorY == null) - { - return false; - } - - return - string.Equals(descriptorX.Kind, descriptorY.Kind, StringComparison.Ordinal) && - descriptorX.IsEnum == descriptorY.IsEnum && - string.Equals(descriptorX.Name, descriptorY.Name, StringComparison.Ordinal) && - string.Equals(descriptorX.TypeName, descriptorY.TypeName, StringComparison.Ordinal) && - string.Equals(descriptorX.Documentation, descriptorY.Documentation, StringComparison.Ordinal) && - string.Equals(descriptorX.DisplayName, descriptorY.DisplayName, StringComparison.Ordinal) && - Enumerable.SequenceEqual( - descriptorX.Metadata.OrderBy(propertyX => propertyX.Key, StringComparer.Ordinal), - descriptorY.Metadata.OrderBy(propertyY => propertyY.Key, StringComparer.Ordinal)); - } - - public virtual int GetHashCode(BoundAttributeParameterDescriptor descriptor) - { - if (descriptor == null) - { - throw new ArgumentNullException(nameof(descriptor)); - } - - var hash = HashCodeCombiner.Start(); - hash.Add(descriptor.Kind); - hash.Add(descriptor.Name, StringComparer.Ordinal); - - return hash.CombinedHash; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CSharpIdentifier.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CSharpIdentifier.cs deleted file mode 100644 index b5904e6f1db..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CSharpIdentifier.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Globalization; -using System.Text; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal static class CSharpIdentifier - { - // CSharp Spec §2.4.2 - private static bool IsIdentifierStart(char character) - { - return char.IsLetter(character) || - character == '_' || - CharUnicodeInfo.GetUnicodeCategory(character) == UnicodeCategory.LetterNumber; - } - - public static bool IsIdentifierPart(char character) - { - return char.IsDigit(character) || - IsIdentifierStart(character) || - IsIdentifierPartByUnicodeCategory(character); - } - - private static bool IsIdentifierPartByUnicodeCategory(char character) - { - var category = CharUnicodeInfo.GetUnicodeCategory(character); - - return category == UnicodeCategory.NonSpacingMark || // Mn - category == UnicodeCategory.SpacingCombiningMark || // Mc - category == UnicodeCategory.ConnectorPunctuation || // Pc - category == UnicodeCategory.Format; // Cf - } - - public static string SanitizeIdentifier(string inputName) - { - if (string.IsNullOrEmpty(inputName)) - { - return inputName; - } - - if (!IsIdentifierStart(inputName[0]) && IsIdentifierPart(inputName[0])) - { - inputName = "_" + inputName; - } - - var builder = new StringBuilder(inputName.Length); - for (var i = 0; i < inputName.Length; i++) - { - var ch = inputName[i]; - builder.Append(IsIdentifierPart(ch) ? ch : '_'); - } - - return builder.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Checksum.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Checksum.cs deleted file mode 100644 index 57834739e6c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Checksum.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Text; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal static class Checksum - { - public static string BytesToString(byte[] bytes) - { - if (bytes == null) - { - throw new ArgumentNullException(nameof(bytes)); - } - - var result = new StringBuilder(bytes.Length); - for (var i = 0; i < bytes.Length; i++) - { - // The x2 format means lowercase hex, where each byte is a 2-character string. - result.Append(bytes[i].ToString("x2")); - } - - return result.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/ClassifiedSpanVisitor.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/ClassifiedSpanVisitor.cs deleted file mode 100644 index f1627441309..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/ClassifiedSpanVisitor.cs +++ /dev/null @@ -1,409 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal class ClassifiedSpanVisitor : SyntaxWalker - { - private RazorSourceDocument _source; - private List _spans; - private BlockKindInternal _currentBlockKind; - private SyntaxNode _currentBlock; - - public ClassifiedSpanVisitor(RazorSourceDocument source) - { - if (source is null) - { - throw new ArgumentNullException(nameof(source)); - } - - _source = source; - _spans = new List(); - _currentBlockKind = BlockKindInternal.Markup; - } - - public IReadOnlyList ClassifiedSpans => _spans; - - public override void VisitRazorCommentBlock(RazorCommentBlockSyntax node) - { - WriteBlock(node, BlockKindInternal.Comment, razorCommentSyntax => - { - WriteSpan(razorCommentSyntax.StartCommentTransition, SpanKindInternal.Transition, AcceptedCharactersInternal.None); - WriteSpan(razorCommentSyntax.StartCommentStar, SpanKindInternal.MetaCode, AcceptedCharactersInternal.None); - - var comment = razorCommentSyntax.Comment; - if (comment.IsMissing) - { - // We need to generate a classified span at this position. So insert a marker in its place. - comment = (SyntaxToken)SyntaxFactory.Token(SyntaxKind.Marker, string.Empty).Green.CreateRed(razorCommentSyntax, razorCommentSyntax.StartCommentStar.EndPosition); - } - WriteSpan(comment, SpanKindInternal.Comment, AcceptedCharactersInternal.Any); - - WriteSpan(razorCommentSyntax.EndCommentStar, SpanKindInternal.MetaCode, AcceptedCharactersInternal.None); - WriteSpan(razorCommentSyntax.EndCommentTransition, SpanKindInternal.Transition, AcceptedCharactersInternal.None); - }); - } - - public override void VisitCSharpCodeBlock(CSharpCodeBlockSyntax node) - { - if (node.Parent is CSharpStatementBodySyntax || - node.Parent is CSharpExplicitExpressionBodySyntax || - node.Parent is CSharpImplicitExpressionBodySyntax || - node.Parent is RazorDirectiveBodySyntax || - (_currentBlockKind == BlockKindInternal.Directive && - node.Children.Count == 1 && - node.Children[0] is CSharpStatementLiteralSyntax)) - { - base.VisitCSharpCodeBlock(node); - return; - } - - WriteBlock(node, BlockKindInternal.Statement, base.VisitCSharpCodeBlock); - } - - public override void VisitCSharpStatement(CSharpStatementSyntax node) - { - WriteBlock(node, BlockKindInternal.Statement, base.VisitCSharpStatement); - } - - public override void VisitCSharpExplicitExpression(CSharpExplicitExpressionSyntax node) - { - WriteBlock(node, BlockKindInternal.Expression, base.VisitCSharpExplicitExpression); - } - - public override void VisitCSharpImplicitExpression(CSharpImplicitExpressionSyntax node) - { - WriteBlock(node, BlockKindInternal.Expression, base.VisitCSharpImplicitExpression); - } - - public override void VisitRazorDirective(RazorDirectiveSyntax node) - { - WriteBlock(node, BlockKindInternal.Directive, base.VisitRazorDirective); - } - - public override void VisitCSharpTemplateBlock(CSharpTemplateBlockSyntax node) - { - WriteBlock(node, BlockKindInternal.Template, base.VisitCSharpTemplateBlock); - } - - public override void VisitMarkupBlock(MarkupBlockSyntax node) - { - WriteBlock(node, BlockKindInternal.Markup, base.VisitMarkupBlock); - } - - public override void VisitMarkupTagHelperAttributeValue(MarkupTagHelperAttributeValueSyntax node) - { - // We don't generate a classified span when the attribute value is a simple literal value. - // This is done so we maintain the classified spans generated in 2.x which - // used ConditionalAttributeCollapser (combines markup literal attribute values into one span with no block parent). - if (node.Children.Count > 1 || - (node.Children.Count == 1 && node.Children[0] is MarkupDynamicAttributeValueSyntax)) - { - WriteBlock(node, BlockKindInternal.Markup, base.VisitMarkupTagHelperAttributeValue); - return; - } - - base.VisitMarkupTagHelperAttributeValue(node); - } - - public override void VisitMarkupStartTag(MarkupStartTagSyntax node) - { - WriteBlock(node, BlockKindInternal.Tag, n => - { - var children = GetRewrittenMarkupStartTagChildren(node); - foreach (var child in children) - { - Visit(child); - } - }); - } - - public override void VisitMarkupEndTag(MarkupEndTagSyntax node) - { - WriteBlock(node, BlockKindInternal.Tag, n => - { - var children = GetRewrittenMarkupEndTagChildren(node); - foreach (var child in children) - { - Visit(child); - } - }); - } - - public override void VisitMarkupTagHelperElement(MarkupTagHelperElementSyntax node) - { - WriteBlock(node, BlockKindInternal.Tag, base.VisitMarkupTagHelperElement); - } - - public override void VisitMarkupTagHelperStartTag(MarkupTagHelperStartTagSyntax node) - { - foreach (var child in node.Attributes) - { - if (child is MarkupTagHelperAttributeSyntax || - child is MarkupTagHelperDirectiveAttributeSyntax || - child is MarkupMinimizedTagHelperDirectiveAttributeSyntax) - { - Visit(child); - } - } - } - - public override void VisitMarkupTagHelperEndTag(MarkupTagHelperEndTagSyntax node) - { - // We don't want to generate a classified span for a tag helper end tag. Do nothing. - } - - public override void VisitMarkupAttributeBlock(MarkupAttributeBlockSyntax node) - { - WriteBlock(node, BlockKindInternal.Markup, n => - { - var equalsSyntax = SyntaxFactory.MarkupTextLiteral(new SyntaxList(node.EqualsToken)); - var mergedAttributePrefix = SyntaxUtilities.MergeTextLiterals(node.NamePrefix, node.Name, node.NameSuffix, equalsSyntax, node.ValuePrefix); - Visit(mergedAttributePrefix); - Visit(node.Value); - Visit(node.ValueSuffix); - }); - } - - public override void VisitMarkupTagHelperAttribute(MarkupTagHelperAttributeSyntax node) - { - Visit(node.Value); - } - - public override void VisitMarkupTagHelperDirectiveAttribute(MarkupTagHelperDirectiveAttributeSyntax node) - { - Visit(node.Transition); - Visit(node.Colon); - Visit(node.Value); - } - - public override void VisitMarkupMinimizedTagHelperDirectiveAttribute(MarkupMinimizedTagHelperDirectiveAttributeSyntax node) - { - Visit(node.Transition); - Visit(node.Colon); - } - - public override void VisitMarkupMinimizedAttributeBlock(MarkupMinimizedAttributeBlockSyntax node) - { - WriteBlock(node, BlockKindInternal.Markup, n => - { - var mergedAttributePrefix = SyntaxUtilities.MergeTextLiterals(node.NamePrefix, node.Name); - Visit(mergedAttributePrefix); - }); - } - - public override void VisitMarkupCommentBlock(MarkupCommentBlockSyntax node) - { - WriteBlock(node, BlockKindInternal.HtmlComment, base.VisitMarkupCommentBlock); - } - - public override void VisitMarkupDynamicAttributeValue(MarkupDynamicAttributeValueSyntax node) - { - WriteBlock(node, BlockKindInternal.Markup, base.VisitMarkupDynamicAttributeValue); - } - - public override void VisitRazorMetaCode(RazorMetaCodeSyntax node) - { - WriteSpan(node, SpanKindInternal.MetaCode); - base.VisitRazorMetaCode(node); - } - - public override void VisitCSharpTransition(CSharpTransitionSyntax node) - { - WriteSpan(node, SpanKindInternal.Transition); - base.VisitCSharpTransition(node); - } - - public override void VisitMarkupTransition(MarkupTransitionSyntax node) - { - WriteSpan(node, SpanKindInternal.Transition); - base.VisitMarkupTransition(node); - } - - public override void VisitCSharpStatementLiteral(CSharpStatementLiteralSyntax node) - { - WriteSpan(node, SpanKindInternal.Code); - base.VisitCSharpStatementLiteral(node); - } - - public override void VisitCSharpExpressionLiteral(CSharpExpressionLiteralSyntax node) - { - WriteSpan(node, SpanKindInternal.Code); - base.VisitCSharpExpressionLiteral(node); - } - - public override void VisitCSharpEphemeralTextLiteral(CSharpEphemeralTextLiteralSyntax node) - { - WriteSpan(node, SpanKindInternal.Code); - base.VisitCSharpEphemeralTextLiteral(node); - } - - public override void VisitUnclassifiedTextLiteral(UnclassifiedTextLiteralSyntax node) - { - WriteSpan(node, SpanKindInternal.None); - base.VisitUnclassifiedTextLiteral(node); - } - - public override void VisitMarkupLiteralAttributeValue(MarkupLiteralAttributeValueSyntax node) - { - WriteSpan(node, SpanKindInternal.Markup); - base.VisitMarkupLiteralAttributeValue(node); - } - - public override void VisitMarkupTextLiteral(MarkupTextLiteralSyntax node) - { - if (node.Parent is MarkupLiteralAttributeValueSyntax) - { - base.VisitMarkupTextLiteral(node); - return; - } - - WriteSpan(node, SpanKindInternal.Markup); - base.VisitMarkupTextLiteral(node); - } - - public override void VisitMarkupEphemeralTextLiteral(MarkupEphemeralTextLiteralSyntax node) - { - WriteSpan(node, SpanKindInternal.Markup); - base.VisitMarkupEphemeralTextLiteral(node); - } - - private void WriteBlock(TNode node, BlockKindInternal kind, Action handler) where TNode : SyntaxNode - { - var previousBlock = _currentBlock; - var previousKind = _currentBlockKind; - - _currentBlock = node; - _currentBlockKind = kind; - - handler(node); - - _currentBlock = previousBlock; - _currentBlockKind = previousKind; - } - - private void WriteSpan(SyntaxNode node, SpanKindInternal kind, AcceptedCharactersInternal? acceptedCharacters = null) - { - if (node.IsMissing) - { - return; - } - - var spanSource = node.GetSourceSpan(_source); - var blockSource = _currentBlock.GetSourceSpan(_source); - if (!acceptedCharacters.HasValue) - { - acceptedCharacters = AcceptedCharactersInternal.Any; - var context = node.GetSpanContext(); - if (context != null) - { - acceptedCharacters = context.EditHandler.AcceptedCharacters; - } - } - - var span = new ClassifiedSpanInternal(spanSource, blockSource, kind, _currentBlockKind, acceptedCharacters.Value); - _spans.Add(span); - } - - private static SyntaxList GetRewrittenMarkupStartTagChildren(MarkupStartTagSyntax node) - { - // Rewrites the children of the start tag to look like the legacy syntax tree. - if (node.IsMarkupTransition) - { - var tokens = node.DescendantNodes().Where(n => n is SyntaxToken token && !token.IsMissing).Cast().ToArray(); - var tokenBuilder = SyntaxListBuilder.Create(); - tokenBuilder.AddRange(tokens, 0, tokens.Length); - var markupTransition = SyntaxFactory.MarkupTransition(tokenBuilder.ToList()).Green.CreateRed(node, node.Position); - var spanContext = node.GetSpanContext(); - if (spanContext != null) - { - markupTransition = markupTransition.WithSpanContext(spanContext); - } - - var builder = new SyntaxListBuilder(1); - builder.Add(markupTransition); - return new SyntaxList(builder.ToListNode().CreateRed(node, node.Position)); - } - - SpanContext latestSpanContext = null; - var children = node.Children; - var newChildren = new SyntaxListBuilder(children.Count); - var literals = new List(); - foreach (var child in children) - { - if (child is MarkupTextLiteralSyntax literal) - { - literals.Add(literal); - latestSpanContext = literal.GetSpanContext() ?? latestSpanContext; - } - else if (child is MarkupMiscAttributeContentSyntax miscContent) - { - foreach (var contentChild in miscContent.Children) - { - if (contentChild is MarkupTextLiteralSyntax contentLiteral) - { - literals.Add(contentLiteral); - latestSpanContext = contentLiteral.GetSpanContext() ?? latestSpanContext; - } - else - { - // Pop stack - AddLiteralIfExists(); - newChildren.Add(contentChild); - } - } - } - else - { - AddLiteralIfExists(); - newChildren.Add(child); - } - } - - AddLiteralIfExists(); - - return new SyntaxList(newChildren.ToListNode().CreateRed(node, node.Position)); - - void AddLiteralIfExists() - { - if (literals.Count > 0) - { - var mergedLiteral = SyntaxUtilities.MergeTextLiterals(literals.ToArray()); - mergedLiteral = mergedLiteral.WithSpanContext(latestSpanContext); - literals.Clear(); - latestSpanContext = null; - newChildren.Add(mergedLiteral); - } - } - } - - private static SyntaxList GetRewrittenMarkupEndTagChildren(MarkupEndTagSyntax node) - { - // Rewrites the children of the end tag to look like the legacy syntax tree. - if (node.IsMarkupTransition) - { - var tokens = node.DescendantNodes().Where(n => n is SyntaxToken token && !token.IsMissing).Cast().ToArray(); - var tokenBuilder = SyntaxListBuilder.Create(); - tokenBuilder.AddRange(tokens, 0, tokens.Length); - var markupTransition = SyntaxFactory.MarkupTransition(tokenBuilder.ToList()).Green.CreateRed(node, node.Position); - var spanContext = node.GetSpanContext(); - if (spanContext != null) - { - markupTransition = markupTransition.WithSpanContext(spanContext); - } - - var builder = new SyntaxListBuilder(1); - builder.Add(markupTransition); - return new SyntaxList(builder.ToListNode().CreateRed(node, node.Position)); - } - - return node.Children; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeRenderingContext.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeRenderingContext.cs deleted file mode 100644 index d144558bb08..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeRenderingContext.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public abstract class CodeRenderingContext - { - internal static readonly object NewLineString = "NewLineString"; - - internal static readonly object SuppressUniqueIds = "SuppressUniqueIds"; - - public abstract IEnumerable Ancestors { get; } - - public abstract CodeWriter CodeWriter { get; } - - public abstract RazorDiagnosticCollection Diagnostics { get; } - - public abstract string DocumentKind { get; } - - public abstract ItemCollection Items { get; } - - public abstract IntermediateNodeWriter NodeWriter { get; } - - public abstract RazorCodeGenerationOptions Options { get; } - - public abstract IntermediateNode Parent { get; } - - public abstract RazorSourceDocument SourceDocument { get; } - - public abstract void AddSourceMappingFor(IntermediateNode node); - - public abstract void RenderNode(IntermediateNode node); - - public abstract void RenderNode(IntermediateNode node, IntermediateNodeWriter writer); - - public abstract void RenderChildren(IntermediateNode node); - - public abstract void RenderChildren(IntermediateNode node, IntermediateNodeWriter writer); - - public virtual void AddLinePragma(LinePragma linePragma) - { - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTarget.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTarget.cs deleted file mode 100644 index ba8ba8b48c0..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTarget.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public abstract class CodeTarget - { - public static CodeTarget CreateDefault(RazorCodeDocument codeDocument, RazorCodeGenerationOptions options) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - return CreateDefault(codeDocument, options, configure: null); - } - - public static CodeTarget CreateDefault( - RazorCodeDocument codeDocument, - RazorCodeGenerationOptions options, - Action configure) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - var builder = new DefaultCodeTargetBuilder(codeDocument, options); - - if (builder.Options.DesignTime) - { - AddDesignTimeDefaults(builder); - } - else - { - AddRuntimeDefaults(builder); - } - - if (configure != null) - { - configure.Invoke(builder); - } - - return builder.Build(); - } - - public static CodeTarget CreateEmpty( - RazorCodeDocument codeDocument, - RazorCodeGenerationOptions options, - Action configure) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - var builder = new DefaultCodeTargetBuilder(codeDocument, options); - configure?.Invoke(builder); - return builder.Build(); - } - - internal static void AddDesignTimeDefaults(CodeTargetBuilder builder) - { - - } - - internal static void AddRuntimeDefaults(CodeTargetBuilder builder) - { - - } - - public abstract IntermediateNodeWriter CreateNodeWriter(); - - public abstract TExtension GetExtension() where TExtension : class, ICodeTargetExtension; - - public abstract bool HasExtension() where TExtension : class, ICodeTargetExtension; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTargetBuilder.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTargetBuilder.cs deleted file mode 100644 index de9daf2ea60..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeTargetBuilder.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public abstract class CodeTargetBuilder - { - public abstract RazorCodeDocument CodeDocument { get; } - - public abstract RazorCodeGenerationOptions Options { get; } - - public abstract ICollection TargetExtensions { get; } - - public abstract CodeTarget Build(); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriter.cs deleted file mode 100644 index 5b44fbc7fc3..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriter.cs +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Text; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public sealed class CodeWriter - { - private static readonly char[] NewLineCharacters = { '\r', '\n' }; - - private readonly StringBuilder _builder; - - private string _newLine; - - private int _absoluteIndex; - private int _currentLineIndex; - private int _currentLineCharacterIndex; - - public CodeWriter() - { - NewLine = Environment.NewLine; - _builder = new StringBuilder(); - } - - public int CurrentIndent { get; set; } - - public int Length => _builder.Length; - - public string NewLine - { - get => _newLine; - set - { - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - if (value != "\r\n" && value != "\n") - { - throw new ArgumentException(Resources.FormatCodeWriter_InvalidNewLine(value), nameof(value)); - } - - _newLine = value; - } - } - - public SourceLocation Location => new SourceLocation(_absoluteIndex, _currentLineIndex, _currentLineCharacterIndex); - - public char this[int index] - { - get - { - if (index < 0 || index >= _builder.Length) - { - throw new IndexOutOfRangeException(nameof(index)); - } - - return _builder[index]; - } - } - - // Internal for testing. - internal CodeWriter Indent(int size) - { - if (Length == 0 || this[Length - 1] == '\n') - { - _builder.Append(' ', size); - - _currentLineCharacterIndex += size; - _absoluteIndex += size; - } - - return this; - } - - public CodeWriter Write(string value) - { - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - return Write(value, 0, value.Length); - } - - public CodeWriter Write(string value, int startIndex, int count) - { - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - if (startIndex < 0) - { - throw new ArgumentOutOfRangeException(nameof(startIndex)); - } - - if (count < 0) - { - throw new ArgumentOutOfRangeException(nameof(count)); - } - - if (startIndex > value.Length - count) - { - throw new ArgumentOutOfRangeException(nameof(startIndex)); - } - - if (count == 0) - { - return this; - } - - Indent(CurrentIndent); - - _builder.Append(value, startIndex, count); - - _absoluteIndex += count; - - // The data string might contain a partial newline where the previously - // written string has part of the newline. - var i = startIndex; - int? trailingPartStart = null; - - if ( - // Check the last character of the previous write operation. - _builder.Length - count - 1 >= 0 && - _builder[_builder.Length - count - 1] == '\r' && - - // Check the first character of the current write operation. - _builder[_builder.Length - count] == '\n') - { - // This is newline that's spread across two writes. Skip the first character of the - // current write operation. - // - // We don't need to increment our newline counter because we already did that when we - // saw the \r. - i += 1; - trailingPartStart = 1; - } - - // Iterate the string, stopping at each occurrence of a newline character. This lets us count the - // newline occurrences and keep the index of the last one. - while ((i = value.IndexOfAny(NewLineCharacters, i)) >= 0) - { - // Newline found. - _currentLineIndex++; - _currentLineCharacterIndex = 0; - - i++; - - // We might have stopped at a \r, so check if it's followed by \n and then advance the index to - // start the next search after it. - if (count > i && - value[i - 1] == '\r' && - value[i] == '\n') - { - i++; - } - - // The 'suffix' of the current line starts after this newline token. - trailingPartStart = i; - } - - if (trailingPartStart == null) - { - // No newlines, just add the length of the data buffer - _currentLineCharacterIndex += count; - } - else - { - // Newlines found, add the trailing part of 'data' - _currentLineCharacterIndex += (count - trailingPartStart.Value); - } - - return this; - } - - public CodeWriter WriteLine() - { - _builder.Append(NewLine); - - _currentLineIndex++; - _currentLineCharacterIndex = 0; - _absoluteIndex += NewLine.Length; - - return this; - } - - public CodeWriter WriteLine(string value) - { - if (value == null) - { - throw new ArgumentNullException(nameof(value)); - } - - return Write(value).WriteLine(); - } - - public string GenerateCode() - { - return _builder.ToString(); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriterExtensions.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriterExtensions.cs deleted file mode 100644 index eee9f37927c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CodeWriterExtensions.cs +++ /dev/null @@ -1,708 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal static class CodeWriterExtensions - { - private const string InstanceMethodFormat = "{0}.{1}"; - - private static readonly char[] CStyleStringLiteralEscapeChars = - { - '\r', - '\t', - '\"', - '\'', - '\\', - '\0', - '\n', - '\u2028', - '\u2029', - }; - - public static bool IsAtBeginningOfLine(this CodeWriter writer) - { - return writer.Length == 0 || writer[writer.Length - 1] == '\n'; - } - - public static CodeWriter WritePadding(this CodeWriter writer, int offset, SourceSpan? span, CodeRenderingContext context) - { - if (span == null) - { - return writer; - } - - if (context.SourceDocument.FilePath != null && - !string.Equals(context.SourceDocument.FilePath, span.Value.FilePath, StringComparison.OrdinalIgnoreCase)) - { - // We don't want to generate padding for nodes from imports. - return writer; - } - - var basePadding = CalculatePadding(); - var resolvedPadding = Math.Max(basePadding - offset, 0); - - if (context.Options.IndentWithTabs) - { - // Avoid writing directly to the StringBuilder here, that will throw off the manual indexing - // done by the base class. - var tabs = resolvedPadding / context.Options.IndentSize; - for (var i = 0; i < tabs; i++) - { - writer.Write("\t"); - } - - var spaces = resolvedPadding % context.Options.IndentSize; - for (var i = 0; i < spaces; i++) - { - writer.Write(" "); - } - } - else - { - for (var i = 0; i < resolvedPadding; i++) - { - writer.Write(" "); - } - } - - return writer; - - int CalculatePadding() - { - var spaceCount = 0; - for (var i = span.Value.AbsoluteIndex - 1; i >= 0; i--) - { - var @char = context.SourceDocument[i]; - if (@char == '\n' || @char == '\r') - { - break; - } - else if (@char == '\t') - { - spaceCount += context.Options.IndentSize; - } - else - { - spaceCount++; - } - } - - return spaceCount; - } - } - - public static CodeWriter WriteVariableDeclaration(this CodeWriter writer, string type, string name, string value) - { - writer.Write(type).Write(" ").Write(name); - if (!string.IsNullOrEmpty(value)) - { - writer.Write(" = ").Write(value); - } - else - { - writer.Write(" = null"); - } - - writer.WriteLine(";"); - - return writer; - } - - public static CodeWriter WriteBooleanLiteral(this CodeWriter writer, bool value) - { - return writer.Write(value.ToString().ToLowerInvariant()); - } - - public static CodeWriter WriteStartAssignment(this CodeWriter writer, string name) - { - return writer.Write(name).Write(" = "); - } - - public static CodeWriter WriteParameterSeparator(this CodeWriter writer) - { - return writer.Write(", "); - } - - public static CodeWriter WriteStartNewObject(this CodeWriter writer, string typeName) - { - return writer.Write("new ").Write(typeName).Write("("); - } - - public static CodeWriter WriteStringLiteral(this CodeWriter writer, string literal) - { - if (literal.Length >= 256 && literal.Length <= 1500 && literal.IndexOf('\0') == -1) - { - WriteVerbatimStringLiteral(writer, literal); - } - else - { - WriteCStyleStringLiteral(writer, literal); - } - - return writer; - } - - public static CodeWriter WriteUsing(this CodeWriter writer, string name) - { - return WriteUsing(writer, name, endLine: true); - } - - public static CodeWriter WriteUsing(this CodeWriter writer, string name, bool endLine) - { - writer.Write("using "); - writer.Write(name); - - if (endLine) - { - writer.WriteLine(";"); - } - - return writer; - } - - public static CodeWriter WriteLineNumberDirective(this CodeWriter writer, SourceSpan span) - { - if (writer.Length >= writer.NewLine.Length && !IsAtBeginningOfLine(writer)) - { - writer.WriteLine(); - } - - var lineNumberAsString = (span.LineIndex + 1).ToString(CultureInfo.InvariantCulture); - return writer.Write("#line ").Write(lineNumberAsString).Write(" \"").Write(span.FilePath).WriteLine("\""); - } - - public static CodeWriter WriteStartMethodInvocation(this CodeWriter writer, string methodName) - { - writer.Write(methodName); - - return writer.Write("("); - } - - public static CodeWriter WriteEndMethodInvocation(this CodeWriter writer) - { - return WriteEndMethodInvocation(writer, endLine: true); - } - - public static CodeWriter WriteEndMethodInvocation(this CodeWriter writer, bool endLine) - { - writer.Write(")"); - if (endLine) - { - writer.WriteLine(";"); - } - - return writer; - } - - // Writes a method invocation for the given instance name. - public static CodeWriter WriteInstanceMethodInvocation( - this CodeWriter writer, - string instanceName, - string methodName, - params string[] parameters) - { - if (instanceName == null) - { - throw new ArgumentNullException(nameof(instanceName)); - } - - if (methodName == null) - { - throw new ArgumentNullException(nameof(methodName)); - } - - return WriteInstanceMethodInvocation(writer, instanceName, methodName, endLine: true, parameters: parameters); - } - - // Writes a method invocation for the given instance name. - public static CodeWriter WriteInstanceMethodInvocation( - this CodeWriter writer, - string instanceName, - string methodName, - bool endLine, - params string[] parameters) - { - if (instanceName == null) - { - throw new ArgumentNullException(nameof(instanceName)); - } - - if (methodName == null) - { - throw new ArgumentNullException(nameof(methodName)); - } - - return WriteMethodInvocation( - writer, - string.Format(CultureInfo.InvariantCulture, InstanceMethodFormat, instanceName, methodName), - endLine, - parameters); - } - - public static CodeWriter WriteStartInstanceMethodInvocation(this CodeWriter writer, string instanceName, string methodName) - { - if (instanceName == null) - { - throw new ArgumentNullException(nameof(instanceName)); - } - - if (methodName == null) - { - throw new ArgumentNullException(nameof(methodName)); - } - - return WriteStartMethodInvocation( - writer, - string.Format(CultureInfo.InvariantCulture, InstanceMethodFormat, instanceName, methodName)); - } - - public static CodeWriter WriteField(this CodeWriter writer, IList suppressWarnings, IList modifiers, string typeName, string fieldName) - { - if (suppressWarnings == null) - { - throw new ArgumentNullException(nameof(suppressWarnings)); - } - - if (modifiers == null) - { - throw new ArgumentNullException(nameof(modifiers)); - } - - if (typeName == null) - { - throw new ArgumentNullException(nameof(typeName)); - } - - if (fieldName == null) - { - throw new ArgumentNullException(nameof(fieldName)); - } - - for (var i = 0; i < suppressWarnings.Count; i++) - { - writer.Write("#pragma warning disable "); - writer.WriteLine(suppressWarnings[i]); - } - - for (var i = 0; i < modifiers.Count; i++) - { - writer.Write(modifiers[i]); - writer.Write(" "); - } - - writer.Write(typeName); - writer.Write(" "); - writer.Write(fieldName); - writer.Write(";"); - writer.WriteLine(); - - for (var i = suppressWarnings.Count - 1; i >= 0; i--) - { - writer.Write("#pragma warning restore "); - writer.WriteLine(suppressWarnings[i]); - } - - return writer; - } - - public static CodeWriter WriteMethodInvocation(this CodeWriter writer, string methodName, params string[] parameters) - { - return WriteMethodInvocation(writer, methodName, endLine: true, parameters: parameters); - } - - public static CodeWriter WriteMethodInvocation(this CodeWriter writer, string methodName, bool endLine, params string[] parameters) - { - return - WriteStartMethodInvocation(writer, methodName) - .Write(string.Join(", ", parameters)) - .WriteEndMethodInvocation(endLine); - } - - public static CodeWriter WriteAutoPropertyDeclaration(this CodeWriter writer, IList modifiers, string typeName, string propertyName) - { - if (modifiers == null) - { - throw new ArgumentNullException(nameof(modifiers)); - } - - if (typeName == null) - { - throw new ArgumentNullException(nameof(typeName)); - } - - if (propertyName == null) - { - throw new ArgumentNullException(nameof(propertyName)); - } - - for (var i = 0; i < modifiers.Count; i++) - { - writer.Write(modifiers[i]); - writer.Write(" "); - } - - writer.Write(typeName); - writer.Write(" "); - writer.Write(propertyName); - writer.Write(" { get; set; }"); - writer.WriteLine(); - - return writer; - } - - public static CSharpCodeWritingScope BuildScope(this CodeWriter writer) - { - return new CSharpCodeWritingScope(writer); - } - - public static CSharpCodeWritingScope BuildLambda(this CodeWriter writer, params string[] parameterNames) - { - return BuildLambda(writer, async: false, parameterNames: parameterNames); - } - - public static CSharpCodeWritingScope BuildAsyncLambda(this CodeWriter writer, params string[] parameterNames) - { - return BuildLambda(writer, async: true, parameterNames: parameterNames); - } - - private static CSharpCodeWritingScope BuildLambda(CodeWriter writer, bool async, string[] parameterNames) - { - if (async) - { - writer.Write("async"); - } - - writer.Write("(").Write(string.Join(", ", parameterNames)).Write(") => "); - - var scope = new CSharpCodeWritingScope(writer); - - return scope; - } - - public static CSharpCodeWritingScope BuildNamespace(this CodeWriter writer, string name) - { - writer.Write("namespace ").WriteLine(name); - - return new CSharpCodeWritingScope(writer); - } - - public static CSharpCodeWritingScope BuildClassDeclaration( - this CodeWriter writer, - IList modifiers, - string name, - string baseType, - IList interfaces, - IList typeParameters) - { - for (var i = 0; i < modifiers.Count; i++) - { - writer.Write(modifiers[i]); - writer.Write(" "); - } - - writer.Write("class "); - writer.Write(name); - - if (typeParameters != null && typeParameters.Count > 0) - { - writer.Write("<"); - writer.Write(string.Join(", ", typeParameters)); - writer.Write(">"); - } - - var hasBaseType = !string.IsNullOrEmpty(baseType); - var hasInterfaces = interfaces != null && interfaces.Count > 0; - - if (hasBaseType || hasInterfaces) - { - writer.Write(" : "); - - if (hasBaseType) - { - writer.Write(baseType); - - if (hasInterfaces) - { - WriteParameterSeparator(writer); - } - } - - if (hasInterfaces) - { - writer.Write(string.Join(", ", interfaces)); - } - } - - writer.WriteLine(); - - return new CSharpCodeWritingScope(writer); - } - - public static CSharpCodeWritingScope BuildMethodDeclaration( - this CodeWriter writer, - string accessibility, - string returnType, - string name, - IEnumerable> parameters) - { - writer.Write(accessibility) - .Write(" ") - .Write(returnType) - .Write(" ") - .Write(name) - .Write("(") - .Write(string.Join(", ", parameters.Select(p => p.Key + " " + p.Value))) - .WriteLine(")"); - - return new CSharpCodeWritingScope(writer); - } - - public static IDisposable BuildLinePragma(this CodeWriter writer, SourceSpan? span, CodeRenderingContext context) - { - if (string.IsNullOrEmpty(span?.FilePath)) - { - // Can't build a valid line pragma without a file path. - return NullDisposable.Default; - } - - return new LinePragmaWriter(writer, span.Value, context); - } - - private static void WriteVerbatimStringLiteral(CodeWriter writer, string literal) - { - writer.Write("@\""); - - // We need to suppress indenting during the writing of the string's content. A - // verbatim string literal could contain newlines that don't get escaped. - var indent = writer.CurrentIndent; - writer.CurrentIndent = 0; - - // We need to find the index of each '"' (double-quote) to escape it. - var start = 0; - int end; - while ((end = literal.IndexOf('\"', start)) > -1) - { - writer.Write(literal, start, end - start); - - writer.Write("\"\""); - - start = end + 1; - } - - Debug.Assert(end == -1); // We've hit all of the double-quotes. - - // Write the remainder after the last double-quote. - writer.Write(literal, start, literal.Length - start); - - writer.Write("\""); - - writer.CurrentIndent = indent; - } - - private static void WriteCStyleStringLiteral(CodeWriter writer, string literal) - { - // From CSharpCodeGenerator.QuoteSnippetStringCStyle in CodeDOM - writer.Write("\""); - - // We need to find the index of each escapable character to escape it. - var start = 0; - int end; - while ((end = literal.IndexOfAny(CStyleStringLiteralEscapeChars, start)) > -1) - { - writer.Write(literal, start, end - start); - - switch (literal[end]) - { - case '\r': - writer.Write("\\r"); - break; - case '\t': - writer.Write("\\t"); - break; - case '\"': - writer.Write("\\\""); - break; - case '\'': - writer.Write("\\\'"); - break; - case '\\': - writer.Write("\\\\"); - break; - case '\0': - writer.Write("\\\0"); - break; - case '\n': - writer.Write("\\n"); - break; - case '\u2028': - case '\u2029': - writer.Write("\\u"); - writer.Write(((int)literal[end]).ToString("X4", CultureInfo.InvariantCulture)); - break; - default: - Debug.Assert(false, "Unknown escape character."); - break; - } - - start = end + 1; - } - - Debug.Assert(end == -1); // We've hit all of chars that need escaping. - - // Write the remainder after the last escaped char. - writer.Write(literal, start, literal.Length - start); - - writer.Write("\""); - } - - public struct CSharpCodeWritingScope : IDisposable - { - private CodeWriter _writer; - private bool _autoSpace; - private int _tabSize; - private int _startIndent; - - public CSharpCodeWritingScope(CodeWriter writer, int tabSize = 4, bool autoSpace = true) - { - _writer = writer; - _autoSpace = autoSpace; - _tabSize = tabSize; - _startIndent = -1; // Set in WriteStartScope - - WriteStartScope(); - } - - public void Dispose() - { - WriteEndScope(); - } - - private void WriteStartScope() - { - TryAutoSpace(" "); - - _writer.WriteLine("{"); - _writer.CurrentIndent += _tabSize; - _startIndent = _writer.CurrentIndent; - } - - private void WriteEndScope() - { - TryAutoSpace(_writer.NewLine); - - // Ensure the scope hasn't been modified - if (_writer.CurrentIndent == _startIndent) - { - _writer.CurrentIndent -= _tabSize; - } - - _writer.WriteLine("}"); - } - - private void TryAutoSpace(string spaceCharacter) - { - if (_autoSpace && - _writer.Length > 0 && - !char.IsWhiteSpace(_writer[_writer.Length - 1])) - { - _writer.Write(spaceCharacter); - } - } - } - - private class LinePragmaWriter : IDisposable - { - private readonly CodeWriter _writer; - private readonly CodeRenderingContext _context; - private readonly int _startIndent; - private readonly int _sourceLineIndex; - private readonly int _startLineIndex; - private readonly string _sourceFilePath; - - public LinePragmaWriter( - CodeWriter writer, - SourceSpan span, - CodeRenderingContext context) - { - if (writer == null) - { - throw new ArgumentNullException(nameof(writer)); - } - - _writer = writer; - _context = context; - _startIndent = _writer.CurrentIndent; - _sourceFilePath = span.FilePath; - _sourceLineIndex = span.LineIndex; - _writer.CurrentIndent = 0; - - if (!_context.Options.SuppressNullabilityEnforcement) - { - var endsWithNewline = _writer.Length > 0 && _writer[_writer.Length - 1] == '\n'; - if (!endsWithNewline) - { - _writer.WriteLine(); - } - _writer.WriteLine("#nullable restore"); - } - - WriteLineNumberDirective(writer, span); - - // Capture the line index after writing the #line directive. - _startLineIndex = writer.Location.LineIndex; - } - - public void Dispose() - { - // Need to add an additional line at the end IF there wasn't one already written. - // This is needed to work with the C# editor's handling of #line ... - var endsWithNewline = _writer.Length > 0 && _writer[_writer.Length - 1] == '\n'; - - // Always write at least 1 empty line to potentially separate code from pragmas. - _writer.WriteLine(); - - // Check if the previous empty line wasn't enough to separate code from pragmas. - if (!endsWithNewline) - { - _writer.WriteLine(); - } - - var lineCount = _writer.Location.LineIndex - _startLineIndex; - var linePragma = new LinePragma(_sourceLineIndex, lineCount, _sourceFilePath); - _context.AddLinePragma(linePragma); - - _writer - .WriteLine("#line default") - .WriteLine("#line hidden"); - - if (!_context.Options.SuppressNullabilityEnforcement) - { - _writer.WriteLine("#nullable disable"); - } - - _writer.CurrentIndent = _startIndent; - - } - } - - private class NullDisposable : IDisposable - { - public static readonly NullDisposable Default = new NullDisposable(); - - private NullDisposable() - { - } - - public void Dispose() - { - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeRenderingContext.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeRenderingContext.cs deleted file mode 100644 index afb717391a1..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeRenderingContext.cs +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class DefaultCodeRenderingContext : CodeRenderingContext - { - private readonly Stack _ancestors; - private readonly RazorCodeDocument _codeDocument; - private readonly DocumentIntermediateNode _documentNode; - private readonly List _scopes; - - public DefaultCodeRenderingContext( - CodeWriter codeWriter, - IntermediateNodeWriter nodeWriter, - RazorCodeDocument codeDocument, - DocumentIntermediateNode documentNode, - RazorCodeGenerationOptions options) - { - if (codeWriter == null) - { - throw new ArgumentNullException(nameof(codeWriter)); - } - - if (nodeWriter == null) - { - throw new ArgumentNullException(nameof(nodeWriter)); - } - - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (documentNode == null) - { - throw new ArgumentNullException(nameof(documentNode)); - } - - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - CodeWriter = codeWriter; - _codeDocument = codeDocument; - _documentNode = documentNode; - Options = options; - - _ancestors = new Stack(); - Diagnostics = new RazorDiagnosticCollection(); - Items = new ItemCollection(); - SourceMappings = new List(); - LinePragmas = new List(); - - var diagnostics = _documentNode.GetAllDiagnostics(); - for (var i = 0; i < diagnostics.Count; i++) - { - Diagnostics.Add(diagnostics[i]); - } - - var newLineString = codeDocument.Items[NewLineString]; - if (newLineString != null) - { - // Set new line character to a specific string regardless of platform, for testing purposes. - codeWriter.NewLine = (string)newLineString; - } - - Items[NewLineString] = codeDocument.Items[NewLineString]; - Items[SuppressUniqueIds] = codeDocument.Items[SuppressUniqueIds]; - - _scopes = new List(); - _scopes.Add(new ScopeInternal(nodeWriter)); - } - - // This will be initialized by the document writer when the context is 'live'. - public IntermediateNodeVisitor Visitor { get; set; } - - public override IEnumerable Ancestors => _ancestors; - - internal Stack AncestorsInternal => _ancestors; - - public override CodeWriter CodeWriter { get; } - - public override RazorDiagnosticCollection Diagnostics { get; } - - public override string DocumentKind { get; } - - public override ItemCollection Items { get; } - - public List SourceMappings { get; } - - internal List LinePragmas { get; } - - public override IntermediateNodeWriter NodeWriter => Current.Writer; - - public override RazorCodeGenerationOptions Options { get; } - - public override IntermediateNode Parent => _ancestors.Count == 0 ? null : _ancestors.Peek(); - - public override RazorSourceDocument SourceDocument => _codeDocument.Source; - - private ScopeInternal Current => _scopes[_scopes.Count - 1]; - - public override void AddSourceMappingFor(IntermediateNode node) - { - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Source == null) - { - return; - } - - if (SourceDocument.FilePath != null && - !string.Equals(SourceDocument.FilePath, node.Source.Value.FilePath, StringComparison.OrdinalIgnoreCase)) - { - // We don't want to generate line mappings for imports. - return; - } - - var source = node.Source.Value; - var generatedLocation = new SourceSpan(CodeWriter.Location, source.Length); - var sourceMapping = new SourceMapping(source, generatedLocation); - - SourceMappings.Add(sourceMapping); - } - - public override void RenderChildren(IntermediateNode node) - { - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - _ancestors.Push(node); - - for (var i = 0; i < node.Children.Count; i++) - { - Visitor.Visit(node.Children[i]); - } - - _ancestors.Pop(); - } - - public override void RenderChildren(IntermediateNode node, IntermediateNodeWriter writer) - { - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (writer == null) - { - throw new ArgumentNullException(nameof(writer)); - } - - _scopes.Add(new ScopeInternal(writer)); - _ancestors.Push(node); - - for (var i = 0; i < node.Children.Count; i++) - { - Visitor.Visit(node.Children[i]); - } - - _ancestors.Pop(); - _scopes.RemoveAt(_scopes.Count - 1); - } - - public override void RenderNode(IntermediateNode node) - { - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - Visitor.Visit(node); - } - - public override void RenderNode(IntermediateNode node, IntermediateNodeWriter writer) - { - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (writer == null) - { - throw new ArgumentNullException(nameof(writer)); - } - - _scopes.Add(new ScopeInternal(writer)); - - Visitor.Visit(node); - - _scopes.RemoveAt(_scopes.Count - 1); - } - - public override void AddLinePragma(LinePragma linePragma) - { - LinePragmas.Add(linePragma); - } - - private struct ScopeInternal - { - public ScopeInternal(IntermediateNodeWriter writer) - { - Writer = writer; - } - - public IntermediateNodeWriter Writer { get; } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTarget.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTarget.cs deleted file mode 100644 index e9ef7d1ee71..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTarget.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class DefaultCodeTarget : CodeTarget - { - private readonly RazorCodeGenerationOptions _options; - - public DefaultCodeTarget(RazorCodeGenerationOptions options, IEnumerable extensions) - { - _options = options; - Extensions = extensions.ToArray(); - } - - public ICodeTargetExtension[] Extensions { get; } - - public override IntermediateNodeWriter CreateNodeWriter() - { - return _options.DesignTime ? (IntermediateNodeWriter)new DesignTimeNodeWriter() : new RuntimeNodeWriter(); - } - - public override TExtension GetExtension() - { - for (var i = 0; i < Extensions.Length; i++) - { - var match = Extensions[i] as TExtension; - if (match != null) - { - return match; - } - } - - return null; - } - - public override bool HasExtension() - { - for (var i = 0; i < Extensions.Length; i++) - { - var match = Extensions[i] as TExtension; - if (match != null) - { - return true; - } - } - - return false; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTargetBuilder.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTargetBuilder.cs deleted file mode 100644 index 8ae23bddf49..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultCodeTargetBuilder.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class DefaultCodeTargetBuilder : CodeTargetBuilder - { - public DefaultCodeTargetBuilder(RazorCodeDocument codeDocument, RazorCodeGenerationOptions options) - { - CodeDocument = codeDocument; - Options = options; - - TargetExtensions = new List(); - } - - public override RazorCodeDocument CodeDocument { get; } - - public override RazorCodeGenerationOptions Options { get; } - - public override ICollection TargetExtensions { get; } - - public override CodeTarget Build() - { - return new DefaultCodeTarget(Options, TargetExtensions); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs deleted file mode 100644 index c5fb4de90e2..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using System.Security.Cryptography; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class DefaultDocumentWriter : DocumentWriter - { - private readonly CodeTarget _codeTarget; - private readonly RazorCodeGenerationOptions _options; - - public DefaultDocumentWriter(CodeTarget codeTarget, RazorCodeGenerationOptions options) - { - _codeTarget = codeTarget; - _options = options; - } - - public override RazorCSharpDocument WriteDocument(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (documentNode == null) - { - throw new ArgumentNullException(nameof(documentNode)); - } - - var context = new DefaultCodeRenderingContext( - new CodeWriter(), - _codeTarget.CreateNodeWriter(), - codeDocument, - documentNode, - _options); - context.Visitor = new Visitor(_codeTarget, context); - - context.Visitor.VisitDocument(documentNode); - - var cSharp = context.CodeWriter.GenerateCode(); - - var allOrderedDiagnostics = context.Diagnostics.OrderBy(diagnostic => diagnostic.Span.AbsoluteIndex); - return new DefaultRazorCSharpDocument( - cSharp, - _options, - allOrderedDiagnostics.ToArray(), - context.SourceMappings.ToArray(), - context.LinePragmas.ToArray()); - } - - private class Visitor : IntermediateNodeVisitor - { - private readonly DefaultCodeRenderingContext _context; - private readonly CodeTarget _target; - - public Visitor(CodeTarget target, DefaultCodeRenderingContext context) - { - _target = target; - _context = context; - } - - private DefaultCodeRenderingContext Context => _context; - - public override void VisitDocument(DocumentIntermediateNode node) - { - if (!Context.Options.SuppressChecksum) - { - // See http://msdn.microsoft.com/en-us/library/system.codedom.codechecksumpragma.checksumalgorithmid.aspx - // And https://github.com/dotnet/roslyn/blob/614299ff83da9959fa07131c6d0ffbc58873b6ae/src/Compilers/Core/Portable/PEWriter/DebugSourceDocument.cs#L67 - // - // We only support algorithms that the debugger understands, which is currently SHA1 and SHA256. - - string algorithmId; - var algorithm = Context.SourceDocument.GetChecksumAlgorithm(); - if (string.Equals(algorithm, HashAlgorithmName.SHA256.Name, StringComparison.Ordinal)) - { - algorithmId = "{8829d00f-11b8-4213-878b-770e8597ac16}"; - } - else if (string.Equals(algorithm, HashAlgorithmName.SHA1.Name, StringComparison.Ordinal) || - - // In 2.0, we didn't actually expose the name of the algorithm, so it's possible we could get null here. - // If that's the case, we just assume SHA1 since that's the only thing we supported in 2.0. - algorithm == null) - { - algorithmId = "{ff1816ec-aa5e-4d10-87f7-6f4963833460}"; - } - else - { - var supportedAlgorithms = string.Join(" ", new string[] - { - HashAlgorithmName.SHA1.Name, - HashAlgorithmName.SHA256.Name - }); - - var message = Resources.FormatUnsupportedChecksumAlgorithm( - algorithm, - supportedAlgorithms, - nameof(RazorCodeGenerationOptions) + "." + nameof(RazorCodeGenerationOptions.SuppressChecksum), - bool.TrueString); - throw new InvalidOperationException(message); - } - - var sourceDocument = Context.SourceDocument; - - var checksum = Checksum.BytesToString(sourceDocument.GetChecksum()); - if (!string.IsNullOrEmpty(checksum)) - { - Context.CodeWriter - .Write("#pragma checksum \"") - .Write(sourceDocument.FilePath) - .Write("\" \"") - .Write(algorithmId) - .Write("\" \"") - .Write(checksum) - .WriteLine("\""); - } - } - - Context.CodeWriter - .WriteLine("// ") - .WriteLine("#pragma warning disable 1591"); - - VisitDefault(node); - - Context.CodeWriter.WriteLine("#pragma warning restore 1591"); - } - - public override void VisitUsingDirective(UsingDirectiveIntermediateNode node) - { - Context.NodeWriter.WriteUsingDirective(Context, node); - } - - public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) - { - using (Context.CodeWriter.BuildNamespace(node.Content)) - { - Context.CodeWriter.WriteLine("#line hidden"); - VisitDefault(node); - } - } - - public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) - { - using (Context.CodeWriter.BuildClassDeclaration( - node.Modifiers, - node.ClassName, - node.BaseType, - node.Interfaces, - node.TypeParameters.Select(p => p.ParameterName).ToArray())) - { - VisitDefault(node); - } - } - - public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) - { - Context.CodeWriter.WriteLine("#pragma warning disable 1998"); - - for (var i = 0; i < node.Modifiers.Count; i++) - { - Context.CodeWriter.Write(node.Modifiers[i]); - Context.CodeWriter.Write(" "); - } - - Context.CodeWriter.Write(node.ReturnType); - Context.CodeWriter.Write(" "); - - Context.CodeWriter.Write(node.MethodName); - Context.CodeWriter.Write("("); - - for (var i = 0; i < node.Parameters.Count; i++) - { - var parameter = node.Parameters[i]; - - for (var j = 0; j < parameter.Modifiers.Count; j++) - { - Context.CodeWriter.Write(parameter.Modifiers[j]); - Context.CodeWriter.Write(" "); - } - - Context.CodeWriter.Write(parameter.TypeName); - Context.CodeWriter.Write(" "); - - Context.CodeWriter.Write(parameter.ParameterName); - - if (i < node.Parameters.Count - 1) - { - Context.CodeWriter.Write(", "); - } - } - - Context.CodeWriter.Write(")"); - Context.CodeWriter.WriteLine(); - - using (Context.CodeWriter.BuildScope()) - { - VisitDefault(node); - } - - Context.CodeWriter.WriteLine("#pragma warning restore 1998"); - } - - public override void VisitFieldDeclaration(FieldDeclarationIntermediateNode node) - { - Context.CodeWriter.WriteField(node.SuppressWarnings, node.Modifiers, node.FieldType, node.FieldName); - } - - public override void VisitPropertyDeclaration(PropertyDeclarationIntermediateNode node) - { - Context.CodeWriter.WriteAutoPropertyDeclaration(node.Modifiers, node.PropertyType, node.PropertyName); - } - - public override void VisitExtension(ExtensionIntermediateNode node) - { - node.WriteNode(_target, Context); - } - - public override void VisitCSharpExpression(CSharpExpressionIntermediateNode node) - { - Context.NodeWriter.WriteCSharpExpression(Context, node); - } - - public override void VisitCSharpCode(CSharpCodeIntermediateNode node) - { - Context.NodeWriter.WriteCSharpCode(Context, node); - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - Context.NodeWriter.WriteHtmlAttribute(Context, node); - } - - public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) - { - Context.NodeWriter.WriteHtmlAttributeValue(Context, node); - } - - public override void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIntermediateNode node) - { - Context.NodeWriter.WriteCSharpExpressionAttributeValue(Context, node); - } - - public override void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIntermediateNode node) - { - Context.NodeWriter.WriteCSharpCodeAttributeValue(Context, node); - } - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - Context.NodeWriter.WriteHtmlContent(Context, node); - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - VisitDefault(node); - } - - public override void VisitComponent(ComponentIntermediateNode node) - { - Context.NodeWriter.WriteComponent(Context, node); - } - - public override void VisitComponentAttribute(ComponentAttributeIntermediateNode node) - { - Context.NodeWriter.WriteComponentAttribute(Context, node); - } - - public override void VisitComponentChildContent(ComponentChildContentIntermediateNode node) - { - Context.NodeWriter.WriteComponentChildContent(Context, node); - } - - public override void VisitComponentTypeArgument(ComponentTypeArgumentIntermediateNode node) - { - Context.NodeWriter.WriteComponentTypeArgument(Context, node); - } - - public override void VisitComponentTypeInferenceMethod(ComponentTypeInferenceMethodIntermediateNode node) - { - Context.NodeWriter.WriteComponentTypeInferenceMethod(Context, node); - } - - public override void VisitMarkupElement(MarkupElementIntermediateNode node) - { - Context.NodeWriter.WriteMarkupElement(Context, node); - } - - public override void VisitMarkupBlock(MarkupBlockIntermediateNode node) - { - Context.NodeWriter.WriteMarkupBlock(Context, node); - } - - public override void VisitReferenceCapture(ReferenceCaptureIntermediateNode node) - { - Context.NodeWriter.WriteReferenceCapture(Context, node); - } - - public override void VisitSetKey(SetKeyIntermediateNode node) - { - Context.NodeWriter.WriteSetKey(Context, node); - } - - public override void VisitSplat(SplatIntermediateNode node) - { - Context.NodeWriter.WriteSplat(Context, node); - } - - public override void VisitDefault(IntermediateNode node) - { - Context.RenderChildren(node); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeNodeWriter.cs deleted file mode 100644 index 9bf56e2eec5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeNodeWriter.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public class DesignTimeNodeWriter : IntermediateNodeWriter - { - public override void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node) - { - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.AddSourceMappingFor(node); - context.CodeWriter.WriteUsing(node.Content); - } - } - else - { - context.CodeWriter.WriteUsing(node.Content); - } - } - - public override void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Children.Count == 0) - { - return; - } - - if (node.Source != null) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - var offset = DesignTimeDirectivePass.DesignTimeVariable.Length + " = ".Length; - context.CodeWriter.WritePadding(offset, node.Source, context); - context.CodeWriter.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteLine(";"); - } - } - else - { - context.CodeWriter.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - context.CodeWriter.WriteLine(";"); - } - } - - public override void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node) - { - IDisposable linePragmaScope = null; - if (node.Source != null) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value, context); - - context.CodeWriter.WritePadding(0, node.Source.Value, context); - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - - public override void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node) - { - context.RenderChildren(node); - } - - public override void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node) - { - context.RenderChildren(node); - } - - public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Children.Count == 0) - { - return; - } - - var firstChild = node.Children[0]; - if (firstChild.Source != null) - { - using (context.CodeWriter.BuildLinePragma(firstChild.Source.Value, context)) - { - var offset = DesignTimeDirectivePass.DesignTimeVariable.Length + " = ".Length; - context.CodeWriter.WritePadding(offset, firstChild.Source, context); - context.CodeWriter.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteLine(";"); - } - } - else - { - context.CodeWriter.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - if (token.Source != null) - { - context.AddSourceMappingFor(token); - } - - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - context.CodeWriter.WriteLine(";"); - } - } - - public override void WriteCSharpCodeAttributeValue(CodeRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - IDisposable linePragmaScope = null; - var isWhitespaceStatement = string.IsNullOrWhiteSpace(token.Content); - - if (token.Source != null) - { - if (!isWhitespaceStatement) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(token.Source.Value, context); - } - - context.CodeWriter.WritePadding(0, token.Source.Value, context); - } - else if (isWhitespaceStatement) - { - // Don't write whitespace if there is no line mapping for it. - continue; - } - - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - } - - public override void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node) - { - // Do nothing - } - - public override void BeginWriterScope(CodeRenderingContext context, string writer) - { - // Do nothing - } - - public override void EndWriterScope(CodeRenderingContext context) - { - // Do nothing - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs deleted file mode 100644 index abe058078bf..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.ComponentModel; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public abstract class DocumentWriter - { - public static DocumentWriter CreateDefault(CodeTarget codeTarget, RazorCodeGenerationOptions options) - { - if (codeTarget == null) - { - throw new ArgumentNullException(nameof(codeTarget)); - } - - if (options == null) - { - throw new ArgumentNullException(nameof(options)); - } - - return new DefaultDocumentWriter(codeTarget, options); - } - - public abstract RazorCSharpDocument WriteDocument(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/ICodeTargetExtension.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/ICodeTargetExtension.cs deleted file mode 100644 index c8414f13355..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/ICodeTargetExtension.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public interface ICodeTargetExtension - { - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IntermediateNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IntermediateNodeWriter.cs deleted file mode 100644 index 5d6d116fc6e..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IntermediateNodeWriter.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public abstract class IntermediateNodeWriter - { - public abstract void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node); - - public abstract void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node); - - public abstract void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node); - - public abstract void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node); - - public abstract void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node); - - public abstract void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node); - - public abstract void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node); - - public abstract void WriteCSharpCodeAttributeValue(CodeRenderingContext context, CSharpCodeAttributeValueIntermediateNode node); - - public virtual void WriteComponent(CodeRenderingContext context, ComponentIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteComponentTypeArgument(CodeRenderingContext context, ComponentTypeArgumentIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteMarkupElement(CodeRenderingContext context, MarkupElementIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteMarkupBlock(CodeRenderingContext context, MarkupBlockIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteReferenceCapture(CodeRenderingContext context, ReferenceCaptureIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteSetKey(CodeRenderingContext context, SetKeyIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public virtual void WriteSplat(CodeRenderingContext context, SplatIntermediateNode node) - { - throw new NotSupportedException("This writer does not support components."); - } - - public abstract void BeginWriterScope(CodeRenderingContext context, string writer); - - public abstract void EndWriterScope(CodeRenderingContext context); - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LinePragma.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LinePragma.cs deleted file mode 100644 index 70ce0987583..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LinePragma.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Globalization; -using Microsoft.Extensions.Internal; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public readonly struct LinePragma : IEquatable - { - public LinePragma(int startLineIndex, int lineCount, string filePath) - { - if (startLineIndex < 0) - { - throw new ArgumentOutOfRangeException(nameof(startLineIndex)); - } - - if (lineCount < 0) - { - throw new ArgumentOutOfRangeException(nameof(lineCount)); - } - - StartLineIndex = startLineIndex; - LineCount = lineCount; - FilePath = filePath; - } - - public int StartLineIndex { get; } - - public int EndLineIndex => StartLineIndex + LineCount; - - public int LineCount { get; } - - public string FilePath { get; } - - public override bool Equals(object obj) - { - return obj is LinePragma other ? Equals(other) : false; - } - - public bool Equals(LinePragma other) - { - return StartLineIndex == other.StartLineIndex && - LineCount == other.LineCount && - string.Equals(FilePath, other.FilePath, StringComparison.Ordinal); - } - - public override int GetHashCode() - { - var hash = HashCodeCombiner.Start(); - hash.Add(StartLineIndex); - hash.Add(LineCount); - hash.Add(FilePath); - return hash; - } - - public override string ToString() - { - return string.Format(CultureInfo.CurrentCulture, "Line index {0}, Count {1} - {2}", StartLineIndex, LineCount, FilePath); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LiteralRuntimeNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LiteralRuntimeNodeWriter.cs deleted file mode 100644 index 21d542f663a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/LiteralRuntimeNodeWriter.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class LiteralRuntimeNodeWriter : RuntimeNodeWriter - { - public override string WriteCSharpExpressionMethod { get; set; } = "WriteLiteral"; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeNodeWriter.cs deleted file mode 100644 index 9d4561e84d6..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeNodeWriter.cs +++ /dev/null @@ -1,391 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Diagnostics; -using System.Globalization; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - public class RuntimeNodeWriter : IntermediateNodeWriter - { - public virtual string WriteCSharpExpressionMethod { get; set; } = "Write"; - - public virtual string WriteHtmlContentMethod { get; set; } = "WriteLiteral"; - - public virtual string BeginWriteAttributeMethod { get; set; } = "BeginWriteAttribute"; - - public virtual string EndWriteAttributeMethod { get; set; } = "EndWriteAttribute"; - - public virtual string WriteAttributeValueMethod { get; set; } = "WriteAttributeValue"; - - public virtual string PushWriterMethod { get; set; } = "PushWriter"; - - public virtual string PopWriterMethod { get; set; } = "PopWriter"; - - public string TemplateTypeName { get; set; } = "Microsoft.AspNetCore.Mvc.Razor.HelperResult"; - - public override void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node) - { - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.CodeWriter.WriteUsing(node.Content); - } - } - else - { - context.CodeWriter.WriteUsing(node.Content); - } - } - - public override void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - IDisposable linePragmaScope = null; - if (node.Source != null) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value, context); - context.CodeWriter.WritePadding(WriteCSharpExpressionMethod.Length + 1, node.Source, context); - } - - context.CodeWriter.WriteStartMethodInvocation(WriteCSharpExpressionMethod); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteEndMethodInvocation(); - - linePragmaScope?.Dispose(); - } - - public override void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node) - { - var isWhitespaceStatement = true; - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token == null || !string.IsNullOrWhiteSpace(token.Content)) - { - isWhitespaceStatement = false; - break; - } - } - - if (isWhitespaceStatement) - { - return; - } - - IDisposable linePragmaScope = null; - if (node.Source != null) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value, context); - context.CodeWriter.WritePadding(0, node.Source.Value, context); - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - if (linePragmaScope == null) - { - context.CodeWriter.WriteLine(); - } - - linePragmaScope?.Dispose(); - } - - public override void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node) - { - var valuePieceCount = node - .Children - .Count(child => - child is HtmlAttributeValueIntermediateNode || - child is CSharpExpressionAttributeValueIntermediateNode || - child is CSharpCodeAttributeValueIntermediateNode || - child is ExtensionIntermediateNode); - - var prefixLocation = node.Source.Value.AbsoluteIndex; - var suffixLocation = node.Source.Value.AbsoluteIndex + node.Source.Value.Length - node.Suffix.Length; - context.CodeWriter - .WriteStartMethodInvocation(BeginWriteAttributeMethod) - .WriteStringLiteral(node.AttributeName) - .WriteParameterSeparator() - .WriteStringLiteral(node.Prefix) - .WriteParameterSeparator() - .Write(prefixLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .WriteStringLiteral(node.Suffix) - .WriteParameterSeparator() - .Write(suffixLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .Write(valuePieceCount.ToString(CultureInfo.InvariantCulture)) - .WriteEndMethodInvocation(); - - context.RenderChildren(node); - - context.CodeWriter - .WriteStartMethodInvocation(EndWriteAttributeMethod) - .WriteEndMethodInvocation(); - } - - public override void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node) - { - var prefixLocation = node.Source.Value.AbsoluteIndex; - var valueLocation = node.Source.Value.AbsoluteIndex + node.Prefix.Length; - var valueLength = node.Source.Value.Length; - context.CodeWriter - .WriteStartMethodInvocation(WriteAttributeValueMethod) - .WriteStringLiteral(node.Prefix) - .WriteParameterSeparator() - .Write(prefixLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator(); - - // Write content - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsHtml) - { - context.CodeWriter.WriteStringLiteral(token.Content); - } - else - { - // There may be something else inside the attribute value like an extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter - .WriteParameterSeparator() - .Write(valueLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .Write(valueLength.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .WriteBooleanLiteral(true) - .WriteEndMethodInvocation(); - } - - public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - var prefixLocation = node.Source.Value.AbsoluteIndex; - context.CodeWriter - .WriteStartMethodInvocation(WriteAttributeValueMethod) - .WriteStringLiteral(node.Prefix) - .WriteParameterSeparator() - .Write(prefixLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator(); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like an extension node. - context.RenderNode(node.Children[i]); - } - } - - var valueLocation = node.Source.Value.AbsoluteIndex + node.Prefix.Length; - var valueLength = node.Source.Value.Length - node.Prefix.Length; - context.CodeWriter - .WriteParameterSeparator() - .Write(valueLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .Write(valueLength.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .WriteBooleanLiteral(false) - .WriteEndMethodInvocation(); - } - } - - public override void WriteCSharpCodeAttributeValue(CodeRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) - { - const string ValueWriterName = "__razor_attribute_value_writer"; - - var prefixLocation = node.Source.Value.AbsoluteIndex; - var valueLocation = node.Source.Value.AbsoluteIndex + node.Prefix.Length; - var valueLength = node.Source.Value.Length - node.Prefix.Length; - context.CodeWriter - .WriteStartMethodInvocation(WriteAttributeValueMethod) - .WriteStringLiteral(node.Prefix) - .WriteParameterSeparator() - .Write(prefixLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator(); - - context.CodeWriter.WriteStartNewObject(TemplateTypeName); - - using (context.CodeWriter.BuildAsyncLambda(ValueWriterName)) - { - BeginWriterScope(context, ValueWriterName); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - var isWhitespaceStatement = string.IsNullOrWhiteSpace(token.Content); - IDisposable linePragmaScope = null; - if (token.Source != null) - { - if (!isWhitespaceStatement) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(token.Source.Value, context); - } - - context.CodeWriter.WritePadding(0, token.Source.Value, context); - } - else if (isWhitespaceStatement) - { - // Don't write whitespace if there is no line mapping for it. - continue; - } - - context.CodeWriter.Write(token.Content); - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - EndWriterScope(context); - } - - context.CodeWriter.WriteEndMethodInvocation(false); - - context.CodeWriter - .WriteParameterSeparator() - .Write(valueLocation.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .Write(valueLength.ToString(CultureInfo.InvariantCulture)) - .WriteParameterSeparator() - .WriteBooleanLiteral(false) - .WriteEndMethodInvocation(); - } - - public override void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node) - { - const int MaxStringLiteralLength = 1024; - - var builder = new StringBuilder(); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsHtml) - { - builder.Append(token.Content); - } - } - - var content = builder.ToString(); - - WriteHtmlLiteral(context, MaxStringLiteralLength, content); - } - - // Internal for testing - internal void WriteHtmlLiteral(CodeRenderingContext context, int maxStringLiteralLength, string literal) - { - if (literal.Length <= maxStringLiteralLength) - { - WriteLiteral(literal); - return; - } - - // String is too large, render the string in pieces to avoid Roslyn OOM exceptions at compile time: https://github.com/aspnet/External/issues/54 - var charactersConsumed = 0; - do - { - var charactersRemaining = literal.Length - charactersConsumed; - var charactersToSubstring = Math.Min(maxStringLiteralLength, charactersRemaining); - var lastCharBeforeSplitIndex = charactersConsumed + charactersToSubstring - 1; - var lastCharBeforeSplit = literal[lastCharBeforeSplitIndex]; - - if (char.IsHighSurrogate(lastCharBeforeSplit)) - { - if (charactersRemaining > 1) - { - // Take one less character this iteration. We're attempting to split inbetween a surrogate pair. - // This can happen when something like an emoji sits on the barrier between splits; if we were to - // split the emoji we'd end up with invalid bytes in our output. - charactersToSubstring--; - } - else - { - // The user has an invalid file with a partial surrogate a the splitting point. - // We'll let the invalid character flow but we'll explode later on. - } - } - - var textToRender = literal.Substring(charactersConsumed, charactersToSubstring); - - WriteLiteral(textToRender); - - charactersConsumed += textToRender.Length; - } while (charactersConsumed < literal.Length); - - void WriteLiteral(string content) - { - context.CodeWriter - .WriteStartMethodInvocation(WriteHtmlContentMethod) - .WriteStringLiteral(content) - .WriteEndMethodInvocation(); - } - } - - public override void BeginWriterScope(CodeRenderingContext context, string writer) - { - context.CodeWriter.WriteMethodInvocation(PushWriterMethod, writer); - } - - public override void EndWriterScope(CodeRenderingContext context) - { - context.CodeWriter.WriteMethodInvocation(PopWriterMethod); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs deleted file mode 100644 index eec5a76575f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class TagHelperHtmlAttributeRuntimeNodeWriter : RuntimeNodeWriter - { - public override string WriteAttributeValueMethod { get; set; } = "AddHtmlAttributeValue"; - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperRenderingContext.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperRenderingContext.cs deleted file mode 100644 index a8cbe5c96c5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperRenderingContext.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration -{ - internal class TagHelperRenderingContext - { - private Dictionary _renderedBoundAttributes; - private HashSet _verifiedPropertyDictionaries; - - public Dictionary RenderedBoundAttributes - { - get - { - if (_renderedBoundAttributes == null) - { - _renderedBoundAttributes = new Dictionary(StringComparer.OrdinalIgnoreCase); - } - - return _renderedBoundAttributes; - } - } - - public HashSet VerifiedPropertyDictionaries - { - get - { - if (_verifiedPropertyDictionaries == null) - { - _verifiedPropertyDictionaries = new HashSet(StringComparer.Ordinal); - } - - return _verifiedPropertyDictionaries; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/ComponentResources.resx b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/ComponentResources.resx deleted file mode 100644 index b457a1f9f7f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/ComponentResources.resx +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - The C# attribute that will be applied to the current class. - - - Attribute - - - Specifies the C# attribute that will be applied to the current class. - - - Binds the provided expression to the '{0}' property and a change event delegate to the '{1}' property of the component. - - - Specifies the culture to use for conversions. - - - Binds the provided expression to the '{0}' attribute and a change event delegate to the '{1}' attribute. - - - Specifies the event handler name to attach for change notifications for the value provided by the '{0}' attribute. - - - Specifies a format to convert the value specified by the '{0}' attribute. The format string can currently only be used with expressions of type <code>DateTime</code>. - - - Binds the provided expression to an attribute and a change event, based on the naming of the bind attribute. For example: <code>@bind-value="..."</code> and <code>@bind-value:event="onchange"</code> will assign the current value of the expression to the 'value' attribute, and assign a delegate that attempts to set the value to the 'onchange' attribute. - - - Specifies the event handler name to attach for change notifications for the value provided by the '{0}' attribute. - - - Specifies a format to convert the value specified by the corresponding bind attribute. For example: <code>@bind-value:format="..."</code> will apply a format string to the value specified in <code>@bind-value="..."</code>. The format string can currently only be used with expressions of type <code>DateTime</code>. - - - Specifies the parameter name for the '{0}' child content expression. - - - Specifies the parameter name for all child content expressions. - - - Specifies the type of the type parameter {0} for the {1} component. - - - Sets the '{0}' attribute to the provided string or delegate value. A delegate value should be of type '{1}'. - - - Specifies whether to cancel (if cancelable) the default action that belongs to the '{0}' event. - - - Specifies whether to prevent further propagation of the '{0}' event in the capturing and bubbling phases. - - - Declares an interface implementation for the current class. - - - The interface type implemented by the current class. - - - TypeName - - - Ensures that the component or element will be preserved across renders if (and only if) the supplied key value matches. - - - Declares a layout type for the current document. - - - The interface type implemented by the current document. - - - TypeName - - - The '@{0}' directive specified in {1} file will not be imported. The directive must appear at the top of each Razor file - - - Mark the page as a routable component. - - - An optional route template for the component. - - - route template - - - Populates the specified field or property with a reference to the element or component. - - - Merges a collection of attributes into the current element or component. - - - Declares a generic type parameter for the generated component class. - - - The name of the type parameter. - - - type parameter - - \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentBindLoweringPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentBindLoweringPass.cs deleted file mode 100644 index 8d3166a88e0..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentBindLoweringPass.cs +++ /dev/null @@ -1,840 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentBindLoweringPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Run after event handler pass - public override int Order => 100; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - // For each @bind *usage* we need to rewrite the tag helper node to map to basic constructs. - var references = documentNode.FindDescendantReferences(); - var parameterReferences = documentNode.FindDescendantReferences(); - - var parents = new HashSet(); - for (var i = 0; i < references.Count; i++) - { - parents.Add(references[i].Parent); - } - for (var i = 0; i < parameterReferences.Count; i++) - { - parents.Add(parameterReferences[i].Parent); - } - - foreach (var parent in parents) - { - ProcessDuplicates(parent); - } - - // First, collect all the non-parameterized @bind or @bind-* attributes. - // The dict key is a tuple of (parent, attributeName) to differentiate attributes with the same name in two different elements. - // We don't have to worry about duplicate bound attributes in the same element - // like, , because IR lowering takes care of that. - var bindEntries = new Dictionary<(IntermediateNode, string), BindEntry>(); - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var parent = reference.Parent; - var node = (TagHelperDirectiveAttributeIntermediateNode)reference.Node; - - if (!parent.Children.Contains(node)) - { - // This node was removed as a duplicate, skip it. - continue; - } - - if (node.TagHelper.IsBindTagHelper()) - { - bindEntries[(parent, node.AttributeName)] = new BindEntry(reference); - } - } - - // Now collect all the parameterized attributes and store them along with their corresponding @bind or @bind-* attributes. - for (var i = 0; i < parameterReferences.Count; i++) - { - var parameterReference = parameterReferences[i]; - var parent = parameterReference.Parent; - var node = (TagHelperDirectiveAttributeParameterIntermediateNode)parameterReference.Node; - - if (!parent.Children.Contains(node)) - { - // This node was removed as a duplicate, skip it. - continue; - } - - if (node.TagHelper.IsBindTagHelper()) - { - // Check if this tag contains a corresponding non-parameterized bind node. - if (!bindEntries.TryGetValue((parent, node.AttributeNameWithoutParameter), out var entry)) - { - // There is no corresponding bind node. Add a diagnostic and move on. - parameterReference.Parent.Diagnostics.Add(ComponentDiagnosticFactory.CreateBindAttributeParameter_MissingBind( - node.Source, - node.AttributeName)); - } - else if (node.BoundAttributeParameter.Name == "event") - { - entry.BindEventNode = node; - } - else if (node.BoundAttributeParameter.Name == "format") - { - entry.BindFormatNode = node; - } - else if (node.BoundAttributeParameter.Name == "culture") - { - entry.BindCultureNode = node; - } - else - { - // Unsupported bind attribute parameter. This can only happen if bound attribute descriptor - // is configured to expect a parameter other than 'event' and 'format'. - } - - // We've extracted what we need from the parameterized bind node. Remove it. - parameterReference.Remove(); - } - } - - // We now have all the info we need to rewrite the tag helper. - foreach (var entry in bindEntries) - { - var reference = entry.Value.BindNodeReference; - var rewritten = RewriteUsage(reference.Parent, entry.Value); - reference.Remove(); - - for (var j = 0; j < rewritten.Length; j++) - { - reference.Parent.Children.Add(rewritten[j]); - } - } - } - - private void ProcessDuplicates(IntermediateNode node) - { - // Reverse order because we will remove nodes. - // - // Each 'property' node could be duplicated if there are multiple tag helpers that match that - // particular attribute. This is common in our approach, which relies on 'fallback' tag helpers - // that overlap with more specific ones. - for (var i = node.Children.Count - 1; i >= 0; i--) - { - // For each usage of the general 'fallback' bind tag helper, it could duplicate - // the usage of a more specific one. Look for duplicates and remove the fallback. - TagHelperDescriptor tagHelper = null; - string attributeName = null; - var attribute = node.Children[i]; - if (attribute is TagHelperDirectiveAttributeIntermediateNode directiveAttribute) - { - attributeName = directiveAttribute.AttributeName; - tagHelper = directiveAttribute.TagHelper; - } - else if (attribute is TagHelperDirectiveAttributeParameterIntermediateNode parameterAttribute) - { - attributeName = parameterAttribute.AttributeName; - tagHelper = parameterAttribute.TagHelper; - } - if (attribute != null && - tagHelper != null && - tagHelper.IsFallbackBindTagHelper()) - { - for (var j = 0; j < node.Children.Count; j++) - { - TagHelperDescriptor duplicateTagHelper = null; - string duplicateAttributeName = null; - var duplicate = node.Children[j]; - if (duplicate is TagHelperDirectiveAttributeIntermediateNode duplicateDirectiveAttribute) - { - duplicateAttributeName = duplicateDirectiveAttribute.AttributeName; - duplicateTagHelper = duplicateDirectiveAttribute.TagHelper; - } - else if (duplicate is TagHelperDirectiveAttributeParameterIntermediateNode duplicateParameterAttribute) - { - duplicateAttributeName = duplicateParameterAttribute.AttributeName; - duplicateTagHelper = duplicateParameterAttribute.TagHelper; - } - if (duplicate != null && - duplicateTagHelper != null && - duplicateTagHelper.IsBindTagHelper() && - duplicateAttributeName == attributeName && - !object.ReferenceEquals(attribute, duplicate)) - { - // Found a duplicate - remove the 'fallback' in favor of the - // more specific tag helper. - node.Children.RemoveAt(i); - break; - } - } - } - - // Also treat the general as a 'fallback' for that case and remove it. - // This is a workaround for a limitation where you can't write a tag helper that binds only - // when a specific attribute is **not** present. - if (attribute != null && - tagHelper != null && - tagHelper.IsInputElementFallbackBindTagHelper()) - { - for (var j = 0; j < node.Children.Count; j++) - { - TagHelperDescriptor duplicateTagHelper = null; - string duplicateAttributeName = null; - var duplicate = node.Children[j]; - if (duplicate is TagHelperDirectiveAttributeIntermediateNode duplicateDirectiveAttribute) - { - duplicateAttributeName = duplicateDirectiveAttribute.AttributeName; - duplicateTagHelper = duplicateDirectiveAttribute.TagHelper; - } - else if (duplicate is TagHelperDirectiveAttributeParameterIntermediateNode duplicateParameterAttribute) - { - duplicateAttributeName = duplicateParameterAttribute.AttributeName; - duplicateTagHelper = duplicateParameterAttribute.TagHelper; - } - if (duplicate != null && - duplicateTagHelper != null && - duplicateTagHelper.IsInputElementBindTagHelper() && - duplicateAttributeName == attributeName && - !object.ReferenceEquals(attribute, duplicate)) - { - // Found a duplicate - remove the 'fallback' input tag helper in favor of the - // more specific tag helper. - node.Children.RemoveAt(i); - break; - } - } - } - } - - // If we still have duplicates at this point then they are genuine conflicts. - var duplicates = node.Children - .OfType() - .GroupBy(p => p.AttributeName) - .Where(g => g.Count() > 1); - - foreach (var duplicate in duplicates) - { - node.Diagnostics.Add(ComponentDiagnosticFactory.CreateBindAttribute_Duplicates( - node.Source, - duplicate.First().OriginalAttributeName, - duplicate.ToArray())); - foreach (var property in duplicate) - { - node.Children.Remove(property); - } - } - } - - private IntermediateNode[] RewriteUsage(IntermediateNode parent, BindEntry bindEntry) - { - // Bind works similarly to a macro, it always expands to code that the user could have written. - // - // For the nodes that are related to the bind-attribute rewrite them to look like a set of - // 'normal' HTML attributes similar to the following transformation. - // - // Input: - // Output: - // - // This means that the expression that appears inside of '@bind' must be an LValue or else - // there will be errors. In general the errors that come from C# in this case are good enough - // to understand the problem. - // - // We also support and encourage the use of EventCallback<> with bind. So in the above example - // the ValueChanged property could be an Action<> or an EventCallback<>. - // - // The BindMethods calls are required with Action<> because to give us a good experience. They - // use overloading to ensure that can get an Action that will convert and set an arbitrary - // value. We have a similar set of APIs to use with EventCallback<>. - // - // We also assume that the element will be treated as a component for now because - // multiple passes handle 'special' tag helpers. We have another pass that translates - // a tag helper node back into 'regular' element when it doesn't have an associated component - var node = bindEntry.BindNode; - if (!TryComputeAttributeNames( - parent, - bindEntry, - out var valueAttributeName, - out var changeAttributeName, - out var expressionAttributeName, - out var changeAttributeNode, - out var valueAttribute, - out var changeAttribute, - out var expressionAttribute)) - { - // Skip anything we can't understand. It's important that we don't crash, that will bring down - // the build. - node.Diagnostics.Add(ComponentDiagnosticFactory.CreateBindAttribute_InvalidSyntax( - node.Source, - node.AttributeName)); - return new[] { node }; - } - - var original = GetAttributeContent(node); - if (string.IsNullOrEmpty(original.Content)) - { - // This can happen in error cases, the parser will already have flagged this - // as an error, so ignore it. - return new[] { node }; - } - - // Look for a format. If we find one then we need to pass the format into the - // two nodes we generate. - IntermediateToken format = null; - if (bindEntry.BindFormatNode != null) - { - format = GetAttributeContent(bindEntry.BindFormatNode); - } - else if (node.TagHelper?.GetFormat() != null) - { - // We may have a default format if one is associated with the field type. - format = new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = "\"" + node.TagHelper.GetFormat() + "\"", - }; - } - - // Look for a culture. If we find one then we need to pass the culture into the - // two nodes we generate. - IntermediateToken culture = null; - if (bindEntry.BindCultureNode != null) - { - culture = GetAttributeContent(bindEntry.BindCultureNode); - } - else if (node.TagHelper?.IsInvariantCultureBindTagHelper() == true) - { - // We may have a default invariant culture if one is associated with the field type. - culture = new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"global::{typeof(CultureInfo).FullName}.{nameof(CultureInfo.InvariantCulture)}", - }; - } - - var valueExpressionTokens = new List(); - var changeExpressionTokens = new List(); - - // There are a few cases to handle for @bind: - // 1. This is a component using a delegate (int Value & Action Value) - // 2. This is a component using EventCallback (int value & EventCallback) - // 3. This is an element - if (parent is ComponentIntermediateNode && changeAttribute != null && changeAttribute.IsDelegateProperty()) - { - RewriteNodesForComponentDelegateBind( - original, - valueExpressionTokens, - changeExpressionTokens); - } - else if (parent is ComponentIntermediateNode) - { - RewriteNodesForComponentEventCallbackBind( - original, - valueExpressionTokens, - changeExpressionTokens); - } - else - { - RewriteNodesForElementEventCallbackBind( - original, - format, - culture, - valueExpressionTokens, - changeExpressionTokens); - } - - if (parent is MarkupElementIntermediateNode) - { - var valueNode = new HtmlAttributeIntermediateNode() - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - AttributeName = valueAttributeName, - Source = node.Source, - - Prefix = valueAttributeName + "=\"", - Suffix = "\"", - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - valueNode.Diagnostics.Add(node.Diagnostics[i]); - } - - valueNode.Children.Add(new CSharpExpressionAttributeValueIntermediateNode()); - for (var i = 0; i < valueExpressionTokens.Count; i++) - { - valueNode.Children[0].Children.Add(valueExpressionTokens[i]); - } - - var changeNode = new HtmlAttributeIntermediateNode() - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - AttributeName = changeAttributeName, - AttributeNameExpression = changeAttributeNode, - Source = node.Source, - - Prefix = changeAttributeName + "=\"", - Suffix = "\"", - - EventUpdatesAttributeName = valueAttributeName, - }; - - changeNode.Children.Add(new CSharpExpressionAttributeValueIntermediateNode()); - for (var i = 0; i < changeExpressionTokens.Count; i++) - { - changeNode.Children[0].Children.Add(changeExpressionTokens[i]); - } - - return new[] { valueNode, changeNode }; - } - else - { - var valueNode = new ComponentAttributeIntermediateNode(node) - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - AttributeName = valueAttributeName, - BoundAttribute = valueAttribute, // Might be null if it doesn't match a component attribute - PropertyName = valueAttribute?.GetPropertyName(), - TagHelper = valueAttribute == null ? null : node.TagHelper, - TypeName = valueAttribute?.IsWeaklyTyped() == false ? valueAttribute.TypeName : null, - }; - - valueNode.Children.Clear(); - valueNode.Children.Add(new CSharpExpressionIntermediateNode()); - for (var i = 0; i < valueExpressionTokens.Count; i++) - { - valueNode.Children[0].Children.Add(valueExpressionTokens[i]); - } - - var changeNode = new ComponentAttributeIntermediateNode(node) - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - AttributeName = changeAttributeName, - BoundAttribute = changeAttribute, // Might be null if it doesn't match a component attribute - PropertyName = changeAttribute?.GetPropertyName(), - TagHelper = changeAttribute == null ? null : node.TagHelper, - TypeName = changeAttribute?.IsWeaklyTyped() == false ? changeAttribute.TypeName : null, - }; - - changeNode.Children.Clear(); - changeNode.Children.Add(new CSharpExpressionIntermediateNode()); - for (var i = 0; i < changeExpressionTokens.Count; i++) - { - changeNode.Children[0].Children.Add(changeExpressionTokens[i]); - } - - // Finally, also emit a node for the "Expression" attribute, but only if the target - // component is defined to accept one - ComponentAttributeIntermediateNode expressionNode = null; - if (expressionAttribute != null) - { - expressionNode = new ComponentAttributeIntermediateNode(node) - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - AttributeName = expressionAttributeName, - BoundAttribute = expressionAttribute, - PropertyName = expressionAttribute.GetPropertyName(), - TagHelper = node.TagHelper, - TypeName = expressionAttribute.IsWeaklyTyped() ? null : expressionAttribute.TypeName, - }; - - expressionNode.Children.Clear(); - expressionNode.Children.Add(new CSharpExpressionIntermediateNode()); - expressionNode.Children[0].Children.Add(new IntermediateToken() - { - Content = $"() => {original.Content}", - Kind = TokenKind.CSharp - }); - } - - return expressionNode == null - ? new[] { valueNode, changeNode } - : new[] { valueNode, changeNode, expressionNode }; - } - } - - private bool TryParseBindAttribute(BindEntry bindEntry, out string valueAttributeName) - { - var attributeName = bindEntry.BindNode.AttributeName; - valueAttributeName = null; - - if (attributeName == "bind") - { - return true; - } - - if (!attributeName.StartsWith("bind-")) - { - return false; - } - - valueAttributeName = attributeName.Substring("bind-".Length); - return true; - } - - // Attempts to compute the attribute names that should be used for an instance of 'bind'. - private bool TryComputeAttributeNames( - IntermediateNode parent, - BindEntry bindEntry, - out string valueAttributeName, - out string changeAttributeName, - out string expressionAttributeName, - out CSharpExpressionIntermediateNode changeAttributeNode, - out BoundAttributeDescriptor valueAttribute, - out BoundAttributeDescriptor changeAttribute, - out BoundAttributeDescriptor expressionAttribute) - { - valueAttributeName = null; - changeAttributeName = null; - expressionAttributeName = null; - changeAttributeNode = null; - valueAttribute = null; - changeAttribute = null; - expressionAttribute = null; - - // The tag helper specifies attribute names, they should win. - // - // This handles cases like where the tag helper is - // generated to match a specific tag and has metadata that identify the attributes. - // - // We expect 1 bind tag helper per-node. - var node = bindEntry.BindNode; - var attributeName = node.AttributeName; - - // Even though some of our 'bind' tag helpers specify the attribute names, they - // should still satisfy one of the valid syntaxes. - if (!TryParseBindAttribute(bindEntry, out valueAttributeName)) - { - return false; - } - - valueAttributeName = node.TagHelper.GetValueAttributeName() ?? valueAttributeName; - - // If there an attribute that specifies the event like @bind:event="oninput", - // that should be preferred. Otherwise, use the one from the tag helper. - if (bindEntry.BindEventNode == null) - { - // @bind:event not specified - changeAttributeName ??= node.TagHelper.GetChangeAttributeName(); - } - else if (TryExtractEventNodeStaticText(bindEntry.BindEventNode, out var text)) - { - // @bind:event="oninput" - change attribute is static - changeAttributeName = text; - } - else - { - // @bind:event="@someExpr" - we can't know the name of the change attribute, it's dynamic - changeAttributeNode = ExtractEventNodeExpression(bindEntry.BindEventNode); - } - - expressionAttributeName = node.TagHelper.GetExpressionAttributeName(); - - // We expect 0-1 components per-node. - var componentTagHelper = (parent as ComponentIntermediateNode)?.Component; - if (componentTagHelper == null) - { - // If it's not a component node then there isn't too much else to figure out. - return attributeName != null && (changeAttributeName != null || changeAttributeNode != null); - } - - // If this is a component, we need an attribute name for the value. - if (attributeName == null) - { - return false; - } - - // If this is a component, then we can infer 'Changed' as the name - // of the change event. - if (changeAttributeName == null) - { - changeAttributeName = valueAttributeName + "Changed"; - } - - // Likewise for the expression attribute - if (expressionAttributeName == null) - { - expressionAttributeName = valueAttributeName + "Expression"; - } - - for (var i = 0; i < componentTagHelper.BoundAttributes.Count; i++) - { - var attribute = componentTagHelper.BoundAttributes[i]; - - if (string.Equals(valueAttributeName, attribute.Name)) - { - valueAttribute = attribute; - } - - if (string.Equals(changeAttributeName, attribute.Name)) - { - changeAttribute = attribute; - } - - if (string.Equals(expressionAttributeName, attribute.Name)) - { - expressionAttribute = attribute; - } - } - - return true; - - static bool TryExtractEventNodeStaticText(TagHelperDirectiveAttributeParameterIntermediateNode node, out string text) - { - if (node.Children[0] is HtmlContentIntermediateNode html) - { - text = GetAttributeContent(html).Content; - return true; - } - - text = null; - return false; - } - - static CSharpExpressionIntermediateNode ExtractEventNodeExpression(TagHelperDirectiveAttributeParameterIntermediateNode node) - { - if (node.Children[0] is CSharpExpressionIntermediateNode expression) - { - return expression; - } - - return null; - } - } - - private void RewriteNodesForComponentDelegateBind( - IntermediateToken original, - List valueExpressionTokens, - List changeExpressionTokens) - { - // For a component using @bind we want to: - // - use the value as-is - // - create a delegate to handle changes - valueExpressionTokens.Add(original); - - // Now rewrite the content of the change-handler node. Since it's a component attribute, - // we don't use the 'BindMethods' wrapper. We expect component attributes to always 'match' on type. - // - // __value => = __value - changeExpressionTokens.Add(new IntermediateToken() - { - Content = $"__value => {original.Content} = __value", - Kind = TokenKind.CSharp, - }); - } - - private void RewriteNodesForComponentEventCallbackBind( - IntermediateToken original, - List valueExpressionTokens, - List changeExpressionTokens) - { - // For a component using @bind we want to: - // - use the value as-is - // - create a delegate to handle changes - valueExpressionTokens.Add(original); - - changeExpressionTokens.Add(new IntermediateToken() - { - Content = $"{ComponentsApi.RuntimeHelpers.CreateInferredEventCallback}(this, __value => {original.Content} = __value, {original.Content})", - Kind = TokenKind.CSharp - }); - } - - private void RewriteNodesForElementEventCallbackBind( - IntermediateToken original, - IntermediateToken format, - IntermediateToken culture, - List valueExpressionTokens, - List changeExpressionTokens) - { - // This is bind on a markup element. We use FormatValue to transform the value in the correct way - // according to format and culture. - // - // Now rewrite the content of the value node to look like: - // - // BindConverter.FormatValue(, format: , culture: ) - valueExpressionTokens.Add(new IntermediateToken() - { - Content = $"{ComponentsApi.BindConverter.FormatValue}(", - Kind = TokenKind.CSharp - }); - valueExpressionTokens.Add(original); - - if (!string.IsNullOrEmpty(format?.Content)) - { - valueExpressionTokens.Add(new IntermediateToken() - { - Content = ", format: ", - Kind = TokenKind.CSharp, - }); - valueExpressionTokens.Add(format); - } - - if (!string.IsNullOrEmpty(culture?.Content)) - { - valueExpressionTokens.Add(new IntermediateToken() - { - Content = ", culture: ", - Kind = TokenKind.CSharp, - }); - valueExpressionTokens.Add(culture); - } - - valueExpressionTokens.Add(new IntermediateToken() - { - Content = ")", - Kind = TokenKind.CSharp, - }); - - // Now rewrite the content of the change-handler node. There are two cases we care about - // here. If it's a component attribute, then don't use the 'CreateBinder' wrapper. We expect - // component attributes to always 'match' on type. - // - // The really tricky part of this is that we CANNOT write the type name of of the EventCallback we - // intend to create. Doing so would really complicate the story for how we deal with generic types, - // since the generic type lowering pass runs after this. To keep this simple we're relying on - // the compiler to resolve overloads for us. - // - // RuntimeHelpers.CreateInferredEventCallback(this, __value => = __value, ) - // - // For general DOM attributes, we need to be able to create a delegate that accepts UIEventArgs - // so we use 'CreateBinder' - // - // EventCallbackFactory.CreateBinder(this, __value => = __value, , format: , culture: ) - // - // Note that the linemappings here are applied to the value attribute, not the change attribute. - changeExpressionTokens.Add(new IntermediateToken() - { - Content = $"{ComponentsApi.EventCallback.FactoryAccessor}.{ComponentsApi.EventCallbackFactory.CreateBinderMethod}(this, __value => {original.Content} = __value, ", - Kind = TokenKind.CSharp - }); - - changeExpressionTokens.Add(new IntermediateToken() - { - Content = original.Content, - Kind = TokenKind.CSharp - }); - - if (format != null) - { - changeExpressionTokens.Add(new IntermediateToken() - { - Content = $", format: {format.Content}", - Kind = TokenKind.CSharp - }); - } - - if (culture != null) - { - changeExpressionTokens.Add(new IntermediateToken() - { - Content = $", culture: {culture.Content}", - Kind = TokenKind.CSharp - }); - } - - changeExpressionTokens.Add(new IntermediateToken() - { - Content = ")", - Kind = TokenKind.CSharp, - }); - } - - private static IntermediateToken GetAttributeContent(IntermediateNode node) - { - var template = node.FindDescendantNodes().FirstOrDefault(); - if (template != null) - { - // See comments in TemplateDiagnosticPass - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_TemplateInvalidLocation(template.Source)); - return new IntermediateToken() { Kind = TokenKind.CSharp, Content = string.Empty, }; - } - - if (node.Children[0] is HtmlContentIntermediateNode htmlContentNode) - { - // This case can be hit for a 'string' attribute. We want to turn it into - // an expression. - var content = "\"" + string.Join(string.Empty, htmlContentNode.Children.OfType().Select(t => t.Content)) + "\""; - return new IntermediateToken() { Kind = TokenKind.CSharp, Content = content }; - } - else if (node.Children[0] is CSharpExpressionIntermediateNode cSharpNode) - { - // This case can be hit when the attribute has an explicit @ inside, which - // 'escapes' any special sugar we provide for codegen. - return GetToken(cSharpNode); - } - else - { - // This is the common case for 'mixed' content - return GetToken(node); - } - - IntermediateToken GetToken(IntermediateNode parent) - { - if (parent.Children.Count == 1 && parent.Children[0] is IntermediateToken token) - { - return token; - } - - // In error cases we won't have a single token, but we still want to generate the code. - return new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = string.Join(string.Empty, parent.Children.OfType().Select(t => t.Content)), - }; - } - } - - private class BindEntry - { - public BindEntry(IntermediateNodeReference bindNodeReference) - { - BindNodeReference = bindNodeReference; - BindNode = (TagHelperDirectiveAttributeIntermediateNode)bindNodeReference.Node; - } - - public IntermediateNodeReference BindNodeReference { get; } - - public TagHelperDirectiveAttributeIntermediateNode BindNode { get; } - - public TagHelperDirectiveAttributeParameterIntermediateNode BindEventNode { get; set; } - - public TagHelperDirectiveAttributeParameterIntermediateNode BindFormatNode { get; set; } - - public TagHelperDirectiveAttributeParameterIntermediateNode BindCultureNode { get; set; } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentChildContentDiagnosticPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentChildContentDiagnosticPass.cs deleted file mode 100644 index ea102fa9c98..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentChildContentDiagnosticPass.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentChildContentDiagnosticPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Runs after components/eventhandlers/ref/bind/templates. We want to validate every component - // and it's usage of ChildContent. - public override int Order => 160; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - public override void VisitComponent(ComponentIntermediateNode node) - { - // Check for properties that are set by both element contents (body) and the attribute itself. - foreach (var childContent in node.ChildContents) - { - foreach (var attribute in node.Attributes) - { - if (attribute.AttributeName == childContent.AttributeName) - { - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentSetByAttributeAndBody( - attribute.Source, - attribute.AttributeName)); - } - } - } - - base.VisitDefault(node); - } - - public override void VisitComponentChildContent(ComponentChildContentIntermediateNode node) - { - // Check that each child content has a unique parameter name within its scope. This is important - // because the parameter name can be implicit, and it doesn't work well when nested. - if (node.IsParameterized) - { - for (var i = 0; i < Ancestors.Count - 1; i++) - { - var ancestor = Ancestors[i] as ComponentChildContentIntermediateNode; - if (ancestor != null && - ancestor.IsParameterized && - string.Equals(node.ParameterName, ancestor.ParameterName, StringComparison.Ordinal)) - { - // Duplicate name. We report an error because this will almost certainly also lead to an error - // from the C# compiler that's way less clear. - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentRepeatedParameterName( - node.Source, - node, - (ComponentIntermediateNode)Ancestors[0], // Enclosing component - ancestor, // conflicting child content node - (ComponentIntermediateNode)Ancestors[i + 1])); // Enclosing component of conflicting child content node - } - } - } - - base.VisitDefault(node); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeDirective.cs deleted file mode 100644 index 509e8928d3f..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeDirective.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - public static class ComponentCodeDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "code", - DirectiveKind.CodeBlock, - builder => - { - builder.Description = Resources.FunctionsDirective_Description; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive, FileKinds.Component); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeTarget.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeTarget.cs deleted file mode 100644 index a106dd5d5de..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentCodeTarget.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentCodeTarget : CodeTarget - { - private readonly RazorCodeGenerationOptions _options; - - public ComponentCodeTarget(RazorCodeGenerationOptions options, IEnumerable extensions) - { - _options = options; - - // Components provide some built-in target extensions that don't apply to - // legacy documents. - Extensions = new[] { new ComponentTemplateTargetExtension(), }.Concat(extensions).ToArray(); - } - - public ICodeTargetExtension[] Extensions { get; } - - public override IntermediateNodeWriter CreateNodeWriter() - { - return _options.DesignTime ? (IntermediateNodeWriter)new ComponentDesignTimeNodeWriter() : new ComponentRuntimeNodeWriter(); - } - - public override TExtension GetExtension() - { - for (var i = 0; i < Extensions.Length; i++) - { - var match = Extensions[i] as TExtension; - if (match != null) - { - return match; - } - } - - return null; - } - - public override bool HasExtension() - { - for (var i = 0; i < Extensions.Length; i++) - { - var match = Extensions[i] as TExtension; - if (match != null) - { - return true; - } - } - - return false; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentComplexAttributeContentPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentComplexAttributeContentPass.cs deleted file mode 100644 index 37d3d4ca2ed..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentComplexAttributeContentPass.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - // We don't support 'complex' content for components (mixed C# and markup) right now. - // It's not clear yet if components will have a good scenario to use these constructs. - // - // This is where a lot of the complexity in the Razor/TagHelpers model creeps in and we - // might be able to avoid it if these features aren't needed. - internal class ComponentComplexAttributeContentPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Run before other Component passes - public override int Order => -1000; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var nodes = documentNode.FindDescendantNodes(); - for (var i = 0; i < nodes.Count; i++) - { - ProcessAttributes(nodes[i]); - } - } - - private void ProcessAttributes(TagHelperIntermediateNode node) - { - for (var i = node.Children.Count - 1; i >= 0; i--) - { - if (node.Children[i] is TagHelperPropertyIntermediateNode propertyNode) - { - if (!TrySimplifyContent(propertyNode) && node.TagHelpers.Any(t => t.IsComponentTagHelper())) - { - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_UnsupportedComplexContent( - propertyNode, - propertyNode.AttributeName)); - node.Children.RemoveAt(i); - continue; - } - } - else if (node.Children[i] is TagHelperHtmlAttributeIntermediateNode htmlNode) - { - if (!TrySimplifyContent(htmlNode) && node.TagHelpers.Any(t => t.IsComponentTagHelper())) - { - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_UnsupportedComplexContent( - htmlNode, - htmlNode.AttributeName)); - node.Children.RemoveAt(i); - continue; - } - } - else if (node.Children[i] is TagHelperDirectiveAttributeIntermediateNode directiveAttributeNode) - { - if (!TrySimplifyContent(directiveAttributeNode)) - { - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_UnsupportedComplexContent( - directiveAttributeNode, - directiveAttributeNode.OriginalAttributeName)); - node.Children.RemoveAt(i); - continue; - } - } - } - } - - private static bool TrySimplifyContent(IntermediateNode node) - { - if (node.Children.Count == 1 && - node.Children[0] is HtmlAttributeIntermediateNode htmlNode && - htmlNode.Children.Count > 1) - { - // This case can be hit for a 'string' attribute - return false; - } - else if (node.Children.Count == 1 && - node.Children[0] is CSharpExpressionIntermediateNode cSharpNode && - cSharpNode.Children.Count > 1) - { - // This case can be hit when the attribute has an explicit @ inside, which - // 'escapes' any special sugar we provide for codegen. - // - // There's a special case here for explicit expressions. See https://github.com/aspnet/Razor/issues/2203 - // handling this case as a tactical matter since it's important for lambdas. - if (cSharpNode.Children.Count == 3 && - cSharpNode.Children[0] is IntermediateToken token0 && - cSharpNode.Children[2] is IntermediateToken token2 && - token0.Content == "(" && - token2.Content == ")") - { - cSharpNode.Children.RemoveAt(2); - cSharpNode.Children.RemoveAt(0); - - // We were able to simplify it, all good. - return true; - } - - return false; - } - else if (node.Children.Count == 1 && - node.Children[0] is CSharpCodeIntermediateNode) - { - // This is the case when an attribute contains a code block @{ ... } - // We don't support this. - return false; - } - else if (node.Children.Count > 1) - { - // This is the common case for 'mixed' content - return false; - } - - return true; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDesignTimeNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDesignTimeNodeWriter.cs deleted file mode 100644 index c1e0c625f68..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDesignTimeNodeWriter.cs +++ /dev/null @@ -1,991 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - // Based on the DesignTimeNodeWriter from Razor repo. - internal class ComponentDesignTimeNodeWriter : ComponentNodeWriter - { - private readonly ScopeStack _scopeStack = new ScopeStack(); - - private static readonly string DesignTimeVariable = "__o"; - - public override void WriteMarkupBlock(CodeRenderingContext context, MarkupBlockIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Do nothing - } - - public override void WriteMarkupElement(CodeRenderingContext context, MarkupElementIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.RenderChildren(node); - } - - public override void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.AddSourceMappingFor(node); - context.CodeWriter.WriteUsing(node.Content); - } - } - else - { - context.CodeWriter.WriteUsing(node.Content); - } - } - - public override void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - WriteCSharpExpressionInnards(context, node); - } - - private void WriteCSharpExpressionInnards(CodeRenderingContext context, CSharpExpressionIntermediateNode node, string type = null) - { - if (node.Children.Count == 0) - { - return; - } - - if (node.Source != null) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - var offset = DesignTimeVariable.Length + " = ".Length; - - if (type != null) - { - offset += type.Length + 2; // two parenthesis - } - - context.CodeWriter.WritePadding(offset, node.Source, context); - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - - if (type != null) - { - context.CodeWriter.Write("("); - context.CodeWriter.Write(type); - context.CodeWriter.Write(")"); - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteLine(";"); - } - } - else - { - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - context.CodeWriter.WriteLine(";"); - } - } - - public override void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var isWhitespaceStatement = true; - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token == null || !string.IsNullOrWhiteSpace(token.Content)) - { - isWhitespaceStatement = false; - break; - } - } - - IDisposable linePragmaScope = null; - if (node.Source != null) - { - if (!isWhitespaceStatement) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value, context); - } - - context.CodeWriter.WritePadding(0, node.Source.Value, context); - } - else if (isWhitespaceStatement) - { - // Don't write whitespace if there is no line mapping for it. - return; - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - - public override void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // This expression may contain code so we have to render it or else the design-time - // exprience is broken. - if (node.AttributeNameExpression is CSharpExpressionIntermediateNode expression) - { - WriteCSharpExpressionInnards(context, expression, "string"); - } - - context.RenderChildren(node); - } - - public override void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Do nothing, this can't contain code. - } - - public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Children.Count == 0) - { - return; - } - - context.CodeWriter.WriteStartAssignment(DesignTimeVariable); - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - WriteCSharpToken(context, token); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - context.CodeWriter.WriteLine(";"); - } - - public override void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Do nothing - } - - protected override void BeginWriteAttribute(CodeRenderingContext context, string key) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (key == null) - { - throw new ArgumentNullException(nameof(key)); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(ComponentsApi.RenderTreeBuilder.AddAttribute)}") - .Write("-1") - .WriteParameterSeparator() - .WriteStringLiteral(key) - .WriteParameterSeparator(); - } - - protected override void BeginWriteAttribute(CodeRenderingContext context, IntermediateNode expression) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (expression == null) - { - throw new ArgumentNullException(nameof(expression)); - } - - context.CodeWriter.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddAttribute}"); - context.CodeWriter.Write("-1"); - context.CodeWriter.WriteParameterSeparator(); - - var tokens = GetCSharpTokens(expression); - for (var i = 0; i < tokens.Count; i++) - { - context.CodeWriter.Write(tokens[i].Content); - } - - context.CodeWriter.WriteParameterSeparator(); - } - - public override void WriteComponent(CodeRenderingContext context, ComponentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.TypeInferenceNode == null) - { - // Writes something like: - // - // __builder.OpenComponent(0); - // __builder.AddAttribute(1, "Foo", ...); - // __builder.AddAttribute(2, "ChildContent", ...); - // __builder.SetKey(someValue); - // __builder.AddElementCapture(3, (__value) => _field = __value); - // __builder.CloseComponent(); - - foreach (var typeArgument in node.TypeArguments) - { - context.RenderNode(typeArgument); - } - - // We need to preserve order for attibutes and attribute splats since the ordering - // has a semantic effect. - - foreach (var child in node.Children) - { - if (child is ComponentAttributeIntermediateNode attribute) - { - context.RenderNode(attribute); - } - else if (child is SplatIntermediateNode splat) - { - context.RenderNode(splat); - } - } - - if (node.ChildContents.Any()) - { - foreach (var childContent in node.ChildContents) - { - context.RenderNode(childContent); - } - } - else - { - // We eliminate 'empty' child content when building the tree so that usage like - // '\r\n' doesn't create a child content. - // - // Consider what would happen if the user's cursor was inside the element. At - // design -time we want to render an empty lambda to provide proper scoping - // for any code that the user types. - context.RenderNode(new ComponentChildContentIntermediateNode() - { - TypeName = ComponentsApi.RenderFragment.FullTypeName, - }); - } - - foreach (var setKey in node.SetKeys) - { - context.RenderNode(setKey); - } - - foreach (var capture in node.Captures) - { - context.RenderNode(capture); - } - } - else - { - // When we're doing type inference, we can't write all of the code inline to initialize - // the component on the builder. We generate a method elsewhere, and then pass all of the information - // to that method. We pass in all of the attribute values + the sequence numbers. - // - // __Blazor.MyComponent.TypeInference.CreateMyComponent_0(__builder, 0, 1, ..., 2, ..., 3, ....); - - // Preserve order of attributes + splats - var attributes = node.Children.Where(s => - { - return s is ComponentAttributeIntermediateNode || s is SplatIntermediateNode; - }).ToList(); - var childContents = node.ChildContents.ToList(); - var captures = node.Captures.ToList(); - var setKeys = node.SetKeys.ToList(); - var remaining = attributes.Count + childContents.Count + captures.Count + setKeys.Count; - - context.CodeWriter.Write(node.TypeInferenceNode.FullTypeName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(node.TypeInferenceNode.MethodName); - context.CodeWriter.Write("("); - - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - for (var i = 0; i < attributes.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - // Don't type check generics, since we can't actually write the type name. - // The type checking with happen anyway since we defined a method and we're generating - // a call to it. - if (attributes[i] is ComponentAttributeIntermediateNode attribute) - { - WriteComponentAttributeInnards(context, attribute, canTypeCheck: false); - } - else if (attributes[i] is SplatIntermediateNode splat) - { - WriteSplatInnards(context, splat, canTypeCheck: false); - } - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < childContents.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - WriteComponentChildContentInnards(context, childContents[i]); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < setKeys.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - WriteSetKeyInnards(context, setKeys[i]); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < captures.Count; i++) - { - context.CodeWriter.Write("-1"); - context.CodeWriter.Write(", "); - - WriteReferenceCaptureInnards(context, captures[i], shouldTypeCheck: false); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - - // We want to generate something that references the Component type to avoid - // the "usings directive is unnecessary" message. - // Looks like: - // __o = typeof(SomeNamespace.SomeComponent); - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.CodeWriter.Write(DesignTimeVariable); - context.CodeWriter.Write(" = "); - context.CodeWriter.Write("typeof("); - context.CodeWriter.Write(node.TagName); - if (node.Component.IsGenericTypedComponent()) - { - context.CodeWriter.Write("<"); - var typeArgumentCount = node.Component.GetTypeParameters().Count(); - for (var i = 1; i < typeArgumentCount; i++) - { - context.CodeWriter.Write(","); - } - context.CodeWriter.Write(">"); - } - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - } - - public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // __o = 17; - context.CodeWriter.Write(DesignTimeVariable); - context.CodeWriter.Write(" = "); - - // Following the same design pattern as the runtime codegen - WriteComponentAttributeInnards(context, node, canTypeCheck: true); - - context.CodeWriter.Write(";"); - context.CodeWriter.WriteLine(); - } - - private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeIntermediateNode node, bool canTypeCheck) - { - // We limit component attributes to simple cases. However there is still a lot of complexity - // to handle here, since there are a few different cases for how an attribute might be structured. - // - // This roughly follows the design of the runtime writer for simplicity. - if (node.AttributeStructure == AttributeStructure.Minimized) - { - // Minimized attributes always map to 'true' - context.CodeWriter.Write("true"); - } - else if (node.Children.Count > 1) - { - // We don't expect this to happen, we just want to know if it can. - throw new InvalidOperationException("Attribute nodes should either be minimized or a single type of content." + string.Join(", ", node.Children)); - } - else if (node.Children.Count == 1 && node.Children[0] is HtmlContentIntermediateNode) - { - // We don't actually need the content at designtime, an empty string will do. - context.CodeWriter.Write("\"\""); - } - else - { - // There are a few different forms that could be used to contain all of the tokens, but we don't really care - // exactly what it looks like - we just want all of the content. - // - // This can include an empty list in some cases like the following (sic): - // - // - // Of a list of tokens directly in the attribute. - var tokens = GetCSharpTokens(node); - - if ((node.BoundAttribute?.IsDelegateProperty() ?? false) || - (node.BoundAttribute?.IsChildContentProperty() ?? false)) - { - // We always surround the expression with the delegate constructor. This makes type - // inference inside lambdas, and method group conversion do the right thing. - if (canTypeCheck) - { - context.CodeWriter.Write("new "); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write("("); - } - context.CodeWriter.WriteLine(); - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck) - { - context.CodeWriter.Write(")"); - } - } - else if (node.BoundAttribute?.IsEventCallbackProperty() ?? false) - { - // This is the case where we are writing an EventCallback (a delegate with super-powers). - // - // An event callback can either be passed verbatim, or it can be created by the EventCallbackFactory. - // Since we don't look at the code the user typed inside the attribute value, this is always - // resolved via overloading. - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - // Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, ...) OR - // Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, ...) - - context.CodeWriter.Write(ComponentsApi.EventCallback.FactoryAccessor); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.EventCallbackFactory.CreateMethod); - - if (node.TryParseEventCallbackTypeArgument(out var argument)) - { - context.CodeWriter.Write("<"); - context.CodeWriter.Write(argument); - context.CodeWriter.Write(">"); - } - - context.CodeWriter.Write("("); - context.CodeWriter.Write("this"); - context.CodeWriter.Write(", "); - - context.CodeWriter.WriteLine(); - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - context.CodeWriter.Write(")"); - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(")"); - } - } - else - { - // This is the case when an attribute contains C# code - // - // If we have a parameter type, then add a type check. - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(")"); - } - } - } - - static bool NeedsTypeCheck(ComponentAttributeIntermediateNode n) - { - // Weakly typed attributes will have their TypeName set to null. - return n.BoundAttribute != null && n.TypeName != null; - } - } - - private IReadOnlyList GetCSharpTokens(IntermediateNode node) - { - // We generally expect all children to be CSharp, this is here just in case. - return node.FindDescendantNodes().Where(t => t.IsCSharp).ToArray(); - } - - public override void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Writes something like: - // - // __builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... })); - // OR - // __builder.AddAttribute(1, "ChildContent", (RenderFragment)((person) => (__builder73) => { ... })); - BeginWriteAttribute(context, node.AttributeName); - context.CodeWriter.Write($"({node.TypeName})("); - - WriteComponentChildContentInnards(context, node); - - context.CodeWriter.Write(")"); - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteComponentChildContentInnards(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - // Writes something like: - // - // ((__builder73) => { ... }) - // OR - // ((person) => (__builder73) => { }) - _scopeStack.OpenComponentScope( - context, - node.AttributeName, - node.IsParameterized ? node.ParameterName : null); - for (var i = 0; i < node.Children.Count; i++) - { - context.RenderNode(node.Children[i]); - } - _scopeStack.CloseScope(context); - } - - public override void WriteComponentTypeArgument(CodeRenderingContext context, ComponentTypeArgumentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // At design type we want write the equivalent of: - // - // __o = typeof(TItem); - context.CodeWriter.Write(DesignTimeVariable); - context.CodeWriter.Write(" = "); - context.CodeWriter.Write("typeof("); - - var tokens = GetCSharpTokens(node); - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - - IReadOnlyList GetCSharpTokens(ComponentTypeArgumentIntermediateNode arg) - { - // We generally expect all children to be CSharp, this is here just in case. - return arg.FindDescendantNodes().Where(t => t.IsCSharp).ToArray(); - } - } - - public override void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // (__builder73) => { ... } - _scopeStack.OpenTemplateScope(context); - context.RenderChildren(node); - _scopeStack.CloseScope(context); - } - - public override void WriteSetKey(CodeRenderingContext context, SetKeyIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // __builder.SetKey(_keyValue); - - var codeWriter = context.CodeWriter; - - codeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.SetKey}"); - WriteSetKeyInnards(context, node); - codeWriter.WriteEndMethodInvocation(); - } - - private void WriteSetKeyInnards(CodeRenderingContext context, SetKeyIntermediateNode node) - { - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.KeyValueToken - } - }); - } - - public override void WriteSplat(CodeRenderingContext context, SplatIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // __builder.AddMultipleAttributes(2, ...); - context.CodeWriter.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddMultipleAttributes}"); - context.CodeWriter.Write("-1"); - context.CodeWriter.WriteParameterSeparator(); - - WriteSplatInnards(context, node, canTypeCheck: true); - - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteSplatInnards(CodeRenderingContext context, SplatIntermediateNode node, bool canTypeCheck) - { - var tokens = GetCSharpTokens(node); - - if (canTypeCheck) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(ComponentsApi.AddMultipleAttributesTypeFullName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck) - { - context.CodeWriter.Write(")"); - } - } - - public override void WriteReferenceCapture(CodeRenderingContext context, ReferenceCaptureIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // __field = default(MyComponent); - WriteReferenceCaptureInnards(context, node, shouldTypeCheck: true); - } - - protected override void WriteReferenceCaptureInnards(CodeRenderingContext context, ReferenceCaptureIntermediateNode node, bool shouldTypeCheck) - { - // We specialize this code based on whether or not we can type check. When we're calling into - // a type-inferenced component, we can't do the type check. See the comments in WriteTypeInferenceMethod. - if (shouldTypeCheck) - { - // The runtime node writer moves the call elsewhere. At design time we - // just want sufficiently similar code that any unknown-identifier or type - // errors will be equivalent - var captureTypeName = node.IsComponentCapture - ? node.ComponentCaptureTypeName - : ComponentsApi.ElementReference.FullTypeName; - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.IdentifierToken, - new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $" = default({captureTypeName});" - } - } - }); - } - else - { - // Looks like: - // - // (__value) = { _field = (MyComponent)__value; } - // OR - // (__value) = { _field = (ElementRef)__value; } - const string refCaptureParamName = "__value"; - using (var lambdaScope = context.CodeWriter.BuildLambda(refCaptureParamName)) - { - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.IdentifierToken, - new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $" = {refCaptureParamName};" - } - } - }); - } - } - } - - private void WriteCSharpToken(CodeRenderingContext context, IntermediateToken token) - { - if (string.IsNullOrWhiteSpace(token.Content)) - { - return; - } - - if (token.Source?.FilePath == null) - { - context.CodeWriter.Write(token.Content); - return; - } - - using (context.CodeWriter.BuildLinePragma(token.Source, context)) - { - context.CodeWriter.WritePadding(0, token.Source.Value, context); - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDiagnosticFactory.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDiagnosticFactory.cs deleted file mode 100644 index 0aa49c6446e..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDiagnosticFactory.cs +++ /dev/null @@ -1,458 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal static class ComponentDiagnosticFactory - { - private const string DiagnosticPrefix = "RZ"; - - public static readonly RazorDiagnosticDescriptor UnsupportedTagHelperDirective = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9978", - () => - "The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. " + - "Use '@using ' directive instead.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnsupportedTagHelperDirective(SourceSpan? source) - { - return RazorDiagnostic.Create(UnsupportedTagHelperDirective, source ?? SourceSpan.Undefined); - } - - public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9979", - () => - "Code blocks delimited by '@{{...}}' like '@{{ {0} }}' for attributes are no longer supported " + - "These features have been changed to use attribute syntax. " + - "Use 'attr=\"@(x => {{... }}\"'.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression) - { - var diagnostic = RazorDiagnostic.Create( - CodeBlockInAttribute, - source ?? SourceSpan.Undefined, - expression); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor UnclosedTag = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9980", - () => "Unclosed tag '{0}' with no matching end tag.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnclosedTag(SourceSpan? span, string tagName) - { - return RazorDiagnostic.Create(UnclosedTag, span ?? SourceSpan.Undefined, tagName); - } - - public static readonly RazorDiagnosticDescriptor UnexpectedClosingTag = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9981", - () => "Unexpected closing tag '{0}' with no matching start tag.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnexpectedClosingTag(SourceSpan? span, string tagName) - { - return RazorDiagnostic.Create(UnexpectedClosingTag, span ?? SourceSpan.Undefined, tagName); - } - - public static readonly RazorDiagnosticDescriptor UnexpectedClosingTagForVoidElement = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9983", - () => "Unexpected closing tag '{0}'. The element '{0}' is a void element, and should be used without a closing tag.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnexpectedClosingTagForVoidElement(SourceSpan? span, string tagName) - { - return RazorDiagnostic.Create(UnexpectedClosingTagForVoidElement, span ?? SourceSpan.Undefined, tagName); - } - - public static readonly RazorDiagnosticDescriptor InvalidHtmlContent = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9984", - () => "Found invalid HTML content. Text '{0}'", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_InvalidHtmlContent(SourceSpan? span, string text) - { - return RazorDiagnostic.Create(InvalidHtmlContent, span ?? SourceSpan.Undefined, text); - } - - public static readonly RazorDiagnosticDescriptor MultipleComponents = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9985", - () => "Multiple components use the tag '{0}'. Components: {1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_MultipleComponents(SourceSpan? span, string tagName, IEnumerable components) - { - return RazorDiagnostic.Create(MultipleComponents, span ?? SourceSpan.Undefined, tagName, string.Join(", ", components.Select(c => c.DisplayName))); - } - - public static readonly RazorDiagnosticDescriptor UnsupportedComplexContent = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9986", - () => "Component attributes do not support complex content (mixed C# and markup). Attribute: '{0}', text: '{1}'", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnsupportedComplexContent(IntermediateNode node, string attributeName) - { - var content = string.Join("", node.FindDescendantNodes().Select(t => t.Content)); - return RazorDiagnostic.Create(UnsupportedComplexContent, node.Source ?? SourceSpan.Undefined, attributeName, content); - } - - public static readonly RazorDiagnosticDescriptor PageDirective_CannotBeImported = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9987", - () => ComponentResources.PageDirectiveCannotBeImported, - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_CannotBeImported(SourceSpan source) - { - var fileName = Path.GetFileName(source.FilePath); - var diagnostic = RazorDiagnostic.Create(PageDirective_CannotBeImported, source, "page", fileName); - - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor PageDirective_MustSpecifyRoute = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9988", - () => "The @page directive must specify a route template. The route template must be enclosed in quotes and begin with the '/' character.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreatePageDirective_MustSpecifyRoute(SourceSpan? source) - { - var diagnostic = RazorDiagnostic.Create(PageDirective_MustSpecifyRoute, source ?? SourceSpan.Undefined); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor BindAttribute_Duplicates = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9989", - () => "The attribute '{0}' was matched by multiple bind attributes. Duplicates:{1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateBindAttribute_Duplicates(SourceSpan? source, string attribute, TagHelperDirectiveAttributeIntermediateNode[] attributes) - { - var diagnostic = RazorDiagnostic.Create( - BindAttribute_Duplicates, - source ?? SourceSpan.Undefined, - attribute, - Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor EventHandler_Duplicates = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9990", - () => "The attribute '{0}' was matched by multiple event handler attributes. Duplicates:{1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateEventHandler_Duplicates(SourceSpan? source, string attribute, TagHelperDirectiveAttributeIntermediateNode[] attributes) - { - var diagnostic = RazorDiagnostic.Create( - EventHandler_Duplicates, - source ?? SourceSpan.Undefined, - attribute, - Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor BindAttribute_InvalidSyntax = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9991", - () => "The attribute names could not be inferred from bind attribute '{0}'. Bind attributes should be of the form " + - "'bind' or 'bind-value' along with their corresponding optional parameters like 'bind-value:event', 'bind:format' etc.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateBindAttribute_InvalidSyntax(SourceSpan? source, string attribute) - { - var diagnostic = RazorDiagnostic.Create( - BindAttribute_InvalidSyntax, - source ?? SourceSpan.Undefined, - attribute); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor DisallowedScriptTag = new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9992", - () => "Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see https://go.microsoft.com/fwlink/?linkid=872131", - RazorDiagnosticSeverity.Error); - - // Reserved: BL9993 Component parameters should not be public - - public static RazorDiagnostic Create_DisallowedScriptTag(SourceSpan? source) - { - var diagnostic = RazorDiagnostic.Create(DisallowedScriptTag, source ?? SourceSpan.Undefined); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor TemplateInvalidLocation = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9994", - () => "Razor templates cannot be used in attributes.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_TemplateInvalidLocation(SourceSpan? source) - { - return RazorDiagnostic.Create(TemplateInvalidLocation, source ?? SourceSpan.Undefined); - } - - public static readonly RazorDiagnosticDescriptor ChildContentSetByAttributeAndBody = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9995", - () => "The child content property '{0}' is set by both the attribute and the element contents.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentSetByAttributeAndBody(SourceSpan? source, string attribute) - { - return RazorDiagnostic.Create(ChildContentSetByAttributeAndBody, source ?? SourceSpan.Undefined, attribute); - } - - public static readonly RazorDiagnosticDescriptor ChildContentMixedWithExplicitChildContent = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9996", - () => "Unrecognized child content inside component '{0}'. The component '{0}' accepts child content through the " + - "following top-level items: {1}.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentMixedWithExplicitChildContent(SourceSpan? source, ComponentIntermediateNode component) - { - var supportedElements = string.Join(", ", component.Component.GetChildContentProperties().Select(p => $"'{p.Name}'")); - return RazorDiagnostic.Create(ChildContentMixedWithExplicitChildContent, source ?? SourceSpan.Undefined, component.TagName, supportedElements); - } - - public static readonly RazorDiagnosticDescriptor ChildContentHasInvalidAttribute = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9997", - () => "Unrecognized attribute '{0}' on child content element '{1}'.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentHasInvalidAttribute(SourceSpan? source, string attribute, string element) - { - return RazorDiagnostic.Create(ChildContentHasInvalidAttribute, source ?? SourceSpan.Undefined, attribute, element); - } - - public static readonly RazorDiagnosticDescriptor ChildContentHasInvalidParameter = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9998", - () => "Invalid parameter name. The parameter name attribute '{0}' on child content element '{1}' can only include literal text.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentHasInvalidParameter(SourceSpan? source, string attribute, string element) - { - return RazorDiagnostic.Create(ChildContentHasInvalidParameter, source ?? SourceSpan.Undefined, attribute, element); - } - - public static readonly RazorDiagnosticDescriptor ChildContentRepeatedParameterName = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}9999", - () => "The child content element '{0}' of component '{1}' uses the same parameter name ('{2}') as enclosing child content " + - "element '{3}' of component '{4}'. Specify the parameter name like: '<{0} Context=\"another_name\"> to resolve the ambiguity", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentRepeatedParameterName( - SourceSpan? source, - ComponentChildContentIntermediateNode childContent1, - ComponentIntermediateNode component1, - ComponentChildContentIntermediateNode childContent2, - ComponentIntermediateNode component2) - { - Debug.Assert(childContent1.ParameterName == childContent2.ParameterName); - Debug.Assert(childContent1.IsParameterized); - Debug.Assert(childContent2.IsParameterized); - - return RazorDiagnostic.Create( - ChildContentRepeatedParameterName, - source ?? SourceSpan.Undefined, - childContent1.AttributeName, - component1.TagName, - childContent1.ParameterName, - childContent2.AttributeName, - component2.TagName); - } - - public static readonly RazorDiagnosticDescriptor GenericComponentMissingTypeArgument = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10000", - () => "The component '{0}' is missing required type arguments. Specify the missing types using the attributes: {1}.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_GenericComponentMissingTypeArgument( - SourceSpan? source, - ComponentIntermediateNode component, - IEnumerable attributes) - { - Debug.Assert(component.Component.IsGenericTypedComponent()); - - var attributesText = string.Join(", ", attributes.Select(a => $"'{a.Name}'")); - return RazorDiagnostic.Create(GenericComponentMissingTypeArgument, source ?? SourceSpan.Undefined, component.TagName, attributesText); - } - - public static readonly RazorDiagnosticDescriptor GenericComponentTypeInferenceUnderspecified = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10001", - () => "The type of component '{0}' cannot be inferred based on the values provided. Consider specifying the type arguments " + - "directly using the following attributes: {1}.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_GenericComponentTypeInferenceUnderspecified( - SourceSpan? source, - ComponentIntermediateNode component, - IEnumerable attributes) - { - Debug.Assert(component.Component.IsGenericTypedComponent()); - - var attributesText = string.Join(", ", attributes.Select(a => $"'{a.Name}'")); - return RazorDiagnostic.Create(GenericComponentTypeInferenceUnderspecified, source ?? SourceSpan.Undefined, component.TagName, attributesText); - } - - public static readonly RazorDiagnosticDescriptor ChildContentHasInvalidParameterOnComponent = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10002", - () => "Invalid parameter name. The parameter name attribute '{0}' on component '{1}' can only include literal text.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ChildContentHasInvalidParameterOnComponent(SourceSpan? source, string attribute, string element) - { - return RazorDiagnostic.Create(ChildContentHasInvalidParameterOnComponent, source ?? SourceSpan.Undefined, attribute, element); - } - - public static readonly RazorDiagnosticDescriptor UnsupportedComponentImportContent = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10003", - () => "Markup, code and block directives are not valid in component imports.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_UnsupportedComponentImportContent(SourceSpan? source) - { - return RazorDiagnostic.Create(UnsupportedComponentImportContent, source ?? SourceSpan.Undefined); - } - - public static readonly RazorDiagnosticDescriptor BindAttributeParameter_MissingBind = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10004", - () => "Could not find the non-parameterized bind attribute that corresponds to the attribute '{0}'.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateBindAttributeParameter_MissingBind(SourceSpan? source, string attribute) - { - var diagnostic = RazorDiagnostic.Create( - BindAttributeParameter_MissingBind, - source ?? SourceSpan.Undefined, - attribute); - return diagnostic; - } - - public static readonly RazorDiagnosticDescriptor DuplicateMarkupAttribute = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10007", - () => "The attribute '{0}' is used two or more times for this element. Attributes must be unique (case-insensitive).", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_DuplicateMarkupAttribute(string attributeName, SourceSpan? source = null) - { - return RazorDiagnostic.Create(DuplicateMarkupAttribute, source ?? SourceSpan.Undefined, attributeName); - } - - public static readonly RazorDiagnosticDescriptor DuplicateMarkupAttributeDirective = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10008", - () => - "The attribute '{0}' is used two or more times for this element. Attributes must be unique (case-insensitive). " + - "The attribute '{0}' is used by the '{1}' directive attribute.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_DuplicateMarkupAttributeDirective(string attributeName, string directiveAttributeName, SourceSpan? source = null) - { - return RazorDiagnostic.Create(DuplicateMarkupAttributeDirective, source ?? SourceSpan.Undefined, attributeName, directiveAttributeName); - } - - public static readonly RazorDiagnosticDescriptor DuplicateComponentParameter = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10009", - () => "The component parameter '{0}' is used two or more times for this component. Parameters must be unique (case-insensitive).", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_DuplicateComponentParameter(string attributeName, SourceSpan? source = null) - { - return RazorDiagnostic.Create(DuplicateComponentParameter, source ?? SourceSpan.Undefined, attributeName); - } - - public static readonly RazorDiagnosticDescriptor DuplicateComponentParameterDirective = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10010", - () => - "The component parameter '{0}' is used two or more times for this component. Parameters must be unique (case-insensitive). " + - "The component parameter '{0}' is generated by the '{1}' directive attribute.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_DuplicateComponentParameterDirective(string attributeName, string directiveAttributeName, SourceSpan? source = null) - { - return RazorDiagnostic.Create(DuplicateComponentParameterDirective, source ?? SourceSpan.Undefined, attributeName, directiveAttributeName); - } - - public static readonly RazorDiagnosticDescriptor ComponentNamesCannotStartWithLowerCase = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10011", - () => "Component '{0}' starts with a lowercase character. Component names cannot start with a lowercase character.", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_ComponentNamesCannotStartWithLowerCase(string componentName, SourceSpan? source = null) - { - return RazorDiagnostic.Create( - ComponentNamesCannotStartWithLowerCase, - source ?? SourceSpan.Undefined, - componentName); - } - - public static readonly RazorDiagnosticDescriptor UnexpectedMarkupElement = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10012", - () => "Found markup element with unexpected name '{0}'. If this is intended to be a component, add a @using directive for its namespace.", - RazorDiagnosticSeverity.Warning); - - public static RazorDiagnostic Create_UnexpectedMarkupElement(string elementName, SourceSpan? source = null) - { - return RazorDiagnostic.Create( - UnexpectedMarkupElement, - source ?? SourceSpan.Undefined, - elementName); - } - - public static readonly RazorDiagnosticDescriptor InconsistentStartAndEndTagName = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10013", - () => "The start tag name '{0}' does not match the end tag name '{1}'. Components must have matching start and end tag names (case-sensitive).", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic Create_InconsistentStartAndEndTagName(string startTagName, string endTagName, SourceSpan? source = null) - { - return RazorDiagnostic.Create( - InconsistentStartAndEndTagName, - source ?? SourceSpan.Undefined, - startTagName, - endTagName); - } - - public static readonly RazorDiagnosticDescriptor EventHandlerParameter_Duplicates = - new RazorDiagnosticDescriptor( - $"{DiagnosticPrefix}10014", - () => "The attribute '{0}' was matched by multiple event handlers parameter attributes. Duplicates:{1}", - RazorDiagnosticSeverity.Error); - - public static RazorDiagnostic CreateEventHandlerParameter_Duplicates(SourceSpan? source, string attribute, TagHelperDirectiveAttributeParameterIntermediateNode[] attributes) - { - var diagnostic = RazorDiagnostic.Create( - EventHandlerParameter_Duplicates, - source ?? SourceSpan.Undefined, - attribute, - Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); - return diagnostic; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDocumentClassifierPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDocumentClassifierPass.cs deleted file mode 100644 index d1828ca044a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDocumentClassifierPass.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentDocumentClassifierPass : DocumentClassifierPassBase - { - public static readonly string ComponentDocumentKind = "component.1.0"; - - /// - /// The fallback value of the root namespace. Only used if the fallback root namespace - /// was not passed in. - /// - public string FallbackRootNamespace { get; set; } = "__GeneratedComponent"; - - /// - /// Gets or sets whether to mangle class names. - /// - /// Set to true in the IDE so we can generated mangled class names. This is needed - /// to avoid conflicts between generated design-time code and the code in the editor. - /// - /// A better workaround for this would be to create a singlefilegenerator that overrides - /// the codegen process when a document is open, but this is more involved, so hacking - /// it for now. - /// - public bool MangleClassNames { get; set; } = false; - - protected override string DocumentKind => ComponentDocumentKind; - - // Ensure this runs before the MVC classifiers which have Order = 0 - public override int Order => -100; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - return FileKinds.IsComponent(codeDocument.GetFileKind()); - } - - protected override CodeTarget CreateTarget(RazorCodeDocument codeDocument, RazorCodeGenerationOptions options) - { - return new ComponentCodeTarget(options, TargetExtensions); - } - - /// - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - if (!codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var computedNamespace) || - !TryComputeClassName(codeDocument, out var computedClass)) - { - // If we can't compute a nice namespace (no relative path) then just generate something - // mangled. - computedNamespace = FallbackRootNamespace; - var checksum = Checksum.BytesToString(codeDocument.Source.GetChecksum()); - computedClass = $"AspNetCore_{checksum}"; - } - - var documentNode = codeDocument.GetDocumentIntermediateNode(); - if (char.IsLower(computedClass, 0)) - { - // We don't allow component names to start with a lowercase character. - documentNode.Diagnostics.Add( - ComponentDiagnosticFactory.Create_ComponentNamesCannotStartWithLowerCase(computedClass, documentNode.Source)); - } - - if (MangleClassNames) - { - computedClass = ComponentMetadata.MangleClassName(computedClass); - } - - @namespace.Content = computedNamespace; - @class.ClassName = computedClass; - @class.Modifiers.Clear(); - @class.Modifiers.Add("public"); - @class.Modifiers.Add("partial"); - - if (FileKinds.IsComponentImport(codeDocument.GetFileKind())) - { - // We don't want component imports to be considered as real component. - // But we still want to generate code for it so we can get diagnostics. - @class.BaseType = typeof(object).FullName; - - method.ReturnType = "void"; - method.MethodName = "Execute"; - method.Modifiers.Clear(); - method.Modifiers.Add("protected"); - - method.Parameters.Clear(); - } - else - { - @class.BaseType = ComponentsApi.ComponentBase.FullTypeName; - - var typeParamReferences = documentNode.FindDirectiveReferences(ComponentTypeParamDirective.Directive); - for (var i = 0; i < typeParamReferences.Count; i++) - { - var typeParamNode = (DirectiveIntermediateNode)typeParamReferences[i].Node; - if (typeParamNode.HasDiagnostics) - { - continue; - } - - @class.TypeParameters.Add(new TypeParameter() { ParameterName = typeParamNode.Tokens.First().Content, }); - } - - method.ReturnType = "void"; - method.MethodName = ComponentsApi.ComponentBase.BuildRenderTree; - method.Modifiers.Clear(); - method.Modifiers.Add("protected"); - method.Modifiers.Add("override"); - - method.Parameters.Clear(); - method.Parameters.Add(new MethodParameter() - { - ParameterName = ComponentsApi.RenderTreeBuilder.BuilderParameter, - TypeName = ComponentsApi.RenderTreeBuilder.FullTypeName, - }); - } - } - - private bool TryComputeClassName(RazorCodeDocument codeDocument, out string className) - { - className = null; - if (codeDocument.Source.FilePath == null || codeDocument.Source.RelativePath == null) - { - return false; - } - - var relativePath = NormalizePath(codeDocument.Source.RelativePath); - className = CSharpIdentifier.SanitizeIdentifier(Path.GetFileNameWithoutExtension(relativePath)); - return true; - } - - private static string NormalizePath(string path) - { - path = path.Replace('\\', '/'); - - return path; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDuplicateAttributeDiagnosticPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDuplicateAttributeDiagnosticPass.cs deleted file mode 100644 index 83936bf28d5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentDuplicateAttributeDiagnosticPass.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal sealed class ComponentMarkupDiagnosticPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - public static readonly int DefaultOrder = 10000; - - public override int Order => DefaultOrder; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - private Dictionary _attributes = new Dictionary(StringComparer.OrdinalIgnoreCase); - - public override void VisitMarkupElement(MarkupElementIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is HtmlAttributeIntermediateNode attribute && attribute.AttributeName != null) - { - if (_attributes.TryGetValue(attribute.AttributeName, out var other)) - { - // As a special case we want to point it out explicitly where a directive or other construct - // has emitted an attribute that causes a conflict. We're already looking at the lowered version - // of this construct, so it's easy to detect. We just need the original name to report the issue. - // - // Example: `bind-value` will set `value` and `onchange`. - - var originalAttributeName = - attribute.Annotations[ComponentMetadata.Common.OriginalAttributeName] as string ?? - other.node.Annotations[ComponentMetadata.Common.OriginalAttributeName] as string; - if (originalAttributeName != null) - { - other.node.Diagnostics.Add(ComponentDiagnosticFactory.Create_DuplicateMarkupAttributeDirective( - other.name, - originalAttributeName, - other.node.Source ?? node.Source)); - } - else - { - // This is a conflict in the code the user wrote. - other.node.Diagnostics.Add(ComponentDiagnosticFactory.Create_DuplicateMarkupAttribute( - other.name, - other.node.Source ?? node.Source)); - } - } - - // Replace the attribute we were previously tracking. Then if you have three, the two on the left will have - // diagnostics. - _attributes[attribute.AttributeName] = (attribute.AttributeName, attribute); - } - } - - _attributes.Clear(); - base.VisitMarkupElement(node); - } - - public override void VisitComponent(ComponentIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - // Note that we don't handle ChildContent cases here. Those have their own pass for diagnostics. - if (node.Children[i] is ComponentAttributeIntermediateNode attribute && attribute.AttributeName != null) - { - if (_attributes.TryGetValue(attribute.AttributeName, out var other)) - { - // As a special case we want to point it out explicitly where a directive or other construct - // has emitted an attribute that causes a conflict. We're already looking at the lowered version - // of this construct, so it's easy to detect. We just need the original name to report the issue. - // - // Example: `bind-Value` will set `Value` and `ValueChanged`. - var originalAttributeName = - attribute.Annotations[ComponentMetadata.Common.OriginalAttributeName] as string ?? - other.node.Annotations[ComponentMetadata.Common.OriginalAttributeName] as string; - if (originalAttributeName != null) - { - other.node.Diagnostics.Add(ComponentDiagnosticFactory.Create_DuplicateComponentParameterDirective( - other.name, - originalAttributeName, - other.node.Source ?? node.Source)); - } - else - { - // This is a conflict in the code the user wrote. - other.node.Diagnostics.Add(ComponentDiagnosticFactory.Create_DuplicateComponentParameter( - other.name, - other.node.Source ?? node.Source)); - } - } - - // Replace the attribute we were previously tracking. Then if you have three, the two on the left will have - // diagnostics. - _attributes[attribute.AttributeName] = (attribute.AttributeName, attribute); - } - } - - _attributes.Clear(); - base.VisitComponent(node); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentEventHandlerLoweringPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentEventHandlerLoweringPass.cs deleted file mode 100644 index 2e72dfe3979..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentEventHandlerLoweringPass.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentEventHandlerLoweringPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - public override int Order => 50; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - // For each event handler *usage* we need to rewrite the tag helper node to map to basic constructs. - // Each usage will be represented by a tag helper property that is a descendant of either - // a component or element. - var references = documentNode.FindDescendantReferences(); - var parents = new HashSet(); - for (var i = 0; i < references.Count; i++) - { - parents.Add(references[i].Parent); - } - - // We need to do something similar for directive attribute parameters like @onclick:preventDefault. - var parameterReferences = documentNode.FindDescendantReferences(); - for (var i = 0; i < parameterReferences.Count; i++) - { - parents.Add(parameterReferences[i].Parent); - } - - foreach (var parent in parents) - { - ProcessDuplicates(parent); - } - - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperDirectiveAttributeIntermediateNode)reference.Node; - - if (!reference.Parent.Children.Contains(node)) - { - // This node was removed as a duplicate, skip it. - continue; - } - - if (node.TagHelper.IsEventHandlerTagHelper()) - { - reference.Replace(RewriteUsage(reference.Parent, node)); - } - } - - for (var i = 0; i < parameterReferences.Count; i++) - { - var reference = parameterReferences[i]; - var node = (TagHelperDirectiveAttributeParameterIntermediateNode)reference.Node; - - if (!reference.Parent.Children.Contains(node)) - { - // This node was removed as a duplicate, skip it. - continue; - } - - if (node.TagHelper.IsEventHandlerTagHelper()) - { - reference.Replace(RewriteParameterUsage(reference.Parent, node)); - } - } - } - - private void ProcessDuplicates(IntermediateNode parent) - { - // Reverse order because we will remove nodes. - // - // Each 'property' node could be duplicated if there are multiple tag helpers that match that - // particular attribute. This is likely to happen when a component also defines something like - // OnClick. We want to remove the 'onclick' and let it fall back to be handled by the component. - for (var i = parent.Children.Count - 1; i >= 0; i--) - { - var eventHandler = parent.Children[i] as TagHelperPropertyIntermediateNode; - if (eventHandler != null && - eventHandler.TagHelper != null && - eventHandler.TagHelper.IsEventHandlerTagHelper()) - { - for (var j = 0; j < parent.Children.Count; j++) - { - var componentAttribute = parent.Children[j] as ComponentAttributeIntermediateNode; - if (componentAttribute != null && - componentAttribute.TagHelper != null && - componentAttribute.TagHelper.IsComponentTagHelper() && - componentAttribute.AttributeName == eventHandler.AttributeName) - { - // Found a duplicate - remove the 'fallback' in favor of the component's own handling. - parent.Children.RemoveAt(i); - break; - } - } - } - } - - // If we still have duplicates at this point then they are genuine conflicts. - var duplicates = parent.Children - .OfType() - .Where(p => p.TagHelper?.IsEventHandlerTagHelper() ?? false) - .GroupBy(p => p.AttributeName) - .Where(g => g.Count() > 1); - - foreach (var duplicate in duplicates) - { - parent.Diagnostics.Add(ComponentDiagnosticFactory.CreateEventHandler_Duplicates( - parent.Source, - duplicate.Key, - duplicate.ToArray())); - foreach (var property in duplicate) - { - parent.Children.Remove(property); - } - } - - var parameterDuplicates = parent.Children - .OfType() - .Where(p => p.TagHelper?.IsEventHandlerTagHelper() ?? false) - .GroupBy(p => p.AttributeName) - .Where(g => g.Count() > 1); - - foreach (var duplicate in parameterDuplicates) - { - parent.Diagnostics.Add(ComponentDiagnosticFactory.CreateEventHandlerParameter_Duplicates( - parent.Source, - duplicate.Key, - duplicate.ToArray())); - foreach (var property in duplicate) - { - parent.Children.Remove(property); - } - } - } - - private IntermediateNode RewriteUsage(IntermediateNode parent, TagHelperDirectiveAttributeIntermediateNode node) - { - var original = GetAttributeContent(node); - if (original.Count == 0) - { - // This can happen in error cases, the parser will already have flagged this - // as an error, so ignore it. - return node; - } - - // Now rewrite the content of the value node to look like: - // - // EventCallback.Factory.Create(this, ) - // - // This method is overloaded on string and T, which means that it will put the code in the - // correct context for intellisense when typing in the attribute. - var eventArgsType = node.TagHelper.GetEventArgsType(); - var tokens = new List() - { - new IntermediateToken() - { - Content = $"{ComponentsApi.EventCallback.FactoryAccessor}.{ComponentsApi.EventCallbackFactory.CreateMethod}<{eventArgsType}>(this, ", - Kind = TokenKind.CSharp - }, - new IntermediateToken() - { - Content = $")", - Kind = TokenKind.CSharp - } - }; - - for (var i = 0; i < original.Count; i++) - { - tokens.Insert(i + 1, original[i]); - } - - var attributeName = node.AttributeName; - - if (parent is MarkupElementIntermediateNode) - { - var result = new HtmlAttributeIntermediateNode() - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - AttributeName = attributeName, - Source = node.Source, - - Prefix = attributeName + "=\"", - Suffix = "\"", - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - result.Diagnostics.Add(node.Diagnostics[i]); - } - - result.Children.Add(new CSharpExpressionAttributeValueIntermediateNode()); - for (var i = 0; i < tokens.Count; i++) - { - result.Children[0].Children.Add(tokens[i]); - } - - return result; - } - else - { - var result = new ComponentAttributeIntermediateNode(node) - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - }, - }; - - result.Children.Clear(); - result.Children.Add(new CSharpExpressionIntermediateNode()); - for (var i = 0; i < tokens.Count; i++) - { - result.Children[0].Children.Add(tokens[i]); - } - - return result; - } - } - - private static IReadOnlyList GetAttributeContent(IntermediateNode node) - { - var template = node.FindDescendantNodes().FirstOrDefault(); - if (template != null) - { - // See comments in TemplateDiagnosticPass - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_TemplateInvalidLocation(template.Source)); - return new[] { new IntermediateToken() { Kind = TokenKind.CSharp, Content = string.Empty, }, }; - } - - if (node.Children.Count == 1 && node.Children[0] is HtmlContentIntermediateNode htmlContentNode) - { - // This case can be hit for a 'string' attribute. We want to turn it into - // an expression. - var tokens = htmlContentNode.FindDescendantNodes(); - - var content = "\"" + string.Join(string.Empty, tokens.Select(t => t.Content.Replace("\"", "\\\""))) + "\""; - return new[] { new IntermediateToken() { Content = content, Kind = TokenKind.CSharp, } }; - } - else - { - return node.FindDescendantNodes(); - } - } - - private IntermediateNode RewriteParameterUsage(IntermediateNode parent, TagHelperDirectiveAttributeParameterIntermediateNode node) - { - // Now rewrite the node to look like: - // - // builder.AddEventPreventDefaultAttribute(2, "onclick", true); // If minimized. - // or - // builder.AddEventPreventDefaultAttribute(2, "onclick", someBoolExpression); // If a bool expression is provided in the value. - - string eventHandlerMethod; - if (node.BoundAttributeParameter.Name == "preventDefault") - { - eventHandlerMethod = ComponentsApi.RenderTreeBuilder.AddEventPreventDefaultAttribute; - } - else if (node.BoundAttributeParameter.Name == "stopPropagation") - { - eventHandlerMethod = ComponentsApi.RenderTreeBuilder.AddEventStopPropagationAttribute; - } - else - { - // Unsupported event handler attribute parameter. This can only happen if bound attribute descriptor - // is configured to expect a parameter other than 'preventDefault' and 'stopPropagation'. - return node; - } - - var result = new ComponentAttributeIntermediateNode(node) - { - Annotations = - { - [ComponentMetadata.Common.OriginalAttributeName] = node.OriginalAttributeName, - [ComponentMetadata.Common.AddAttributeMethodName] = eventHandlerMethod, - }, - }; - - result.Children.Clear(); - if (node.AttributeStructure != AttributeStructure.Minimized) - { - var tokens = GetAttributeContent(node); - result.Children.Add(new CSharpExpressionIntermediateNode()); - result.Children[0].Children.AddRange(tokens); - } - - return result; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentGenericTypePass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentGenericTypePass.cs deleted file mode 100644 index 09ba98516f5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentGenericTypePass.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - // This pass: - // 1. Adds diagnostics for missing generic type arguments - // 2. Rewrites the type name of the component to substitute generic type arguments - // 3. Rewrites the type names of parameters/child content to substitute generic type arguments - internal class ComponentGenericTypePass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - private TypeNameFeature _typeNameFeature; - - // Runs after components/eventhandlers/ref/bind/templates. We want to validate every component - // and it's usage of ChildContent. - public override int Order => 160; - - private TypeNameFeature TypeNameFeature - { - get - { - // Doing lazy intialization here to avoid making things really complicated when we don't - // need to exercise this code in tests. - if (_typeNameFeature == null) - { - _typeNameFeature = GetRequiredFeature(); - } - - return _typeNameFeature; - } - } - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var visitor = new Visitor(this); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - private readonly ComponentGenericTypePass _pass; - - // Incrementing ID for type inference method names - private int _id; - - public Visitor(ComponentGenericTypePass pass) - { - _pass = pass; - } - - public override void VisitComponent(ComponentIntermediateNode node) - { - if (node.Component.IsGenericTypedComponent()) - { - // Not generic, ignore. - Process(node); - } - - base.VisitDefault(node); - } - - private void Process(ComponentIntermediateNode node) - { - // First collect all of the information we have about each type parameter - // - // Listing all type parameters that exist - var bindings = new Dictionary(); - foreach (var attribute in node.Component.GetTypeParameters()) - { - bindings.Add(attribute.Name, new Binding() { Attribute = attribute, }); - } - - // Listing all type arguments that have been specified. - var hasTypeArgumentSpecified = false; - foreach (var typeArgumentNode in node.TypeArguments) - { - hasTypeArgumentSpecified = true; - - var binding = bindings[typeArgumentNode.TypeParameterName]; - binding.Node = typeArgumentNode; - binding.Content = GetContent(typeArgumentNode); - } - - if (hasTypeArgumentSpecified) - { - // OK this means that the developer has specified at least one type parameter. - // Either they specified everything and its OK to rewrite, or its an error. - if (ValidateTypeArguments(node, bindings)) - { - var mappings = bindings.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Content); - RewriteTypeNames(_pass.TypeNameFeature.CreateGenericTypeRewriter(mappings), node); - } - - return; - } - - // OK if we get here that means that no type arguments were specified, so we will try to infer - // the type. - // - // The actual inference is done by the C# compiler, we just emit an a method that represents the - // use of this component. - - // Since we're generating code in a different namespace, we need to 'global qualify' all of the types - // to avoid clashes with our generated code. - RewriteTypeNames(_pass.TypeNameFeature.CreateGlobalQualifiedTypeNameRewriter(bindings.Keys), node); - - // - // We need to verify that an argument was provided that 'covers' each type parameter. - // - // For example, consider a repeater where the generic type is the 'item' type, but the developer has - // not set the items. We won't be able to do type inference on this and so it will just be nonsense. - var attributes = node.Attributes.Select(a => a.BoundAttribute).Concat(node.ChildContents.Select(c => c.BoundAttribute)); - foreach (var attribute in attributes) - { - if (attribute == null) - { - // Will be null for attributes set on the component that don't match a declared component parameter - continue; - } - - // Now we need to parse the type name and extract the generic parameters. - // - // Two cases; - // 1. name is a simple identifier like TItem - // 2. name contains type parameters like Dictionary - if (!attribute.IsGenericTypedProperty()) - { - continue; - } - - var typeParameters = _pass.TypeNameFeature.ParseTypeParameters(attribute.TypeName); - if (typeParameters.Count == 0) - { - bindings.Remove(attribute.TypeName); - } - else - { - for (var i = 0; i < typeParameters.Count; i++) - { - var typeParameter = typeParameters[i]; - bindings.Remove(typeParameter.ToString()); - } - } - } - - // If any bindings remain then this means we would never be able to infer the arguments of this - // component usage because the user hasn't set properties that include all of the types. - if (bindings.Count > 0) - { - // However we still want to generate 'type inference' code because we want the errors to be as - // helpful as possible. So let's substitute 'object' for all of those type parameters, and add - // an error. - var mappings = bindings.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Content); - RewriteTypeNames(_pass.TypeNameFeature.CreateGenericTypeRewriter(mappings), node); - - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_GenericComponentTypeInferenceUnderspecified(node.Source, node, node.Component.GetTypeParameters())); - } - - // Next we need to generate a type inference 'method' node. This represents a method that we will codegen that - // contains all of the operations on the render tree building. Calling a method to operate on the builder - // will allow the C# compiler to perform type inference. - var documentNode = (DocumentIntermediateNode)Ancestors[Ancestors.Count - 1]; - CreateTypeInferenceMethod(documentNode, node); - } - - private string GetContent(ComponentTypeArgumentIntermediateNode node) - { - return string.Join(string.Empty, node.FindDescendantNodes().Where(t => t.IsCSharp).Select(t => t.Content)); - } - - private static bool ValidateTypeArguments(ComponentIntermediateNode node, Dictionary bindings) - { - var missing = new List(); - foreach (var binding in bindings) - { - if (binding.Value.Node == null || string.IsNullOrWhiteSpace(binding.Value.Content)) - { - missing.Add(binding.Value.Attribute); - } - } - - if (missing.Count > 0) - { - // We add our own error for this because its likely the user will see other errors due - // to incorrect codegen without the types. Our errors message will pretty clearly indicate - // what to do, whereas the other errors might be confusing. - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_GenericComponentMissingTypeArgument(node.Source, node, missing)); - return false; - } - - return true; - } - - private void RewriteTypeNames(TypeNameRewriter rewriter, ComponentIntermediateNode node) - { - // Rewrite the component type name - node.TypeName = rewriter.Rewrite(node.TypeName); - - foreach (var attribute in node.Attributes) - { - string globallyQualifiedTypeName = null; - - if (attribute.TypeName != null) - { - globallyQualifiedTypeName = rewriter.Rewrite(attribute.TypeName); - attribute.GloballyQualifiedTypeName = globallyQualifiedTypeName; - } - - if (attribute.BoundAttribute?.IsGenericTypedProperty() ?? false && attribute.TypeName != null) - { - // If we know the type name, then replace any generic type parameter inside it with - // the known types. - attribute.TypeName = globallyQualifiedTypeName; - } - else if (attribute.TypeName == null && (attribute.BoundAttribute?.IsDelegateProperty() ?? false)) - { - // This is a weakly typed delegate, treat it as Action - attribute.TypeName = "System.Action"; - } - else if (attribute.TypeName == null && (attribute.BoundAttribute?.IsEventCallbackProperty() ?? false)) - { - // This is a weakly typed event-callback, treat it as EventCallback (non-generic) - attribute.TypeName = ComponentsApi.EventCallback.FullTypeName; - } - else if (attribute.TypeName == null) - { - // This is a weakly typed attribute, treat it as System.Object - attribute.TypeName = "System.Object"; - } - } - - foreach (var capture in node.Captures) - { - if (capture.IsComponentCapture && capture.ComponentCaptureTypeName != null) - { - capture.ComponentCaptureTypeName = rewriter.Rewrite(capture.ComponentCaptureTypeName); - } - else if (capture.IsComponentCapture) - { - capture.ComponentCaptureTypeName = "System.Object"; - } - } - - foreach (var childContent in node.ChildContents) - { - if (childContent.BoundAttribute?.IsGenericTypedProperty() ?? false && childContent.TypeName != null) - { - // If we know the type name, then replace any generic type parameter inside it with - // the known types. - childContent.TypeName = rewriter.Rewrite(childContent.TypeName); - } - else if (childContent.IsParameterized) - { - // This is a non-generic parameterized child content like RenderFragment, leave it as is. - } - else - { - // This is a weakly typed child content, treat it as RenderFragment - childContent.TypeName = ComponentsApi.RenderFragment.FullTypeName; - } - } - } - - private void CreateTypeInferenceMethod(DocumentIntermediateNode documentNode, ComponentIntermediateNode node) - { - var @namespace = documentNode.FindPrimaryNamespace().Content; - @namespace = string.IsNullOrEmpty(@namespace) ? "__Blazor" : "__Blazor." + @namespace; - @namespace += "." + documentNode.FindPrimaryClass().ClassName; - - var typeInferenceNode = new ComponentTypeInferenceMethodIntermediateNode() - { - Component = node, - - // Method name is generated and guaranteed not to collide, since it's unique for each - // component call site. - MethodName = $"Create{CSharpIdentifier.SanitizeIdentifier(node.TagName)}_{_id++}", - FullTypeName = @namespace + ".TypeInference", - }; - - node.TypeInferenceNode = typeInferenceNode; - - // Now we need to insert the type inference node into the tree. - var namespaceNode = documentNode.Children - .OfType() - .Where(n => n.Annotations.Contains(new KeyValuePair(ComponentMetadata.Component.GenericTypedKey, bool.TrueString))) - .FirstOrDefault(); - if (namespaceNode == null) - { - namespaceNode = new NamespaceDeclarationIntermediateNode() - { - Annotations = - { - { ComponentMetadata.Component.GenericTypedKey, bool.TrueString }, - }, - Content = @namespace, - }; - - documentNode.Children.Add(namespaceNode); - } - - var classNode = namespaceNode.Children - .OfType() - .Where(n => n.ClassName == "TypeInference") - .FirstOrDefault(); - if (classNode == null) - { - classNode = new ClassDeclarationIntermediateNode() - { - ClassName = "TypeInference", - Modifiers = - { - "internal", - "static", - }, - }; - namespaceNode.Children.Add(classNode); - } - - classNode.Children.Add(typeInferenceNode); - } - } - - private class Binding - { - public BoundAttributeDescriptor Attribute { get; set; } - - public string Content { get; set; } - - public ComponentTypeArgumentIntermediateNode Node { get; set; } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentImportProjectFeature.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentImportProjectFeature.cs deleted file mode 100644 index 2e689044de5..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentImportProjectFeature.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentImportProjectFeature : IImportProjectFeature - { - private static readonly char[] PathSeparators = new char[]{ '/', '\\' }; - - // Using explicit newlines here to avoid fooling our baseline tests - private readonly static string DefaultUsingImportContent = - "\r\n" + - "@using System\r\n" + - "@using System.Collections.Generic\r\n" + - "@using System.Linq\r\n" + - "@using System.Threading.Tasks\r\n" + - "@using " + ComponentsApi.RenderFragment.Namespace + "\r\n"; // Microsoft.AspNetCore.Components - - public RazorProjectEngine ProjectEngine { get; set; } - - public IReadOnlyList GetImports(RazorProjectItem projectItem) - { - if (projectItem == null) - { - throw new ArgumentNullException(nameof(projectItem)); - } - - // Don't add Component imports for a non-component. - if (!FileKinds.IsComponent(projectItem.FileKind)) - { - return Array.Empty(); - } - - var imports = new List() - { - new VirtualProjectItem(DefaultUsingImportContent), - }; - - // We add hierarchical imports second so any default directive imports can be overridden. - imports.AddRange(GetHierarchicalImports(ProjectEngine.FileSystem, projectItem)); - - return imports; - } - - // Temporary API until we fully convert to RazorProjectEngine - public IEnumerable GetHierarchicalImports(RazorProject project, RazorProjectItem projectItem) - { - // We want items in descending order. FindHierarchicalItems returns items in ascending order. - return project.FindHierarchicalItems(projectItem.FilePath, ComponentMetadata.ImportsFileName).Reverse(); - } - - private class VirtualProjectItem : RazorProjectItem - { - private readonly byte[] _bytes; - - public VirtualProjectItem(string content) - { - var preamble = Encoding.UTF8.GetPreamble(); - var contentBytes = Encoding.UTF8.GetBytes(content); - - _bytes = new byte[preamble.Length + contentBytes.Length]; - preamble.CopyTo(_bytes, 0); - contentBytes.CopyTo(_bytes, preamble.Length); - } - - public override string BasePath => null; - - public override string FilePath => null; - - public override string PhysicalPath => null; - - public override bool Exists => true; - - public override string FileKind => FileKinds.ComponentImport; - - public override Stream Read() => new MemoryStream(_bytes); - } - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirective.cs deleted file mode 100644 index 1af26eb5082..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirective.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - // Much of the following is equivalent to Microsoft.AspNetCore.Mvc.Razor.Extensions's InjectDirective, - // but this one outputs properties annotated for Components's property injector, plus it doesn't need to - // support multiple CodeTargets. - - internal class ComponentInjectDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "inject", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken("TypeName", "The type of the service to inject."); - builder.AddMemberToken("PropertyName", "The name of the property."); - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = "Inject a service from the application's service container into a property."; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive, FileKinds.Component, FileKinds.ComponentImport); - builder.Features.Add(new ComponentInjectDirectivePass()); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirectivePass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirectivePass.cs deleted file mode 100644 index 6ad554b03a2..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectDirectivePass.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentInjectDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore( - RazorCodeDocument codeDocument, - DocumentIntermediateNode documentNode) - { - var visitor = new Visitor(); - visitor.Visit(documentNode); - - var properties = new HashSet(StringComparer.Ordinal); - var classNode = documentNode.FindPrimaryClass(); - - for (var i = visitor.Directives.Count - 1; i >= 0; i--) - { - var directive = visitor.Directives[i]; - var tokens = directive.Tokens.ToArray(); - if (tokens.Length < 2) - { - continue; - } - - var typeName = tokens[0].Content; - var memberName = tokens[1].Content; - - if (!properties.Add(memberName)) - { - continue; - } - - classNode.Children.Add(new ComponentInjectIntermediateNode(typeName, memberName)); - } - } - - private class Visitor : IntermediateNodeWalker - { - public IList Directives { get; } - = new List(); - - public override void VisitDirective(DirectiveIntermediateNode node) - { - if (node.Directive == ComponentInjectDirective.Directive) - { - Directives.Add(node); - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectIntermediateNode.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectIntermediateNode.cs deleted file mode 100644 index ee0363fd7e9..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentInjectIntermediateNode.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentInjectIntermediateNode : ExtensionIntermediateNode - { - private static readonly IList _injectedPropertyModifiers = new[] - { - $"[global::{ComponentsApi.InjectAttribute.FullTypeName}]", - "private" // Encapsulation is the default - }; - - public ComponentInjectIntermediateNode(string typeName, string memberName) - { - TypeName = typeName; - MemberName = memberName; - } - - public string TypeName { get; } - - public string MemberName { get; } - - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - - public override void Accept(IntermediateNodeVisitor visitor) - { - if (visitor == null) - { - throw new ArgumentNullException(nameof(visitor)); - } - - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - context.CodeWriter.WriteAutoPropertyDeclaration( - _injectedPropertyModifiers, - TypeName, - MemberName); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentIntermediateNodePassBase.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentIntermediateNodePassBase.cs deleted file mode 100644 index 5aa169ff4f1..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentIntermediateNodePassBase.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal abstract class ComponentIntermediateNodePassBase : IntermediateNodePassBase - { - protected bool IsComponentDocument(DocumentIntermediateNode document) - { - if (document == null) - { - throw new ArgumentNullException(nameof(document)); - } - - return string.Equals(document.DocumentKind, ComponentDocumentClassifierPass.ComponentDocumentKind, StringComparison.Ordinal); - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentKeyLoweringPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentKeyLoweringPass.cs deleted file mode 100644 index 17870031012..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentKeyLoweringPass.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentKeyLoweringPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Run after component lowering pass - public override int Order => 50; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - var references = documentNode.FindDescendantReferences(); - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperDirectiveAttributeIntermediateNode)reference.Node; - - if (node.TagHelper.IsKeyTagHelper()) - { - reference.Replace(RewriteUsage(reference.Parent, node)); - } - } - } - - private IntermediateNode RewriteUsage(IntermediateNode parent, TagHelperDirectiveAttributeIntermediateNode node) - { - // If we can't get a nonempty attribute value, do nothing because there will - // already be a diagnostic for empty values - var keyValueToken = DetermineKeyValueToken(node); - if (keyValueToken == null) - { - return node; - } - - return new SetKeyIntermediateNode(keyValueToken); - } - - private IntermediateToken DetermineKeyValueToken(TagHelperDirectiveAttributeIntermediateNode attributeNode) - { - IntermediateToken foundToken = null; - - if (attributeNode.Children.Count == 1) - { - if (attributeNode.Children[0] is IntermediateToken token) - { - foundToken = token; - } - else if (attributeNode.Children[0] is CSharpExpressionIntermediateNode csharpNode) - { - if (csharpNode.Children.Count == 1) - { - foundToken = csharpNode.Children[0] as IntermediateToken; - } - } - } - - return !string.IsNullOrWhiteSpace(foundToken?.Content) ? foundToken : null; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirective.cs deleted file mode 100644 index 394bed3b561..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirective.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal static class ComponentLayoutDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "layout", - DirectiveKind.SingleLine, - builder => - { - builder.AddTypeToken(ComponentResources.LayoutDirective_TypeToken_Name, ComponentResources.LayoutDirective_TypeToken_Description); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.Description = ComponentResources.LayoutDirective_Description; - }); - - public static void Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive, FileKinds.Component, FileKinds.ComponentImport); - builder.Features.Add(new ComponentLayoutDirectivePass()); - } - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirectivePass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirectivePass.cs deleted file mode 100644 index 244c95df78b..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLayoutDirectivePass.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentLayoutDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - return; - } - - var directives = documentNode.FindDirectiveReferences(ComponentLayoutDirective.Directive); - if (directives.Count == 0) - { - return; - } - - var token = ((DirectiveIntermediateNode)directives[0].Node).Tokens.FirstOrDefault(); - if (token == null) - { - return; - } - - var attributeNode = new CSharpCodeIntermediateNode(); - attributeNode.Children.Add(new IntermediateToken() - { - Kind = TokenKind.CSharp, - Content = $"[{ComponentsApi.LayoutAttribute.FullTypeName}(typeof({token.Content}))]", - }); - - // Insert the new attribute on top of the class - for (var i = 0; i < @namespace.Children.Count; i++) - { - if (object.ReferenceEquals(@namespace.Children[i], @class)) - { - @namespace.Children.Insert(i, attributeNode); - break; - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLoweringPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLoweringPass.cs deleted file mode 100644 index 3a7e3c748e2..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentLoweringPass.cs +++ /dev/null @@ -1,520 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentLoweringPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // This pass runs earlier than our other passes that 'lower' specific kinds of attributes. - public override int Order => 0; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - // For each component *usage* we need to rewrite the tag helper node to map to the relevant component - // APIs. - var references = documentNode.FindDescendantReferences(); - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperIntermediateNode)reference.Node; - if (node.TagHelpers.Any(t => t.IsChildContentTagHelper())) - { - // This is a child content tag helper. This will be rewritten when we visit its parent. - continue; - } - - // The element didn't match any child content descriptors. Look for any matching component descriptors. - var count = 0; - for (var j = 0; j < node.TagHelpers.Count; j++) - { - if (node.TagHelpers[j].IsComponentTagHelper()) - { - // Only allow a single component tag helper per element. If there are multiple, we'll just consider - // the first one and ignore the others. - if (++count > 1) - { - node.Diagnostics.Add(ComponentDiagnosticFactory.Create_MultipleComponents(node.Source, node.TagName, node.TagHelpers)); - break; - } - } - } - - if (count >= 1) - { - reference.Replace(RewriteAsComponent(node, node.TagHelpers.First(t => t.IsComponentTagHelper()))); - } - else - { - reference.Replace(RewriteAsElement(node)); - } - } - } - - private ComponentIntermediateNode RewriteAsComponent(TagHelperIntermediateNode node, TagHelperDescriptor tagHelper) - { - var component = new ComponentIntermediateNode() - { - Component = tagHelper, - Source = node.Source, - TagName = node.TagName, - TypeName = tagHelper.GetTypeName(), - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - component.Diagnostics.Add(node.Diagnostics[i]); - } - - var visitor = new ComponentRewriteVisitor(component); - visitor.Visit(node); - - // Fixup the parameter names of child content elements. We can't do this during the rewrite - // because we see the nodes in the wrong order. - foreach (var childContent in component.ChildContents) - { - childContent.ParameterName = childContent.ParameterName ?? component.ChildContentParameterName ?? ComponentMetadata.ChildContent.DefaultParameterName; - } - - return component; - } - - private MarkupElementIntermediateNode RewriteAsElement(TagHelperIntermediateNode node) - { - var result = new MarkupElementIntermediateNode() - { - Source = node.Source, - TagName = node.TagName, - }; - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - result.Diagnostics.Add(node.Diagnostics[i]); - } - - var visitor = new ElementRewriteVisitor(result.Children); - visitor.Visit(node); - - return result; - } - - private class ComponentRewriteVisitor : IntermediateNodeWalker - { - private readonly ComponentIntermediateNode _component; - private readonly IntermediateNodeCollection _children; - - public ComponentRewriteVisitor(ComponentIntermediateNode component) - { - _component = component; - _children = component.Children; - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - // Visit children, we're replacing this node. - base.VisitDefault(node); - } - - public override void VisitTagHelperBody(TagHelperBodyIntermediateNode node) - { - // Wrap the component's children in a ChildContent node if we have some significant - // content. - if (node.Children.Count == 0) - { - return; - } - - // If we get a single HTML content node containing only whitespace, - // then this is probably a tag that looks like ' - // - // We don't want to create a child content for this case, because it can conflict - // with a child content that's set via an attribute. We don't want the formatting - // of insignificant whitespace to be annoying when setting attributes directly. - if (node.Children.Count == 1 && IsIgnorableWhitespace(node.Children[0])) - { - return; - } - - // From here we fork and behave differently based on whether the component's child content is - // implicit or explicit. - // - // Explicit child content will look like:
...
- // compared with implicit:
- // - // Using implicit child content: - // 1. All content is grouped into a single child content lambda, and assigned to the property 'ChildContent' - // - // Using explicit child content: - // 1. All content must be contained within 'child content' elements that are direct children - // 2. Whitespace outside of 'child content' elements will be ignored (not an error) - // 3. Non-whitespace outside of 'child content' elements will cause an error - // 4. All 'child content' elements must match parameters on the component (exception for ChildContent, - // which is always allowed. - // 5. Each 'child content' element will generate its own lambda, and be assigned to the property - // that matches the element name. - if (!node.Children.OfType().Any(t => t.TagHelpers.Any(th => th.IsChildContentTagHelper()))) - { - // This node has implicit child content. It may or may not have an attribute that matches. - var attribute = _component.Component.BoundAttributes - .Where(a => string.Equals(a.Name, ComponentsApi.RenderTreeBuilder.ChildContent, StringComparison.Ordinal)) - .FirstOrDefault(); - _children.Add(RewriteChildContent(attribute, node.Source, node.Children)); - return; - } - - // OK this node has explicit child content, we can rewrite it by visiting each node - // in sequence, since we: - // a) need to rewrite each child content element - // b) any significant content outside of a child content is an error - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - if (IsIgnorableWhitespace(child)) - { - continue; - } - - if (child is TagHelperIntermediateNode tagHelperNode && - tagHelperNode.TagHelpers.Any(th => th.IsChildContentTagHelper())) - { - // This is a child content element - var attribute = _component.Component.BoundAttributes - .Where(a => string.Equals(a.Name, tagHelperNode.TagName, StringComparison.Ordinal)) - .FirstOrDefault(); - _children.Add(RewriteChildContent(attribute, child.Source, child.Children)); - continue; - } - - // If we get here then this is significant content inside a component with explicit child content. - child.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentMixedWithExplicitChildContent(child.Source, _component)); - _children.Add(child); - } - - bool IsIgnorableWhitespace(IntermediateNode n) - { - if (n is HtmlContentIntermediateNode html && - html.Children.Count == 1 && - html.Children[0] is IntermediateToken token && - string.IsNullOrWhiteSpace(token.Content)) - { - return true; - } - - return false; - } - } - - private ComponentChildContentIntermediateNode RewriteChildContent(BoundAttributeDescriptor attribute, SourceSpan? source, IntermediateNodeCollection children) - { - var childContent = new ComponentChildContentIntermediateNode() - { - BoundAttribute = attribute, - Source = source, - TypeName = attribute?.TypeName ?? ComponentsApi.RenderFragment.FullTypeName, - }; - - // There are two cases here: - // 1. Implicit child content - the children will be non-taghelper nodes, just accept them - // 2. Explicit child content - the children will be various tag helper nodes, that need special processing. - for (var i = 0; i < children.Count; i++) - { - var child = children[i]; - if (child is TagHelperBodyIntermediateNode body) - { - // The body is all of the content we want to render, the rest of the children will - // be the attributes. - for (var j = 0; j < body.Children.Count; j++) - { - childContent.Children.Add(body.Children[j]); - } - } - else if (child is TagHelperPropertyIntermediateNode property) - { - if (property.BoundAttribute.IsChildContentParameterNameProperty()) - { - // Check for each child content with a parameter name, that the parameter name is specified - // with literal text. For instance, the following is not allowed and should generate a diagnostic. - // - // ... - if (TryGetAttributeStringContent(property, out var parameterName)) - { - childContent.ParameterName = parameterName; - continue; - } - - // The parameter name is invalid. - childContent.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentHasInvalidParameter(property.Source, property.AttributeName, attribute.Name)); - continue; - } - - // This is an unrecognized tag helper bound attribute. This will practically never happen unless the child content descriptor was misconfigured. - childContent.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentHasInvalidAttribute(property.Source, property.AttributeName, attribute.Name)); - } - else if (child is TagHelperHtmlAttributeIntermediateNode a) - { - // This is an HTML attribute on a child content. - childContent.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentHasInvalidAttribute(a.Source, a.AttributeName, attribute.Name)); - } - else if (child is TagHelperDirectiveAttributeIntermediateNode directiveAttribute) - { - // We don't support directive attributes inside child content, this is possible if you try to do something like put '@ref' on a child content. - childContent.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentHasInvalidAttribute(directiveAttribute.Source, directiveAttribute.OriginalAttributeName, attribute.Name)); - } - else - { - // This is some other kind of node (likely an implicit child content) - childContent.Children.Add(child); - } - } - - return childContent; - } - - private bool TryGetAttributeStringContent(TagHelperPropertyIntermediateNode property, out string content) - { - // The success path looks like - a single HTML Attribute Value node with tokens - if (property.Children.Count == 1 && - property.Children[0] is HtmlContentIntermediateNode html) - { - content = string.Join(string.Empty, html.Children.OfType().Select(n => n.Content)); - return true; - } - - content = null; - return false; - } - - public override void VisitTagHelperHtmlAttribute(TagHelperHtmlAttributeIntermediateNode node) - { - var attribute = new ComponentAttributeIntermediateNode(node); - _children.Add(attribute); - - // Since we don't support complex content, we can rewrite the inside of this - // node to the rather simpler form that property nodes usually have. - for (var i = 0; i < attribute.Children.Count; i++) - { - if (attribute.Children[i] is HtmlAttributeValueIntermediateNode htmlValue) - { - var newNode = new HtmlContentIntermediateNode() - { - Source = htmlValue.Source, - }; - for (var j = 0; j < htmlValue.Children.Count; j++) - { - newNode.Children.Add(htmlValue.Children[j]); - } - - attribute.Children[i] = newNode; - } - else if (attribute.Children[i] is CSharpExpressionAttributeValueIntermediateNode expressionValue) - { - var newNode = new CSharpExpressionIntermediateNode() - { - Source = expressionValue.Source, - }; - for (var j = 0; j < expressionValue.Children.Count; j++) - { - newNode.Children.Add(expressionValue.Children[j]); - } - - attribute.Children[i] = newNode; - } - else if (attribute.Children[i] is CSharpCodeAttributeValueIntermediateNode codeValue) - { - var newNode = new CSharpExpressionIntermediateNode() - { - Source = codeValue.Source, - }; - for (var j = 0; j < codeValue.Children.Count; j++) - { - newNode.Children.Add(codeValue.Children[j]); - } - - attribute.Children[i] = newNode; - } - } - } - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - // Each 'tag helper property' belongs to a specific tag helper. We want to handle - // the cases for components, but leave others alone. This allows our other passes - // to handle those cases. - if (!node.TagHelper.IsComponentTagHelper()) - { - _children.Add(node); - return; - } - - // Another special case here - this might be a type argument. These don't represent 'real' parameters - // that get passed to the component, it needs special code generation support. - if (node.TagHelper.IsGenericTypedComponent() && node.BoundAttribute.IsTypeParameterProperty()) - { - _children.Add(new ComponentTypeArgumentIntermediateNode(node)); - return; - } - - // Another special case here -- this might be a 'Context' parameter, which specifies the name - // for lambda parameter for parameterized child content - if (node.BoundAttribute.IsChildContentParameterNameProperty()) - { - // Check for each child content with a parameter name, that the parameter name is specified - // with literal text. For instance, the following is not allowed and should generate a diagnostic. - // - // ... - if (TryGetAttributeStringContent(node, out var parameterName)) - { - _component.ChildContentParameterName = parameterName; - return; - } - - // The parameter name is invalid. - _component.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentHasInvalidParameterOnComponent(node.Source, node.AttributeName, _component.TagName)); - return; - } - - _children.Add(new ComponentAttributeIntermediateNode(node)); - } - - public override void VisitTagHelperDirectiveAttribute(TagHelperDirectiveAttributeIntermediateNode node) - { - // We don't want to do anything special with directive attributes here. - // Let their corresponding lowering pass take care of processing them. - _children.Add(node); - } - - public override void VisitDefault(IntermediateNode node) - { - _children.Add(node); - } - } - - private class ElementRewriteVisitor : IntermediateNodeWalker - { - private readonly IntermediateNodeCollection _children; - - public ElementRewriteVisitor(IntermediateNodeCollection children) - { - _children = children; - } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - // Visit children, we're replacing this node. - for (var i = 0; i < node.Children.Count; i++) - { - Visit(node.Children[i]); - } - } - - public override void VisitTagHelperBody(TagHelperBodyIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - _children.Add(node.Children[i]); - } - } - - public override void VisitTagHelperHtmlAttribute(TagHelperHtmlAttributeIntermediateNode node) - { - var attribute = new HtmlAttributeIntermediateNode() - { - AttributeName = node.AttributeName, - Source = node.Source, - }; - _children.Add(attribute); - - for (var i = 0; i < node.Diagnostics.Count; i++) - { - attribute.Diagnostics.Add(node.Diagnostics[i]); - } - - switch (node.AttributeStructure) - { - case AttributeStructure.Minimized: - - attribute.Prefix = node.AttributeName; - attribute.Suffix = string.Empty; - break; - - case AttributeStructure.NoQuotes: - case AttributeStructure.SingleQuotes: - case AttributeStructure.DoubleQuotes: - - // We're ignoring attribute structure here for simplicity, it doesn't effect us. - attribute.Prefix = node.AttributeName + "=\""; - attribute.Suffix = "\""; - - for (var i = 0; i < node.Children.Count; i++) - { - attribute.Children.Add(RewriteAttributeContent(node.Children[i])); - } - - break; - } - - IntermediateNode RewriteAttributeContent(IntermediateNode content) - { - if (content is HtmlContentIntermediateNode html) - { - var value = new HtmlAttributeValueIntermediateNode() - { - Source = content.Source, - }; - - for (var i = 0; i < html.Children.Count; i++) - { - value.Children.Add(html.Children[i]); - } - - for (var i = 0; i < html.Diagnostics.Count; i++) - { - value.Diagnostics.Add(html.Diagnostics[i]); - } - - return value; - } - - - return content; - } - } - - public override void VisitTagHelperProperty(TagHelperPropertyIntermediateNode node) - { - // Each 'tag helper property' belongs to a specific tag helper. We want to handle - // the cases for components, but leave others alone. This allows our other passes - // to handle those cases. - _children.Add(node.TagHelper.IsComponentTagHelper() ? (IntermediateNode)new ComponentAttributeIntermediateNode(node) : node); - } - - public override void VisitTagHelperDirectiveAttribute(TagHelperDirectiveAttributeIntermediateNode node) - { - // We don't want to do anything special with directive attributes here. - // Let their corresponding lowering pass take care of processing them. - _children.Add(node); - } - - public override void VisitDefault(IntermediateNode node) - { - _children.Add(node); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupBlockPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupBlockPass.cs deleted file mode 100644 index dc26b140b0c..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupBlockPass.cs +++ /dev/null @@ -1,363 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - // Rewrites contiguous subtrees of HTML into a special node type to reduce the - // size of the Render tree. - // - // Does not preserve insignificant details of the HTML, like tag closing style - // or quote style. - internal class ComponentMarkupBlockPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Runs LATE because we want to destroy structure. - // - // We also need to run after ComponentMarkupDiagnosticPass to avoid destroying diagnostics - // added in that pass. - public override int Order => ComponentMarkupDiagnosticPass.DefaultOrder + 10; - - protected override void ExecuteCore( - RazorCodeDocument codeDocument, - DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - if (documentNode.Options.DesignTime) - { - // Nothing to do during design time. - return; - } - - var findVisitor = new FindHtmlTreeVisitor(); - findVisitor.Visit(documentNode); - - var trees = findVisitor.Trees; - var rewriteVisitor = new RewriteVisitor(trees); - while (trees.Count > 0) - { - // Walk backwards since we did a postorder traversal. - var reference = trees[trees.Count - 1]; - - // Forcibly remove a node to prevent infinite loops. - trees.RemoveAt(trees.Count - 1); - - // We want to fold together siblings where possible. To do this, first we find - // the index of the node we're looking at now - then we need to walk backwards - // and identify a set of contiguous nodes we can merge. - var start = reference.Parent.Children.Count - 1; - for (; start >= 0; start--) - { - if (ReferenceEquals(reference.Node, reference.Parent.Children[start])) - { - break; - } - } - - // This is the current node. Check if the left sibling is always a candidate - // for rewriting. Due to the order we processed the nodes, we know that the - // left sibling is next in the list to process if it's a candidate. - var end = start; - while (start - 1 >= 0) - { - var candidate = reference.Parent.Children[start - 1]; - if (trees.Count == 0 || !ReferenceEquals(trees[trees.Count - 1].Node, candidate)) - { - // This means the we're out of nodes, or the left sibling is not in the list. - break; - } - - // This means that the left sibling is valid to merge. - start--; - - // Remove this since we're combining it. - trees.RemoveAt(trees.Count - 1); - } - - // As a degenerate case, don't bother rewriting an single HtmlContent node - // It doesn't add any value. - if (end - start == 0 && reference.Node is HtmlContentIntermediateNode) - { - continue; - } - - // Now we know the range of nodes to rewrite (end is inclusive) - var length = end + 1 - start; - while (length > 0) - { - // Keep using start since we're removing nodes. - var node = reference.Parent.Children[start]; - reference.Parent.Children.RemoveAt(start); - - rewriteVisitor.Visit(node); - - length--; - } - - reference.Parent.Children.Insert(start, new MarkupBlockIntermediateNode() - { - Content = rewriteVisitor.Builder.ToString(), - }); - - rewriteVisitor.Builder.Clear(); - } - } - - // Finds HTML-blocks using a postorder traversal. We store nodes in an - // ordered list so we can avoid redundant rewrites. - // - // Consider a case like: - //
- // click me - //
- // - // We would store both the div and a tag in a list, but make sure to visit - // the div first. Then when we process the div (recursively), we would remove - // the a from the list. - private class FindHtmlTreeVisitor : IntermediateNodeWalker - { - private bool _foundNonHtml; - - public List Trees { get; } = new List(); - - public override void VisitDefault(IntermediateNode node) - { - // If we get here, we found a non-HTML node. Keep traversing. - _foundNonHtml = true; - base.VisitDefault(node); - } - - public override void VisitMarkupElement(MarkupElementIntermediateNode node) - { - // We need to restore the state after processing this node. - // We might have found a leaf-block of HTML, but that shouldn't - // affect our parent's state. - var originalState = _foundNonHtml; - - _foundNonHtml = false; - - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - don't let the parent rewrite this either. - _foundNonHtml = true; - } - - if (string.Equals("script", node.TagName, StringComparison.OrdinalIgnoreCase)) - { - // Treat script tags as non-HTML - we trigger errors for script tags - // later. - _foundNonHtml = true; - } - else if (string.Equals("option", node.TagName, StringComparison.OrdinalIgnoreCase)) - { - // Also, treat as non-HTML - we don't want it to be coalesced so that we can support setting "selected" attribute on it. - // We only care about option tags that are nested under a select tag. - foreach (var ancestor in Ancestors) - { - if (ancestor is MarkupElementIntermediateNode element && - string.Equals("select", element.TagName, StringComparison.OrdinalIgnoreCase)) - { - _foundNonHtml = true; - break; - } - } - } - - base.VisitDefault(node); - - if (!_foundNonHtml) - { - Trees.Add(new IntermediateNodeReference(Parent, node)); - } - - _foundNonHtml = originalState |= _foundNonHtml; - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - // Visit Children - base.VisitDefault(node); - } - - public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) - { - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - // Visit Children - base.VisitDefault(node); - } - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - // We need to restore the state after processing this node. - // We might have found a leaf-block of HTML, but that shouldn't - // affect our parent's state. - var originalState = _foundNonHtml; - - _foundNonHtml = false; - - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - // Visit Children - base.VisitDefault(node); - - if (!_foundNonHtml) - { - Trees.Add(new IntermediateNodeReference(Parent, node)); - } - - _foundNonHtml = originalState |= _foundNonHtml; - } - - public override void VisitToken(IntermediateToken node) - { - if (node.HasDiagnostics) - { - // Treat node with errors as non-HTML - _foundNonHtml = true; - } - - if (node.IsCSharp) - { - _foundNonHtml = true; - } - } - } - - private class RewriteVisitor : IntermediateNodeWalker - { - private readonly StringBuilder _encodingBuilder; - - private readonly List _trees; - - public RewriteVisitor(List trees) - { - _trees = trees; - - _encodingBuilder = new StringBuilder(); - } - - public StringBuilder Builder { get; } = new StringBuilder(); - - public override void VisitMarkupElement(MarkupElementIntermediateNode node) - { - for (var i = 0; i < _trees.Count; i++) - { - // Remove this node if it's in the list. This ensures that we don't - // do redundant operations. - if (ReferenceEquals(_trees[i].Node, node)) - { - _trees.RemoveAt(i); - break; - } - } - - var isVoid = Legacy.ParserHelpers.VoidElements.Contains(node.TagName); - var hasBodyContent = node.Body.Any(); - - Builder.Append("<"); - Builder.Append(node.TagName); - - foreach (var attribute in node.Attributes) - { - Visit(attribute); - } - - // If for some reason a void element contains body, then treat it as a - // start/end tag. - if (!hasBodyContent && isVoid) - { - // void - Builder.Append(">"); - return; - } - else if (!hasBodyContent) - { - // In HTML5, we can't have self-closing non-void elements, so explicitly - // add a close tag - Builder.Append(">"); - return; - } - - // start/end tag with body. - Builder.Append(">"); - - foreach (var item in node.Body) - { - Visit(item); - } - - Builder.Append(""); - } - - public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) - { - Builder.Append(" "); - Builder.Append(node.AttributeName); - - if (node.Children.Count == 0) - { - // Minimized attribute - return; - } - - Builder.Append("=\""); - - // Visit Children - base.VisitDefault(node); - - Builder.Append("\""); - } - - public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - Builder.Append(node.Prefix); - - if (node.Children[i] is IntermediateToken token) - { - Builder.Append(token.Content); - } - } - } - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token) - { - Builder.Append(token.Content); - } - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupEncodingPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupEncodingPass.cs deleted file mode 100644 index 186743e5b92..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMarkupEncodingPass.cs +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Razor.Language.Legacy; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentMarkupEncodingPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Runs after ComponentMarkupBlockPass - public override int Order => ComponentMarkupDiagnosticPass.DefaultOrder + 20; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - if (documentNode.Options.DesignTime) - { - // Nothing to do during design time. - return; - } - - var rewriter = new Rewriter(); - rewriter.Visit(documentNode); - } - - private class Rewriter : IntermediateNodeWalker - { - // Markup content in components are rendered in one of the following two ways, - // AddContent - we encode it when used with prerendering and inserted into the DOM in a safe way (low perf impact) - // AddMarkupContent - renders the content directly as markup (high perf impact) - // Because of this, we want to use AddContent as much as possible. - // - // We want to use AddMarkupContent to avoid aggresive encoding during prerendering. - // Specifically, when one of the following characters are in the content, - // 1. New lines (\r, \n), tabs(\t) - so they get rendered as actual new lines, tabs instead of - // 2. Any character outside the ASCII range - - private static readonly char[] EncodedCharacters = new[] { '\r', '\n', '\t' }; - - private readonly Dictionary _seenEntities = new Dictionary(StringComparer.Ordinal); - - public override void VisitHtml(HtmlContentIntermediateNode node) - { - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - if (!(child is IntermediateToken token) || !token.IsHtml || string.IsNullOrEmpty(token.Content)) - { - // We only care about Html tokens. - continue; - } - - for (var j = 0; j < token.Content.Length; j++) - { - var ch = token.Content[j]; - // ASCII range is 0 - 127 - if (ch > 127 || EncodedCharacters.Contains(ch)) - { - node.SetEncoded(); - return; - } - } - } - - // If we reach here, we don't have newlines, tabs or non-ascii characters in this node. - // If we can successfully decode all HTML entities(if any) in this node, we can safely let it call AddContent. - var decodedContent = new string[node.Children.Count]; - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - if (!(child is IntermediateToken token) || !token.IsHtml || string.IsNullOrEmpty(token.Content)) - { - // We only care about Html tokens. - continue; - } - - if (TryDecodeHtmlEntities(token.Content, out var decoded)) - { - decodedContent[i] = decoded; - } - else - { - node.SetEncoded(); - return; - } - } - - // If we reach here, it means we have successfully decoded all content. - // Replace all token content with the decoded value. - for (var i = 0; i < node.Children.Count; i++) - { - var child = node.Children[i]; - if (!(child is IntermediateToken token) || !token.IsHtml || string.IsNullOrEmpty(token.Content)) - { - // We only care about Html tokens. - continue; - } - - token.Content = decodedContent[i]; - } - } - - private bool TryDecodeHtmlEntities(string content, out string decoded) - { - _seenEntities.Clear(); - decoded = content; - var i = 0; - while (i < content.Length) - { - var ch = content[i]; - if (ch == '&') - { - if (TryGetHtmlEntity(content, i, out var entity, out var replacement)) - { - if (!_seenEntities.ContainsKey(entity)) - { - _seenEntities.Add(entity, replacement); - } - - i += entity.Length; - } - else - { - // We found a '&' that we don't know what to do with. Don't try to decode further. - return false; - } - } - else - { - i++; - } - } - - foreach (var entity in _seenEntities) - { - decoded = decoded.Replace(entity.Key, entity.Value); - } - - return true; - } - - private bool TryGetHtmlEntity(string content, int position, out string entity, out string replacement) - { - // We're at '&'. Check if it is the start of an HTML entity. - entity = null; - replacement = null; - var endPosition = -1; - for (var i = position + 1; i < content.Length; i++) - { - var ch = content[i]; - if (char.IsLetterOrDigit(ch) || ch == '#') - { - continue; - } - else if (ch == ';') - { - endPosition = i; - } - - break; - } - - if (endPosition != -1) - { - entity = content.Substring(position, endPosition - position + 1); - if (entity.StartsWith("&#")) - { - // Extract the codepoint and map it to an entity. - - // `entity` is guaranteed to be of the format &#****; - var entityValue = entity.Substring(2, entity.Length - 3); - var codePoint = -1; - if (!int.TryParse(entityValue, out codePoint)) - { - // If it is not an integer, check if it is hexadecimal like 0x00CD - try - { - codePoint = Convert.ToInt32(entityValue, 16); - } - catch (FormatException) - { - // Do nothing. - } - } - - if (ParserHelpers.HtmlEntityCodePoints.TryGetValue(codePoint, out replacement)) - { - // This is a known html entity unicode codepoint. - return true; - } - - // Unknown entity. - return false; - } - else if (ParserHelpers.NamedHtmlEntities.TryGetValue(entity, out replacement)) - { - return true; - } - } - - // The '&' is not part of an HTML entity. - return false; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMetadata.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMetadata.cs deleted file mode 100644 index 6a2dd46d290..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentMetadata.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - // Metadata used for Components interactions with the tag helper system - internal static class ComponentMetadata - { - private static readonly string MangledClassNamePrefix = "__generated__"; - - // There's a bug in the 15.7 preview 1 Razor that prevents 'Kind' from being serialized - // this affects both tooling and build. For now our workaround is to ignore 'Kind' and - // use our own metadata entry to denote non-Component tag helpers. - public static readonly string SpecialKindKey = "Components.IsSpecialKind"; - - public static readonly string ImportsFileName = "_Imports.razor"; - - public static string MangleClassName(string className) - { - if (string.IsNullOrEmpty(className)) - { - return string.Empty; - } - - return MangledClassNamePrefix + className; - } - - public static bool IsMangledClass(string className) - { - if (string.IsNullOrEmpty(className)) - { - return false; - } - - return className.StartsWith(MangledClassNamePrefix, StringComparison.Ordinal); - } - - public static class Common - { - public static readonly string OriginalAttributeName = "Common.OriginalAttributeName"; - - public static readonly string DirectiveAttribute = "Common.DirectiveAttribute"; - - public static readonly string AddAttributeMethodName = "Common.AddAttributeMethodName"; - } - - public static class Bind - { - public static readonly string RuntimeName = "Components.None"; - - public readonly static string TagHelperKind = "Components.Bind"; - - public readonly static string FallbackKey = "Components.Bind.Fallback"; - - public readonly static string TypeAttribute = "Components.Bind.TypeAttribute"; - - public readonly static string ValueAttribute = "Components.Bind.ValueAttribute"; - - public readonly static string ChangeAttribute = "Components.Bind.ChangeAttribute"; - - public readonly static string ExpressionAttribute = "Components.Bind.ExpressionAttribute"; - - public readonly static string IsInvariantCulture = "Components.Bind.IsInvariantCulture"; - - public readonly static string Format = "Components.Bind.Format"; - } - - public static class ChildContent - { - public static readonly string RuntimeName = "Components.None"; - - public static readonly string TagHelperKind = "Components.ChildContent"; - - public static readonly string ParameterNameBoundAttributeKind = "Components.ChildContentParameterName"; - - /// - /// The name of the synthesized attribute used to set a child content parameter. - /// - public static readonly string ParameterAttributeName = "Context"; - - /// - /// The default name of the child content parameter (unless set by a Context attribute). - /// - public static readonly string DefaultParameterName = "context"; - } - - public static class Component - { - public static readonly string ChildContentKey = "Components.ChildContent"; - - public static readonly string ChildContentParameterNameKey = "Components.ChildContentParameterName"; - - public static readonly string DelegateSignatureKey = "Components.DelegateSignature"; - - public static readonly string EventCallbackKey = "Components.EventCallback"; - - public static readonly string WeaklyTypedKey = "Components.IsWeaklyTyped"; - - public static readonly string RuntimeName = "Components.IComponent"; - - public readonly static string TagHelperKind = "Components.Component"; - - public readonly static string GenericTypedKey = "Components.GenericTyped"; - - public readonly static string TypeParameterKey = "Components.TypeParameter"; - - public readonly static string NameMatchKey = "Components.NameMatch"; - - public readonly static string FullyQualifiedNameMatch = "Components.FullyQualifiedNameMatch"; - } - - public static class EventHandler - { - public static readonly string EventArgsType = "Components.EventHandler.EventArgs"; - - public static readonly string RuntimeName = "Components.None"; - - public readonly static string TagHelperKind = "Components.EventHandler"; - } - - public static class Key - { - public readonly static string TagHelperKind = "Components.Key"; - - public static readonly string RuntimeName = "Components.None"; - } - - public static class Splat - { - public readonly static string TagHelperKind = "Components.Splat"; - - public static readonly string RuntimeName = "Components.None"; - } - - public static class Ref - { - public readonly static string TagHelperKind = "Components.Ref"; - - public static readonly string RuntimeName = "Components.None"; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentNodeWriter.cs deleted file mode 100644 index df21a531fa7..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentNodeWriter.cs +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal abstract class ComponentNodeWriter : IntermediateNodeWriter, ITemplateTargetExtension - { - protected abstract void BeginWriteAttribute(CodeRenderingContext context, string key); - - protected abstract void BeginWriteAttribute(CodeRenderingContext context, IntermediateNode expression); - - protected abstract void WriteReferenceCaptureInnards(CodeRenderingContext context, ReferenceCaptureIntermediateNode node, bool shouldTypeCheck); - - public abstract void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node); - - public sealed override void BeginWriterScope(CodeRenderingContext context, string writer) - { - throw new NotImplementedException(nameof(BeginWriterScope)); - } - - public sealed override void EndWriterScope(CodeRenderingContext context) - { - throw new NotImplementedException(nameof(EndWriterScope)); - } - - public sealed override void WriteCSharpCodeAttributeValue(CodeRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) - { - // We used to support syntaxes like but this is no longer the - // case. - // - // We provide an error for this case just to be friendly. - var content = string.Join("", node.Children.OfType().Select(t => t.Content)); - context.Diagnostics.Add(ComponentDiagnosticFactory.Create_CodeBlockInAttribute(node.Source, content)); - return; - } - - // Currently the same for design time and runtime - public override void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // This is ugly because CodeWriter doesn't allow us to erase, but we need to comma-delimit. So we have to - // materizalize something can iterate, or use string.Join. We'll need this multiple times, so materializing - // it. - var parameters = GetParameterDeclarations(); - - // This is really similar to the code in WriteComponentAttribute and WriteComponentChildContent - except simpler because - // attributes and child contents look like variables. - // - // Looks like: - // - // public static void CreateFoo_0(RenderTreeBuilder __builder, int seq, int __seq0, T1 __arg0, int __seq1, global::System.Collections.Generic.List __arg1, int __seq2, string __arg2) - // { - // builder.OpenComponent>(); - // builder.AddAttribute(__seq0, "Attr0", __arg0); - // builder.AddAttribute(__seq1, "Attr1", __arg1); - // builder.AddAttribute(__seq2, "Attr2", __arg2); - // builder.CloseComponent(); - // } - // - // As a special case, we need to generate a thunk for captures in this block instead of using - // them verbatim. - // - // The problem is that RenderTreeBuilder wants an Action. The caller can't write the type - // name if it contains generics, and we can't write the variable they want to assign to. - var writer = context.CodeWriter; - - writer.Write("public static void "); - writer.Write(node.MethodName); - - writer.Write("<"); - writer.Write(string.Join(", ", node.Component.Component.GetTypeParameters().Select(a => a.Name))); - writer.Write(">"); - - writer.Write("("); - writer.Write("global::"); - writer.Write(ComponentsApi.RenderTreeBuilder.FullTypeName); - writer.Write(" "); - writer.Write(ComponentsApi.RenderTreeBuilder.BuilderParameter); - writer.Write(", "); - writer.Write("int seq"); - - if (parameters.Count > 0) - { - writer.Write(", "); - } - - for (var i = 0; i < parameters.Count; i++) - { - writer.Write("int "); - writer.Write(parameters[i].seqName); - - writer.Write(", "); - writer.Write(parameters[i].typeName); - writer.Write(" "); - writer.Write(parameters[i].parameterName); - - if (i < parameters.Count - 1) - { - writer.Write(", "); - } - } - - writer.Write(")"); - writer.WriteLine(); - - writer.WriteLine("{"); - - // _builder.OpenComponent(42); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.BuilderParameter); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.Component.TypeName); - context.CodeWriter.Write(">("); - context.CodeWriter.Write("seq"); - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - - var index = 0; - - // Preserve order of attributes and splat. - foreach (var child in node.Component.Children) - { - if (child is ComponentAttributeIntermediateNode attribute) - { - context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.AddAttribute); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write($"\"{attribute.AttributeName}\""); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write(parameters[index].parameterName); - context.CodeWriter.WriteEndMethodInvocation(); - index++; - } - else if (child is SplatIntermediateNode) - { - context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.AddMultipleAttributes); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write(parameters[index].parameterName); - context.CodeWriter.WriteEndMethodInvocation(); - index++; - } - } - - foreach (var childContent in node.Component.ChildContents) - { - context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.AddAttribute); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write($"\"{childContent.AttributeName}\""); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write(parameters[index].parameterName); - context.CodeWriter.WriteEndMethodInvocation(); - - index++; - } - - foreach (var setKey in node.Component.SetKeys) - { - context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.SetKey); - context.CodeWriter.Write(parameters[index].parameterName); - context.CodeWriter.WriteEndMethodInvocation(); - - index++; - } - - foreach (var capture in node.Component.Captures) - { - context.CodeWriter.WriteStartInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, capture.IsComponentCapture ? ComponentsApi.RenderTreeBuilder.AddComponentReferenceCapture : ComponentsApi.RenderTreeBuilder.AddElementReferenceCapture); - context.CodeWriter.Write(parameters[index].seqName); - context.CodeWriter.Write(", "); - - var cast = capture.IsComponentCapture ? $"({capture.ComponentCaptureTypeName})" : string.Empty; - context.CodeWriter.Write($"(__value) => {{ {parameters[index].parameterName}({cast}__value); }}"); - context.CodeWriter.WriteEndMethodInvocation(); - - index++; - } - - context.CodeWriter.WriteInstanceMethodInvocation(ComponentsApi.RenderTreeBuilder.BuilderParameter, ComponentsApi.RenderTreeBuilder.CloseComponent); - - writer.WriteLine("}"); - - List<(string seqName, string typeName, string parameterName)> GetParameterDeclarations() - { - var p = new List<(string seqName, string typeName, string parameterName)>(); - - // Preserve order between attributes and splats - foreach (var child in node.Component.Children) - { - if (child is ComponentAttributeIntermediateNode attribute) - { - string typeName; - if (attribute.GloballyQualifiedTypeName != null) - { - typeName = attribute.GloballyQualifiedTypeName; - } - else - { - typeName = attribute.TypeName; - if (attribute.BoundAttribute != null && !attribute.BoundAttribute.IsGenericTypedProperty()) - { - typeName = "global::" + typeName; - } - } - - p.Add(($"__seq{p.Count}", typeName, $"__arg{p.Count}")); - } - else if (child is SplatIntermediateNode splat) - { - var typeName = ComponentsApi.AddMultipleAttributesTypeFullName; - p.Add(($"__seq{p.Count}", typeName, $"__arg{p.Count}")); - } - } - - foreach (var childContent in node.Component.ChildContents) - { - var typeName = childContent.TypeName; - if (childContent.BoundAttribute != null && !childContent.BoundAttribute.IsGenericTypedProperty()) - { - typeName = "global::" + typeName; - } - p.Add(($"__seq{p.Count}", typeName, $"__arg{p.Count}")); - } - - foreach (var capture in node.Component.SetKeys) - { - p.Add(($"__seq{p.Count}", "object", $"__arg{p.Count}")); - } - - foreach (var capture in node.Component.Captures) - { - // The capture type name should already contain the global:: prefix. - p.Add(($"__seq{p.Count}", capture.TypeName, $"__arg{p.Count}")); - } - - return p; - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirective.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirective.cs deleted file mode 100644 index 8fefd172f8d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirective.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentPageDirective - { - public static readonly DirectiveDescriptor Directive = DirectiveDescriptor.CreateDirective( - "page", - DirectiveKind.SingleLine, - builder => - { - builder.AddStringToken(ComponentResources.PageDirective_RouteToken_Name, ComponentResources.PageDirective_RouteToken_Description); - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.Description = ComponentResources.PageDirective_Description; - }); - - private ComponentPageDirective(string routeTemplate, IntermediateNode directiveNode) - { - RouteTemplate = routeTemplate; - DirectiveNode = directiveNode; - } - - public string RouteTemplate { get; } - - public IntermediateNode DirectiveNode { get; } - - public static RazorProjectEngineBuilder Register(RazorProjectEngineBuilder builder) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - builder.AddDirective(Directive, FileKinds.Component, FileKinds.ComponentImport); - builder.Features.Add(new ComponentPageDirectivePass()); - return builder; - } - } -} \ No newline at end of file diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirectivePass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirectivePass.cs deleted file mode 100644 index c751dd57b37..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentPageDirectivePass.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentPageDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass - { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (codeDocument == null) - { - throw new ArgumentNullException(nameof(codeDocument)); - } - - if (documentNode == null) - { - throw new ArgumentNullException(nameof(documentNode)); - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - return; - } - - var directives = documentNode.FindDirectiveReferences(ComponentPageDirective.Directive); - if (directives.Count == 0) - { - return; - } - - // We don't allow @page directives in imports - for (var i = 0; i < directives.Count; i++) - { - var directive = directives[i]; - if (FileKinds.IsComponentImport(codeDocument.GetFileKind()) || directive.Node.IsImported()) - { - directive.Node.Diagnostics.Add(ComponentDiagnosticFactory.CreatePageDirective_CannotBeImported(directive.Node.Source.Value)); - } - } - - // Insert the attributes 'on-top' of the class declaration, since classes don't directly support attributes. - var index = 0; - for (; index < @namespace.Children.Count; index++) - { - if (object.ReferenceEquals(@class, @namespace.Children[index])) - { - break; - } - } - - for (var i = 0; i < directives.Count; i++) - { - var pageDirective = (DirectiveIntermediateNode)directives[i].Node; - - // The parser also adds errors for invalid syntax, we just need to not crash. - var routeToken = pageDirective.Tokens.FirstOrDefault(); - - if (routeToken != null && - routeToken.Content.Length >= 3 && - routeToken.Content[0] == '\"' && - routeToken.Content[1] == '/' && - routeToken.Content[routeToken.Content.Length - 1] == '\"') - { - var template = routeToken.Content.Substring(1, routeToken.Content.Length - 2); - @namespace.Children.Insert(index++, new RouteAttributeExtensionNode(template)); - } - else - { - pageDirective.Diagnostics.Add(ComponentDiagnosticFactory.CreatePageDirective_MustSpecifyRoute(pageDirective.Source)); - } - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentReferenceCaptureLoweringPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentReferenceCaptureLoweringPass.cs deleted file mode 100644 index b4d776aacf4..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentReferenceCaptureLoweringPass.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentReferenceCaptureLoweringPass : ComponentIntermediateNodePassBase, IRazorOptimizationPass - { - // Run after component lowering pass - public override int Order => 50; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var @namespace = documentNode.FindPrimaryNamespace(); - var @class = documentNode.FindPrimaryClass(); - if (@namespace == null || @class == null) - { - // Nothing to do, bail. We can't function without the standard structure. - return; - } - - var references = documentNode.FindDescendantReferences(); - for (var i = 0; i < references.Count; i++) - { - var reference = references[i]; - var node = (TagHelperDirectiveAttributeIntermediateNode)reference.Node; - - if (node.TagHelper.IsRefTagHelper()) - { - reference.Replace(RewriteUsage(@class, reference.Parent, node)); - } - } - } - - private IntermediateNode RewriteUsage(ClassDeclarationIntermediateNode classNode, IntermediateNode parent, TagHelperDirectiveAttributeIntermediateNode node) - { - // If we can't get a nonempty attribute name, do nothing because there will - // already be a diagnostic for empty values - var identifierToken = DetermineIdentifierToken(node); - if (identifierToken == null) - { - return node; - } - - // Determine whether this is an element capture or a component capture, and - // if applicable the type name that will appear in the resulting capture code - var componentTagHelper = (parent as ComponentIntermediateNode)?.Component; - if (componentTagHelper != null) - { - return new ReferenceCaptureIntermediateNode(identifierToken, componentTagHelper.GetTypeName()); - } - else - { - return new ReferenceCaptureIntermediateNode(identifierToken); - } - } - - private IntermediateToken DetermineIdentifierToken(TagHelperDirectiveAttributeIntermediateNode attributeNode) - { - IntermediateToken foundToken = null; - - if (attributeNode.Children.Count == 1) - { - if (attributeNode.Children[0] is IntermediateToken token) - { - foundToken = token; - } - else if (attributeNode.Children[0] is CSharpExpressionIntermediateNode csharpNode) - { - if (csharpNode.Children.Count == 1) - { - foundToken = csharpNode.Children[0] as IntermediateToken; - } - } - } - - return !string.IsNullOrWhiteSpace(foundToken?.Content) ? foundToken : null; - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentRuntimeNodeWriter.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentRuntimeNodeWriter.cs deleted file mode 100644 index b57552e5e6a..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentRuntimeNodeWriter.cs +++ /dev/null @@ -1,1016 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - /// - /// Generates the C# code corresponding to Razor source document contents. - /// - internal class ComponentRuntimeNodeWriter : ComponentNodeWriter - { - private readonly List _currentAttributeValues = new List(); - private readonly ScopeStack _scopeStack = new ScopeStack(); - private int _sourceSequence = 0; - - public override void WriteCSharpCode(CodeRenderingContext context, CSharpCodeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var isWhitespaceStatement = true; - for (var i = 0; i < node.Children.Count; i++) - { - var token = node.Children[i] as IntermediateToken; - if (token == null || !string.IsNullOrWhiteSpace(token.Content)) - { - isWhitespaceStatement = false; - break; - } - } - - if (isWhitespaceStatement) - { - // The runtime and design time code differ in their handling of whitespace-only - // statements. At runtime we can discard them completely. At design time we need - // to keep them for the editor. - return; - } - - IDisposable linePragmaScope = null; - if (node.Source != null) - { - linePragmaScope = context.CodeWriter.BuildLinePragma(node.Source.Value, context); - context.CodeWriter.WritePadding(0, node.Source.Value, context); - } - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - context.AddSourceMappingFor(token); - context.CodeWriter.Write(token.Content); - } - else - { - // There may be something else inside the statement like an extension node. - context.RenderNode(node.Children[i]); - } - } - - if (linePragmaScope != null) - { - linePragmaScope.Dispose(); - } - else - { - context.CodeWriter.WriteLine(); - } - } - - public override void WriteCSharpExpression(CodeRenderingContext context, CSharpExpressionIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Since we're not in the middle of writing an element, this must evaluate as some - // text to display - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddContent}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator(); - - for (var i = 0; i < node.Children.Count; i++) - { - if (node.Children[i] is IntermediateToken token && token.IsCSharp) - { - WriteCSharpToken(context, token); - } - else - { - // There may be something else inside the expression like a Template or another extension node. - context.RenderNode(node.Children[i]); - } - } - - context.CodeWriter.WriteEndMethodInvocation(); - } - - public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // In cases like "somestring @variable", Razor tokenizes it as: - // [0] HtmlContent="somestring" - // [1] CsharpContent="variable" Prefix=" " - // ... so to avoid losing whitespace, convert the prefix to a further token in the list - if (!string.IsNullOrEmpty(node.Prefix)) - { - _currentAttributeValues.Add(new IntermediateToken() { Kind = TokenKind.Html, Content = node.Prefix }); - } - - for (var i = 0; i < node.Children.Count; i++) - { - _currentAttributeValues.Add((IntermediateToken)node.Children[i]); - } - } - - public override void WriteMarkupBlock(CodeRenderingContext context, MarkupBlockIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddMarkupContent}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(node.Content) - .WriteEndMethodInvocation(); - } - - public override void WriteMarkupElement(CodeRenderingContext context, MarkupElementIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.OpenElement}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(node.TagName) - .WriteEndMethodInvocation(); - - // Render attributes and splats (in order) before creating the scope. - foreach (var child in node.Children) - { - if (child is HtmlAttributeIntermediateNode attribute) - { - context.RenderNode(attribute); - } - else if (child is ComponentAttributeIntermediateNode componentAttribute) - { - context.RenderNode(componentAttribute); - } - else if (child is SplatIntermediateNode splat) - { - context.RenderNode(splat); - } - } - - foreach (var setKey in node.SetKeys) - { - context.RenderNode(setKey); - } - - foreach (var capture in node.Captures) - { - context.RenderNode(capture); - } - - // Render body of the tag inside the scope - foreach (var child in node.Body) - { - context.RenderNode(child); - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.CloseElement}") - .WriteEndMethodInvocation(); - } - - public override void WriteHtmlAttribute(CodeRenderingContext context, HtmlAttributeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - Debug.Assert(_currentAttributeValues.Count == 0); - context.RenderChildren(node); - - if (node.AttributeNameExpression == null) - { - WriteAttribute(context, node.AttributeName, _currentAttributeValues); - } - else - { - WriteAttribute(context, node.AttributeNameExpression, _currentAttributeValues); - } - _currentAttributeValues.Clear(); - - if (!string.IsNullOrEmpty(node.EventUpdatesAttributeName)) - { - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.SetUpdatesAttributeName}") - .WriteStringLiteral(node.EventUpdatesAttributeName) - .WriteEndMethodInvocation(); - } - } - - public override void WriteHtmlAttributeValue(CodeRenderingContext context, HtmlAttributeValueIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var stringContent = ((IntermediateToken)node.Children.Single()).Content; - _currentAttributeValues.Add(new IntermediateToken() { Kind = TokenKind.Html, Content = node.Prefix + stringContent, }); - } - - public override void WriteHtmlContent(CodeRenderingContext context, HtmlContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Text node - var content = GetHtmlContent(node); - var renderApi = ComponentsApi.RenderTreeBuilder.AddContent; - if (node.IsEncoded()) - { - // This content is already encoded. - renderApi = ComponentsApi.RenderTreeBuilder.AddMarkupContent; - } - - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{renderApi}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(content) - .WriteEndMethodInvocation(); - } - - public override void WriteUsingDirective(CodeRenderingContext context, UsingDirectiveIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.Source.HasValue) - { - using (context.CodeWriter.BuildLinePragma(node.Source.Value, context)) - { - context.CodeWriter.WriteUsing(node.Content); - } - } - else - { - context.CodeWriter.WriteUsing(node.Content, endLine: true); - } - } - - public override void WriteComponent(CodeRenderingContext context, ComponentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - if (node.TypeInferenceNode == null) - { - // If the component is using not using type inference then we just write an open/close with a series - // of add attribute calls in between. - // - // Writes something like: - // - // _builder.OpenComponent(0); - // _builder.AddAttribute(1, "Foo", ...); - // _builder.AddAttribute(2, "ChildContent", ...); - // _builder.SetKey(someValue); - // _builder.AddElementCapture(3, (__value) => _field = __value); - // _builder.CloseComponent(); - - // _builder.OpenComponent(42); - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">("); - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - - // We can skip type arguments during runtime codegen, they are handled in the - // type/parameter declarations. - - // Preserve order of attributes and splats - foreach (var child in node.Children) - { - if (child is ComponentAttributeIntermediateNode attribute) - { - context.RenderNode(attribute); - } - else if (child is SplatIntermediateNode splat) - { - context.RenderNode(splat); - } - } - - foreach (var childContent in node.ChildContents) - { - context.RenderNode(childContent); - } - - foreach (var setKey in node.SetKeys) - { - context.RenderNode(setKey); - } - - foreach (var capture in node.Captures) - { - context.RenderNode(capture); - } - - // _builder.CloseComponent(); - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.CloseComponent); - context.CodeWriter.Write("();"); - context.CodeWriter.WriteLine(); - } - else - { - // When we're doing type inference, we can't write all of the code inline to initialize - // the component on the builder. We generate a method elsewhere, and then pass all of the information - // to that method. We pass in all of the attribute values + the sequence numbers. - // - // __Blazor.MyComponent.TypeInference.CreateMyComponent_0(builder, 0, 1, ..., 2, ..., 3, ...); - - // Preserve order of attributes and splats - var attributes = node.Children.Where(n => - { - return n is ComponentAttributeIntermediateNode || n is SplatIntermediateNode; - }).ToList(); - var childContents = node.ChildContents.ToList(); - var captures = node.Captures.ToList(); - var setKeys = node.SetKeys.ToList(); - var remaining = attributes.Count + childContents.Count + captures.Count + setKeys.Count; - - context.CodeWriter.Write(node.TypeInferenceNode.FullTypeName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(node.TypeInferenceNode.MethodName); - context.CodeWriter.Write("("); - - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write(", "); - - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - for (var i = 0; i < attributes.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - // Don't type check generics, since we can't actually write the type name. - // The type checking with happen anyway since we defined a method and we're generating - // a call to it. - if (attributes[i] is ComponentAttributeIntermediateNode attribute) - { - WriteComponentAttributeInnards(context, attribute, canTypeCheck: false); - } - else if (attributes[i] is SplatIntermediateNode splat) - { - WriteSplatInnards(context, splat, canTypeCheck: false); - } - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < childContents.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - WriteComponentChildContentInnards(context, childContents[i]); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < setKeys.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - WriteSetKeyInnards(context, setKeys[i]); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - for (var i = 0; i < captures.Count; i++) - { - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - - WriteReferenceCaptureInnards(context, captures[i], shouldTypeCheck: false); - - remaining--; - if (remaining > 0) - { - context.CodeWriter.Write(", "); - } - } - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - } - - public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - var addAttributeMethod = node.Annotations[ComponentMetadata.Common.AddAttributeMethodName] as string ?? ComponentsApi.RenderTreeBuilder.AddAttribute; - - // _builder.AddAttribute(1, "Foo", 42); - context.CodeWriter.Write(_scopeStack.BuilderVarName); - context.CodeWriter.Write("."); - context.CodeWriter.Write(addAttributeMethod); - context.CodeWriter.Write("("); - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.Write(", "); - context.CodeWriter.WriteStringLiteral(node.AttributeName); - context.CodeWriter.Write(", "); - - WriteComponentAttributeInnards(context, node, canTypeCheck: true); - - context.CodeWriter.Write(");"); - context.CodeWriter.WriteLine(); - } - - private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeIntermediateNode node, bool canTypeCheck) - { - if (node.AttributeStructure == AttributeStructure.Minimized) - { - // Minimized attributes always map to 'true' - context.CodeWriter.Write("true"); - } - else if (node.Children.Count > 1) - { - // We don't expect this to happen, we just want to know if it can. - throw new InvalidOperationException("Attribute nodes should either be minimized or a single type of content." + string.Join(", ", node.Children)); - } - else if (node.Children.Count == 1 && node.Children[0] is HtmlContentIntermediateNode htmlNode) - { - // This is how string attributes are lowered by default, a single HTML node with a single HTML token. - var content = string.Join(string.Empty, GetHtmlTokens(htmlNode).Select(t => t.Content)); - context.CodeWriter.WriteStringLiteral(content); - } - else - { - // See comments in ComponentDesignTimeNodeWriter for a description of the cases that are possible. - var tokens = GetCSharpTokens(node); - if ((node.BoundAttribute?.IsDelegateProperty() ?? false) || - (node.BoundAttribute?.IsChildContentProperty() ?? false)) - { - if (canTypeCheck) - { - context.CodeWriter.Write("new "); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck) - { - context.CodeWriter.Write(")"); - } - } - else if (node.BoundAttribute?.IsEventCallbackProperty() ?? false) - { - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - // Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, ...) OR - // Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, ...) - - context.CodeWriter.Write(ComponentsApi.EventCallback.FactoryAccessor); - context.CodeWriter.Write("."); - context.CodeWriter.Write(ComponentsApi.EventCallbackFactory.CreateMethod); - - if (node.TryParseEventCallbackTypeArgument(out var argument)) - { - context.CodeWriter.Write("<"); - context.CodeWriter.Write(argument); - context.CodeWriter.Write(">"); - } - - context.CodeWriter.Write("("); - context.CodeWriter.Write("this"); - context.CodeWriter.Write(", "); - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - context.CodeWriter.Write(")"); - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(")"); - } - } - else - { - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.TypeName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck && NeedsTypeCheck(node)) - { - context.CodeWriter.Write(")"); - } - } - } - - IReadOnlyList GetHtmlTokens(HtmlContentIntermediateNode html) - { - // We generally expect all children to be HTML, this is here just in case. - return html.FindDescendantNodes().Where(t => t.IsHtml).ToArray(); - } - - bool NeedsTypeCheck(ComponentAttributeIntermediateNode n) - { - return node.BoundAttribute != null && !node.BoundAttribute.IsWeaklyTyped(); - } - } - - private IReadOnlyList GetCSharpTokens(IntermediateNode node) - { - // We generally expect all children to be CSharp, this is here just in case. - return node.FindDescendantNodes().Where(t => t.IsCSharp).ToArray(); - } - - public override void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Writes something like: - // - // _builder.AddAttribute(1, "ChildContent", (RenderFragment)((__builder73) => { ... })); - // OR - // _builder.AddAttribute(1, "ChildContent", (RenderFragment)((person) => (__builder73) => { ... })); - BeginWriteAttribute(context, node.AttributeName); - context.CodeWriter.Write($"({node.TypeName})("); - - WriteComponentChildContentInnards(context, node); - - context.CodeWriter.Write(")"); - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteComponentChildContentInnards(CodeRenderingContext context, ComponentChildContentIntermediateNode node) - { - // Writes something like: - // - // ((__builder73) => { ... }) - // OR - // ((person) => (__builder73) => { }) - _scopeStack.OpenComponentScope( - context, - node.AttributeName, - node.IsParameterized ? node.ParameterName : null); - for (var i = 0; i < node.Children.Count; i++) - { - context.RenderNode(node.Children[i]); - } - _scopeStack.CloseScope(context); - } - - public override void WriteComponentTypeArgument(CodeRenderingContext context, ComponentTypeArgumentIntermediateNode node) - { - // We can skip type arguments during runtime codegen, they are handled in the - // type/parameter declarations. - } - - public override void WriteTemplate(CodeRenderingContext context, TemplateIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // (__builder73) => { ... } - _scopeStack.OpenTemplateScope(context); - context.RenderChildren(node); - _scopeStack.CloseScope(context); - } - - public override void WriteSetKey(CodeRenderingContext context, SetKeyIntermediateNode node) - { - // Looks like: - // - // _builder.SetKey(_keyValue); - - var codeWriter = context.CodeWriter; - - codeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.SetKey}"); - WriteSetKeyInnards(context, node); - codeWriter.WriteEndMethodInvocation(); - } - - private void WriteSetKeyInnards(CodeRenderingContext context, SetKeyIntermediateNode node) - { - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.KeyValueToken - } - }); - } - - public override void WriteSplat(CodeRenderingContext context, SplatIntermediateNode node) - { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } - - // Looks like: - // - // _builder.AddMultipleAttributes(2, ...); - context.CodeWriter.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddMultipleAttributes}"); - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.WriteParameterSeparator(); - - WriteSplatInnards(context, node, canTypeCheck: true); - - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteSplatInnards(CodeRenderingContext context, SplatIntermediateNode node, bool canTypeCheck) - { - var tokens = GetCSharpTokens(node); - - if (canTypeCheck) - { - context.CodeWriter.Write(ComponentsApi.RuntimeHelpers.TypeCheck); - context.CodeWriter.Write("<"); - context.CodeWriter.Write(ComponentsApi.AddMultipleAttributesTypeFullName); - context.CodeWriter.Write(">"); - context.CodeWriter.Write("("); - } - - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - if (canTypeCheck) - { - context.CodeWriter.Write(")"); - } - } - - public override void WriteReferenceCapture(CodeRenderingContext context, ReferenceCaptureIntermediateNode node) - { - // Looks like: - // - // _builder.AddComponentReferenceCapture(2, (__value) = { _field = (MyComponent)__value; }); - // OR - // _builder.AddElementReferenceCapture(2, (__value) = { _field = (ElementReference)__value; }); - var codeWriter = context.CodeWriter; - - var methodName = node.IsComponentCapture - ? ComponentsApi.RenderTreeBuilder.AddComponentReferenceCapture - : ComponentsApi.RenderTreeBuilder.AddElementReferenceCapture; - codeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{methodName}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator(); - - WriteReferenceCaptureInnards(context, node, shouldTypeCheck: true); - - codeWriter.WriteEndMethodInvocation(); - } - - protected override void WriteReferenceCaptureInnards(CodeRenderingContext context, ReferenceCaptureIntermediateNode node, bool shouldTypeCheck) - { - // Looks like: - // - // (__value) = { _field = (MyComponent)__value; } - // OR - // (__value) = { _field = (ElementRef)__value; } - const string refCaptureParamName = "__value"; - using (var lambdaScope = context.CodeWriter.BuildLambda(refCaptureParamName)) - { - var typecastIfNeeded = shouldTypeCheck && node.IsComponentCapture ? $"({node.ComponentCaptureTypeName})" : string.Empty; - WriteCSharpCode(context, new CSharpCodeIntermediateNode - { - Source = node.Source, - Children = - { - node.IdentifierToken, - new IntermediateToken - { - Kind = TokenKind.CSharp, - Content = $" = {typecastIfNeeded}{refCaptureParamName};" - } - } - }); - } - } - - private void WriteAttribute(CodeRenderingContext context, string key, IList value) - { - BeginWriteAttribute(context, key); - WriteAttributeValue(context, value); - context.CodeWriter.WriteEndMethodInvocation(); - } - - private void WriteAttribute(CodeRenderingContext context, IntermediateNode nameExpression, IList value) - { - BeginWriteAttribute(context, nameExpression); - WriteAttributeValue(context, value); - context.CodeWriter.WriteEndMethodInvocation(); - } - - protected override void BeginWriteAttribute(CodeRenderingContext context, string key) - { - context.CodeWriter - .WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddAttribute}") - .Write((_sourceSequence++).ToString()) - .WriteParameterSeparator() - .WriteStringLiteral(key) - .WriteParameterSeparator(); - } - - protected override void BeginWriteAttribute(CodeRenderingContext context, IntermediateNode nameExpression) - { - context.CodeWriter.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{ComponentsApi.RenderTreeBuilder.AddAttribute}"); - context.CodeWriter.Write((_sourceSequence++).ToString()); - context.CodeWriter.WriteParameterSeparator(); - - var tokens = GetCSharpTokens(nameExpression); - for (var i = 0; i < tokens.Count; i++) - { - WriteCSharpToken(context, tokens[i]); - } - - context.CodeWriter.WriteParameterSeparator(); - } - - private static string GetHtmlContent(HtmlContentIntermediateNode node) - { - var builder = new StringBuilder(); - var htmlTokens = node.Children.OfType().Where(t => t.IsHtml); - foreach (var htmlToken in htmlTokens) - { - builder.Append(htmlToken.Content); - } - return builder.ToString(); - } - - // There are a few cases here, we need to handle: - // - Pure HTML - // - Pure CSharp - // - Mixed HTML and CSharp - // - // Only the mixed case is complicated, we want to turn it into code that will concatenate - // the values into a string at runtime. - - private static void WriteAttributeValue(CodeRenderingContext context, IList tokens) - { - if (tokens == null) - { - throw new ArgumentNullException(nameof(tokens)); - } - - var writer = context.CodeWriter; - var hasHtml = false; - var hasCSharp = false; - for (var i = 0; i < tokens.Count; i++) - { - if (tokens[i].IsCSharp) - { - hasCSharp |= true; - } - else - { - hasHtml |= true; - } - } - - if (hasHtml && hasCSharp) - { - // If it's a C# expression, we have to wrap it in parens, otherwise things like ternary - // expressions don't compose with concatenation. However, this is a little complicated - // because C# tokens themselves aren't guaranteed to be distinct expressions. We want - // to treat all contiguous C# tokens as a single expression. - var insideCSharp = false; - for (var i = 0; i < tokens.Count; i++) - { - var token = tokens[i]; - if (token.IsCSharp) - { - if (!insideCSharp) - { - if (i != 0) - { - writer.Write(" + "); - } - - writer.Write("("); - insideCSharp = true; - } - - WriteCSharpToken(context, token); - } - else - { - if (insideCSharp) - { - writer.Write(")"); - insideCSharp = false; - } - - if (i != 0) - { - writer.Write(" + "); - } - - writer.WriteStringLiteral(token.Content); - } - } - - if (insideCSharp) - { - writer.Write(")"); - } - } - else if (hasCSharp) - { - foreach (var token in tokens) - { - WriteCSharpToken(context, token); - } - } - else if (hasHtml) - { - writer.WriteStringLiteral(string.Join("", tokens.Select(t => t.Content))); - } - else - { - // Minimized attributes always map to 'true' - writer.Write("true"); - } - } - - private static void WriteCSharpToken(CodeRenderingContext context, IntermediateToken token) - { - if (string.IsNullOrWhiteSpace(token.Content)) - { - return; - } - - if (token.Source?.FilePath == null) - { - context.CodeWriter.Write(token.Content); - return; - } - - using (context.CodeWriter.BuildLinePragma(token.Source, context)) - { - context.CodeWriter.WritePadding(0, token.Source.Value, context); - context.CodeWriter.Write(token.Content); - } - } - } -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentScriptTagPass.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentScriptTagPass.cs deleted file mode 100644 index 6fad5cfca5d..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.Language/Components/ComponentScriptTagPass.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal class ComponentScriptTagPass : ComponentIntermediateNodePassBase, IRazorDocumentClassifierPass - { - // Run as soon as possible after the Component rewrite pass - public override int Order => 5; - - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - if (!IsComponentDocument(documentNode)) - { - return; - } - - var visitor = new Visitor(); - visitor.Visit(documentNode); - } - - private class Visitor : IntermediateNodeWalker - { - public override void VisitMarkupElement(MarkupElementIntermediateNode node) - { - // Disallow - - } -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - } - - [Fact] - public void Execute_CannotRewriteHtml_SelectOption() - { - // Arrange - var document = CreateDocument(@" - - @if (some_bool) - { - - - - } -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - } - - [Fact] - public void Execute_CanRewriteHtml_OptionWithNoSelectAncestor() - { - // Arrange - var document = CreateDocument(@" - - @if (some_bool) - { - - - - - } -"); - - var expected = NormalizeContent(@" - - - - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - // The unclosed tag will have errors, so we won't rewrite it or its parent. - [Fact] - public void Execute_CannotRewriteHtml_Errors() - { - // Arrange - var document = CreateDocument(@" - - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - } - - // We want duplicate attributes to result in an error and prevent rewriting. - // - // This is because Blazor de-duplicates attributes differently from browsers, so we don't - // want to allow any markup blocks to exist with duplicate attributes or else they will have - // the browser's behavior. - [Fact] - public void Execute_CannotRewriteHtml_DuplicateAttribute() - { - // Arrange - var document = CreateDocument(@" - - -"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - - var diagnostic = Assert.Single(documentNode.GetAllDiagnostics()); - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttribute.Id, diagnostic.Id); - } - - [Fact] - public void Execute_RewritesHtml_MismatchedClosingTag() - { - // Arrange - var document = CreateDocument(@" - -
-
rewriteme
- -"); - - var expected = NormalizeContent("
rewriteme
\n "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var block = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, block.Content, ignoreLineEndingDifferences: true); - } - - private string NormalizeContent(string content) - { - // Test inputs frequently have leading space for readability. - content = content.TrimStart(); - - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - return content; - } - - private RazorCodeDocument CreateDocument(string content) - { - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - var source = RazorSourceDocument.Create(content, "test.cshtml"); - return ProjectEngine.CreateCodeDocumentCore(source, FileKinds.Component); - } - - private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) - { - for (var i = 0; i < Engine.Phases.Count; i++) - { - var phase = Engine.Phases[i]; - if (phase is IRazorCSharpLoweringPhase) - { - break; - } - - phase.Execute(codeDocument); - } - - var document = codeDocument.GetDocumentIntermediateNode(); - Engine.Features.OfType().Single().Execute(codeDocument, document); - Engine.Features.OfType().Single().Execute(codeDocument, document); - return document; - } - - private class StaticTagHelperFeature : ITagHelperFeature - { - public RazorEngine Engine { get; set; } - - public List TagHelpers { get; set; } - - public IReadOnlyList GetDescriptors() - { - return TagHelpers; - } - } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/Components/ComponentMarkupEncodingPassTest.cs b/src/Razor/test/RazorLanguage.Test/Components/ComponentMarkupEncodingPassTest.cs deleted file mode 100644 index 710d3d44576..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Components/ComponentMarkupEncodingPassTest.cs +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - public class ComponentMarkupEncodingPassTest - { - public ComponentMarkupEncodingPassTest() - { - Pass = new ComponentMarkupEncodingPass(); - ProjectEngine = (DefaultRazorProjectEngine)RazorProjectEngine.Create( - RazorConfiguration.Default, - RazorProjectFileSystem.Create(Environment.CurrentDirectory), - b => - { - if (b.Features.OfType().Any()) - { - b.Features.Remove(b.Features.OfType().Single()); - } - }); - Engine = ProjectEngine.Engine; - - Pass.Engine = Engine; - } - - private DefaultRazorProjectEngine ProjectEngine { get; } - - private RazorEngine Engine { get; } - - private ComponentMarkupEncodingPass Pass { get; } - - [Fact] - public void Execute_StaticHtmlContent_RewrittenToBlock() - { - // Arrange - var document = CreateDocument(@" -
-  -
"); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - Assert.Empty(documentNode.FindDescendantNodes()); - Assert.Single(documentNode.FindDescendantNodes()); - } - - [Fact] - public void Execute_MixedHtmlContent_NoNewLineorSpecialCharacters_DoesNotSetEncoded() - { - // Arrange - var document = CreateDocument(@" -
The time is @DateTime.Now
"); - var expected = NormalizeContent("The time is "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var node = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, GetHtmlContent(node)); - Assert.False(node.IsEncoded()); - } - - [Fact] - public void Execute_MixedHtmlContent_NewLine_SetsEncoded() - { - // Arrange - var document = CreateDocument(@" -
-The time is @DateTime.Now
"); - var expected = NormalizeContent(@" -The time is "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var node = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, GetHtmlContent(node)); - Assert.True(node.IsEncoded()); - } - - [Fact] - public void Execute_MixedHtmlContent_Ampersand_SetsEncoded() - { - // Arrange - var document = CreateDocument(@" -
The time is & & @DateTime.Now
"); - var expected = NormalizeContent("The time is & & "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var node = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, GetHtmlContent(node)); - Assert.True(node.IsEncoded()); - } - - [Fact] - public void Execute_MixedHtmlContent_NonAsciiCharacter_SetsEncoded() - { - // Arrange - var document = CreateDocument(@" -
ThĖ tĨme is @DateTime.Now
"); - var expected = NormalizeContent("ThĖ tĨme is "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var node = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, GetHtmlContent(node)); - Assert.True(node.IsEncoded()); - } - - [Fact] - public void Execute_MixedHtmlContent_HTMLEntity_DoesNotSetEncoded() - { - // Arrange - var document = CreateDocument(@" -
The time = @DateTime.Now
"); - var expected = NormalizeContent("The time = "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var node = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, GetHtmlContent(node)); - Assert.False(node.IsEncoded()); - } - - [Fact] - public void Execute_MixedHtmlContent_MultipleHTMLEntities_DoesNotSetEncoded() - { - // Arrange - var document = CreateDocument(@" -
The time = =�x003D; @DateTime.Now
"); - var expected = NormalizeContent("The time =\u00A0== "); - - var documentNode = Lower(document); - - // Act - Pass.Execute(document, documentNode); - - // Assert - var node = documentNode.FindDescendantNodes().Single(); - Assert.Equal(expected, GetHtmlContent(node)); - Assert.False(node.IsEncoded()); - } - - private string NormalizeContent(string content) - { - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - return content; - } - - private RazorCodeDocument CreateDocument(string content) - { - // Normalize newlines since we are testing lengths of things. - content = content.Replace("\r", ""); - content = content.Replace("\n", "\r\n"); - - var source = RazorSourceDocument.Create(content, "test.cshtml"); - return ProjectEngine.CreateCodeDocumentCore(source, FileKinds.Component); - } - - private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) - { - for (var i = 0; i < Engine.Phases.Count; i++) - { - var phase = Engine.Phases[i]; - if (phase is IRazorCSharpLoweringPhase) - { - break; - } - - phase.Execute(codeDocument); - } - - var document = codeDocument.GetDocumentIntermediateNode(); - Engine.Features.OfType().Single().Execute(codeDocument, document); - return document; - } - - private static string GetHtmlContent(HtmlContentIntermediateNode node) - { - var builder = new StringBuilder(); - var htmlTokens = node.Children.OfType().Where(t => t.IsHtml); - foreach (var htmlToken in htmlTokens) - { - builder.Append(htmlToken.Content); - } - return builder.ToString(); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Components/NodeAssert.cs b/src/Razor/test/RazorLanguage.Test/Components/NodeAssert.cs deleted file mode 100644 index aae834c2565..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Components/NodeAssert.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Components -{ - internal static class NodeAssert - { - public static HtmlAttributeIntermediateNode Attribute(IntermediateNode node, string attributeName, string attributeValue) - { - Assert.NotNull(node); - - var attributeNode = Assert.IsType(node); - Assert.Equal(attributeName, attributeNode.AttributeName); - - var attributeValueNode = Assert.IsType(Assert.Single(attributeNode.Children)); - var actual = new StringBuilder(); - for (var i = 0; i < attributeValueNode.Children.Count; i++) - { - var token = Assert.IsType(attributeValueNode.Children[i]); - Assert.Equal(TokenKind.Html, token.Kind); - actual.Append(token.Content); - } - - Assert.Equal(attributeValue, actual.ToString()); - - return attributeNode; - } - - public static HtmlAttributeIntermediateNode Attribute(IntermediateNodeCollection nodes, string attributeName, string attributeValue) - { - Assert.NotNull(nodes); - return Attribute(Assert.Single(nodes), attributeName, attributeValue); - } - - public static HtmlContentIntermediateNode Content(IntermediateNode node, string content, bool trim = true) - { - Assert.NotNull(node); - - var contentNode = Assert.IsType(node); - - var actual = new StringBuilder(); - for (var i = 0; i < contentNode.Children.Count; i++) - { - var token = Assert.IsType(contentNode.Children[i]); - Assert.Equal(TokenKind.Html, token.Kind); - actual.Append(token.Content); - } - - Assert.Equal(content, trim ? actual.ToString().Trim() : actual.ToString()); - return contentNode; - } - - public static HtmlContentIntermediateNode Content(IntermediateNodeCollection nodes, string content, bool trim = true) - { - Assert.NotNull(nodes); - return Content(Assert.Single(nodes), content, trim); - } - - public static HtmlAttributeIntermediateNode CSharpAttribute(IntermediateNode node, string attributeName, string attributeValue) - { - Assert.NotNull(node); - - var attributeNode = Assert.IsType(node); - Assert.Equal(attributeName, attributeNode.AttributeName); - - var attributeValueNode = Assert.IsType(Assert.Single(attributeNode.Children)); - var actual = new StringBuilder(); - for (var i = 0; i < attributeValueNode.Children.Count; i++) - { - var token = Assert.IsType(attributeValueNode.Children[i]); - Assert.Equal(TokenKind.CSharp, token.Kind); - actual.Append(token.Content); - } - - Assert.Equal(attributeValue, actual.ToString()); - - return attributeNode; - } - - public static HtmlAttributeIntermediateNode CSharpAttribute(IntermediateNodeCollection nodes, string attributeName, string attributeValue) - { - Assert.NotNull(nodes); - return Attribute(Assert.Single(nodes), attributeName, attributeValue); - } - - public static MarkupElementIntermediateNode Element(IntermediateNode node, string tagName) - { - Assert.NotNull(node); - - var elementNode = Assert.IsType(node); - Assert.Equal(tagName, elementNode.TagName); - return elementNode; - } - - public static MarkupElementIntermediateNode Element(IntermediateNodeCollection nodes, string tagName) - { - Assert.NotNull(nodes); - return Element(Assert.Single(nodes), tagName); - } - - public static HtmlContentIntermediateNode Whitespace(IntermediateNode node) - { - Assert.NotNull(node); - - var contentNode = Assert.IsType(node); - for (var i = 0; i < contentNode.Children.Count; i++) - { - var token = Assert.IsType(contentNode.Children[i]); - Assert.Equal(TokenKind.Html, token.Kind); - Assert.True(string.IsNullOrWhiteSpace(token.Content)); - } - - return contentNode; - } - - public static HtmlContentIntermediateNode Whitespace(IntermediateNodeCollection nodes) - { - Assert.NotNull(nodes); - return Whitespace(Assert.Single(nodes)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultAllowedChildTagDescriptorBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultAllowedChildTagDescriptorBuilderTest.cs deleted file mode 100644 index 2a6b2a8198c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultAllowedChildTagDescriptorBuilderTest.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultAllowedChildTagDescriptorBuilderTest - { - [Fact] - public void Build_DisplayNameIsName() - { - // Arrange - var builder = new DefaultAllowedChildTagDescriptorBuilder(null); - builder.Name = "foo"; - - // Act - var descriptor = builder.Build(); - - // Assert - Assert.Equal("foo", descriptor.DisplayName); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultBoundAttributeDescriptorBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultBoundAttributeDescriptorBuilderTest.cs deleted file mode 100644 index 52317aa157d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultBoundAttributeDescriptorBuilderTest.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultBoundAttributeDescriptorBuilderTest - { - [Fact] - public void DisplayName_SetsDescriptorsDisplayName() - { - // Arrange - var expectedDisplayName = "ExpectedDisplayName"; - - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - - var builder = new DefaultBoundAttributeDescriptorBuilder(tagHelperBuilder, TagHelperConventions.DefaultKind); - builder.DisplayName(expectedDisplayName); - - // Act - var descriptor = builder.Build(); - - // Assert - Assert.Equal(expectedDisplayName, descriptor.DisplayName); - } - - [Fact] - public void DisplayName_DefaultsToPropertyLookingDisplayName() - { - // Arrange - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - tagHelperBuilder.TypeName("TestTagHelper"); - - var builder = new DefaultBoundAttributeDescriptorBuilder(tagHelperBuilder, TagHelperConventions.DefaultKind); - builder - .TypeName(typeof(int).FullName) - .PropertyName("SomeProperty"); - - // Act - var descriptor = builder.Build(); - - // Assert - Assert.Equal("int TestTagHelper.SomeProperty", descriptor.DisplayName); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultDocumentClassifierPassTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultDocumentClassifierPassTest.cs deleted file mode 100644 index 218d3da90da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultDocumentClassifierPassTest.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - - -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language -{ - // We're purposely lean on tests here because the functionality is well covered by - // integration tests, and is mostly implemented by the base class. - public class DefaultDocumentClassifierPassTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - - [Fact] - public void Execute_IgnoresDocumentsWithDocumentKind() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - DocumentKind = "ignore", - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var pass = new DefaultDocumentClassifierPass(); - pass.Engine = CreateProjectEngine().Engine; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - Assert.Equal("ignore", documentNode.DocumentKind); - NoChildren(documentNode); - } - - [Fact] - public void Execute_CreatesClassStructure() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var pass = new DefaultDocumentClassifierPass(); - pass.Engine = CreateProjectEngine().Engine; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - Assert.Equal("default", documentNode.DocumentKind); - - var @namespace = SingleChild(documentNode); - var @class = SingleChild(@namespace); - var method = SingleChild(@class); - NoChildren(method); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultItemCollectionTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultItemCollectionTest.cs deleted file mode 100644 index aee4d07fe0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultItemCollectionTest.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class ItemCollectionTest - { - [Fact] - public void Get_MissingValueReturnsNull() - { - // Arrange - var items = new ItemCollection(); - - // Act - var value = items["foo"]; - - // Assert - Assert.Null(value); - } - - [Fact] - public void GetAndSet_ReturnsValue() - { - // Arrange - var items = new ItemCollection(); - - var expected = "bar"; - items["foo"] = expected; - - // Act - var value = items["foo"]; - - // Assert - Assert.Same(expected, value); - } - - [Fact] - public void Set_CanSetValueToNull() - { - // Arrange - var items = new ItemCollection(); - - items["foo"] = "bar"; - - // Act - items["foo"] = null; - - // Assert - Assert.Null(items["foo"]); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorCSharpLoweringPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorCSharpLoweringPhaseTest.cs deleted file mode 100644 index e76c97557fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorCSharpLoweringPhaseTest.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Testing; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorCSharpLoweringPhaseTest - { - [Fact] - public void Execute_ThrowsForMissingDependency_IRDocument() - { - // Arrange - var phase = new DefaultRazorCSharpLoweringPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source)); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorCSharpLoweringPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + - $"provided by the '{nameof(RazorCodeDocument)}'."); - } - - [Fact] - public void Execute_ThrowsForMissingDependency_CodeTarget() - { - // Arrange - var phase = new DefaultRazorCSharpLoweringPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source)); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = "test", - }; - codeDocument.SetDocumentIntermediateNode(irDocument); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The document of kind 'test' does not have a '{nameof(CodeTarget)}'. " + - $"The document classifier must set a value for '{nameof(DocumentIntermediateNode.Target)}'."); - } - - [Fact] - public void Execute_CollatesIRDocumentDiagnosticsFromSourceDocument() - { - // Arrange - var phase = new DefaultRazorCSharpLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - var codeDocument = TestRazorCodeDocument.Create("

"I am an error.", RazorDiagnosticSeverity.Error), - new SourceSpan("SomeFile.cshtml", 11, 0, 11, 1)); - irDocument.Diagnostics.Add(expectedDiagnostic); - codeDocument.SetDocumentIntermediateNode(irDocument); - - // Act - phase.Execute(codeDocument); - - // Assert - var csharpDocument = codeDocument.GetCSharpDocument(); - var diagnostic = Assert.Single(csharpDocument.Diagnostics); - Assert.Same(expectedDiagnostic, diagnostic); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorCodeDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorCodeDocumentTest.cs deleted file mode 100644 index 415dcadb3b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorCodeDocumentTest.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorCodeDocumentTest - { - [Fact] - public void Ctor() - { - // Arrange - var source = TestRazorSourceDocument.Create(); - - var imports = new RazorSourceDocument[] - { - TestRazorSourceDocument.Create(), - }; - - // Act - var code = new DefaultRazorCodeDocument(source, imports); - - // Assert - Assert.Same(source, code.Source); - Assert.NotNull(code.Items); - - Assert.NotSame(imports, code.Imports); - Assert.Collection(imports, d => Assert.Same(imports[0], d)); - } - - [Fact] - public void Ctor_AllowsNullForImports() - { - // Arrange - var source = TestRazorSourceDocument.Create(); - - // Act - var code = new DefaultRazorCodeDocument(source, imports: null); - - // Assert - Assert.Same(source, code.Source); - Assert.NotNull(code.Items); - Assert.Empty(code.Imports); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorDiagnosticTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorDiagnosticTest.cs deleted file mode 100644 index bf8f3099ce4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorDiagnosticTest.cs +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright(c) .NET Foundation.All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Globalization; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorDiagnosticTest - { - [Fact] - public void DefaultRazorDiagnostic_Ctor() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "error", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - // Act - var diagnostic = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - - // Assert - Assert.Equal("RZ0000", diagnostic.Id); - Assert.Equal(RazorDiagnosticSeverity.Error, diagnostic.Severity); - Assert.Equal(span, diagnostic.Span); - } - - [Fact] - public void DefaultRazorDiagnostic_GetMessage() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "error", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - - // Act - var result = diagnostic.GetMessage(); - - // Assert - Assert.Equal("error", result); - } - - - [Fact] - public void DefaultRazorDiagnostic_GetMessage_WithArgs() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic = new DefaultRazorDiagnostic(descriptor, span, new[] { "error" }); - - // Act - var result = diagnostic.GetMessage(); - - // Assert - Assert.Equal("this is an error", result); - } - - [Fact] - public void DefaultRazorDiagnostic_GetMessage_WithArgs_FormatProvider() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic = new DefaultRazorDiagnostic(descriptor, span, new object[] { 1.3m }); - - // Act - var result = diagnostic.GetMessage(new CultureInfo("fr-FR")); - - // Assert - Assert.Equal("this is an 1,3", result); - } - - - [Fact] - public void DefaultRazorDiagnostic_ToString() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an error", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - - // Act - var result = diagnostic.ToString(); - - // Assert - Assert.Equal("test.cs(2,9): Error RZ0000: this is an error", result); - } - - [Fact] - public void DefaultRazorDiagnostic_ToString_FormatProvider() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic = new DefaultRazorDiagnostic(descriptor, span, new object[] { 1.3m }); - - // Act - var result = ((IFormattable)diagnostic).ToString("ignored", new CultureInfo("fr-FR")); - - // Assert - Assert.Equal("test.cs(2,9): Error RZ0000: this is an 1,3", result); - } - - [Fact] - public void DefaultRazorDiagnostic_Equals() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic1 = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - var diagnostic2 = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - - // Act - var result = diagnostic1.Equals(diagnostic2); - - // Assert - Assert.True(result); - } - - [Fact] - public void DefaultRazorDiagnostic_NotEquals_DifferentLocation() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span1 = new SourceSpan("test.cs", 15, 1, 8, 5); - var span2 = new SourceSpan("test.cs", 15, 1, 8, 3); - - var diagnostic1 = new DefaultRazorDiagnostic(descriptor, span1, new object[0]); - var diagnostic2 = new DefaultRazorDiagnostic(descriptor, span2, new object[0]); - - // Act - var result = diagnostic1.Equals(diagnostic2); - - // Assert - Assert.False(result); - } - - [Fact] - public void DefaultRazorDiagnostic_NotEquals_DifferentId() - { - // Arrange - var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic1 = new DefaultRazorDiagnostic(descriptor1, span, new object[0]); - var diagnostic2 = new DefaultRazorDiagnostic(descriptor2, span, new object[0]); - - // Act - var result = diagnostic1.Equals(diagnostic2); - - // Assert - Assert.False(result); - } - - [Fact] - public void DefaultRazorDiagnostic_HashCodesEqual() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic1 = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - var diagnostic2 = new DefaultRazorDiagnostic(descriptor, span, new object[0]); - - // Act - var result = diagnostic1.GetHashCode() == diagnostic2.GetHashCode(); - - // Assert - Assert.True(result); - } - - [Fact] - public void DefaultRazorDiagnostic_HashCodesNotEqual_DifferentLocation() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0000", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span1 = new SourceSpan("test.cs", 15, 1, 8, 5); - var span2 = new SourceSpan("test.cs", 15, 1, 8, 3); - - var diagnostic1 = new DefaultRazorDiagnostic(descriptor, span1, new object[0]); - var diagnostic2 = new DefaultRazorDiagnostic(descriptor, span2, new object[0]); - - // Act - var result = diagnostic1.GetHashCode() == diagnostic2.GetHashCode(); - - // Assert - Assert.False(result); - } - - [Fact] - public void DefaultRazorDiagnostic_HashCodesNotEqual_DifferentId() - { - // Arrange - var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", () => "this is an {0}", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - var diagnostic1 = new DefaultRazorDiagnostic(descriptor1, span, new object[0]); - var diagnostic2 = new DefaultRazorDiagnostic(descriptor2, span, new object[0]); - - // Act - var result = diagnostic1.GetHashCode() == diagnostic2.GetHashCode(); - - // Assert - Assert.False(result); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorDirectiveClassifierPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorDirectiveClassifierPhaseTest.cs deleted file mode 100644 index 306be8c4456..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorDirectiveClassifierPhaseTest.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Testing; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorDirectiveClassifierPhaseTest - { - [Fact] - public void OnInitialized_OrdersPassesInAscendingOrder() - { - // Arrange & Act - var phase = new DefaultRazorDirectiveClassifierPhase(); - - var first = Mock.Of(p => p.Order == 15); - var second = Mock.Of(p => p.Order == 17); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(second); - b.Features.Add(first); - }); - - // Assert - Assert.Collection( - phase.Passes, - p => Assert.Same(first, p), - p => Assert.Same(second, p)); - } - - [Fact] - public void Execute_ThrowsForMissingDependency() - { - // Arrange - var phase = new DefaultRazorDirectiveClassifierPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorDirectiveClassifierPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + - $"provided by the '{nameof(RazorCodeDocument)}'."); - } - - [Fact] - public void Execute_ExecutesPhasesInOrder() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // We're going to set up mocks to simulate a sequence of passes. We don't care about - // what's in the nodes, we're just going to look at the identity via strict mocks. - var originalNode = new DocumentIntermediateNode(); - var firstPassNode = new DocumentIntermediateNode(); - var secondPassNode = new DocumentIntermediateNode(); - codeDocument.SetDocumentIntermediateNode(originalNode); - - var firstPass = new Mock(MockBehavior.Strict); - firstPass.SetupGet(m => m.Order).Returns(0); - firstPass.SetupProperty(m => m.Engine); - firstPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => - { - originalNode.Children.Add(firstPassNode); - }); - - var secondPass = new Mock(MockBehavior.Strict); - secondPass.SetupGet(m => m.Order).Returns(1); - secondPass.SetupProperty(m => m.Engine); - secondPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => - { - // Works only when the first pass has run before this. - originalNode.Children[0].Children.Add(secondPassNode); - }); - - var phase = new DefaultRazorDirectiveClassifierPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(firstPass.Object); - b.Features.Add(secondPass.Object); - }); - - // Act - phase.Execute(codeDocument); - - // Assert - Assert.Same(secondPassNode, codeDocument.GetDocumentIntermediateNode().Children[0].Children[0]); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorDocumentClassifierPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorDocumentClassifierPhaseTest.cs deleted file mode 100644 index 0f384b851e7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorDocumentClassifierPhaseTest.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Testing; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorDocumentClassifierPhaseTest - { - [Fact] - public void OnInitialized_OrdersPassesInAscendingOrder() - { - // Arrange & Act - var phase = new DefaultRazorDocumentClassifierPhase(); - - var first = Mock.Of(p => p.Order == 15); - var second = Mock.Of(p => p.Order == 17); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(second); - b.Features.Add(first); - }); - - // Assert - Assert.Collection( - phase.Passes, - p => Assert.Same(first, p), - p => Assert.Same(second, p)); - } - - [Fact] - public void Execute_ThrowsForMissingDependency() - { - // Arrange - var phase = new DefaultRazorDocumentClassifierPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorDocumentClassifierPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + - $"provided by the '{nameof(RazorCodeDocument)}'."); - } - - [Fact] - public void Execute_ExecutesPhasesInOrder() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // We're going to set up mocks to simulate a sequence of passes. We don't care about - // what's in the nodes, we're just going to look at the identity via strict mocks. - var originalNode = new DocumentIntermediateNode(); - var firstPassNode = new DocumentIntermediateNode(); - var secondPassNode = new DocumentIntermediateNode(); - codeDocument.SetDocumentIntermediateNode(originalNode); - - var firstPass = new Mock(MockBehavior.Strict); - firstPass.SetupGet(m => m.Order).Returns(0); - firstPass.SetupProperty(m => m.Engine); - firstPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => - { - originalNode.Children.Add(firstPassNode); - }); - - var secondPass = new Mock(MockBehavior.Strict); - secondPass.SetupGet(m => m.Order).Returns(1); - secondPass.SetupProperty(m => m.Engine); - secondPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => - { - // Works only when the first pass has run before this. - originalNode.Children[0].Children.Add(secondPassNode); - }); - - var phase = new DefaultRazorDocumentClassifierPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(firstPass.Object); - b.Features.Add(secondPass.Object); - }); - - // Act - phase.Execute(codeDocument); - - // Assert - Assert.Same(secondPassNode, codeDocument.GetDocumentIntermediateNode().Children[0].Children[0]); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorEngineBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorEngineBuilderTest.cs deleted file mode 100644 index a1c804287a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorEngineBuilderTest.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorEngineBuilderTest - { - [Fact] - public void Build_AddsFeaturesAndPhases() - { - // Arrange - var builder = new DefaultRazorEngineBuilder(designTime: false); - - builder.Features.Add(Mock.Of()); - builder.Features.Add(Mock.Of()); - - builder.Phases.Add(Mock.Of()); - builder.Phases.Add(Mock.Of()); - - var features = builder.Features.ToArray(); - var phases = builder.Phases.ToArray(); - - // Act - var engine = builder.Build(); - - // Assert - Assert.Collection( - engine.Features, - f => Assert.Same(features[0], f), - f => Assert.Same(features[1], f)); - - Assert.Collection( - engine.Phases, - p => Assert.Same(phases[0], p), - p => Assert.Same(phases[1], p)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorEngineTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorEngineTest.cs deleted file mode 100644 index 15b31229698..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorEngineTest.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorEngineTest - { - [Fact] - public void Ctor_InitializesPhasesAndFeatures() - { - // Arrange - var features = new IRazorEngineFeature[] - { - Mock.Of(), - Mock.Of(), - }; - - var phases = new IRazorEnginePhase[] - { - Mock.Of(), - Mock.Of(), - }; - - // Act - var engine = new DefaultRazorEngine(features, phases); - - // Assert - for (var i = 0; i < features.Length; i++) - { - Assert.Same(engine, features[i].Engine); - } - - for (var i = 0; i < phases.Length; i++) - { - Assert.Same(engine, phases[i].Engine); - } - } - - [Fact] - public void Process_CallsAllPhases() - { - // Arrange - var features = new IRazorEngineFeature[] - { - Mock.Of(), - Mock.Of(), - }; - - var phases = new IRazorEnginePhase[] - { - Mock.Of(), - Mock.Of(), - }; - - var engine = new DefaultRazorEngine(features, phases); - var document = TestRazorCodeDocument.CreateEmpty(); - - // Act - engine.Process(document); - - // Assert - for (var i = 0; i < phases.Length; i++) - { - var mock = Mock.Get(phases[i]); - mock.Verify(p => p.Execute(document), Times.Once()); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs deleted file mode 100644 index 4d008b89d90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs +++ /dev/null @@ -1,541 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Moq; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest - { - [Fact] - public void Lower_SetsOptions_Defaults() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Assert.NotNull(documentNode.Options); - Assert.False(documentNode.Options.DesignTime); - Assert.Equal(4, documentNode.Options.IndentSize); - Assert.False(documentNode.Options.IndentWithTabs); - } - - [Fact] - public void Lower_SetsOptions_RunsConfigureCallbacks() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var callback = new Mock(); - callback - .Setup(c => c.Configure(It.IsAny())) - .Callback(o => - { - o.IndentSize = 17; - o.IndentWithTabs = true; - o.SuppressChecksum = true; - }); - - // Act - var documentNode = Lower( - codeDocument, - builder: b => - { - b.Features.Add(callback.Object); - }, - designTime: true); - - // Assert - Assert.NotNull(documentNode.Options); - Assert.True(documentNode.Options.DesignTime); - Assert.Equal(17, documentNode.Options.IndentSize); - Assert.True(documentNode.Options.IndentWithTabs); - Assert.True(documentNode.Options.SuppressChecksum); - } - - [Fact] - public void Lower_HelloWorld() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create("Hello, World!"); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children(documentNode, - n => Html("Hello, World!", n)); - } - - [Fact] - public void Lower_HtmlWithDataDashAttributes() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@" - - - - -"); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children(documentNode, - n => Html( -@" - - - CSharpExpression("Hello", n), - n => Html(@""" /> - -", n)); - } - - [Fact] - public void Lower_HtmlWithConditionalAttributes() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@" - - - - -"); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children(documentNode, - n => Html( -@" - - - ConditionalAttribute( - prefix: " val=\"", - name: "val", - suffix: "\"", - node: n, - valueValidators: new Action[] - { - value => CSharpExpressionAttributeValue(string.Empty, "Hello", value), - value => LiteralAttributeValue(" ", "World", value) - }), - n => Html(@" /> - -", n)); - } - - [Fact] - public void Lower_WithFunctions() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@"@functions { public int Foo { get; set; }}"); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children(documentNode, - n => Directive( - "functions", - n, - c => Assert.IsType(c))); - } - - [Fact] - public void Lower_WithUsing() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@"@using System"); - var expectedSourceLocation = new SourceSpan(codeDocument.Source.FilePath, 1, 0, 1, 12); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children(documentNode, - n => - { - Using("System", n); - Assert.Equal(expectedSourceLocation, n.Source); - }); - } - - [Fact] - public void Lower_TagHelpers() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@"@addTagHelper *, TestAssembly -"); - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "span", - typeName: "SpanTagHelper", - assemblyName: "TestAssembly") - }; - - // Act - var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); - - // Assert - Children(documentNode, - n => Directive( - SyntaxConstants.CSharp.AddTagHelperKeyword, - n, - v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)), - n => TagHelper( - "span", - TagMode.StartTagAndEndTag, - tagHelpers, - n, - c => Assert.IsType(c), - c => TagHelperHtmlAttribute( - "val", - AttributeStructure.DoubleQuotes, - c, - v => CSharpExpressionAttributeValue(string.Empty, "Hello", v), - v => LiteralAttributeValue(" ", "World", v)))); - } - - [Fact] - public void Lower_TagHelpers_WithPrefix() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@"@addTagHelper *, TestAssembly -@tagHelperPrefix cool: -"); - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "span", - typeName: "SpanTagHelper", - assemblyName: "TestAssembly") - }; - - // Act - var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); - - // Assert - Children(documentNode, - n => Directive( - SyntaxConstants.CSharp.AddTagHelperKeyword, - n, - v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)), - n => Directive( - SyntaxConstants.CSharp.TagHelperPrefixKeyword, - n, - v => DirectiveToken(DirectiveTokenKind.String, "cool:", v)), - n => TagHelper( - "span", // Note: this is span not cool:span - TagMode.StartTagAndEndTag, - tagHelpers, - n, - c => Assert.IsType(c), - c => TagHelperHtmlAttribute( - "val", - AttributeStructure.DoubleQuotes, - c, - v => CSharpExpressionAttributeValue(string.Empty, "Hello", v), - v => LiteralAttributeValue(" ", "World", v)))); - } - - [Fact] - public void Lower_TagHelper_InSection() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@"@addTagHelper *, TestAssembly -@section test { - -}"); - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "span", - typeName: "SpanTagHelper", - assemblyName: "TestAssembly") - }; - - // Act - var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); - - // Assert - Children( - documentNode, - n => Directive( - SyntaxConstants.CSharp.AddTagHelperKeyword, - n, - v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)), - n => Directive( - "section", - n, - c1 => DirectiveToken(DirectiveTokenKind.Member, "test", c1), - c1 => Html(Environment.NewLine, c1), - c1 => TagHelper( - "span", - TagMode.StartTagAndEndTag, - tagHelpers, - c1, - c2 => Assert.IsType(c2), - c2 => TagHelperHtmlAttribute( - "val", - AttributeStructure.DoubleQuotes, - c2, - v => CSharpExpressionAttributeValue(string.Empty, "Hello", v), - v => LiteralAttributeValue(" ", "World", v))), - c1 => Html(Environment.NewLine, c1))); - } - - [Fact] - public void Lower_TagHelpersWithBoundAttribute() - { - // Arrange - var codeDocument = TestRazorCodeDocument.Create(@"@addTagHelper *, TestAssembly -"); - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("FooProp") - .TypeName("System.String"), - }) - }; - - // Act - var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); - - // Assert - Children( - documentNode, - n => Directive( - SyntaxConstants.CSharp.AddTagHelperKeyword, - n, - v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)), - n => TagHelper( - "input", - TagMode.SelfClosing, - tagHelpers, - n, - c => Assert.IsType(c), - c => SetTagHelperProperty( - "bound", - "FooProp", - AttributeStructure.SingleQuotes, - c, - v => Html("foo", v)))); - } - - [Fact] - public void Lower_WithImports_Using() - { - // Arrange - var source = TestRazorSourceDocument.Create(@"@using System.Threading.Tasks -

Hi!

"); - var imports = new[] - { - TestRazorSourceDocument.Create("@using System.Globalization"), - TestRazorSourceDocument.Create("@using System.Text"), - }; - - var codeDocument = TestRazorCodeDocument.Create(source, imports); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children( - documentNode, - n => Using("System.Globalization", n), - n => Using("System.Text", n), - n => Using("System.Threading.Tasks", n), - n => Html("

Hi!

", n)); - } - - [Fact] - public void Lower_WithImports_AllowsIdenticalNamespacesInPrimaryDocument() - { - // Arrange - var source = TestRazorSourceDocument.Create(@"@using System.Threading.Tasks -@using System.Threading.Tasks"); - var imports = new[] - { - TestRazorSourceDocument.Create("@using System.Threading.Tasks"), - }; - - var codeDocument = TestRazorCodeDocument.Create(source, imports); - - // Act - var documentNode = Lower(codeDocument); - - // Assert - Children( - documentNode, - n => Using("System.Threading.Tasks", n), - n => Using("System.Threading.Tasks", n)); - } - - [Fact] - public void Lower_WithMultipleImports_SingleLineFileScopedSinglyOccurring() - { - // Arrange - var source = TestRazorSourceDocument.Create("

Hi!

"); - var imports = new[] - { - TestRazorSourceDocument.Create("@test value1"), - TestRazorSourceDocument.Create("@test value2"), - }; - - var codeDocument = TestRazorCodeDocument.Create(source, imports); - - // Act - var documentNode = Lower(codeDocument, b => - { - b.AddDirective(DirectiveDescriptor.CreateDirective( - "test", - DirectiveKind.SingleLine, - builder => - { - builder.AddMemberToken(); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - })); - }); - - // Assert - Children( - documentNode, - n => Directive("test", n, c => DirectiveToken(DirectiveTokenKind.Member, "value2", c)), - n => Html("

Hi!

", n)); - } - - [Fact] - public void Lower_WithImports_IgnoresBlockDirective() - { - // Arrange - var source = TestRazorSourceDocument.Create("

Hi!

"); - var imports = new[] - { - TestRazorSourceDocument.Create("@block token { }"), - }; - - var codeDocument = TestRazorCodeDocument.Create(source, imports); - - // Act - var documentNode = Lower(codeDocument, b => - { - b.AddDirective(DirectiveDescriptor.CreateDirective("block", DirectiveKind.RazorBlock, d => d.AddMemberToken())); - }); - - // Assert - Children( - documentNode, - n => Html("

Hi!

", n)); - } - - private DocumentIntermediateNode Lower( - RazorCodeDocument codeDocument, - Action builder = null, - IEnumerable tagHelpers = null, - bool designTime = false) - { - tagHelpers = tagHelpers ?? new TagHelperDescriptor[0]; - - Action configureEngine = b => - { - builder?.Invoke(b); - - SectionDirective.Register(b); - b.AddTagHelpers(tagHelpers); - - b.Features.Add(new DesignTimeOptionsFeature(designTime)); - }; - - var projectEngine = RazorProjectEngine.Create(configureEngine); - - for (var i = 0; i < projectEngine.Phases.Count; i++) - { - var phase = projectEngine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorIntermediateNodeLoweringPhase) - { - break; - } - } - - var documentNode = codeDocument.GetDocumentIntermediateNode(); - Assert.NotNull(documentNode); - - return documentNode; - } - - private static TagHelperDescriptor CreateTagHelperDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null) - { - var builder = TagHelperDescriptorBuilder.Create(typeName, assemblyName); - builder.TypeName(typeName); - - if (attributes != null) - { - foreach (var attributeBuilder in attributes) - { - builder.BoundAttributeDescriptor(attributeBuilder); - } - } - - builder.TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName(tagName)); - - var descriptor = builder.Build(); - - return descriptor; - } - - private class DesignTimeOptionsFeature : IConfigureRazorParserOptionsFeature, IConfigureRazorCodeGenerationOptionsFeature - { - private bool _designTime; - - public DesignTimeOptionsFeature(bool designTime) - { - _designTime = designTime; - } - - public int Order { get; } - - public RazorEngine Engine { get; set; } - - public void Configure(RazorParserOptionsBuilder options) - { - options.SetDesignTime(_designTime); - } - - public void Configure(RazorCodeGenerationOptionsBuilder options) - { - options.SetDesignTime(_designTime); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs deleted file mode 100644 index 908983d50a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs +++ /dev/null @@ -1,298 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Testing; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorIntermediateNodeLoweringPhaseTest - { - [Fact] - public void Execute_AutomaticallyImportsSingleLineSinglyOccurringDirective() - { - // Arrange - var directive = DirectiveDescriptor.CreateSingleLineDirective( - "custom", - builder => - { - builder.AddStringToken(); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - }); - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - b.AddDirective(directive); - }); - var options = RazorParserOptions.Create(builder => builder.Directives.Add(directive)); - var importSource = TestRazorSourceDocument.Create("@custom \"hello\"", filePath: "import.cshtml"); - var codeDocument = TestRazorCodeDocument.Create("

NonDirective

"); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options)); - codeDocument.SetImportSyntaxTrees(new[] { RazorSyntaxTree.Parse(importSource, options) }); - - // Act - phase.Execute(codeDocument); - - // Assert - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var customDirectives = documentNode.FindDirectiveReferences(directive); - var customDirective = (DirectiveIntermediateNode)Assert.Single(customDirectives).Node; - var stringToken = Assert.Single(customDirective.Tokens); - Assert.Equal("\"hello\"", stringToken.Content); - } - - [Fact] - public void Execute_AutomaticallyOverridesImportedSingleLineSinglyOccurringDirective_MainDocument() - { - // Arrange - var directive = DirectiveDescriptor.CreateSingleLineDirective( - "custom", - builder => - { - builder.AddStringToken(); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - }); - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - b.AddDirective(directive); - }); - var options = RazorParserOptions.Create(builder => builder.Directives.Add(directive)); - var importSource = TestRazorSourceDocument.Create("@custom \"hello\"", filePath: "import.cshtml"); - var codeDocument = TestRazorCodeDocument.Create("@custom \"world\""); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options)); - codeDocument.SetImportSyntaxTrees(new[] { RazorSyntaxTree.Parse(importSource, options) }); - - // Act - phase.Execute(codeDocument); - - // Assert - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var customDirectives = documentNode.FindDirectiveReferences(directive); - var customDirective = (DirectiveIntermediateNode)Assert.Single(customDirectives).Node; - var stringToken = Assert.Single(customDirective.Tokens); - Assert.Equal("\"world\"", stringToken.Content); - } - - [Fact] - public void Execute_AutomaticallyOverridesImportedSingleLineSinglyOccurringDirective_MultipleImports() - { - // Arrange - var directive = DirectiveDescriptor.CreateSingleLineDirective( - "custom", - builder => - { - builder.AddStringToken(); - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - }); - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - b.AddDirective(directive); - }); - var options = RazorParserOptions.Create(builder => builder.Directives.Add(directive)); - var importSource1 = TestRazorSourceDocument.Create("@custom \"hello\"", filePath: "import1.cshtml"); - var importSource2 = TestRazorSourceDocument.Create("@custom \"world\"", filePath: "import2.cshtml"); - var codeDocument = TestRazorCodeDocument.Create("

NonDirective

"); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options)); - codeDocument.SetImportSyntaxTrees(new[] { RazorSyntaxTree.Parse(importSource1, options), RazorSyntaxTree.Parse(importSource2, options) }); - - // Act - phase.Execute(codeDocument); - - // Assert - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var customDirectives = documentNode.FindDirectiveReferences(directive); - var customDirective = (DirectiveIntermediateNode)Assert.Single(customDirectives).Node; - var stringToken = Assert.Single(customDirective.Tokens); - Assert.Equal("\"world\"", stringToken.Content); - } - - [Fact] - public void Execute_DoesNotImportNonFileScopedSinglyOccurringDirectives_Block() - { - // Arrange - var codeBlockDirective = DirectiveDescriptor.CreateCodeBlockDirective("code", b => b.AddStringToken()); - var razorBlockDirective = DirectiveDescriptor.CreateRazorBlockDirective("razor", b => b.AddStringToken()); - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - b.AddDirective(codeBlockDirective); - b.AddDirective(razorBlockDirective); - }); - var options = RazorParserOptions.Create(builder => - { - builder.Directives.Add(codeBlockDirective); - builder.Directives.Add(razorBlockDirective); - }); - var importSource = TestRazorSourceDocument.Create( -@"@code ""code block"" { } -@razor ""razor block"" { }", - filePath: "testImports.cshtml"); - var codeDocument = TestRazorCodeDocument.Create("

NonDirective

"); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options)); - codeDocument.SetImportSyntaxTrees(new[] { RazorSyntaxTree.Parse(importSource, options) }); - - // Act - phase.Execute(codeDocument); - - // Assert - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var directives = documentNode.Children.OfType(); - Assert.Empty(directives); - } - - [Fact] - public void Execute_ErrorsForCodeBlockFileScopedSinglyOccurringDirectives() - { - // Arrange - var directive = DirectiveDescriptor.CreateCodeBlockDirective("custom", b => b.Usage = DirectiveUsage.FileScopedSinglyOccurring); - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - b.AddDirective(directive); - }); - var options = RazorParserOptions.Create(builder => builder.Directives.Add(directive)); - var importSource = TestRazorSourceDocument.Create("@custom { }", filePath: "import.cshtml"); - var codeDocument = TestRazorCodeDocument.Create("

NonDirective

"); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options)); - codeDocument.SetImportSyntaxTrees(new[] { RazorSyntaxTree.Parse(importSource, options) }); - var expectedDiagnostic = RazorDiagnosticFactory.CreateDirective_BlockDirectiveCannotBeImported("custom"); - - // Act - phase.Execute(codeDocument); - - // Assert - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var directives = documentNode.Children.OfType(); - Assert.Empty(directives); - var diagnostic = Assert.Single(documentNode.GetAllDiagnostics()); - Assert.Equal(expectedDiagnostic, diagnostic); - } - - [Fact] - public void Execute_ErrorsForRazorBlockFileScopedSinglyOccurringDirectives() - { - // Arrange - var directive = DirectiveDescriptor.CreateRazorBlockDirective("custom", b => b.Usage = DirectiveUsage.FileScopedSinglyOccurring); - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - b.AddDirective(directive); - }); - var options = RazorParserOptions.Create(builder => builder.Directives.Add(directive)); - var importSource = TestRazorSourceDocument.Create("@custom { }", filePath: "import.cshtml"); - var codeDocument = TestRazorCodeDocument.Create("

NonDirective

"); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source, options)); - codeDocument.SetImportSyntaxTrees(new[] { RazorSyntaxTree.Parse(importSource, options) }); - var expectedDiagnostic = RazorDiagnosticFactory.CreateDirective_BlockDirectiveCannotBeImported("custom"); - - // Act - phase.Execute(codeDocument); - - // Assert - var documentNode = codeDocument.GetDocumentIntermediateNode(); - var directives = documentNode.Children.OfType(); - Assert.Empty(directives); - var diagnostic = Assert.Single(documentNode.GetAllDiagnostics()); - Assert.Equal(expectedDiagnostic, diagnostic); - } - - [Fact] - public void Execute_ThrowsForMissingDependency_SyntaxTree() - { - // Arrange - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - }); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorIntermediateNodeLoweringPhase)}' phase requires a '{nameof(RazorSyntaxTree)}' " + - $"provided by the '{nameof(RazorCodeDocument)}'."); - } - - [Fact] - public void Execute_CollatesSyntaxDiagnosticsFromSourceDocument() - { - // Arrange - var phase = new DefaultRazorIntermediateNodeLoweringPhase(); - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - }); - var codeDocument = TestRazorCodeDocument.Create("

- { - b.Phases.Add(phase); - b.Features.Add(new DefaultRazorCodeGenerationOptionsFeature(designTime: false)); - }); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source)); - codeDocument.SetImportSyntaxTrees(new[] - { - RazorSyntaxTree.Parse(TestRazorSourceDocument.Create("@ ")), - RazorSyntaxTree.Parse(TestRazorSourceDocument.Create("

- { - Assert.Equal(@"A space or line break was encountered after the ""@"" character. Only valid identifiers, keywords, comments, ""("" and ""{"" are valid at the start of a code block and they must occur immediately following ""@"" with no space in between.", - diagnostic.GetMessage()); - }, - diagnostic => - { - Assert.Equal(@"The explicit expression block is missing a closing "")"" character. Make sure you have a matching "")"" character for all the ""("" characters within this block, and that none of the "")"" characters are being interpreted as markup.", - diagnostic.GetMessage()); - }); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorOptimizationPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorOptimizationPhaseTest.cs deleted file mode 100644 index 5a1d6eb2388..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorOptimizationPhaseTest.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Testing; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorOptimizationPhaseTest - { - [Fact] - public void OnInitialized_OrdersPassesInAscendingOrder() - { - // Arrange & Act - var phase = new DefaultRazorOptimizationPhase(); - - var first = Mock.Of(p => p.Order == 15); - var second = Mock.Of(p => p.Order == 17); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(second); - b.Features.Add(first); - }); - - // Assert - Assert.Collection( - phase.Passes, - p => Assert.Same(first, p), - p => Assert.Same(second, p)); - } - - [Fact] - public void Execute_ThrowsForMissingDependency() - { - // Arrange - var phase = new DefaultRazorOptimizationPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorOptimizationPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + - $"provided by the '{nameof(RazorCodeDocument)}'."); - } - - [Fact] - public void Execute_ExecutesPhasesInOrder() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // We're going to set up mocks to simulate a sequence of passes. We don't care about - // what's in the nodes, we're just going to look at the identity via strict mocks. - var originalNode = new DocumentIntermediateNode(); - var firstPassNode = new DocumentIntermediateNode(); - var secondPassNode = new DocumentIntermediateNode(); - codeDocument.SetDocumentIntermediateNode(originalNode); - - var firstPass = new Mock(MockBehavior.Strict); - firstPass.SetupGet(m => m.Order).Returns(0); - firstPass.SetupProperty(m => m.Engine); - firstPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => - { - originalNode.Children.Add(firstPassNode); - }); - - var secondPass = new Mock(MockBehavior.Strict); - secondPass.SetupGet(m => m.Order).Returns(1); - secondPass.SetupProperty(m => m.Engine); - secondPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => - { - // Works only when the first pass has run before this. - originalNode.Children[0].Children.Add(secondPassNode); - }); - - var phase = new DefaultRazorOptimizationPhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(firstPass.Object); - b.Features.Add(secondPass.Object); - }); - - // Act - phase.Execute(codeDocument); - - // Assert - Assert.Same(secondPassNode, codeDocument.GetDocumentIntermediateNode().Children[0].Children[0]); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorParsingPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorParsingPhaseTest.cs deleted file mode 100644 index 43fdf32031f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorParsingPhaseTest.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorParsingPhaseTest - { - [Fact] - public void Execute_AddsSyntaxTree() - { - // Arrange - var phase = new DefaultRazorParsingPhase(); - var engine = RazorProjectEngine.CreateEmpty(builder => - { - builder.Phases.Add(phase); - builder.Features.Add(new DefaultRazorParserOptionsFeature(designTime: false, version: RazorLanguageVersion.Latest, fileKind: null)); - }); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act - phase.Execute(codeDocument); - - // Assert - Assert.NotNull(codeDocument.GetSyntaxTree()); - } - - [Fact] - public void Execute_UsesConfigureParserFeatures() - { - // Arrange - var phase = new DefaultRazorParsingPhase(); - var engine = RazorProjectEngine.CreateEmpty((builder) => - { - builder.Phases.Add(phase); - builder.Features.Add(new DefaultRazorParserOptionsFeature(designTime: false, version: RazorLanguageVersion.Latest, fileKind: null)); - builder.Features.Add(new MyParserOptionsFeature()); - }); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act - phase.Execute(codeDocument); - - // Assert - var syntaxTree = codeDocument.GetSyntaxTree(); - var directive = Assert.Single(syntaxTree.Options.Directives); - Assert.Equal("test", directive.Directive); - } - - [Fact] - public void Execute_ParsesImports() - { - // Arrange - var phase = new DefaultRazorParsingPhase(); - var engine = RazorProjectEngine.CreateEmpty((builder) => - { - builder.Phases.Add(phase); - builder.Features.Add(new DefaultRazorParserOptionsFeature(designTime: false, version: RazorLanguageVersion.Latest, fileKind: null)); - builder.Features.Add(new MyParserOptionsFeature()); - }); - - var imports = new[] - { - TestRazorSourceDocument.Create(), - TestRazorSourceDocument.Create(), - }; - - var codeDocument = TestRazorCodeDocument.Create(TestRazorSourceDocument.Create(), imports); - - // Act - phase.Execute(codeDocument); - - // Assert - Assert.Collection( - codeDocument.GetImportSyntaxTrees(), - t => { Assert.Same(t.Source, imports[0]); Assert.Equal("test", Assert.Single(t.Options.Directives).Directive); }, - t => { Assert.Same(t.Source, imports[1]); Assert.Equal("test", Assert.Single(t.Options.Directives).Directive); }); - } - - private class MyParserOptionsFeature : RazorEngineFeatureBase, IConfigureRazorParserOptionsFeature - { - public int Order { get; } - - public void Configure(RazorParserOptionsBuilder options) - { - options.Directives.Add(DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine)); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineBuilderTest.cs deleted file mode 100644 index 5323ba3ffa2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineBuilderTest.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorProjectEngineBuilderTest - { - [Fact] - public void Build_AddsFeaturesToRazorEngine() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - builder.Features.Add(Mock.Of()); - builder.Features.Add(Mock.Of()); - builder.Features.Add(Mock.Of()); - - var features = builder.Features.ToArray(); - - // Act - var projectEngine = builder.Build(); - - // Assert - Assert.Collection(projectEngine.Engine.Features, - feature => Assert.Same(features[0], feature), - feature => Assert.Same(features[1], feature)); - } - - [Fact] - public void Build_AddsPhasesToRazorEngine() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - builder.Phases.Add(Mock.Of()); - builder.Phases.Add(Mock.Of()); - - var phases = builder.Phases.ToArray(); - - // Act - var projectEngine = builder.Build(); - - // Assert - Assert.Collection(projectEngine.Engine.Phases, - phase => Assert.Same(phases[0], phase), - phase => Assert.Same(phases[1], phase)); - } - - [Fact] - public void Build_CreatesProjectEngineWithFileSystem() - { - // Arrange - var fileSystem = Mock.Of(); - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, fileSystem); - - // Act - var projectEngine = builder.Build(); - - // Assert - Assert.Same(fileSystem, projectEngine.FileSystem); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineIntegrationTest.cs deleted file mode 100644 index 10cee4a70bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineIntegrationTest.cs +++ /dev/null @@ -1,351 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorProjectEngineIntegrationTest - { - [Fact] - public void Process_SetsOptions_Runtime() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var parserOptions = codeDocument.GetParserOptions(); - Assert.False(parserOptions.DesignTime); - - var codeGenerationOptions = codeDocument.GetCodeGenerationOptions(); - Assert.False(codeGenerationOptions.DesignTime); - Assert.False(codeGenerationOptions.SuppressChecksum); - Assert.False(codeGenerationOptions.SuppressMetadataAttributes); - } - - [Fact] - public void ProcessDesignTime_SetsOptions_DesignTime() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(projectItem); - - // Assert - var parserOptions = codeDocument.GetParserOptions(); - Assert.True(parserOptions.DesignTime); - - var codeGenerationOptions = codeDocument.GetCodeGenerationOptions(); - Assert.True(codeGenerationOptions.DesignTime); - Assert.True(codeGenerationOptions.SuppressChecksum); - Assert.True(codeGenerationOptions.SuppressMetadataAttributes); - } - - [Fact] - public void Process_GetsImportsFromFeature() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var testImport = Mock.Of(i => i.Read() == new MemoryStream() && i.FilePath == "testvalue" && i.Exists == true); - var importFeature = new Mock(); - importFeature - .Setup(feature => feature.GetImports(It.IsAny())) - .Returns(new[] { testImport }); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty, builder => - { - builder.SetImportFeature(importFeature.Object); - }); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var import = Assert.Single(codeDocument.Imports); - Assert.Equal("testvalue", import.FilePath); - } - - [Fact] - public void Process_GetsImportsFromFeature_MultipleFeatures() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var testImport1 = Mock.Of(i => i.Read() == new MemoryStream() && i.FilePath == "testvalue1" && i.Exists == true); - var importFeature1 = new Mock(); - importFeature1 - .Setup(feature => feature.GetImports(It.IsAny())) - .Returns(new[] { testImport1 }); - - var testImport2 = Mock.Of(i => i.Read() == new MemoryStream() && i.FilePath == "testvalue2" && i.Exists == true); - var importFeature2 = new Mock(); - importFeature2 - .Setup(feature => feature.GetImports(It.IsAny())) - .Returns(new[] { testImport2 }); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty, builder => - { - builder.Features.Add(importFeature1.Object); - builder.Features.Add(importFeature2.Object); - }); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - Assert.Collection(codeDocument.Imports, - i => Assert.Equal("testvalue1", i.FilePath), - i => Assert.Equal("testvalue2", i.FilePath)); - } - - [Fact] - public void Process_GeneratesCodeDocumentWithValidCSharpDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var csharpDocument = codeDocument.GetCSharpDocument(); - Assert.NotNull(csharpDocument); - Assert.Empty(csharpDocument.Diagnostics); - } - - [Fact] - public void Process_WithImportsAndTagHelpers_SetsOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - var importItem = new TestRazorProjectItem("_import.cshtml"); - var expectedImports = new[] { RazorSourceDocument.ReadFrom(importItem) }; - var expectedTagHelpers = new[] - { - TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly").Build(), - TagHelperDescriptorBuilder.Create("Test2TagHelper", "TestAssembly").Build(), - }; - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(RazorSourceDocument.ReadFrom(projectItem), "test", expectedImports, expectedTagHelpers); - - // Assert - var tagHelpers = codeDocument.GetTagHelpers(); - Assert.Same(expectedTagHelpers, tagHelpers); - Assert.Equal(expectedImports, codeDocument.Imports); - } - - [Fact] - public void Process_WithFileKind_SetsOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(RazorSourceDocument.ReadFrom(projectItem), "test", Array.Empty(), tagHelpers: null); - - // Assert - var actual = codeDocument.GetFileKind(); - Assert.Equal("test", actual); - } - - [Fact] - public void Process_WithNullTagHelpers_SetsOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(RazorSourceDocument.ReadFrom(projectItem), "test", Array.Empty(), tagHelpers: null); - - // Assert - var tagHelpers = codeDocument.GetTagHelpers(); - Assert.Null(tagHelpers); - } - - [Fact] - public void Process_SetsNullTagHelpersOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var tagHelpers = codeDocument.GetTagHelpers(); - Assert.Null(tagHelpers); - } - - [Fact] - public void Process_SetsInferredFileKindOnCodeDocument_MvcFile() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var actual = codeDocument.GetFileKind(); - Assert.Same(FileKinds.Legacy, actual); - } - - [Fact] - public void Process_SetsInferredFileKindOnCodeDocument_Component() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.razor"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var actual = codeDocument.GetFileKind(); - Assert.Same(FileKinds.Component, actual); - } - - [Fact] - public void Process_WithNullImports_SetsEmptyListOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.Process(RazorSourceDocument.ReadFrom(projectItem), "test", importSources: null, tagHelpers: null); - - // Assert - Assert.Empty(codeDocument.Imports); - } - - [Fact] - public void ProcessDesignTime_WithImportsAndTagHelpers_SetsOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - var importItem = new TestRazorProjectItem("_import.cshtml"); - var expectedImports = new[] { RazorSourceDocument.ReadFrom(importItem) }; - var expectedTagHelpers = new[] - { - TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly").Build(), - TagHelperDescriptorBuilder.Create("Test2TagHelper", "TestAssembly").Build(), - }; - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(RazorSourceDocument.ReadFrom(projectItem), "test", expectedImports, expectedTagHelpers); - - // Assert - var tagHelpers = codeDocument.GetTagHelpers(); - Assert.Same(expectedTagHelpers, tagHelpers); - Assert.Equal(expectedImports, codeDocument.Imports); - } - - [Fact] - public void ProcessDesignTime_WithNullTagHelpers_SetsOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(RazorSourceDocument.ReadFrom(projectItem), "test", Array.Empty(), tagHelpers: null); - - // Assert - var tagHelpers = codeDocument.GetTagHelpers(); - Assert.Null(tagHelpers); - } - - [Fact] - public void ProcessDesignTime_SetsInferredFileKindOnCodeDocument_MvcFile() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(projectItem); - - // Assert - var actual = codeDocument.GetFileKind(); - Assert.Same(FileKinds.Legacy, actual); - } - - [Fact] - public void ProcessDesignTime_SetsInferredFileKindOnCodeDocument_Component() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.razor"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(projectItem); - - // Assert - var actual = codeDocument.GetFileKind(); - Assert.Same(FileKinds.Component, actual); - } - - [Fact] - public void ProcessDesignTime_SetsNullTagHelpersOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(projectItem); - - // Assert - var tagHelpers = codeDocument.GetTagHelpers(); - Assert.Null(tagHelpers); - } - - [Fact] - public void ProcessDesignTime_WithNullImports_SetsEmptyListOnCodeDocument() - { - // Arrange - var projectItem = new TestRazorProjectItem("Index.cshtml"); - - var projectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, TestRazorProjectFileSystem.Empty); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(RazorSourceDocument.ReadFrom(projectItem), "test", importSources: null, tagHelpers: null); - - // Assert - Assert.Empty(codeDocument.Imports); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineTest.cs deleted file mode 100644 index c70cdab6632..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectEngineTest.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorProjectEngineTest - { - [Fact] - public void GetImportSourceDocuments_DoesNotIncludeNonExistentItems() - { - // Arrange - var existingItem = new TestRazorProjectItem("Index.cshtml"); - var nonExistentItem = Mock.Of(item => item.Exists == false); - var items = new[] { existingItem, nonExistentItem }; - - // Act - var sourceDocuments = DefaultRazorProjectEngine.GetImportSourceDocuments(items); - - // Assert - var sourceDocument = Assert.Single(sourceDocuments); - Assert.Equal(existingItem.FilePath, sourceDocument.FilePath); - } - - [Fact] - public void GetImportSourceDocuments_UnreadableItem_Throws() - { - // Arrange - var projectItem = new Mock(MockBehavior.Strict); - projectItem.SetupGet(p => p.Exists).Returns(true); - projectItem.SetupGet(p => p.PhysicalPath).Returns("path/to/file.cshtml"); - projectItem.Setup(p => p.Read()).Throws(new IOException("Couldn't read file.")); - var items = new[] { projectItem.Object }; - - // Act & Assert - var exception = Assert.Throws(() => DefaultRazorProjectEngine.GetImportSourceDocuments(items)); - Assert.Equal("Couldn't read file.", exception.Message); - } - - [Fact] - public void GetImportSourceDocuments_WithSuppressExceptions_UnreadableItem_DoesNotThrow() - { - // Arrange - var projectItem = new Mock(MockBehavior.Strict); - projectItem.SetupGet(p => p.Exists).Returns(true); - projectItem.SetupGet(p => p.PhysicalPath).Returns("path/to/file.cshtml"); - projectItem.SetupGet(p => p.FilePath).Returns("path/to/file.cshtml"); - projectItem.SetupGet(p => p.RelativePhysicalPath).Returns("path/to/file.cshtml"); - projectItem.Setup(p => p.Read()).Throws(new IOException("Couldn't read file.")); - var items = new[] { projectItem.Object }; - - // Act - var sourceDocuments = DefaultRazorProjectEngine.GetImportSourceDocuments(items, suppressExceptions: true); - - // Assert - Does not throw - Assert.Empty(sourceDocuments); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectFileSystemTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectFileSystemTest.cs deleted file mode 100644 index a158f1dc8a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectFileSystemTest.cs +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Linq; -using Microsoft.AspNetCore.Testing; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorProjectFileSystemTest - { - private static string TestFolder { get; } = Path.Combine( - TestProject.GetProjectDirectory(typeof(DefaultRazorProjectFileSystemTest)), - "TestFiles", - "DefaultRazorProjectFileSystem"); - - [Theory] - [InlineData(null)] - [InlineData("")] - public void NormalizeAndEnsureValidPath_ThrowsIfPathIsNullOrEmpty(string path) - { - // Arrange - var fileSystem = new TestRazorProjectFileSystem("C:/some/test/path/root"); - - // Act and Assert - ExceptionAssert.ThrowsArgumentNullOrEmptyString(() => fileSystem.NormalizeAndEnsureValidPath(path), "path"); - } - - [Fact] - public void NormalizeAndEnsureValidPath_NormalizesToAbsolutePath() - { - // Arrange - var fileSystem = new TestRazorProjectFileSystem("C:/some/test/path/root"); - - // Act - var absolutePath = fileSystem.NormalizeAndEnsureValidPath("file.cshtml"); - - // Assert - Assert.Equal("C:/some/test/path/root/file.cshtml", absolutePath); - } - - [Fact] - public void NormalizeAndEnsureValidPath_FileFromNetworkShare__WindowsStyle_NormalizesToAbsolutePath() - { - // Arrange - var fileSystem = new TestRazorProjectFileSystem("//some/network/share/root"); - - // Act - var absolutePath = fileSystem.NormalizeAndEnsureValidPath("\\\\some\\network\\share\\root\\file.cshtml"); - - // Assert - Assert.Equal("//some/network/share/root/file.cshtml", absolutePath); - } - - [Fact] - public void NormalizeAndEnsureValidPath_FileFromNetworkShare_UnixStyle_NormalizesToAbsolutePath() - { - // Arrange - var fileSystem = new TestRazorProjectFileSystem("//some/network/share/root"); - - // Act - var absolutePath = fileSystem.NormalizeAndEnsureValidPath("//some/network/share/root/file.cshtml"); - - // Assert - Assert.Equal("//some/network/share/root/file.cshtml", absolutePath); - } - - [Fact] - public void NormalizeAndEnsureValidPath_NormalizesToAbsolutePathWithoutForwardSlash() - { - // Arrange - var fileSystem = new TestRazorProjectFileSystem("C:/some/test/path/root"); - - // Act - var absolutePath = fileSystem.NormalizeAndEnsureValidPath("/file.cshtml"); - - // Assert - Assert.Equal("C:/some/test/path/root/file.cshtml", absolutePath); - } - - [Fact] - public void NormalizeAndEnsureValidPath_NormalizesToForwardSlashes() - { - // Arrange - var fileSystem = new TestRazorProjectFileSystem(@"C:\some\test\path\root"); - - // Act - var absolutePath = fileSystem.NormalizeAndEnsureValidPath(@"something\file.cshtml"); - - // Assert - Assert.Equal("C:/some/test/path/root/something/file.cshtml", absolutePath); - } - - [Fact] - public void EnumerateItems_DiscoversAllCshtmlFiles() - { - // Arrange - var fileSystem = new DefaultRazorProjectFileSystem(TestFolder); - - // Act - var items = fileSystem.EnumerateItems("/"); - - // Assert - Assert.Collection( - items.OrderBy(f => f.FilePath, StringComparer.Ordinal), - item => - { - Assert.Equal("/Home.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Home.cshtml"), item.PhysicalPath); - Assert.Equal("Home.cshtml", item.RelativePhysicalPath); - - }, - item => - { - Assert.Equal("/Views/About/About.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "About", "About.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "About", "About.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/Views/Home/Index.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "Home", "Index.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "Home", "Index.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/Views/Home/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "Home", "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "Home", "_ViewImports.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/Views/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "_ViewImports.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal("_ViewImports.cshtml", item.RelativePhysicalPath); - }); - } - - [Fact] - public void EnumerateItems_DiscoversAllCshtmlFiles_UnderSpecifiedBasePath() - { - // Arrange - var fileSystem = new DefaultRazorProjectFileSystem(TestFolder); - - // Act - var items = fileSystem.EnumerateItems("/Views"); - - // Assert - Assert.Collection( - items.OrderBy(f => f.FilePath, StringComparer.Ordinal), - item => - { - Assert.Equal("/About/About.cshtml", item.FilePath); - Assert.Equal("/Views", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "About", "About.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("About", "About.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/Home/Index.cshtml", item.FilePath); - Assert.Equal("/Views", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "Home", "Index.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Home", "Index.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/Home/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/Views", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "Home", "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Home", "_ViewImports.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/Views", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("_ViewImports.cshtml"), item.RelativePhysicalPath); - }); - } - - [Fact] - public void EnumerateItems_ReturnsEmptySequence_WhenBasePathDoesNotExist() - { - // Arrange - var fileSystem = new DefaultRazorProjectFileSystem(TestFolder); - - // Act - var items = fileSystem.EnumerateItems("/Does-Not-Exist"); - - // Assert - Assert.Empty(items); - } - - [Fact] - public void FindHierarchicalItems_FindsItemsWithMatchingNames() - { - // Arrange - var fileSystem = new DefaultRazorProjectFileSystem(TestFolder); - - // Act - var items = fileSystem.FindHierarchicalItems("/Views/Home/Index.cshtml", "_ViewImports.cshtml"); - - // Assert - Assert.Collection( - items, - item => - { - Assert.Equal("/Views/Home/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "Home", "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "Home", "_ViewImports.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/Views/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "_ViewImports.cshtml"), item.RelativePhysicalPath); - }, - item => - { - Assert.Equal("/_ViewImports.cshtml", item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "_ViewImports.cshtml"), item.PhysicalPath); - Assert.Equal("_ViewImports.cshtml", item.RelativePhysicalPath); - }); - } - - [Fact] - public void GetItem_ReturnsFileFromDisk() - { - // Arrange - var filePath = "/Views/About/About.cshtml"; - var fileSystem = new DefaultRazorProjectFileSystem(TestFolder); - - // Act - var item = fileSystem.GetItem(filePath, fileKind: null); - - // Assert - Assert.True(item.Exists); - Assert.Equal(filePath, item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(TestFolder, "Views", "About", "About.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "About", "About.cshtml"), item.RelativePhysicalPath); - } - - [ConditionalFact] - [OSSkipCondition(OperatingSystems.Linux, SkipReason = "This test does not makes sense for case sensitive Operating Systems.")] - public void GetItem_MismatchedCase_ReturnsFileFromDisk() - { - // Arrange - var filePath = "/Views/About/About.cshtml"; - var lowerCaseTestFolder = TestFolder.ToLower(); - var fileSystem = new DefaultRazorProjectFileSystem(lowerCaseTestFolder); - - // Act - var item = fileSystem.GetItem(filePath, fileKind: null); - - // Assert - Assert.True(item.Exists); - Assert.Equal(filePath, item.FilePath); - Assert.Equal("/", item.BasePath); - Assert.Equal(Path.Combine(lowerCaseTestFolder, "Views", "About", "About.cshtml"), item.PhysicalPath); - Assert.Equal(Path.Combine("Views", "About", "About.cshtml"), item.RelativePhysicalPath); - } - - [Fact] - public void GetItem_ReturnsNotFoundResult() - { - // Arrange - var path = "/NotFound.cshtml"; - var fileSystem = new DefaultRazorProjectFileSystem(TestFolder); - - // Act - var item = fileSystem.GetItem(path, fileKind: null); - - // Assert - Assert.False(item.Exists); - } - - [Fact] - public void GetItem_MismatchedRootPath_Throws() - { - // Arrange - var rootPath = "//some/network/share/root"; - var fileSystem = new TestRazorProjectFileSystem(rootPath); - var path = "\\\\some\\other\\network\\share\\root\\file.cshtml"; - - // Act & Assert - ExceptionAssert.Throws( - () => fileSystem.GetItem(path, fileKind: null), - $"The file '{path.Replace('\\', '/')}' is not a descendent of the base path '{rootPath}'."); - } - - private class TestRazorProjectFileSystem : DefaultRazorProjectFileSystem - { - public TestRazorProjectFileSystem(string root) : base(root) - { - } - - public new string NormalizeAndEnsureValidPath(string path) => base.NormalizeAndEnsureValidPath(path); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectItemTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectItemTest.cs deleted file mode 100644 index f903b16f639..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorProjectItemTest.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorProjectItemTest - { - private static string TestFolder { get; } = Path.Combine( - TestProject.GetProjectDirectory(typeof(DefaultRazorProjectItemTest)), - "TestFiles", - "DefaultRazorProjectFileSystem"); - - [Fact] - public void DefaultRazorProjectItem_SetsProperties() - { - // Arrange - var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); - - // Act - var projectItem = new DefaultRazorProjectItem("/", "/Home.cshtml", "Home.cshtml", "test", fileInfo); - - // Assert - Assert.Equal("/Home.cshtml", projectItem.FilePath); - Assert.Equal("/", projectItem.BasePath); - Assert.True(projectItem.Exists); - Assert.Equal("Home.cshtml", projectItem.FileName); - Assert.Equal("test", projectItem.FileKind); - Assert.Equal(fileInfo.FullName, projectItem.PhysicalPath); - Assert.Equal("Home.cshtml", projectItem.RelativePhysicalPath); - } - - [Fact] - public void DefaultRazorProjectItem_InfersFileKind_Component() - { - // Arrange - var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); - - // Act - var projectItem = new DefaultRazorProjectItem("/", "/Home.razor", "Home.cshtml", fileKind: null, fileInfo); - - // Assert - Assert.Equal(FileKinds.Component, projectItem.FileKind); - } - - [Fact] - public void DefaultRazorProjectItem_InfersFileKind_Legacy() - { - // Arrange - var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); - - // Act - var projectItem = new DefaultRazorProjectItem("/", "/Home.cshtml", "Home.cshtml", fileKind: null, fileInfo); - - // Assert - Assert.Equal(FileKinds.Legacy, projectItem.FileKind); - } - - [Fact] - public void DefaultRazorProjectItem_InfersFileKind_Null() - { - // Arrange - var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); - - // Act - var projectItem = new DefaultRazorProjectItem("/", filePath: null, "Home.cshtml", fileKind: null, fileInfo); - - // Assert - Assert.Null(projectItem.FileKind); - } - - [Fact] - public void Exists_ReturnsFalseWhenFileDoesNotExist() - { - // Arrange - var fileInfo = new FileInfo(Path.Combine(TestFolder, "Views", "FileDoesNotExist.cshtml")); - - // Act - var projectItem = new DefaultRazorProjectItem("/Views", "/FileDoesNotExist.cshtml", Path.Combine("Views", "FileDoesNotExist.cshtml"), "test", fileInfo); - - // Assert - Assert.False(projectItem.Exists); - } - - [Fact] - public void Read_ReturnsReadStream() - { - // Arrange - var fileInfo = new FileInfo(Path.Combine(TestFolder, "Home.cshtml")); - var projectItem = new DefaultRazorProjectItem("/", "/Home.cshtml", "Home.cshtml", "test", fileInfo); - - // Act - var stream = projectItem.Read(); - - // Assert - Assert.Equal("home-content", new StreamReader(stream).ReadToEnd()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorSyntaxTreePhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorSyntaxTreePhaseTest.cs deleted file mode 100644 index d6dc0ac75a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorSyntaxTreePhaseTest.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Testing; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorSyntaxTreePhaseTest - { - [Fact] - public void OnInitialized_OrdersPassesInAscendingOrder() - { - // Arrange & Act - var phase = new DefaultRazorSyntaxTreePhase(); - - var first = Mock.Of(p => p.Order == 15); - var second = Mock.Of(p => p.Order == 17); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(second); - b.Features.Add(first); - }); - - // Assert - Assert.Collection( - phase.Passes, - p => Assert.Same(first, p), - p => Assert.Same(second, p)); - } - - [Fact] - public void Execute_ThrowsForMissingDependency() - { - // Arrange - var phase = new DefaultRazorSyntaxTreePhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => b.Phases.Add(phase)); - - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // Act & Assert - ExceptionAssert.Throws( - () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorSyntaxTreePhase)}' phase requires a '{nameof(RazorSyntaxTree)}' " + - $"provided by the '{nameof(RazorCodeDocument)}'."); - } - - [Fact] - public void Execute_ExecutesPhasesInOrder() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - // We're going to set up mocks to simulate a sequence of passes. We don't care about - // what's in the trees, we're just going to look at the identity via strict mocks. - var originalSyntaxTree = RazorSyntaxTree.Parse(codeDocument.Source); - var firstPassSyntaxTree = RazorSyntaxTree.Parse(codeDocument.Source); - var secondPassSyntaxTree = RazorSyntaxTree.Parse(codeDocument.Source); - codeDocument.SetSyntaxTree(originalSyntaxTree); - - var firstPass = new Mock(MockBehavior.Strict); - firstPass.SetupGet(m => m.Order).Returns(0); - firstPass.SetupProperty(m => m.Engine); - firstPass.Setup(m => m.Execute(codeDocument, originalSyntaxTree)).Returns(firstPassSyntaxTree); - - var secondPass = new Mock(MockBehavior.Strict); - secondPass.SetupGet(m => m.Order).Returns(1); - secondPass.SetupProperty(m => m.Engine); - secondPass.Setup(m => m.Execute(codeDocument, firstPassSyntaxTree)).Returns(secondPassSyntaxTree); - - var phase = new DefaultRazorSyntaxTreePhase(); - - var engine = RazorProjectEngine.CreateEmpty(b => - { - b.Phases.Add(phase); - - b.Features.Add(firstPass.Object); - b.Features.Add(secondPass.Object); - }); - - // Act - phase.Execute(codeDocument); - - // Assert - Assert.Same(secondPassSyntaxTree, codeDocument.GetSyntaxTree()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRazorTagHelperBinderPhaseTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRazorTagHelperBinderPhaseTest.cs deleted file mode 100644 index 41dedf836ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRazorTagHelperBinderPhaseTest.cs +++ /dev/null @@ -1,1439 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRazorTagHelperBinderPhaseTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - -#region Legacy - [Fact] - public void Execute_CanHandleSingleLengthAddTagHelperDirective() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new TagHelperDescriptor[0]); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - var expectedDiagnostics = new[] - { - RazorDiagnosticFactory.CreateParsing_UnterminatedStringLiteral( - new SourceSpan(new SourceLocation(14 + Environment.NewLine.Length, 1, 14), contentLength: 1)), - RazorDiagnosticFactory.CreateParsing_InvalidTagHelperLookupText( - new SourceSpan(new SourceLocation(14 + Environment.NewLine.Length, 1, 14), contentLength: 1), "\"") - }; - - var content = - @" -@addTagHelper """; - var sourceDocument = TestRazorSourceDocument.Create(content, filePath: null); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var erroredNode = rewrittenTree.Root.DescendantNodes().First(n => n.GetSpanContext()?.ChunkGenerator is AddTagHelperChunkGenerator); - var chunkGenerator = Assert.IsType(erroredNode.GetSpanContext().ChunkGenerator); - Assert.Equal(expectedDiagnostics, chunkGenerator.Diagnostics); - } - - [Fact] - public void Execute_CanHandleSingleLengthRemoveTagHelperDirective() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new TagHelperDescriptor[0]); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - var expectedDiagnostics = new[] - { - RazorDiagnosticFactory.CreateParsing_UnterminatedStringLiteral( - new SourceSpan(new SourceLocation(17 + Environment.NewLine.Length, 1, 17), contentLength: 1)), - RazorDiagnosticFactory.CreateParsing_InvalidTagHelperLookupText( - new SourceSpan(new SourceLocation(17 + Environment.NewLine.Length, 1, 17), contentLength: 1), "\"") - }; - - var content = - @" -@removeTagHelper """; - var sourceDocument = TestRazorSourceDocument.Create(content, filePath: null); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var erroredNode = rewrittenTree.Root.DescendantNodes().First(n => n.GetSpanContext()?.ChunkGenerator is RemoveTagHelperChunkGenerator); - var chunkGenerator = Assert.IsType(erroredNode.GetSpanContext().ChunkGenerator); - Assert.Equal(expectedDiagnostics, chunkGenerator.Diagnostics); - } - - [Fact] - public void Execute_CanHandleSingleLengthTagHelperPrefix() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new TagHelperDescriptor[0]); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - var expectedDiagnostics = new[] - { - RazorDiagnosticFactory.CreateParsing_UnterminatedStringLiteral( - new SourceSpan(new SourceLocation(17 + Environment.NewLine.Length, 1, 17), contentLength: 1)), - RazorDiagnosticFactory.CreateParsing_InvalidTagHelperPrefixValue( - new SourceSpan(new SourceLocation(17 + Environment.NewLine.Length, 1, 17), contentLength: 1), "tagHelperPrefix", '\"', "\""), - }; - - var content = - @" -@tagHelperPrefix """; - var sourceDocument = TestRazorSourceDocument.Create(content, filePath: null); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var erroredNode = rewrittenTree.Root.DescendantNodes().First(n => n.GetSpanContext()?.ChunkGenerator is TagHelperPrefixDirectiveChunkGenerator); - var chunkGenerator = Assert.IsType(erroredNode.GetSpanContext().ChunkGenerator); - Assert.Equal(expectedDiagnostics, chunkGenerator.Diagnostics); - } - - [Fact] - public void Execute_RewritesTagHelpers() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new[] - { - CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestInputTagHelper", - assemblyName: "TestAssembly"), - }); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = CreateTestSourceDocument(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - Assert.Equal("form", tagHelperNodes[0].TagHelperInfo.TagName); - Assert.Equal("input", tagHelperNodes[1].TagHelperInfo.TagName); - } - - [Fact] - public void Execute_WithTagHelperDescriptorsFromCodeDocument_RewritesTagHelpers() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestInputTagHelper", - assemblyName: "TestAssembly"), - }; - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = CreateTestSourceDocument(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - codeDocument.SetTagHelpers(tagHelpers); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - Assert.Equal("form", tagHelperNodes[0].TagHelperInfo.TagName); - Assert.Equal("input", tagHelperNodes[1].TagHelperInfo.TagName); - } - - [Fact] - public void Execute_NullTagHelperDescriptorsFromCodeDocument_FallsBackToTagHelperFeature() - { - // Arrange - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestInputTagHelper", - assemblyName: "TestAssembly"), - }; - var projectEngine = RazorProjectEngine.Create(builder => builder.AddTagHelpers(tagHelpers)); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = CreateTestSourceDocument(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - codeDocument.SetTagHelpers(tagHelpers: null); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - Assert.Equal("form", tagHelperNodes[0].TagHelperInfo.TagName); - Assert.Equal("input", tagHelperNodes[1].TagHelperInfo.TagName); - } - - [Fact] - public void Execute_EmptyTagHelperDescriptorsFromCodeDocument_DoesNotFallbackToTagHelperFeature() - { - // Arrange - var tagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestInputTagHelper", - assemblyName: "TestAssembly"), - }; - var projectEngine = RazorProjectEngine.Create(builder => builder.AddTagHelpers(tagHelpers)); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = CreateTestSourceDocument(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - codeDocument.SetTagHelpers(tagHelpers: Array.Empty()); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - Assert.Empty(tagHelperNodes); - } - - [Fact] - public void Execute_DirectiveWithoutQuotes_RewritesTagHelpers_TagHelperMatchesElementTwice() - { - // Arrange - var descriptor = CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - ruleBuilder => ruleBuilder - .RequireAttributeDescriptor(attribute => attribute - .Name("a") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch)), - ruleBuilder => ruleBuilder - .RequireAttributeDescriptor(attribute => attribute - .Name("b") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch)), - }); - - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new[] { descriptor }); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var content = @" -@addTagHelper *, TestAssembly -

-
"; - - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - - var formTagHelper = Assert.Single(tagHelperNodes); - Assert.Equal("form", formTagHelper.TagHelperInfo.TagName); - Assert.Equal(2, formTagHelper.TagHelperInfo.BindingResult.Mappings[descriptor].Count()); - } - - [Fact] - public void Execute_DirectiveWithQuotes_RewritesTagHelpers_TagHelperMatchesElementTwice() - { - // Arrange - var descriptor = CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - ruleBuilder => ruleBuilder - .RequireAttributeDescriptor(attribute => attribute - .Name("a") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch)), - ruleBuilder => ruleBuilder - .RequireAttributeDescriptor(attribute => attribute - .Name("b") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch)), - }); - - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new[] { descriptor }); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var content = @" -@addTagHelper ""*, TestAssembly"" -
-
"; - - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - - var formTagHelper = Assert.Single(tagHelperNodes); - Assert.Equal("form", formTagHelper.TagHelperInfo.TagName); - Assert.Equal(2, formTagHelper.TagHelperInfo.BindingResult.Mappings[descriptor].Count()); - } - - [Fact] - public void Execute_TagHelpersFromCodeDocumentAndFeature_PrefersCodeDocument() - { - // Arrange - var featureTagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestInputTagHelper", - assemblyName: "TestAssembly"), - }; - var projectEngine = RazorProjectEngine.Create(builder => builder.AddTagHelpers(featureTagHelpers)); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = CreateTestSourceDocument(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - var codeDocumentTagHelpers = new[] - { - CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly"), - }; - codeDocument.SetTagHelpers(codeDocumentTagHelpers); - - // Act - phase.Execute(codeDocument); - - // Assert - var rewrittenTree = codeDocument.GetSyntaxTree(); - var descendantNodes = rewrittenTree.Root.DescendantNodes(); - Assert.Empty(rewrittenTree.Diagnostics); - var tagHelperNodes = descendantNodes.Where(n => n is MarkupTagHelperElementSyntax tagHelper).Cast().ToArray(); - - var formTagHelper = Assert.Single(tagHelperNodes); - Assert.Equal("form", formTagHelper.TagHelperInfo.TagName); - } - - [Fact] - public void Execute_NoopsWhenNoTagHelpersFromCodeDocumentOrFeature() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - var sourceDocument = CreateTestSourceDocument(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var outputTree = codeDocument.GetSyntaxTree(); - Assert.Empty(outputTree.Diagnostics); - Assert.Same(originalTree, outputTree); - } - - [Fact] - public void Execute_NoopsWhenNoTagHelperDescriptorsAreResolved() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.Features.Add(new TestTagHelperFeature()); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - // No taghelper directives here so nothing is resolved. - var sourceDocument = TestRazorSourceDocument.Create("Hello, world"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var outputTree = codeDocument.GetSyntaxTree(); - Assert.Empty(outputTree.Diagnostics); - Assert.Same(originalTree, outputTree); - } - - [Fact] - public void Execute_SetsTagHelperDocumentContext() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.Features.Add(new TestTagHelperFeature()); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - // No taghelper directives here so nothing is resolved. - var sourceDocument = TestRazorSourceDocument.Create("Hello, world"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - codeDocument.SetSyntaxTree(originalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var context = codeDocument.GetTagHelperContext(); - Assert.Null(context.Prefix); - Assert.Empty(context.TagHelpers); - } - - [Fact] - public void Execute_CombinesErrorsOnRewritingErrors() - { - // Arrange - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.AddTagHelpers(new[] - { - CreateTagHelperDescriptor( - tagName: "form", - typeName: "TestFormTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestInputTagHelper", - assemblyName: "TestAssembly"), - }); - }); - - var phase = new DefaultRazorTagHelperBinderPhase() - { - Engine = projectEngine.Engine, - }; - - var content = - @" -@addTagHelper *, TestAssembly -
- "; - var sourceDocument = TestRazorSourceDocument.Create(content, filePath: null); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - - var initialError = RazorDiagnostic.Create( - new RazorDiagnosticDescriptor("RZ9999", () => "Initial test error", RazorDiagnosticSeverity.Error), - new SourceSpan(SourceLocation.Zero, contentLength: 1)); - var expectedRewritingError = RazorDiagnosticFactory.CreateParsing_TagHelperFoundMalformedTagHelper( - new SourceSpan(new SourceLocation(Environment.NewLine.Length * 2 + 30, 2, 1), contentLength: 4), "form"); - - var erroredOriginalTree = RazorSyntaxTree.Create(originalTree.Root, originalTree.Source, new[] { initialError }, originalTree.Options); - codeDocument.SetSyntaxTree(erroredOriginalTree); - - // Act - phase.Execute(codeDocument); - - // Assert - var outputTree = codeDocument.GetSyntaxTree(); - Assert.Empty(originalTree.Diagnostics); - Assert.NotSame(erroredOriginalTree, outputTree); - Assert.Equal(new[] { initialError, expectedRewritingError }, outputTree.Diagnostics); - } - - private static string AssemblyA => "TestAssembly"; - - private static string AssemblyB => "AnotherAssembly"; - - private static TagHelperDescriptor Valid_PlainTagHelperDescriptor - { - get - { - return CreateTagHelperDescriptor( - tagName: "valid_plain", - typeName: "Microsoft.AspNetCore.Razor.TagHelpers.ValidPlainTagHelper", - assemblyName: AssemblyA); - } - } - - private static TagHelperDescriptor Valid_InheritedTagHelperDescriptor - { - get - { - return CreateTagHelperDescriptor( - tagName: "valid_inherited", - typeName: "Microsoft.AspNetCore.Razor.TagHelpers.ValidInheritedTagHelper", - assemblyName: AssemblyA); - } - } - - private static TagHelperDescriptor String_TagHelperDescriptor - { - get - { - // We're treating 'string' as a TagHelper so we can test TagHelpers in multiple assemblies without - // building a separate assembly with a single TagHelper. - return CreateTagHelperDescriptor( - tagName: "string", - typeName: "System.String", - assemblyName: AssemblyB); - } - } - - public static TheoryData ProcessTagHelperPrefixData - { - get - { - // source, expected prefix - return new TheoryData - { - { - $@" -@tagHelperPrefix """" -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidPlain*, TestAssembly", - null - }, - { - $@" -@tagHelperPrefix th: -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidPlain*, {AssemblyA}", - "th:" - }, - { - $@" -@addTagHelper *, {AssemblyA} -@tagHelperPrefix th:", - "th:" - }, - { - $@" -@tagHelperPrefix th- -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidPlain*, {AssemblyA} -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidInherited*, {AssemblyA}", - "th-" - }, - { - $@" -@tagHelperPrefix -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidPlain*, {AssemblyA} -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidInherited*, {AssemblyA}", - null - }, - { - $@" -@tagHelperPrefix ""th"" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB}", - "th" - }, - { - $@" -@addTagHelper *, {AssemblyA} -@tagHelperPrefix th:- -@addTagHelper *, {AssemblyB}", - "th:-" - }, - }; - } - } - - [Theory] - [MemberData(nameof(ProcessTagHelperPrefixData))] - public void DirectiveVisitor_ExtractsPrefixFromSyntaxTree( - string source, - string expectedPrefix) - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(source, filePath: "TestFile"); - var parser = new RazorParser(); - var syntaxTree = parser.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.TagHelperDirectiveVisitor(tagHelpers: new List()); - - // Act - visitor.Visit(syntaxTree.Root); - - // Assert - Assert.Equal(expectedPrefix, visitor.TagHelperPrefix); - } - - public static TheoryData ProcessTagHelperMatchesData - { - get - { - // source, taghelpers, expected descriptors - return new TheoryData - { - { - $@" -@addTagHelper *, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, String_TagHelperDescriptor }, - new [] { Valid_PlainTagHelperDescriptor, String_TagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper *, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, String_TagHelperDescriptor }, - new [] { Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB} -@removeTagHelper *, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, String_TagHelperDescriptor }, - new [] { String_TagHelperDescriptor } - }, - { - $@" -@addTagHelper {Valid_PlainTagHelperDescriptor.Name}, {AssemblyA} -@addTagHelper *, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper {Valid_PlainTagHelperDescriptor.Name}, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_InheritedTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_InheritedTagHelperDescriptor, Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_InheritedTagHelperDescriptor, Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidPlain*, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper Microsoft.AspNetCore.Razor.TagHelpers.*, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor, Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper Microsoft.AspNetCore.Razor.TagHelpers.ValidP*, {AssemblyA} -@addTagHelper *, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, }, - new [] { Valid_InheritedTagHelperDescriptor, Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper Str*, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, String_TagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper *, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, String_TagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper System.{String_TagHelperDescriptor.Name}, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, String_TagHelperDescriptor, }, - new [] { Valid_PlainTagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB} -@removeTagHelper Microsoft.*, {AssemblyA}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, String_TagHelperDescriptor }, - new [] { String_TagHelperDescriptor } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB} -@removeTagHelper ?Microsoft*, {AssemblyA} -@removeTagHelper System.{String_TagHelperDescriptor.Name}, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, String_TagHelperDescriptor }, - new [] - { - Valid_InheritedTagHelperDescriptor, - Valid_PlainTagHelperDescriptor, - String_TagHelperDescriptor - } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB} -@removeTagHelper TagHelper*, {AssemblyA} -@removeTagHelper System.{String_TagHelperDescriptor.Name}, {AssemblyB}", - new [] { Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor, String_TagHelperDescriptor }, - new [] - { - Valid_InheritedTagHelperDescriptor, - Valid_PlainTagHelperDescriptor, - String_TagHelperDescriptor - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(ProcessTagHelperMatchesData))] - public void DirectiveVisitor_FiltersTagHelpersByDirectives( - string source, - object tagHelpers, - object expectedDescriptors) - { - // Arrange - var expected = (TagHelperDescriptor[])expectedDescriptors; - var sourceDocument = TestRazorSourceDocument.Create(source, filePath: "TestFile"); - var parser = new RazorParser(); - var syntaxTree = parser.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.TagHelperDirectiveVisitor((TagHelperDescriptor[])tagHelpers); - - // Act - visitor.Visit(syntaxTree.Root); - - // Assert - Assert.Equal(expected.Count(), visitor.Matches.Count()); - - foreach (var expectedDescriptor in expected) - { - Assert.Contains(expectedDescriptor, visitor.Matches, TagHelperDescriptorComparer.Default); - } - } - - public static TheoryData ProcessTagHelperMatches_EmptyResultData - { - get - { - // source, taghelpers - return new TheoryData> - { - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper *, {AssemblyA}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper {Valid_PlainTagHelperDescriptor.Name}, {AssemblyA} -@removeTagHelper {Valid_InheritedTagHelperDescriptor.Name}, {AssemblyA}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - Valid_InheritedTagHelperDescriptor, - } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB} -@removeTagHelper *, {AssemblyA} -@removeTagHelper *, {AssemblyB}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - Valid_InheritedTagHelperDescriptor, - String_TagHelperDescriptor, - } - }, - { - $@" -@addTagHelper *, {AssemblyA} -@addTagHelper *, {AssemblyB} -@removeTagHelper {Valid_PlainTagHelperDescriptor.Name}, {AssemblyA} -@removeTagHelper {Valid_InheritedTagHelperDescriptor.Name}, {AssemblyA} -@removeTagHelper {String_TagHelperDescriptor.Name}, {AssemblyB}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - Valid_InheritedTagHelperDescriptor, - String_TagHelperDescriptor, - } - }, - { - $@" -@removeTagHelper *, {AssemblyA} -@removeTagHelper {Valid_PlainTagHelperDescriptor.Name}, {AssemblyA}", - new TagHelperDescriptor[0] - }, - { - $@" -@addTagHelper *, {AssemblyA} -@removeTagHelper Mic*, {AssemblyA}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - } - }, - { - $@" -@addTagHelper Mic*, {AssemblyA} -@removeTagHelper {Valid_PlainTagHelperDescriptor.Name}, {AssemblyA} -@removeTagHelper {Valid_InheritedTagHelperDescriptor.Name}, {AssemblyA}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, Valid_InheritedTagHelperDescriptor - } - }, - { - $@" -@addTagHelper Microsoft.*, {AssemblyA} -@addTagHelper System.*, {AssemblyB} -@removeTagHelper Microsoft.AspNetCore.Razor.TagHelpers*, {AssemblyA} -@removeTagHelper System.*, {AssemblyB}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - Valid_InheritedTagHelperDescriptor, - String_TagHelperDescriptor, - } - }, - { - $@" -@addTagHelper ?icrosoft.*, {AssemblyA} -@addTagHelper ?ystem.*, {AssemblyB} -@removeTagHelper *?????r, {AssemblyA} -@removeTagHelper Sy??em.*, {AssemblyB}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - Valid_InheritedTagHelperDescriptor, - String_TagHelperDescriptor, - } - }, - { - $@" -@addTagHelper ?i?crosoft.*, {AssemblyA} -@addTagHelper ??ystem.*, {AssemblyB}", - new TagHelperDescriptor[] - { - Valid_PlainTagHelperDescriptor, - Valid_InheritedTagHelperDescriptor, - String_TagHelperDescriptor, - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(ProcessTagHelperMatches_EmptyResultData))] - public void ProcessDirectives_CanReturnEmptyDescriptorsBasedOnDirectiveDescriptors( - string source, - object tagHelpers) - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(source, filePath: "TestFile"); - var parser = new RazorParser(); - var syntaxTree = parser.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.TagHelperDirectiveVisitor((TagHelperDescriptor[])tagHelpers); - - // Act - visitor.Visit(syntaxTree.Root); - - // Assert - Assert.Empty(visitor.Matches); - } - - [Fact] - public void TagHelperDirectiveVisitor_DoesNotMatch_Components() - { - // Arrange - var componentDescriptor = CreateComponentDescriptor("counter", "SomeProject.Counter", AssemblyA); - var legacyDescriptor = Valid_PlainTagHelperDescriptor; - var descriptors = new[] - { - legacyDescriptor, - componentDescriptor, - }; - var visitor = new DefaultRazorTagHelperBinderPhase.TagHelperDirectiveVisitor(descriptors); - var sourceDocument = CreateTestSourceDocument(); - var tree = RazorSyntaxTree.Parse(sourceDocument); - - // Act - visitor.Visit(tree); - - // Assert - var match = Assert.Single(visitor.Matches); - Assert.Same(legacyDescriptor, match); - } - - private static TagHelperDescriptor CreatePrefixedValidPlainDescriptor(string prefix) - { - return Valid_PlainTagHelperDescriptor; - } - - private static TagHelperDescriptor CreatePrefixedValidInheritedDescriptor(string prefix) - { - return Valid_InheritedTagHelperDescriptor; - } - - private static TagHelperDescriptor CreatePrefixedStringDescriptor(string prefix) - { - return String_TagHelperDescriptor; - } - - private static RazorSourceDocument CreateTestSourceDocument() - { - var content = - @" -@addTagHelper *, TestAssembly - - -"; - var sourceDocument = TestRazorSourceDocument.Create(content, filePath: null); - return sourceDocument; - } - - private static TagHelperDescriptor CreateTagHelperDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null, - IEnumerable> ruleBuilders = null) - { - return CreateDescriptor(TagHelperConventions.DefaultKind, tagName, typeName, assemblyName, attributes, ruleBuilders); - } -#endregion - -#region Components - [Fact] - public void ComponentDirectiveVisitor_DoesNotMatch_LegacyTagHelpers() - { - // Arrange - var currentNamespace = "SomeProject"; - var componentDescriptor = CreateComponentDescriptor("counter", "SomeProject.Counter", AssemblyA); - var legacyDescriptor = Valid_PlainTagHelperDescriptor; - var descriptors = new[] - { - legacyDescriptor, - componentDescriptor, - }; - var sourceDocument = CreateComponentTestSourceDocument(@"", "C:\\SomeFolder\\SomeProject\\Counter.cshtml"); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - Assert.Null(visitor.TagHelperPrefix); - var match = Assert.Single(visitor.Matches); - Assert.Same(componentDescriptor, match); - } - - [Fact] - public void ComponentDirectiveVisitor_AddsErrorOnLegacyTagHelperDirectives() - { - // Arrange - var currentNamespace = "SomeProject"; - var componentDescriptor = CreateComponentDescriptor("counter", "SomeProject.Counter", AssemblyA); - var legacyDescriptor = Valid_PlainTagHelperDescriptor; - var descriptors = new[] - { - legacyDescriptor, - componentDescriptor, - }; - var filePath = "C:\\SomeFolder\\SomeProject\\Counter.cshtml"; - var content = @" -@tagHelperPrefix th: - - -"; - var sourceDocument = CreateComponentTestSourceDocument(content, filePath); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - Assert.Null(visitor.TagHelperPrefix); - var match = Assert.Single(visitor.Matches); - Assert.Same(componentDescriptor, match); - var directiveChunkGenerator = (TagHelperPrefixDirectiveChunkGenerator)tree.Root.DescendantNodes().First(n => n is CSharpStatementLiteralSyntax).GetSpanContext().ChunkGenerator; - var diagnostic = Assert.Single(directiveChunkGenerator.Diagnostics); - Assert.Equal("RZ9978", diagnostic.Id); - } - - [Fact] - public void ComponentDirectiveVisitor_MatchesFullyQualifiedComponents() - { - // Arrange - var currentNamespace = "SomeProject"; - var componentDescriptor = CreateComponentDescriptor( - "SomeProject.SomeOtherFolder.Counter", - "SomeProject.SomeOtherFolder.Counter", - AssemblyA, - fullyQualified: true); - var descriptors = new[] - { - componentDescriptor, - }; - var filePath = "C:\\SomeFolder\\SomeProject\\Counter.cshtml"; - var content = @" -"; - var sourceDocument = CreateComponentTestSourceDocument(content, filePath); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - var match = Assert.Single(visitor.Matches); - Assert.Same(componentDescriptor, match); - } - - [Fact] - public void ComponentDirectiveVisitor_ComponentInScope_MatchesChildContent() - { - // Arrange - var currentNamespace = "SomeProject"; - var componentDescriptor = CreateComponentDescriptor( - "Counter", - "SomeProject.Counter", - AssemblyA); - var childContentDescriptor = CreateComponentDescriptor( - "ChildContent", - "SomeProject.Counter.ChildContent", - AssemblyA, - childContent: true); - var descriptors = new[] - { - componentDescriptor, - childContentDescriptor, - }; - var filePath = "C:\\SomeFolder\\SomeProject\\Counter.cshtml"; - var content = @" -"; - var sourceDocument = CreateComponentTestSourceDocument(content, filePath); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - Assert.Equal(2, visitor.Matches.Count); - } - - [Fact] - public void ComponentDirectiveVisitor_NullCurrentNamespace_MatchesOnlyFullyQualifiedComponents() - { - // Arrange - string currentNamespace = null; - var componentDescriptor = CreateComponentDescriptor( - "Counter", - "SomeProject.Counter", - AssemblyA); - var fullyQualifiedComponent = CreateComponentDescriptor( - "SomeProject.SomeOtherFolder.Counter", - "SomeProject.SomeOtherFolder.Counter", - AssemblyA, - fullyQualified: true); - var descriptors = new[] - { - componentDescriptor, - fullyQualifiedComponent, - }; - var filePath = "C:\\SomeFolder\\SomeProject\\Counter.cshtml"; - var content = @" -"; - var sourceDocument = CreateComponentTestSourceDocument(content, filePath); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - var match = Assert.Single(visitor.Matches); - Assert.Same(fullyQualifiedComponent, match); - } - - [Fact] - public void ComponentDirectiveVisitor_MatchesIfNamespaceInUsing() - { - // Arrange - var currentNamespace = "SomeProject"; - var componentDescriptor = CreateComponentDescriptor( - "Counter", - "SomeProject.Counter", - AssemblyA); - var anotherComponentDescriptor = CreateComponentDescriptor( - "Foo", - "SomeProject.SomeOtherFolder.Foo", - AssemblyA); - var descriptors = new[] - { - componentDescriptor, - anotherComponentDescriptor, - }; - var filePath = "C:\\SomeFolder\\SomeProject\\Counter.cshtml"; - var content = @" -@using SomeProject.SomeOtherFolder -"; - var sourceDocument = CreateComponentTestSourceDocument(content, filePath); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - Assert.Equal(2, visitor.Matches.Count); - } - - [Fact] - public void ComponentDirectiveVisitor_DoesNotMatchForUsingAliasAndStaticUsings() - { - // Arrange - var currentNamespace = "SomeProject"; - var componentDescriptor = CreateComponentDescriptor( - "Counter", - "SomeProject.Counter", - AssemblyA); - var anotherComponentDescriptor = CreateComponentDescriptor( - "Foo", - "SomeProject.SomeOtherFolder.Foo", - AssemblyA); - var descriptors = new[] - { - componentDescriptor, - anotherComponentDescriptor, - }; - var filePath = "C:\\SomeFolder\\SomeProject\\Counter.cshtml"; - var content = @" -@using Bar = SomeProject.SomeOtherFolder -@using static SomeProject.SomeOtherFolder.Foo -"; - var sourceDocument = CreateComponentTestSourceDocument(content, filePath); - var tree = RazorSyntaxTree.Parse(sourceDocument); - var visitor = new DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor(sourceDocument.FilePath, descriptors, currentNamespace); - - // Act - visitor.Visit(tree); - - // Assert - var match = Assert.Single(visitor.Matches); - Assert.Same(componentDescriptor, match); - } - - [Theory] - [InlineData("", "", true)] - [InlineData("Foo", "Project", true)] - [InlineData("Project.Foo", "Project", true)] - [InlineData("Project.Bar.Foo", "Project.Bar", true)] - [InlineData("Project.Foo", "Project.Bar", false)] - [InlineData("Project.Bar.Foo", "Project", false)] - [InlineData("Bar.Foo", "Project", false)] - public void IsTypeInNamespace_WorksAsExpected(string typeName, string @namespace, bool expected) - { - // Arrange & Act - var result = DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor.IsTypeInNamespace(typeName, @namespace); - - // Assert - Assert.Equal(expected, result); - } - - [Theory] - [InlineData("", "", true)] - [InlineData("Foo", "Project", true)] - [InlineData("Project.Foo", "Project", true)] - [InlineData("Project.Bar.Foo", "Project.Bar", true)] - [InlineData("Project.Foo", "Project.Bar", true)] - [InlineData("Project.Bar.Foo", "Project", false)] - [InlineData("Bar.Foo", "Project", false)] - public void IsTypeInScope_WorksAsExpected(string typeName, string currentNamespace, bool expected) - { - // Arrange & Act - var result = DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor.IsTypeInScope(typeName, currentNamespace); - - // Assert - Assert.Equal(expected, result); - } - - [Fact] - public void IsTagHelperFromMangledClass_WorksAsExpected() - { - // Arrange - var className = "Counter"; - var typeName = $"SomeProject.SomeNamespace.{ComponentMetadata.MangleClassName(className)}"; - var descriptor = CreateComponentDescriptor( - tagName: "Counter", - typeName: typeName, - assemblyName: AssemblyA); - - // Act - var result = DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor.IsTagHelperFromMangledClass(descriptor); - - // Assert - Assert.True(result); - } - - [Theory] - [InlineData("", false, "", "")] - [InlineData(".", true, "", "")] - [InlineData("Foo", true, "", "Foo")] - [InlineData("SomeProject.Foo", true, "SomeProject", "Foo")] - [InlineData("SomeProject.Foo", true, "SomeProject", "Foo")] - [InlineData("SomeProject.Foo", true, "SomeProject", "Foo")] - [InlineData("SomeProject.Foo>", true, "", "SomeProject.Foo>")] - [InlineData("SomeProject..Foo", true, "SomeProject.", "Foo")] - public void TrySplitNamespaceAndType_WorksAsExpected(string fullTypeName, bool expectedResult, string expectedNamespace, string expectedTypeName) - { - // Arrange & Act - var result = DefaultRazorTagHelperBinderPhase.ComponentDirectiveVisitor.TrySplitNamespaceAndType( - fullTypeName, out var @namespace, out var typeName); - - // Assert - Assert.Equal(expectedResult, result); - Assert.Equal(expectedNamespace, @namespace); - Assert.Equal(expectedTypeName, typeName); - } - - private static RazorSourceDocument CreateComponentTestSourceDocument(string content, string filePath = null) - { - var sourceDocument = TestRazorSourceDocument.Create(content, filePath: filePath); - return sourceDocument; - } - - private static TagHelperDescriptor CreateComponentDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null, - IEnumerable> ruleBuilders = null, - string kind = null, - bool fullyQualified = false, - bool childContent = false) - { - kind = kind ?? ComponentMetadata.Component.TagHelperKind; - return CreateDescriptor(kind, tagName, typeName, assemblyName, attributes, ruleBuilders, fullyQualified, childContent); - } -#endregion - - private static TagHelperDescriptor CreateDescriptor( - string kind, - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null, - IEnumerable> ruleBuilders = null, - bool componentFullyQualified = false, - bool componentChildContent = false) - { - var builder = TagHelperDescriptorBuilder.Create(kind, typeName, assemblyName); - builder.TypeName(typeName); - - if (attributes != null) - { - foreach (var attributeBuilder in attributes) - { - builder.BoundAttributeDescriptor(attributeBuilder); - } - } - - if (ruleBuilders != null) - { - foreach (var ruleBuilder in ruleBuilders) - { - builder.TagMatchingRuleDescriptor(innerRuleBuilder => - { - innerRuleBuilder.RequireTagName(tagName); - ruleBuilder(innerRuleBuilder); - }); - } - } - else - { - builder.TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName(tagName)); - } - - if (componentFullyQualified) - { - builder.Metadata[ComponentMetadata.Component.NameMatchKey] = ComponentMetadata.Component.FullyQualifiedNameMatch; - } - - if (componentChildContent) - { - builder.Metadata[ComponentMetadata.SpecialKindKey] = ComponentMetadata.ChildContent.TagHelperKind; - } - - var descriptor = builder.Build(); - - return descriptor; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DefaultRequiredAttributeDescriptorBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/DefaultRequiredAttributeDescriptorBuilderTest.cs deleted file mode 100644 index 7f81d74e66e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DefaultRequiredAttributeDescriptorBuilderTest.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DefaultRequiredAttributeDescriptorBuilderTest - { - [Fact] - public void Build_DisplayNameIsName_NameComparisonFullMatch() - { - // Arrange - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - var tagMatchingRuleBuilder = new DefaultTagMatchingRuleDescriptorBuilder(tagHelperBuilder); - var builder = new DefaultRequiredAttributeDescriptorBuilder(tagMatchingRuleBuilder); - - builder - .Name("asp-action") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch); - - // Act - var descriptor = builder.Build(); - - // Assert - Assert.Equal("asp-action", descriptor.DisplayName); - } - - [Fact] - public void Build_DisplayNameIsNameWithDots_NameComparisonPrefixMatch() - { - // Arrange - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - var tagMatchingRuleBuilder = new DefaultTagMatchingRuleDescriptorBuilder(tagHelperBuilder); - var builder = new DefaultRequiredAttributeDescriptorBuilder(tagMatchingRuleBuilder); - - builder - .Name("asp-route-") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch); - - // Act - var descriptor = builder.Build(); - - // Assert - Assert.Equal("asp-route-...", descriptor.DisplayName); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DirectiveDescriptorBuilderExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/DirectiveDescriptorBuilderExtensionsTest.cs deleted file mode 100644 index 6e78ea1eec6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DirectiveDescriptorBuilderExtensionsTest.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright(c) .NET Foundation.All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DirectiveDescriptorBuilderExtensionsTest - { - [Fact] - public void AddMemberToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddMemberToken()); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Member, token.Kind); - Assert.False(token.Optional); - Assert.Null(token.Name); - Assert.Null(token.Description); - } - - [Fact] - public void AddNamespaceToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddNamespaceToken("Name", "Description")); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Namespace, token.Kind); - Assert.False(token.Optional); - Assert.Equal("Name", token.Name); - Assert.Equal("Description", token.Description); - } - - [Fact] - public void AddStringToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddStringToken()); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.String, token.Kind); - Assert.False(token.Optional); - Assert.Null(token.Name); - Assert.Null(token.Description); - } - - [Fact] - public void AddTypeToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddTypeToken("Name", "Description")); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Type, token.Kind); - Assert.False(token.Optional); - Assert.Equal("Name", token.Name); - Assert.Equal("Description", token.Description); - } - - [Fact] - public void AddOptionalTypeToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalTypeToken()); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Type, token.Kind); - Assert.True(token.Optional); - Assert.Null(token.Name); - Assert.Null(token.Description); - } - - [Fact] - public void AddOptionalMemberToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalMemberToken("Name", "Description")); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Member, token.Kind); - Assert.True(token.Optional); - Assert.Equal("Name", token.Name); - Assert.Equal("Description", token.Description); - } - - [Fact] - public void AddOptionalNamespaceToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalNamespaceToken()); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Namespace, token.Kind); - Assert.True(token.Optional); - Assert.Null(token.Name); - Assert.Null(token.Description); - } - - [Fact] - public void AddOptionalStringToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalStringToken("Name", "Description")); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.String, token.Kind); - Assert.True(token.Optional); - Assert.Equal("Name", token.Name); - Assert.Equal("Description", token.Description); - } - - [Fact] - public void AddAttributeToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddAttributeToken("Name", "Description")); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Attribute, token.Kind); - Assert.False(token.Optional); - Assert.Equal("Name", token.Name); - Assert.Equal("Description", token.Description); - } - - [Fact] - public void AddOptionalAttributeToken_AddsToken() - { - // Arrange & Act - var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalAttributeToken()); - - // Assert - var token = Assert.Single(descriptor.Tokens); - Assert.Equal(DirectiveTokenKind.Attribute, token.Kind); - Assert.True(token.Optional); - Assert.Null(token.Name); - Assert.Null(token.Description); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DirectiveDescriptorTest.cs b/src/Razor/test/RazorLanguage.Test/DirectiveDescriptorTest.cs deleted file mode 100644 index a5bb3c84347..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DirectiveDescriptorTest.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DirectiveDescriptorTest - { - [Fact] - public void CreateDirective_CreatesDirective_WithProvidedKind() - { - // Arrange & Act - var directive = DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.SingleLine, directive.Kind); - } - - [Fact] - public void CreateDirective_WithConfigure_CreatesDirective_WithProvidedKind() - { - // Arrange - var called = false; - Action configure = b => { called = true; }; - - // Act - var directive = DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine, configure); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.SingleLine, directive.Kind); - Assert.True(called); - } - - [Fact] - public void CreateSingleLineDirective_CreatesSingleLineDirective() - { - // Arrange & Act - var directive = DirectiveDescriptor.CreateSingleLineDirective("test"); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.SingleLine, directive.Kind); - } - - [Fact] - public void CreateSingleLineDirective_WithConfigure_CreatesSingleLineDirective() - { - // Arrange - var called = false; - Action configure = b => { called = true; }; - - // Act - var directive = DirectiveDescriptor.CreateSingleLineDirective("test", configure); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.SingleLine, directive.Kind); - Assert.True(called); - } - - [Fact] - public void CreateRazorBlockDirective_CreatesRazorBlockDirective() - { - // Arrange & Act - var directive = DirectiveDescriptor.CreateRazorBlockDirective("test"); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.RazorBlock, directive.Kind); - } - - [Fact] - public void CreateRazorBlockDirective_WithConfigure_CreatesRazorBlockDirective() - { - // Arrange - var called = false; - Action configure = b => { called = true; }; - - // Act - var directive = DirectiveDescriptor.CreateRazorBlockDirective("test", configure); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.RazorBlock, directive.Kind); - Assert.True(called); - } - - [Fact] - public void CreateCodeBlockDirective_CreatesCodeBlockDirective() - { - // Arrange & Act - var directive = DirectiveDescriptor.CreateCodeBlockDirective("test"); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.CodeBlock, directive.Kind); - } - - [Fact] - public void CreateCodeBlockDirective_WithConfigure_CreatesCodeBlockDirective() - { - // Arrange - var called = false; - Action configure = b => { called = true; }; - - // Act - var directive = DirectiveDescriptor.CreateCodeBlockDirective("test", configure); - - // Assert - Assert.Equal("test", directive.Directive); - Assert.Equal(DirectiveKind.CodeBlock, directive.Kind); - Assert.True(called); - } - - [Fact] - public void Build_ValidatesDirectiveKeyword_EmptyIsInvalid() - { - // Arrange & Act - var ex = Assert.Throws(() => DirectiveDescriptor.CreateSingleLineDirective("")); - - // Assert - Assert.Equal("Invalid directive keyword ''. Directives must have a non-empty keyword that consists only of letters.", ex.Message); - } - - [Fact] - public void Build_ValidatesDirectiveKeyword_InvalidCharacter() - { - // Arrange & Act - var ex = Assert.Throws(() => DirectiveDescriptor.CreateSingleLineDirective("test_directive")); - - // Assert - Assert.Equal("Invalid directive keyword 'test_directive'. Directives must have a non-empty keyword that consists only of letters.", ex.Message); - } - - [Fact] - public void Build_ValidatesDirectiveName_NonOptionalTokenFollowsOptionalToken() - { - // Arrange & Act - var ex = Assert.Throws( - () => DirectiveDescriptor.CreateSingleLineDirective("test", b => { b.AddOptionalMemberToken(); b.AddMemberToken(); })); - - // Assert - Assert.Equal("A non-optional directive token cannot follow an optional directive token.", ex.Message); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DirectiveRemovalOptimizationPassTest.cs b/src/Razor/test/RazorLanguage.Test/DirectiveRemovalOptimizationPassTest.cs deleted file mode 100644 index 3e831b7d235..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DirectiveRemovalOptimizationPassTest.cs +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DirectiveRemovalOptimizationPassTest - { - [Fact] - public void Execute_Custom_RemovesDirectiveNodeFromDocument() - { - // Arrange - var content = "@custom \"Hello\""; - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var defaultEngine = RazorProjectEngine.Create(b => - { - b.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, d => d.AddStringToken())); - }).Engine; - var documentNode = Lower(codeDocument, defaultEngine); - var pass = new DirectiveRemovalOptimizationPass() - { - Engine = defaultEngine, - }; - - // Act - pass.Execute(codeDocument, documentNode); - - // Assert - Children(documentNode, - node => Assert.IsType(node)); - var @namespace = documentNode.Children[0]; - Children(@namespace, - node => Assert.IsType(node)); - var @class = @namespace.Children[0]; - var method = SingleChild(@class); - Assert.Empty(method.Children); - } - - [Fact] - public void Execute_MultipleCustomDirectives_RemovesDirectiveNodesFromDocument() - { - // Arrange - var content = "@custom \"Hello\"" + Environment.NewLine + "@custom \"World\""; - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var defaultEngine = RazorProjectEngine.Create(b => - { - b.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, d => d.AddStringToken())); - }).Engine; - var documentNode = Lower(codeDocument, defaultEngine); - var pass = new DirectiveRemovalOptimizationPass() - { - Engine = defaultEngine, - }; - - // Act - pass.Execute(codeDocument, documentNode); - - // Assert - Children(documentNode, - node => Assert.IsType(node)); - var @namespace = documentNode.Children[0]; - Children(@namespace, - node => Assert.IsType(node)); - var @class = @namespace.Children[0]; - var method = SingleChild(@class); - Assert.Empty(method.Children); - } - - [Fact] - public void Execute_DirectiveWithError_PreservesDiagnosticsAndRemovesDirectiveNodeFromDocument() - { - // Arrange - var content = "@custom \"Hello\""; - var expectedDiagnostic = RazorDiagnostic.Create(new RazorDiagnosticDescriptor("RZ9999", () => "Some diagnostic message.", RazorDiagnosticSeverity.Error), SourceSpan.Undefined); - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - var defaultEngine = RazorProjectEngine.Create(b => - { - b.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, d => d.AddStringToken())); - }).Engine; - var documentNode = Lower(codeDocument, defaultEngine); - - // Add the diagnostic to the directive node. - var directiveNode = documentNode.FindDescendantNodes().Single(); - directiveNode.Diagnostics.Add(expectedDiagnostic); - - var pass = new DirectiveRemovalOptimizationPass() - { - Engine = defaultEngine, - }; - - // Act - pass.Execute(codeDocument, documentNode); - - // Assert - var diagnostic = Assert.Single(documentNode.Diagnostics); - Assert.Equal(expectedDiagnostic, diagnostic); - - Children(documentNode, - node => Assert.IsType(node)); - var @namespace = documentNode.Children[0]; - Children(@namespace, - node => Assert.IsType(node)); - var @class = @namespace.Children[0]; - var method = SingleChild(@class); - Assert.Empty(method.Children); - } - - private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) - { - for (var i = 0; i < engine.Phases.Count; i++) - { - var phase = engine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorDirectiveClassifierPhase) - { - break; - } - } - - var documentNode = codeDocument.GetDocumentIntermediateNode(); - Assert.NotNull(documentNode); - - return documentNode; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DirectiveTokenEditHandlerTest.cs b/src/Razor/test/RazorLanguage.Test/DirectiveTokenEditHandlerTest.cs deleted file mode 100644 index 1f0336d0089..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DirectiveTokenEditHandlerTest.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Test -{ - public class DirectiveTokenEditHandlerTest - { - [Theory] - [InlineData(0, 4, "")] // "Namespace" - [InlineData(4, 0, "Other")] // "SomeOtherNamespace" - [InlineData(0, 4, "Other")] // "OtherNamespace" - public void CanAcceptChange_ProvisionallyAcceptsNonWhitespaceChanges(int index, int length, string newText) - { - // Arrange - var directiveTokenHandler = new TestDirectiveTokenEditHandler(); - directiveTokenHandler.AcceptedCharacters = AcceptedCharactersInternal.NonWhitespace; - - var target = GetSyntaxNode(directiveTokenHandler, "SomeNamespace"); - - var sourceChange = new SourceChange(index, length, newText); - - // Act - var result = directiveTokenHandler.CanAcceptChange(target, sourceChange); - - // Assert - Assert.Equal(PartialParseResultInternal.Accepted | PartialParseResultInternal.Provisional, result); - } - - [Theory] - [InlineData(4, 1, "")] // "SomeNamespace" - [InlineData(9, 0, " ")] // "Some Name space" - [InlineData(9, 5, " Space")] // "Some Name Space" - public void CanAcceptChange_RejectsWhitespaceChanges(int index, int length, string newText) - { - // Arrange - var directiveTokenHandler = new TestDirectiveTokenEditHandler(); - directiveTokenHandler.AcceptedCharacters = AcceptedCharactersInternal.NonWhitespace; - - var target = GetSyntaxNode(directiveTokenHandler, "Some Namespace"); - - var sourceChange = new SourceChange(index, length, newText); - - // Act - var result = directiveTokenHandler.CanAcceptChange(target, sourceChange); - - // Assert - Assert.Equal(PartialParseResultInternal.Rejected, result); - } - - private static CSharpStatementLiteralSyntax GetSyntaxNode(DirectiveTokenEditHandler editHandler, string content) - { - var builder = SyntaxListBuilder.Create(); - var tokens = CSharpLanguageCharacteristics.Instance.TokenizeString(content).ToArray(); - foreach (var token in tokens) - { - builder.Add((SyntaxToken)token.CreateRed()); - } - var node = SyntaxFactory.CSharpStatementLiteral(builder.ToList()); - - var context = new SpanContext(SpanChunkGenerator.Null, editHandler); - - return node.WithSpanContext(context); - } - - private class TestDirectiveTokenEditHandler : DirectiveTokenEditHandler - { - public TestDirectiveTokenEditHandler() : base(content => TestTokenizer(content)) - { - } - - public new PartialParseResultInternal CanAcceptChange(SyntaxNode target, SourceChange change) - => base.CanAcceptChange(target, change); - - internal static IEnumerable TestTokenizer(string str) - { - yield return Syntax.InternalSyntax.SyntaxFactory.Token(SyntaxKind.Marker, str); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/DocumentClassifierPassBaseTest.cs b/src/Razor/test/RazorLanguage.Test/DocumentClassifierPassBaseTest.cs deleted file mode 100644 index e63768bf54c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/DocumentClassifierPassBaseTest.cs +++ /dev/null @@ -1,295 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class DocumentClassifierPassBaseTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - - public RazorEngine Engine => CreateProjectEngine().Engine; - - [Fact] - public void Execute_HasDocumentKind_IgnoresDocument() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - DocumentKind = "ignore", - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var pass = new TestDocumentClassifierPass(); - pass.Engine = Engine; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - Assert.Equal("ignore", documentNode.DocumentKind); - NoChildren(documentNode); - } - - [Fact] - public void Execute_NoMatch_IgnoresDocument() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var pass = new TestDocumentClassifierPass() - { - Engine = Engine, - ShouldMatch = false, - }; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - Assert.Null(documentNode.DocumentKind); - NoChildren(documentNode); - } - - [Fact] - public void Execute_Match_AddsGlobalTargetExtensions() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var expected = new ICodeTargetExtension[] - { - new MyExtension1(), - new MyExtension2(), - }; - - var pass = new TestDocumentClassifierPass(); - pass.Engine = RazorProjectEngine.CreateEmpty(b => - { - for (var i = 0; i < expected.Length; i++) - { - b.AddTargetExtension(expected[i]); - } - }).Engine; - - ICodeTargetExtension[] extensions = null; - - pass.CodeTargetCallback = (builder) => extensions = builder.TargetExtensions.ToArray(); - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - Assert.Equal(expected, extensions); - } - - [Fact] - public void Execute_Match_SetsDocumentType_AndCreatesStructure() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var pass = new TestDocumentClassifierPass(); - pass.Engine = Engine; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - Assert.Equal("test", documentNode.DocumentKind); - Assert.NotNull(documentNode.Target); - - var @namespace = SingleChild(documentNode); - var @class = SingleChild(@namespace); - var method = SingleChild(@class); - NoChildren(method); - } - - [Fact] - public void Execute_AddsUsingsToNamespace() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var builder = IntermediateNodeBuilder.Create(documentNode); - builder.Add(new UsingDirectiveIntermediateNode()); - - var pass = new TestDocumentClassifierPass(); - pass.Engine = Engine; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - var @namespace = SingleChild(documentNode); - Children( - @namespace, - n => Assert.IsType(n), - n => Assert.IsType(n)); - } - - [Fact] - public void Execute_AddsTheRestToMethod() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var builder = IntermediateNodeBuilder.Create(documentNode); - builder.Add(new HtmlContentIntermediateNode()); - builder.Add(new CSharpCodeIntermediateNode()); - - var pass = new TestDocumentClassifierPass(); - pass.Engine = Engine; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - var @namespace = SingleChild(documentNode); - var @class = SingleChild(@namespace); - var method = SingleChild(@class); - Children( - method, - n => Assert.IsType(n), - n => Assert.IsType(n)); - } - - [Fact] - public void Execute_CanInitializeDefaults() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var builder = IntermediateNodeBuilder.Create(documentNode); - builder.Add(new HtmlContentIntermediateNode()); - builder.Add(new CSharpCodeIntermediateNode()); - - var pass = new TestDocumentClassifierPass() - { - Engine = Engine, - Namespace = "TestNamespace", - Class = "TestClass", - Method = "TestMethod", - }; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - var @namespace = SingleChild(documentNode); - Assert.Equal("TestNamespace", @namespace.Content); - - var @class = SingleChild(@namespace); - Assert.Equal("TestClass", @class.ClassName); - - var method = SingleChild(@class); - Assert.Equal("TestMethod", method.MethodName); - } - - [Fact] - public void Execute_AddsPrimaryAnnotations() - { - // Arrange - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.CreateDefault(), - }; - - var builder = IntermediateNodeBuilder.Create(documentNode); - builder.Add(new HtmlContentIntermediateNode()); - builder.Add(new CSharpCodeIntermediateNode()); - - var pass = new TestDocumentClassifierPass() - { - Engine = Engine, - Namespace = "TestNamespace", - Class = "TestClass", - Method = "TestMethod", - }; - - // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); - - // Assert - var @namespace = SingleChild(documentNode); - AnnotationEquals(@namespace, CommonAnnotations.PrimaryNamespace); - - var @class = SingleChild(@namespace); - AnnotationEquals(@class, CommonAnnotations.PrimaryClass); - - var method = SingleChild(@class); - AnnotationEquals(method, CommonAnnotations.PrimaryMethod); - } - - private class TestDocumentClassifierPass : DocumentClassifierPassBase - { - public override int Order => IntermediateNodePassBase.DefaultFeatureOrder; - - public bool ShouldMatch { get; set; } = true; - - public Action CodeTargetCallback { get; set; } - - public string Namespace { get; set; } - - public string Class { get; set; } - - public string Method { get; set; } - - protected override string DocumentKind => "test"; - - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) - { - return ShouldMatch; - } - - protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, - MethodDeclarationIntermediateNode method) - { - @namespace.Content = Namespace; - @class.ClassName = Class; - @method.MethodName = Method; - } - - protected override void ConfigureTarget(CodeTargetBuilder builder) - { - CodeTargetCallback?.Invoke(builder); - } - } - - private class MyExtension1 : ICodeTargetExtension - { - } - - private class MyExtension2 : ICodeTargetExtension - { - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/DefaultMetadataIdentifierFeatureTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/DefaultMetadataIdentifierFeatureTest.cs deleted file mode 100644 index fec5a77cc17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/DefaultMetadataIdentifierFeatureTest.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class DefaultMetadataIdentifierFeatureTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - - [Fact] - public void GetIdentifier_ReturnsNull_ForNullRelativePath() - { - // Arrange - var sourceDocument = RazorSourceDocument.Create("content", new RazorSourceDocumentProperties("Test.cshtml", null)); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var feature = new DefaultMetadataIdentifierFeature() - { - Engine = CreateProjectEngine().Engine, - }; - - // Act - var result = feature.GetIdentifier(codeDocument, sourceDocument); - - // Assert - Assert.Null(result); - } - - [Fact] - public void GetIdentifier_ReturnsNull_ForEmptyRelativePath() - { - // Arrange - var sourceDocument = RazorSourceDocument.Create("content", new RazorSourceDocumentProperties("Test.cshtml", string.Empty)); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var feature = new DefaultMetadataIdentifierFeature() - { - Engine = CreateProjectEngine().Engine, - }; - - // Act - var result = feature.GetIdentifier(codeDocument, sourceDocument); - - // Assert - Assert.Null(result); - } - - [Theory] - [InlineData("Test.cshtml", "/Test.cshtml")] - [InlineData("/Test.cshtml", "/Test.cshtml")] - [InlineData("\\Test.cshtml", "/Test.cshtml")] - [InlineData("\\About\\Test.cshtml", "/About/Test.cshtml")] - [InlineData("\\About\\Test\\cshtml", "/About/Test/cshtml")] - public void GetIdentifier_SanitizesRelativePath(string relativePath, string expected) - { - // Arrange - var sourceDocument = RazorSourceDocument.Create("content", new RazorSourceDocumentProperties("Test.cshtml", relativePath)); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var feature = new DefaultMetadataIdentifierFeature() - { - Engine = CreateProjectEngine().Engine, - }; - - // Act - var result = feature.GetIdentifier(codeDocument, sourceDocument); - - // Assert - Assert.Equal(expected, result); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperOptimizationPassTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperOptimizationPassTest.cs deleted file mode 100644 index 104c63c752d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperOptimizationPassTest.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class DefaultTagHelperOptimizationPassTest - { - [Fact] - public void DefaultTagHelperOptimizationPass_Execute_ReplacesChildren() - { - // Arrange - var codeDocument = CreateDocument(@" -@addTagHelper TestTagHelper, TestAssembly -

"); - - var tagHelpers = new[] - { - TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly") - .TypeName("TestTagHelper") - .BoundAttributeDescriptor(attribute => attribute - .Name("Foo") - .TypeName("System.Int32") - .PropertyName("FooProp")) - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .Build() - }; - - var engine = CreateEngine(tagHelpers); - var pass = new DefaultTagHelperOptimizationPass() - { - Engine = engine - }; - - var irDocument = CreateIRDocument(engine, codeDocument); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - var @class = irDocument.FindPrimaryClass(); - Assert.IsType(@class.Children[0]); - - var fieldDeclaration = Assert.IsType(@class.Children[1]); - Assert.Equal(bool.TrueString, fieldDeclaration.Annotations[CommonAnnotations.DefaultTagHelperExtension.TagHelperField]); - Assert.Equal("__TestTagHelper", fieldDeclaration.FieldName); - Assert.Equal("global::TestTagHelper", fieldDeclaration.FieldType); - Assert.Equal("private", fieldDeclaration.Modifiers.First()); - - var tagHelper = FindTagHelperNode(irDocument); - Assert.Equal(5, tagHelper.Children.Count); - - var body = Assert.IsType(tagHelper.Children[0]); - Assert.Equal("p", body.TagName); - Assert.Equal(TagMode.StartTagAndEndTag, body.TagMode); - - var create = Assert.IsType(tagHelper.Children[1]); - Assert.Equal("__TestTagHelper", create.FieldName); - Assert.Equal("TestTagHelper", create.TypeName); - Assert.Equal(tagHelpers[0], create.TagHelper, TagHelperDescriptorComparer.Default); - - var property = Assert.IsType(tagHelper.Children[2]); - Assert.Equal("foo", property.AttributeName); - Assert.Equal(AttributeStructure.DoubleQuotes, property.AttributeStructure); - Assert.Equal(tagHelpers[0].BoundAttributes[0], property.BoundAttribute, BoundAttributeDescriptorComparer.Default); - Assert.Equal("__TestTagHelper", property.FieldName); - Assert.False(property.IsIndexerNameMatch); - Assert.Equal("FooProp", property.PropertyName); - Assert.Equal(tagHelpers[0], property.TagHelper, TagHelperDescriptorComparer.Default); - - var htmlAttribute = Assert.IsType(tagHelper.Children[3]); - Assert.Equal("attr", htmlAttribute.AttributeName); - Assert.Equal(AttributeStructure.DoubleQuotes, htmlAttribute.AttributeStructure); - - Assert.IsType(tagHelper.Children[4]); - } - - private RazorCodeDocument CreateDocument(string content) - { - var source = RazorSourceDocument.Create(content, "test.cshtml"); - return RazorCodeDocument.Create(source); - } - - private RazorEngine CreateEngine(params TagHelperDescriptor[] tagHelpers) - { - return RazorProjectEngine.Create(b => - { - b.Features.Add(new TestTagHelperFeature(tagHelpers)); - }).Engine; - } - - private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) - { - for (var i = 0; i < engine.Phases.Count; i++) - { - var phase = engine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorDirectiveClassifierPhase) - { - break; - } - } - - return codeDocument.GetDocumentIntermediateNode(); - } - - private TagHelperIntermediateNode FindTagHelperNode(IntermediateNode node) - { - var visitor = new TagHelperNodeVisitor(); - visitor.Visit(node); - return visitor.Node; - } - - private class TagHelperNodeVisitor : IntermediateNodeWalker - { - public TagHelperIntermediateNode Node { get; set; } - - public override void VisitTagHelper(TagHelperIntermediateNode node) - { - Node = node; - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs deleted file mode 100644 index fba53cd721c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs +++ /dev/null @@ -1,1247 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class DefaultTagHelperTargetExtensionTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - - private static readonly TagHelperDescriptor StringPropertyTagHelper = CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("StringProp") - .TypeName("System.String"), - }); - - private static readonly TagHelperDescriptor IntPropertyTagHelper = CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("IntProp") - .TypeName("System.Int32"), - }); - - private static readonly TagHelperDescriptor StringIndexerTagHelper = CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("StringIndexer") - .TypeName("System.Collections.Generic.Dictionary") - .AsDictionary("foo-", "System.String"), - }); - - private static readonly TagHelperDescriptor IntIndexerTagHelper = CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("IntIndexer") - .TypeName("System.Collections.Generic.Dictionary") - .AsDictionary("foo-", "System.Int32"), - }); - - private static readonly SourceSpan Span = new SourceSpan("test.cshtml", 15, 2, 5, 2); - - [Fact] - public void WriteTagHelperBody_DesignTime_WritesChildren() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperBodyIntermediateNode() - { - Children = - { - new CSharpExpressionIntermediateNode(), - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperBody(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"Render Children -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperBody_Runtime_RendersCorrectly_UsesTagNameAndModeFromContext() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperBodyIntermediateNode() - { - Children = - { - new CSharpExpressionIntermediateNode(), - }, - TagMode = TagMode.SelfClosing, - TagName = "p", - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperBody(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__tagHelperExecutionContext = __tagHelperScopeManager.Begin(""p"", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, ""test"", async() => { - Render Children -} -); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperCreate_DesignTime_RendersCorrectly_UsesSpecifiedTagHelperType() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperCreateIntermediateNode() - { - FieldName = "__TestNamespace_MyTagHelper", - TypeName = "TestNamespace.MyTagHelper", - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperCreate(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__TestNamespace_MyTagHelper = CreateTagHelper(); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperCreate_Runtime_RendersCorrectly_UsesSpecifiedTagHelperType() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperCreateIntermediateNode() - { - FieldName = "__TestNamespace_MyTagHelper", - TypeName = "TestNamespace.MyTagHelper", - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperCreate(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__TestNamespace_MyTagHelper = CreateTagHelper(); -__tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperExecute_DesignTime_RendersAsyncCode() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperExecuteIntermediateNode(); - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperExecute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( - @"await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperExecute_Runtime_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperExecuteIntermediateNode(); - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperExecute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -if (!__tagHelperExecutionContext.Output.IsContentModified) -{ - await __tagHelperExecutionContext.SetOutputContentAsync(); -} -Write(__tagHelperExecutionContext.Output); -__tagHelperExecutionContext = __tagHelperScopeManager.End(); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperHtmlAttribute_DesignTime_WritesNothing() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperHtmlAttributeIntermediateNode() - { - AttributeName = "name", - AttributeStructure = AttributeStructure.DoubleQuotes, - Children = - { - new HtmlAttributeValueIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.Html, Content = "Blah-" } } - }, - new CSharpCodeAttributeValueIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "\"Foo\"", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperHtmlAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"Render Children -Render Children -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperHtmlAttribute_Runtime_SimpleAttribute_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperHtmlAttributeIntermediateNode() - { - AttributeName = "name", - AttributeStructure = AttributeStructure.DoubleQuotes, - Children = - { - new HtmlAttributeIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.Html, Content = "\"value\"", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperHtmlAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"BeginWriteTagHelperAttribute(); -Render Children -__tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); -__tagHelperExecutionContext.AddHtmlAttribute(""name"", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperHtmlAttribute_Runtime_DynamicAttribute_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperHtmlAttributeIntermediateNode() - { - AttributeName = "name", - AttributeStructure = AttributeStructure.DoubleQuotes, - Children = - { - new HtmlAttributeValueIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.Html, Content = "Blah-" } } - }, - new CSharpCodeAttributeValueIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "\"Foo\"", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperHtmlAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"BeginAddHtmlAttributeValues(__tagHelperExecutionContext, ""name"", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -Render Children -Render Children -EndAddHtmlAttributeValues(__tagHelperExecutionContext); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void RenderTagHelperAttributeInline_NonString_StatementInAttribute_Errors() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - IsIndexerNameMatch = false, - }; - var expectedLocation = new SourceSpan(100, 10); - var expectedDiagnostic = RazorDiagnosticFactory.CreateTagHelper_CodeBlocksNotSupportedInAttributes(expectedLocation); - - // Act - extension.RenderTagHelperAttributeInline(context, node, new CSharpCodeIntermediateNode(), expectedLocation); - - // Assert - var diagnostic = Assert.Single(context.Diagnostics); - Assert.Equal(expectedDiagnostic, diagnostic); - } - - [Fact] - public void RenderTagHelperAttributeInline_NonStringIndexerMatch_TemplateInAttribute_Errors() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - IsIndexerNameMatch = true, - }; - var expectedLocation = new SourceSpan(100, 10); - var expectedDiagnostic = RazorDiagnosticFactory.CreateTagHelper_InlineMarkupBlocksNotSupportedInAttributes(expectedLocation, "System.Int32"); - - // Act - extension.RenderTagHelperAttributeInline(context, node, new TemplateIntermediateNode(), expectedLocation); - - // Assert - var diagnostic = Assert.Single(context.Diagnostics); - Assert.Equal(expectedDiagnostic, diagnostic); - } - - [Fact] - public void RenderTagHelperAttributeInline_NonString_TemplateInAttribute_Errors() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - IsIndexerNameMatch = false, - }; - var expectedLocation = new SourceSpan(100, 10); - var expectedDiagnostic = RazorDiagnosticFactory.CreateTagHelper_InlineMarkupBlocksNotSupportedInAttributes( - expectedLocation, - "System.Collections.Generic.Dictionary"); - - // Act - extension.RenderTagHelperAttributeInline(context, node, new TemplateIntermediateNode(), expectedLocation); - - // Assert - var diagnostic = Assert.Single(context.Diagnostics); - Assert.Equal(expectedDiagnostic, diagnostic); - } - - [Fact] - public void WriteTagHelperProperty_DesignTime_StringProperty_HtmlContent_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = StringPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "StringProp", - TagHelper = StringPropertyTagHelper, - Children = - { - new HtmlContentIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.Html, Content = "value", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"Render Children -__InputTagHelper.StringProp = ""value""; -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] // We don't actually assign the expression result at design time, we just use string.Empty as a placeholder. - public void WriteTagHelperProperty_DesignTime_StringProperty_NonHtmlContent_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = StringPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "StringProp", - TagHelper = StringPropertyTagHelper, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "\"3+5\"", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"Render Children -__InputTagHelper.StringProp = string.Empty; -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_DesignTime_NonStringProperty_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "IntProp", - TagHelper = IntPropertyTagHelper, - Source = Span, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@" -#nullable restore -#line 3 ""test.cshtml"" -__InputTagHelper.IntProp = 32; - -#line default -#line hidden -#nullable disable -", - csharp, - ignoreLineEndingDifferences: true); - } - - // If a value is bound to multiple tag helpers, we want to make sure to only render the first - // occurrence of the expression due to side-effects. - [Fact] - public void WriteTagHelperProperty_DesignTime_NonStringProperty_SecondUseOfAttribute() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node1 = new DefaultTagHelperPropertyIntermediateNode() - { - // We only look at the attribute name here. - AttributeName = "bound", - FieldName = "__OtherTagHelper", - PropertyName = "IntProp", - }; - var node2 = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "IntProp", - TagHelper = IntPropertyTagHelper, - Source = Span, - }; - tagHelperNode.Children.Add(node1); - tagHelperNode.Children.Add(node2); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node2); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__InputTagHelper.IntProp = __OtherTagHelper.IntProp; -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_DesignTime_NonStringProperty_RendersCorrectly_WithoutLocation() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "IntProp", - TagHelper = IntPropertyTagHelper, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__InputTagHelper.IntProp = 32; -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_DesignTime_NonStringIndexer_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "foo-bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = true, - PropertyName = "IntIndexer", - TagHelper = IntIndexerTagHelper, - Source = Span, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@" -#nullable restore -#line 3 ""test.cshtml"" -__InputTagHelper.IntIndexer[""bound""] = 32; - -#line default -#line hidden -#nullable disable -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_DesignTime_NonStringIndexer_RendersCorrectly_WithoutLocation() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "foo-bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = true, - PropertyName = "IntIndexer", - TagHelper = IntIndexerTagHelper, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__InputTagHelper.IntIndexer[""bound""] = 32; -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_Runtime_StringProperty_HtmlContent_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = StringPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "StringProp", - TagHelper = StringPropertyTagHelper, - Children = - { - new HtmlContentIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.Html, Content = "\"value\"", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - - // The attribute value is not rendered inline because we are not using the preallocated writer. - Assert.Equal( -@"BeginWriteTagHelperAttribute(); -Render Children -__tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); -__InputTagHelper.StringProp = __tagHelperStringValueBuffer; -__tagHelperExecutionContext.AddTagHelperAttribute(""bound"", __InputTagHelper.StringProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_Runtime_NonStringProperty_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "IntProp", - TagHelper = IntPropertyTagHelper, - Source = Span, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - }, - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@" -#nullable restore -#line 3 ""test.cshtml"" -__InputTagHelper.IntProp = 32; - -#line default -#line hidden -#nullable disable -__tagHelperExecutionContext.AddTagHelperAttribute(""bound"", __InputTagHelper.IntProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - // If a value is bound to multiple tag helpers, we want to make sure to only render the first - // occurrence of the expression due to side-effects. - [Fact] - public void WriteTagHelperProperty_Runtime_NonStringProperty_SecondUseOfAttribute() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node1 = new DefaultTagHelperPropertyIntermediateNode() - { - // We only look at the attribute name here. - AttributeName = "bound", - FieldName = "__OtherTagHelper", - PropertyName = "IntProp", - }; - var node2 = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "IntProp", - TagHelper = IntPropertyTagHelper, - Source = Span, - }; - tagHelperNode.Children.Add(node1); - tagHelperNode.Children.Add(node2); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node2); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__InputTagHelper.IntProp = __OtherTagHelper.IntProp; -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_Runtime_NonStringProperty_RendersCorrectly_WithoutLocation() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntPropertyTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = false, - PropertyName = "IntProp", - TagHelper = IntPropertyTagHelper, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__InputTagHelper.IntProp = 32; -__tagHelperExecutionContext.AddTagHelperAttribute(""bound"", __InputTagHelper.IntProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_Runtime_NonStringIndexer_RendersCorrectly() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "foo-bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = true, - PropertyName = "IntIndexer", - TagHelper = IntIndexerTagHelper, - Source = Span, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"if (__InputTagHelper.IntIndexer == null) -{ - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment(""foo-bound"", ""InputTagHelper"", ""IntIndexer"")); -} -#nullable restore -#line 3 ""test.cshtml"" -__InputTagHelper.IntIndexer[""bound""] = 32; - -#line default -#line hidden -#nullable disable -__tagHelperExecutionContext.AddTagHelperAttribute(""foo-bound"", __InputTagHelper.IntIndexer[""bound""], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] // We should only emit the validation code for the first use of an indexer property. - public void WriteTagHelperProperty_Runtime_NonStringIndexer_MultipleValues() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node1 = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "foo-first", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = true, - PropertyName = "IntIndexer", - TagHelper = IntIndexerTagHelper, - Source = Span, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "17", } }, - } - } - }; - var node2 = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "foo-bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = true, - PropertyName = "IntIndexer", - TagHelper = IntIndexerTagHelper, - Source = Span, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node1); - tagHelperNode.Children.Add(node2); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node2); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@" -#nullable restore -#line 3 ""test.cshtml"" -__InputTagHelper.IntIndexer[""bound""] = 32; - -#line default -#line hidden -#nullable disable -__tagHelperExecutionContext.AddTagHelperAttribute(""foo-bound"", __InputTagHelper.IntIndexer[""bound""], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_Runtime_NonStringIndexer_RendersCorrectly_WithoutLocation() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new DefaultTagHelperPropertyIntermediateNode() - { - AttributeName = "foo-bound", - AttributeStructure = AttributeStructure.DoubleQuotes, - BoundAttribute = IntIndexerTagHelper.BoundAttributes.Single(), - FieldName = "__InputTagHelper", - IsIndexerNameMatch = true, - PropertyName = "IntIndexer", - TagHelper = IntIndexerTagHelper, - Children = - { - new CSharpExpressionIntermediateNode() - { - Children = { new IntermediateToken { Kind = TokenKind.CSharp, Content = "32", } }, - } - } - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"if (__InputTagHelper.IntIndexer == null) -{ - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment(""foo-bound"", ""InputTagHelper"", ""IntIndexer"")); -} -__InputTagHelper.IntIndexer[""bound""] = 32; -__tagHelperExecutionContext.AddTagHelperAttribute(""foo-bound"", __InputTagHelper.IntIndexer[""bound""], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperRuntime_DesignTime_RendersPreRequisites() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DefaultTagHelperRuntimeIntermediateNode(); - - // Act - extension.WriteTagHelperRuntime(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( - @"#line hidden -#pragma warning disable 0649 -private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; -#pragma warning restore 0649 -private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperRuntime_Runtime_DeclaresRequiredFields() - { - // Arrange - var extension = new DefaultTagHelperTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new DefaultTagHelperRuntimeIntermediateNode(); - - // Act - extension.WriteTagHelperRuntime(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#line hidden -#pragma warning disable 0649 -private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; -#pragma warning restore 0649 -private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); -#pragma warning disable 0169 -private string __tagHelperStringValueBuffer; -#pragma warning restore 0169 -private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; -private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager -{ - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } -} -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void GetDeterministicId_IsDeterministic() - { - // Arrange - var context = TestCodeRenderingContext.CreateRuntime(suppressUniqueIds: null); - - // Act - var firstId = DefaultTagHelperTargetExtension.GetDeterministicId(context); - var secondId = DefaultTagHelperTargetExtension.GetDeterministicId(context); - - // Assert - Assert.Equal(firstId, secondId); - } - - private static void Push(CodeRenderingContext context, TagHelperIntermediateNode node) - { - ((DefaultCodeRenderingContext)context).AncestorsInternal.Push(node); - } - - private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) - { - var projectEngine = CreateProjectEngine(); - return Lower(codeDocument, projectEngine); - } - - private DocumentIntermediateNode LowerDesignTime(RazorCodeDocument codeDocument) - { - var projectEngine = RazorProjectEngine.Create(b => - { - b.Features.Add(new DesignTimeOptionsFeature(designTime: true)); - }); - - return Lower(codeDocument, projectEngine); - } - - private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorProjectEngine engine) - { - for (var i = 0; i < engine.Phases.Count; i++) - { - var phase = engine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorIntermediateNodeLoweringPhase) - { - break; - } - } - - var irDocument = codeDocument.GetDocumentIntermediateNode(); - Assert.NotNull(irDocument); - - return irDocument; - } - - private static TagHelperDescriptor CreateTagHelperDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null) - { - var builder = TagHelperDescriptorBuilder.Create(typeName, assemblyName); - builder.TypeName(typeName); - - if (attributes != null) - { - foreach (var attributeBuilder in attributes) - { - builder.BindAttribute(attributeBuilder); - } - } - - builder.TagMatchingRule(ruleBuilder => ruleBuilder.RequireTagName(tagName)); - - var descriptor = builder.Build(); - - return descriptor; - } - - private class DesignTimeOptionsFeature : IConfigureRazorParserOptionsFeature, IConfigureRazorCodeGenerationOptionsFeature - { - private bool _designTime; - - public DesignTimeOptionsFeature(bool designTime) - { - _designTime = designTime; - } - - public int Order { get; } - - public RazorEngine Engine { get; set; } - - public void Configure(RazorParserOptionsBuilder options) - { - options.SetDesignTime(_designTime); - } - - public void Configure(RazorCodeGenerationOptionsBuilder options) - { - options.SetDesignTime(_designTime); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs deleted file mode 100644 index 4d61b0ef6c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class DesignTimeDirectiveTargetExtensionTest - { - [Fact] - public void WriteDesignTimeDirective_NoChildren_WritesEmptyMethod_WithPragma() - { - // Arrange - var extension = new DesignTimeDirectiveTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DesignTimeDirectiveIntermediateNode(); - - // Act - extension.WriteDesignTimeDirective(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#pragma warning disable 219 -private void __RazorDirectiveTokenHelpers__() { -} -#pragma warning restore 219 -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteDesignTimeDirective_WithTypeToken_WritesLambda() - { - // Arrange - var extension = new DesignTimeDirectiveTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DesignTimeDirectiveIntermediateNode(); - var token = new DirectiveTokenIntermediateNode() - { - Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), - Content = "System.String", - DirectiveToken = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.Type), - }; - node.Children.Add(token); - - // Act - extension.WriteDesignTimeDirective(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#pragma warning disable 219 -private void __RazorDirectiveTokenHelpers__() { -((System.Action)(() => { -#nullable restore -#line 1 ""test.cshtml"" -System.String __typeHelper = default!; - -#line default -#line hidden -#nullable disable -} -))(); -} -#pragma warning restore 219 -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteDesignTimeDirective_WithNamespaceToken_WritesLambda() - { - // Arrange - var extension = new DesignTimeDirectiveTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DesignTimeDirectiveIntermediateNode(); - var token = new DirectiveTokenIntermediateNode() - { - Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), - Content = "System.Collections.Generic", - DirectiveToken = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.Namespace), - }; - node.Children.Add(token); - - // Act - extension.WriteDesignTimeDirective(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#pragma warning disable 219 -private void __RazorDirectiveTokenHelpers__() { -((System.Action)(() => { -#nullable restore -#line 1 ""test.cshtml"" -global::System.Object __typeHelper = nameof(System.Collections.Generic); - -#line default -#line hidden -#nullable disable -} -))(); -} -#pragma warning restore 219 -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteDesignTimeDirective_WithMemberToken_WritesLambda() - { - // Arrange - var extension = new DesignTimeDirectiveTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DesignTimeDirectiveIntermediateNode(); - var token = new DirectiveTokenIntermediateNode() - { - Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), - Content = "Foo", - DirectiveToken = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.Member), - }; - node.Children.Add(token); - - // Act - extension.WriteDesignTimeDirective(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#pragma warning disable 219 -private void __RazorDirectiveTokenHelpers__() { -((System.Action)(() => { -#nullable restore -#line 1 ""test.cshtml"" -global::System.Object Foo = null!; - -#line default -#line hidden -#nullable disable -} -))(); -} -#pragma warning restore 219 -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteDesignTimeDirective_WithStringToken_WritesLambda() - { - // Arrange - var extension = new DesignTimeDirectiveTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DesignTimeDirectiveIntermediateNode(); - var token = new DirectiveTokenIntermediateNode() - { - Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), - Content = "Value", - DirectiveToken = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.String), - }; - var tokenWithQuotedContent = new DirectiveTokenIntermediateNode() - { - Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), - Content = "\"Value\"", - DirectiveToken = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.String), - }; - node.Children.Add(token); - node.Children.Add(tokenWithQuotedContent); - - // Act - extension.WriteDesignTimeDirective(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#pragma warning disable 219 -private void __RazorDirectiveTokenHelpers__() { -((System.Action)(() => { -#nullable restore -#line 1 ""test.cshtml"" -global::System.Object __typeHelper = ""Value""; - -#line default -#line hidden -#nullable disable -} -))(); -((System.Action)(() => { -#nullable restore -#line 1 ""test.cshtml"" -global::System.Object __typeHelper = ""Value""; - -#line default -#line hidden -#nullable disable -} -))(); -} -#pragma warning restore 219 -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteDesignTimeDirective_ChildrenWithNoSource_WritesEmptyMethod_WithPragma() - { - // Arrange - var extension = new DesignTimeDirectiveTargetExtension(); - var context = TestCodeRenderingContext.CreateDesignTime(); - - var node = new DesignTimeDirectiveIntermediateNode(); - var token = new DirectiveTokenIntermediateNode() - { - Content = "Value", - DirectiveToken = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.String), - }; - node.Children.Add(token); - - // Act - extension.WriteDesignTimeDirective(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"#pragma warning disable 219 -private void __RazorDirectiveTokenHelpers__() { -} -#pragma warning restore 219 -", - csharp, - ignoreLineEndingDifferences: true); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/FunctionsDirectivePassTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/FunctionsDirectivePassTest.cs deleted file mode 100644 index ff60131973b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/FunctionsDirectivePassTest.cs +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class FunctionsDirectivePassTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - - [Fact] - public void Execute_SkipsDocumentWithNoClassNode() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var pass = new FunctionsDirectivePass() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("@functions { var value = true; }"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode(); - irDocument.Children.Add(new DirectiveIntermediateNode() { Directive = FunctionsDirective.Directive, }); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - } - - [Fact] - public void Execute_AddsStatementsToClassLevel() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var pass = new FunctionsDirectivePass() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("@functions { var value = true; }"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = Lower(codeDocument, projectEngine); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - - var @namespace = irDocument.Children[0]; - Children( - @namespace, - node => Assert.IsType(node)); - - var @class = @namespace.Children[0]; - Children( - @class, - node => Assert.IsType(node), - node => CSharpCode(" var value = true; ", node)); - - var method = @class.Children[0]; - Assert.Empty(method.Children); - } - - [Fact] - public void Execute_ComponentCodeDirective_AddsStatementsToClassLevel() - { - // Arrange - var projectEngine = CreateProjectEngine(b => b.AddDirective(ComponentCodeDirective.Directive)); - var pass = new FunctionsDirectivePass() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("@code { var value = true; }"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - codeDocument.SetFileKind(FileKinds.Component); - - var irDocument = Lower(codeDocument, projectEngine); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - - var @namespace = irDocument.Children[0]; - Children( - @namespace, - node => Assert.IsType(node)); - - var @class = @namespace.Children[0]; - Children( - @class, - node => Assert.IsType(node), - node => CSharpCode(" var value = true; ", node)); - - var method = @class.Children[0]; - Assert.Empty(method.Children); - } - - [Fact] - public void Execute_FunctionsAndComponentCodeDirective_AddsStatementsToClassLevel() - { - // Arrange - var projectEngine = CreateProjectEngine(b => b.AddDirective(ComponentCodeDirective.Directive)); - var pass = new FunctionsDirectivePass() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(@" -@functions { var value1 = true; } -@code { var value2 = true; } -@functions { var value3 = true; }"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - codeDocument.SetFileKind(FileKinds.Component); - - var irDocument = Lower(codeDocument, projectEngine); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - - var @namespace = irDocument.Children[0]; - Children( - @namespace, - node => Assert.IsType(node)); - - var @class = @namespace.Children[0]; - Children( - @class, - node => Assert.IsType(node), - node => CSharpCode(" var value1 = true; ", node), - node => CSharpCode(" var value2 = true; ", node), - node => CSharpCode(" var value3 = true; ", node)); - - var method = @class.Children[0]; - Children( - method, - node => Assert.IsType(node)); - } - - private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorProjectEngine projectEngine) - { - for (var i = 0; i < projectEngine.Phases.Count; i++) - { - var phase = projectEngine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorDocumentClassifierPhase) - { - break; - } - } - - var irDocument = codeDocument.GetDocumentIntermediateNode(); - Assert.NotNull(irDocument); - - return irDocument; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/InheritsDirectivePassTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/InheritsDirectivePassTest.cs deleted file mode 100644 index e851990b803..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/InheritsDirectivePassTest.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class InheritsDirectivePassTest : RazorProjectEngineTestBase - { - protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; - - [Fact] - public void Execute_SkipsDocumentWithNoClassNode() - { - // Arrange - var engine = CreateEngine(); - var pass = new InheritsDirectivePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("@inherits Hello"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode(); - irDocument.Children.Add(new DirectiveIntermediateNode() { Directive = FunctionsDirective.Directive, }); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - } - - [Fact] - public void Execute_Inherits_SetsClassDeclarationBaseType() - { - // Arrange - var engine = CreateEngine(); - var pass = new InheritsDirectivePass() - { - Engine = engine, - }; - - var content = "@inherits Hello"; - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = Lower(codeDocument, engine); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - - var @namespace = irDocument.Children[0]; - Children( - @namespace, - node => Assert.IsType(node)); - - var @class = (ClassDeclarationIntermediateNode)@namespace.Children[0]; - Assert.Equal("Hello", @class.BaseType); - } - - private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) - { - for (var i = 0; i < engine.Phases.Count; i++) - { - var phase = engine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorDocumentClassifierPhase) - { - break; - } - } - - var irDocument = codeDocument.GetDocumentIntermediateNode(); - Assert.NotNull(irDocument); - - return irDocument; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributePassTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributePassTest.cs deleted file mode 100644 index db50c00268f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributePassTest.cs +++ /dev/null @@ -1,392 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class MetadataAttributePassTest - { - [Fact] - public void Execute_NullCodeGenerationOptions_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode(); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - NoChildren(irDocument); - } - - [Fact] - public void Execute_SuppressMetadataAttributes_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(o => - { - o.SuppressMetadataAttributes = true; - }), - }; - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - NoChildren(irDocument); - } - - [Fact] - public void Execute_ComponentDocumentKind_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = ComponentDocumentClassifierPass.ComponentDocumentKind, - Options = RazorCodeGenerationOptions.Create(o => - { - o.SuppressMetadataAttributes = true; - }), - }; - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - NoChildren(irDocument); - } - - [Fact] - public void Execute_NoNamespaceSet_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = "test", - Options = RazorCodeGenerationOptions.Create((o) => { }), - }; - var builder = IntermediateNodeBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace, - }, - }; - builder.Push(@namespace); - var @class = new ClassDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass, - }, - ClassName = "Test", - }; - builder.Add(@class); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - SingleChild(irDocument); - } - - [Fact] - public void Execute_NoClassNameSet_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = "test", - Options = RazorCodeGenerationOptions.Create((o) => { }), - }; - var builder = IntermediateNodeBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace, - }, - Content = "Some.Namespace" - }; - builder.Push(@namespace); - var @class = new ClassDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass, - }, - }; - builder.Add(@class); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - SingleChild(irDocument); - } - - [Fact] - public void Execute_NoDocumentKind_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode(); - var builder = IntermediateNodeBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace, - }, - Content = "Some.Namespace" - }; - builder.Push(@namespace); - var @class = new ClassDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass, - }, - ClassName = "Test", - }; - builder.Add(@class); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - SingleChild(irDocument); - } - - [Fact] - public void Execute_NoIdentifier_Noops() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("", new RazorSourceDocumentProperties(null, null)); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = "test", - Options = RazorCodeGenerationOptions.Create((o) => { }), - }; - var builder = IntermediateNodeBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace, - }, - Content = "Some.Namespace" - }; - builder.Push(@namespace); - var @class = new ClassDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass, - }, - ClassName = "Test", - }; - builder.Add(@class); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - SingleChild(irDocument); - } - - [Fact] - public void Execute_HasRequiredInfo_AddsItemAndSourceChecksum() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("", new RazorSourceDocumentProperties(null, "Foo\\Bar.cshtml")); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = "test", - Options = RazorCodeGenerationOptions.Create((o) => { }), - }; - var builder = IntermediateNodeBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace, - }, - Content = "Some.Namespace" - }; - builder.Push(@namespace); - var @class = new ClassDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass, - }, - ClassName = "Test", - }; - builder.Add(@class); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Assert.Equal(2, irDocument.Children.Count); - - var item = Assert.IsType(irDocument.Children[0]); - Assert.Equal("/Foo/Bar.cshtml", item.Identifier); - Assert.Equal("test", item.Kind); - Assert.Equal("Some.Namespace.Test", item.TypeName); - - Assert.Equal(2, @namespace.Children.Count); - var checksum = Assert.IsType(@namespace.Children[0]); - Assert.NotNull(checksum.Checksum); // Not verifying the checksum here - Assert.Equal("SHA1", checksum.ChecksumAlgorithm); - Assert.Equal("/Foo/Bar.cshtml", checksum.Identifier); - } - - [Fact] - public void Execute_HasRequiredInfo_AndImport_AddsItemAndSourceChecksum() - { - // Arrange - var engine = CreateEngine(); - var pass = new MetadataAttributePass() - { - Engine = engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("", new RazorSourceDocumentProperties(null, "Foo\\Bar.cshtml")); - var import = TestRazorSourceDocument.Create("@using System", new RazorSourceDocumentProperties(null, "Foo\\Import.cshtml")); - var codeDocument = RazorCodeDocument.Create(sourceDocument, new[] { import, }); - - var irDocument = new DocumentIntermediateNode() - { - DocumentKind = "test", - Options = RazorCodeGenerationOptions.Create((o) => { }), - }; - var builder = IntermediateNodeBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace, - }, - Content = "Some.Namespace" - }; - builder.Push(@namespace); - var @class = new ClassDeclarationIntermediateNode - { - Annotations = - { - [CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass, - }, - ClassName = "Test", - }; - builder.Add(@class); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Assert.Equal(2, irDocument.Children.Count); - - var item = Assert.IsType(irDocument.Children[0]); - Assert.Equal("/Foo/Bar.cshtml", item.Identifier); - Assert.Equal("test", item.Kind); - Assert.Equal("Some.Namespace.Test", item.TypeName); - - Assert.Equal(3, @namespace.Children.Count); - var checksum = Assert.IsType(@namespace.Children[0]); - Assert.NotNull(checksum.Checksum); // Not verifying the checksum here - Assert.Equal("SHA1", checksum.ChecksumAlgorithm); - Assert.Equal("/Foo/Bar.cshtml", checksum.Identifier); - - checksum = Assert.IsType(@namespace.Children[1]); - Assert.NotNull(checksum.Checksum); // Not verifying the checksum here - Assert.Equal("SHA1", checksum.ChecksumAlgorithm); - Assert.Equal("/Foo/Import.cshtml", checksum.Identifier); - } - - private static RazorEngine CreateEngine() - { - return RazorProjectEngine.Create(b => - { - b.Features.Add(new DefaultMetadataIdentifierFeature()); - }).Engine; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributeTargetExtensionTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributeTargetExtensionTest.cs deleted file mode 100644 index faeaf4d6623..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/MetadataAttributeTargetExtensionTest.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class MetadataAttributeTargetExtensionTest - { - [Fact] - public void WriteRazorCompiledItemAttribute_RendersCorrectly() - { - // Arrange - var extension = new MetadataAttributeTargetExtension() - { - CompiledItemAttributeName = "global::TestItem", - }; - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new RazorCompiledItemAttributeIntermediateNode() - { - TypeName = "Foo.Bar", - Kind = "test", - Identifier = "Foo/Bar", - }; - - // Act - extension.WriteRazorCompiledItemAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"[assembly: global::TestItem(typeof(Foo.Bar), @""test"", @""Foo/Bar"")] -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteRazorSourceChecksumAttribute_RendersCorrectly() - { - // Arrange - var extension = new MetadataAttributeTargetExtension() - { - SourceChecksumAttributeName = "global::TestChecksum", - }; - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new RazorSourceChecksumAttributeIntermediateNode() - { - ChecksumAlgorithm = "SHA1", - Checksum = new byte[] { (byte)'t', (byte)'e', (byte)'s', (byte)'t', }, - Identifier = "Foo/Bar", - }; - - // Act - extension.WriteRazorSourceChecksumAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"[global::TestChecksum(@""SHA1"", @""74657374"", @""Foo/Bar"")] -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteRazorCompiledItemAttributeMetadata_RendersCorrectly() - { - // Arrange - var extension = new MetadataAttributeTargetExtension() - { - CompiledItemMetadataAttributeName = "global::TestItemMetadata", - }; - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new RazorCompiledItemMetadataAttributeIntermediateNode - { - Key = "key", - Value = "value", - }; - - // Act - extension.WriteRazorCompiledItemMetadataAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode().Trim(); - Assert.Equal( -"[global::TestItemMetadata(\"key\", \"value\")]", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteRazorCompiledItemAttributeMetadata_EscapesKeysAndValuesCorrectly() - { - // Arrange - var extension = new MetadataAttributeTargetExtension() - { - CompiledItemMetadataAttributeName = "global::TestItemMetadata", - }; - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new RazorCompiledItemMetadataAttributeIntermediateNode - { - Key = "\"test\" key", - Value = @"""test"" value", - }; - - // Act - extension.WriteRazorCompiledItemMetadataAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode().Trim(); - Assert.Equal( -"[global::TestItemMetadata(\"\\\"test\\\" key\", \"\\\"test\\\" value\")]", - csharp, - ignoreLineEndingDifferences: true); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/PreallocatedAttributeTargetExtensionTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/PreallocatedAttributeTargetExtensionTest.cs deleted file mode 100644 index da2f960847f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/PreallocatedAttributeTargetExtensionTest.cs +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class PreallocatedAttributeTargetExtensionTest - { - [Fact] - public void WriteTagHelperHtmlAttributeValue_RendersCorrectly() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new PreallocatedTagHelperHtmlAttributeValueIntermediateNode() - { - AttributeName = "Foo", - Value = "Bar", - AttributeStructure = AttributeStructure.DoubleQuotes, - VariableName = "MyProp" - }; - - // Act - extension.WriteTagHelperHtmlAttributeValue(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute MyProp = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute(""Foo"", new global::Microsoft.AspNetCore.Html.HtmlString(""Bar""), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperHtmlAttributeValue_Minimized_RendersCorrectly() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new PreallocatedTagHelperHtmlAttributeValueIntermediateNode() - { - AttributeName = "Foo", - Value = "Bar", - AttributeStructure = AttributeStructure.Minimized, - VariableName = "_tagHelper1" - }; - - // Act - extension.WriteTagHelperHtmlAttributeValue(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute _tagHelper1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute(""Foo""); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperHtmlAttribute_RendersCorrectly() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new PreallocatedTagHelperHtmlAttributeIntermediateNode() - { - VariableName = "_tagHelper1" - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperHtmlAttribute(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__tagHelperExecutionContext.AddHtmlAttribute(_tagHelper1); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperPropertyValue_RendersCorrectly() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var node = new PreallocatedTagHelperPropertyValueIntermediateNode() - { - AttributeName = "Foo", - Value = "Bar", - AttributeStructure = AttributeStructure.DoubleQuotes, - VariableName = "_tagHelper1", - }; - - // Act - extension.WriteTagHelperPropertyValue(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute _tagHelper1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute(""Foo"", ""Bar"", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteTagHelperProperty_RendersCorrectly() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "FooTagHelper", "Test"); - tagHelperBuilder.TypeName("FooTagHelper"); - - var builder = new DefaultBoundAttributeDescriptorBuilder(tagHelperBuilder, TagHelperConventions.DefaultKind); - builder - .Name("Foo") - .TypeName("System.String") - .PropertyName("FooProp"); - - var descriptor = builder.Build(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new PreallocatedTagHelperPropertyIntermediateNode() - { - AttributeName = descriptor.Name, - BoundAttribute = descriptor, - FieldName = "__FooTagHelper", - PropertyName = "FooProp", - VariableName = "_tagHelper1", - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__FooTagHelper.FooProp = (string)_tagHelper1.Value; -__tagHelperExecutionContext.AddTagHelperAttribute(_tagHelper1); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteSetPreallocatedTagHelperProperty_IndexerAttribute_RendersCorrectly() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "FooTagHelper", "Test"); - tagHelperBuilder.TypeName("FooTagHelper"); - - var builder = new DefaultBoundAttributeDescriptorBuilder(tagHelperBuilder, TagHelperConventions.DefaultKind); - builder - .Name("Foo") - .TypeName("System.Collections.Generic.Dictionary") - .AsDictionaryAttribute("pre-", "System.String") - .PropertyName("FooProp"); - - var descriptor = builder.Build(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node = new PreallocatedTagHelperPropertyIntermediateNode() - { - AttributeName = "pre-Foo", - FieldName = "__FooTagHelper", - VariableName = "_tagHelper1", - BoundAttribute = descriptor, - IsIndexerNameMatch = true, - PropertyName = "FooProp", - TagHelper = tagHelperBuilder.Build(), - }; - tagHelperNode.Children.Add(node); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"if (__FooTagHelper.FooProp == null) -{ - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment(""pre-Foo"", ""FooTagHelper"", ""FooProp"")); -} -__FooTagHelper.FooProp[""Foo""] = (string)_tagHelper1.Value; -__tagHelperExecutionContext.AddTagHelperAttribute(_tagHelper1); -", - csharp, - ignoreLineEndingDifferences: true); - } - - [Fact] - public void WriteSetPreallocatedTagHelperProperty_IndexerAttribute_MultipleValues() - { - // Arrange - var extension = new PreallocatedAttributeTargetExtension(); - var context = TestCodeRenderingContext.CreateRuntime(); - - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "FooTagHelper", "Test"); - tagHelperBuilder.TypeName("FooTagHelper"); - - var builder = new DefaultBoundAttributeDescriptorBuilder(tagHelperBuilder, TagHelperConventions.DefaultKind); - builder - .Name("Foo") - .TypeName("System.Collections.Generic.Dictionary") - .AsDictionaryAttribute("pre-", "System.String") - .PropertyName("FooProp"); - - var boundAttribute = builder.Build(); - var tagHelper = tagHelperBuilder.Build(); - - var tagHelperNode = new TagHelperIntermediateNode(); - var node1 = new PreallocatedTagHelperPropertyIntermediateNode() - { - AttributeName = "pre-Bar", - FieldName = "__FooTagHelper", - VariableName = "_tagHelper0s", - BoundAttribute = boundAttribute, - IsIndexerNameMatch = true, - PropertyName = "FooProp", - TagHelper = tagHelper, - }; - var node2 = new PreallocatedTagHelperPropertyIntermediateNode() - { - AttributeName = "pre-Foo", - FieldName = "__FooTagHelper", - VariableName = "_tagHelper1", - BoundAttribute = boundAttribute, - IsIndexerNameMatch = true, - PropertyName = "FooProp", - TagHelper = tagHelper, - }; - tagHelperNode.Children.Add(node1); - tagHelperNode.Children.Add(node2); - Push(context, tagHelperNode); - - // Act - extension.WriteTagHelperProperty(context, node2); - - // Assert - var csharp = context.CodeWriter.GenerateCode(); - Assert.Equal( -@"__FooTagHelper.FooProp[""Foo""] = (string)_tagHelper1.Value; -__tagHelperExecutionContext.AddTagHelperAttribute(_tagHelper1); -", - csharp, - ignoreLineEndingDifferences: true); - } - - private static void Push(CodeRenderingContext context, TagHelperIntermediateNode node) - { - ((DefaultCodeRenderingContext)context).AncestorsInternal.Push(node); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/SectionDirectivePassTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/SectionDirectivePassTest.cs deleted file mode 100644 index a2f747e7a9a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/SectionDirectivePassTest.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class SectionDirectivePassTest - { - [Fact] - public void Execute_SkipsDocumentWithNoClassNode() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var pass = new SectionDirectivePass() - { - Engine = projectEngine.Engine, - }; - - var sourceDocument = TestRazorSourceDocument.Create("@section Header {

Hello World

}"); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = new DocumentIntermediateNode(); - irDocument.Children.Add(new DirectiveIntermediateNode() { Directive = SectionDirective.Directive, }); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - } - - [Fact] - public void Execute_WrapsStatementInSectionNode() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var pass = new SectionDirectivePass() - { - Engine = projectEngine.Engine, - }; - - var content = "@section Header {

Hello World

}"; - var sourceDocument = TestRazorSourceDocument.Create(content); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - var irDocument = Lower(codeDocument, projectEngine); - - // Act - pass.Execute(codeDocument, irDocument); - - // Assert - Children( - irDocument, - node => Assert.IsType(node)); - - var @namespace = irDocument.Children[0]; - Children( - @namespace, - node => Assert.IsType(node)); - - var @class = @namespace.Children[0]; - var method = SingleChild(@class); - - Children( - method, - node => Assert.IsType(node), - node => Assert.IsType(node)); - - var section = method.Children[1] as SectionIntermediateNode; - Assert.Equal("Header", section.SectionName); - Children(section, c => Html("

Hello World

", c)); - } - - private static RazorProjectEngine CreateProjectEngine() - { - return RazorProjectEngine.Create(b => - { - SectionDirective.Register(b); - }); - } - - private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorProjectEngine projectEngine) - { - for (var i = 0; i < projectEngine.Phases.Count; i++) - { - var phase = projectEngine.Phases[i]; - phase.Execute(codeDocument); - - if (phase is IRazorDocumentClassifierPhase) - { - break; - } - } - - var irDocument = codeDocument.GetDocumentIntermediateNode(); - Assert.NotNull(irDocument); - - return irDocument; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/SectionTargetExtensionTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/SectionTargetExtensionTest.cs deleted file mode 100644 index 16288b3117d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/SectionTargetExtensionTest.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class SectionTargetExtensionTest - { - [Fact] - public void WriteSection_WritesSectionCode() - { - // Arrange - var node = new SectionIntermediateNode() - { - Children = - { - new CSharpExpressionIntermediateNode(), - }, - SectionName = "MySection" - }; - - var extension = new SectionTargetExtension() - { - SectionMethodName = "CreateSection" - }; - - var context = TestCodeRenderingContext.CreateRuntime(); - - // Act - extension.WriteSection(context, node); - - // Assert - var expected = @"CreateSection(""MySection"", async() => { - Render Children -} -); -"; - - var output = context.CodeWriter.GenerateCode(); - Assert.Equal(expected, output); - } - - [Fact] - public void WriteSection_WritesSectionCode_DesignTime() - { - // Arrange - var node = new SectionIntermediateNode() - { - Children = - { - new CSharpExpressionIntermediateNode(), - }, - SectionName = "MySection" - }; - - var extension = new SectionTargetExtension() - { - SectionMethodName = "CreateSection" - }; - - var context = TestCodeRenderingContext.CreateDesignTime(); - - // Act - extension.WriteSection(context, node); - - // Assert - var expected = @"CreateSection(""MySection"", async(__razor_section_writer) => { - Render Children -} -); -"; - - var output = context.CodeWriter.GenerateCode(); - Assert.Equal(expected, output); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Extensions/TemplateTargetExtensionTest.cs b/src/Razor/test/RazorLanguage.Test/Extensions/TemplateTargetExtensionTest.cs deleted file mode 100644 index b24d6f5174c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Extensions/TemplateTargetExtensionTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Extensions -{ - public class TemplateTargetExtensionTest - { - [Fact] - public void WriteTemplate_WritesTemplateCode() - { - // Arrange - var node = new TemplateIntermediateNode() - { - Children = - { - new CSharpExpressionIntermediateNode() - } - }; - var extension = new TemplateTargetExtension() - { - TemplateTypeName = "global::TestTemplate" - }; - - var nodeWriter = new RuntimeNodeWriter() - { - PushWriterMethod = "TestPushWriter", - PopWriterMethod = "TestPopWriter" - }; - - var context = TestCodeRenderingContext.CreateRuntime(nodeWriter: nodeWriter); - - // Act - extension.WriteTemplate(context, node); - - // Assert - var expected = @"item => new global::TestTemplate(async(__razor_template_writer) => { - TestPushWriter(__razor_template_writer); - Render Children - TestPopWriter(); -} -)"; - - var output = context.CodeWriter.GenerateCode(); - Assert.Equal(expected, output); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/HtmlConventionsTest.cs b/src/Razor/test/RazorLanguage.Test/HtmlConventionsTest.cs deleted file mode 100644 index e1020bb81cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/HtmlConventionsTest.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class HtmlConventionsTest - { - public static TheoryData HtmlConversionData - { - get - { - return new TheoryData - { - { "SomeThing", "some-thing" }, - { "someOtherThing", "some-other-thing" }, - { "capsONInside", "caps-on-inside" }, - { "CAPSOnOUTSIDE", "caps-on-outside" }, - { "ALLCAPS", "allcaps" }, - { "One1Two2Three3", "one1-two2-three3" }, - { "ONE1TWO2THREE3", "one1two2three3" }, - { "First_Second_ThirdHi", "first_second_third-hi" } - }; - } - } - - [Theory] - [MemberData(nameof(HtmlConversionData))] - public void ToHtmlCase_ReturnsExpectedConversions(string input, string expectedOutput) - { - // Arrange, Act - var output = HtmlConventions.ToHtmlCase(input); - - // Assert - Assert.Equal(output, expectedOutput); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/HtmlNodeOptimizationPassTest.cs b/src/Razor/test/RazorLanguage.Test/HtmlNodeOptimizationPassTest.cs deleted file mode 100644 index bf08903e5a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/HtmlNodeOptimizationPassTest.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class HtmlNodeOptimizationPassTest - { - [Fact] - public void Execute_RewritesWhitespace() - { - // Assert - var content = Environment.NewLine + " @true"; - var sourceDocument = TestRazorSourceDocument.Create(content); - var originalTree = RazorSyntaxTree.Parse(sourceDocument); - var pass = new HtmlNodeOptimizationPass(); - var codeDocument = RazorCodeDocument.Create(sourceDocument); - - // Act - var outputTree = pass.Execute(codeDocument, originalTree); - - // Assert - var document = Assert.IsType(outputTree.Root); - var block = Assert.IsType(document.Document); - Assert.Equal(4, block.Children.Count); - var whitespace = Assert.IsType(block.Children[1]); - Assert.True(whitespace.GetContent().All(char.IsWhiteSpace)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/BasicIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/BasicIntegrationTest.cs deleted file mode 100644 index 9ae793d5a11..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/BasicIntegrationTest.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class BasicIntegrationTest : IntegrationTestBase - { - [Fact] - public void Empty() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - } - - [Fact] - public void HelloWorld() - { - // Arrange - var projectEngine = CreateProjectEngine(); - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - } - - [Fact] - public void CustomDirective() - { - // Arrange - var projectEngine = CreateProjectEngine(b => - { - b.AddDirective(DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine)); - }); - - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/CodeGenerationIntegrationTest.cs deleted file mode 100644 index 175c69abf65..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ /dev/null @@ -1,1092 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class CodeGenerationIntegrationTest : IntegrationTestBase - { - public CodeGenerationIntegrationTest() - : base(generateBaselines: null) - { - } - - #region Runtime - [Fact] - public void SingleLineControlFlowStatements_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void CSharp8_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void IncompleteDirectives_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void CSharp7_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void UnfinishedExpressionInCode_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Templates_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Markup_InCodeBlocks_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Markup_InCodeBlocksWithTagHelper_Runtime() - { - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void StringLiterals_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void SimpleUnspacedIf_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Sections_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void RazorComments_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ParserError_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void OpenedIf_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void NullConditionalExpressions_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void NoLinePragmas_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void NestedCSharp_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void NestedCodeBlocks_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void MarkupInCodeBlock_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Instrumented_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void InlineBlocks_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Inherits_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Usings_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ImplicitExpressionAtEOF_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ImplicitExpression_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void HtmlCommentWithQuote_Double_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void HtmlCommentWithQuote_Single_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void HiddenSpansInCode_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void FunctionsBlock_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void FunctionsBlockMinimal_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ExpressionsInCode_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ExplicitExpressionWithMarkup_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ExplicitExpressionAtEOF_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ExplicitExpression_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void EmptyImplicitExpressionInCode_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void EmptyImplicitExpression_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void EmptyExplicitExpression_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void EmptyCodeBlock_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void ConditionalAttributes_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void CodeBlockWithTextElement_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void CodeBlockAtEOF_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void CodeBlock_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Blocks_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Await_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void Tags_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void SimpleTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithBoundAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithPrefix_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void NestedTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void SingleTagHelper_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void SingleTagHelperWithNewlineBeforeAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithWeirdlySpacedAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void IncompleteTagHelper_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void BasicTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void BasicTagHelpers_Prefixed_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void BasicTagHelpers_RemoveTagHelper_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void CssSelectorTagHelperAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.CssSelectorTagHelperDescriptors); - } - - [Fact] - public void ComplexTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void EmptyAttributeTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void EscapedTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void DuplicateTargetTagHelper_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DuplicateTargetTagHelperDescriptors); - } - - [Fact] - public void AttributeTargetingTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.AttributeTargetingTagHelperDescriptors); - } - - [Fact] - public void PrefixedAttributeTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.PrefixedAttributeTagHelperDescriptors); - } - - [Fact] - public void DuplicateAttributeTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void DynamicAttributeTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DynamicAttributeTagHelpers_Descriptors); - } - - [Fact] - public void TransitionsInTagHelperAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void MinimizedTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.MinimizedTagHelpers_Descriptors); - } - - [Fact] - public void NestedScriptTagTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void SymbolBoundAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SymbolBoundTagHelperDescriptors); - } - - [Fact] - public void EnumTagHelpers_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.EnumTagHelperDescriptors); - } - - [Fact] - public void TagHelpersInSection_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.TagHelpersInSectionDescriptors); - } - - [Fact] - public void TagHelpersWithTemplate_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithDataDashAttributes_Runtime() - { - // Arrange, Act & Assert - RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void Implements_Runtime() - { - RunTimeTest(); - } - - [Fact] - public void AttributeDirective_Runtime() - { - RunTimeTest(); - } - - #endregion - - #region DesignTime - [Fact] - public void SingleLineControlFlowStatements_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void CSharp8_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void IncompleteDirectives_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void CSharp7_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void UnfinishedExpressionInCode_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Templates_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Markup_InCodeBlocks_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Markup_InCodeBlocksWithTagHelper_DesignTime() - { - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void StringLiterals_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void SimpleUnspacedIf_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Sections_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void RazorComments_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ParserError_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void OpenedIf_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void NullConditionalExpressions_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void NoLinePragmas_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void NestedCSharp_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void NestedCodeBlocks_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void MarkupInCodeBlock_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Instrumented_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void InlineBlocks_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Inherits_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Usings_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ImplicitExpressionAtEOF_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ImplicitExpression_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void HtmlCommentWithQuote_Double_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void HtmlCommentWithQuote_Single_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void HiddenSpansInCode_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void FunctionsBlock_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void FunctionsBlockMinimal_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ExpressionsInCode_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ExplicitExpressionWithMarkup_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ExplicitExpressionAtEOF_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ExplicitExpression_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void EmptyImplicitExpressionInCode_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void EmptyImplicitExpression_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void EmptyExplicitExpression_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void EmptyCodeBlock_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void DesignTime_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void ConditionalAttributes_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void CodeBlockWithTextElement_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void CodeBlockAtEOF_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void CodeBlock_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Blocks_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Await_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void Tags_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void AddTagHelperDirective_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void RemoveTagHelperDirective_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void SimpleTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithBoundAttributes_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithPrefix_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void NestedTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void SingleTagHelper_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void SingleTagHelperWithNewlineBeforeAttributes_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithWeirdlySpacedAttributes_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void IncompleteTagHelper_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void BasicTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void BasicTagHelpers_Prefixed_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void ComplexTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void EmptyAttributeTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void EscapedTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void DuplicateTargetTagHelper_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DuplicateTargetTagHelperDescriptors); - } - - [Fact] - public void AttributeTargetingTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.AttributeTargetingTagHelperDescriptors); - } - - [Fact] - public void PrefixedAttributeTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.PrefixedAttributeTagHelperDescriptors); - } - - [Fact] - public void DuplicateAttributeTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void DynamicAttributeTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DynamicAttributeTagHelpers_Descriptors); - } - - [Fact] - public void TransitionsInTagHelperAttributes_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void MinimizedTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.MinimizedTagHelpers_Descriptors); - } - - [Fact] - public void NestedScriptTagTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors); - } - - [Fact] - public void SymbolBoundAttributes_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SymbolBoundTagHelperDescriptors); - } - - [Fact] - public void EnumTagHelpers_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.EnumTagHelperDescriptors); - } - - [Fact] - public void TagHelpersInSection_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.TagHelpersInSectionDescriptors); - } - - [Fact] - public void TagHelpersWithTemplate_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void TagHelpersWithDataDashAttributes_DesignTime() - { - // Arrange, Act & Assert - RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors); - } - - [Fact] - public void Implements_DesignTime() - { - DesignTimeTest(); - } - - [Fact] - public void AttributeDirective_DesignTime() - { - DesignTimeTest(); - } - - #endregion - - private void DesignTimeTest() - { - // Arrange - var projectEngine = CreateProjectEngine(builder => - { - builder.ConfigureDocumentClassifier(); - - // Some of these tests use templates - builder.AddTargetExtension(new TemplateTargetExtension()); - - SectionDirective.Register(builder); - }); - - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - AssertHtmlDocumentMatchesBaseline(codeDocument.GetHtmlDocument()); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetCSharpDocument()); - AssertSourceMappingsMatchBaseline(codeDocument); - AssertLinePragmas(codeDocument, designTime: true); - } - - private void RunTimeTest() - { - // Arrange - var projectEngine = CreateProjectEngine(builder => - { - builder.ConfigureDocumentClassifier(); - - // Some of these tests use templates - builder.AddTargetExtension(new TemplateTargetExtension()); - - SectionDirective.Register(builder); - }); - - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetCSharpDocument()); - AssertLinePragmas(codeDocument, designTime: false); - } - - private void RunRuntimeTagHelpersTest(IEnumerable descriptors) - { - // Arrange - var projectEngine = CreateProjectEngine(builder => - { - builder.ConfigureDocumentClassifier(); - - // Some of these tests use templates - builder.AddTargetExtension(new TemplateTargetExtension()); - - SectionDirective.Register(builder); - }); - - var projectItem = CreateProjectItemFromFile(); - var imports = GetImports(projectEngine, projectItem); - - // Act - var codeDocument = projectEngine.Process(RazorSourceDocument.ReadFrom(projectItem), FileKinds.Legacy, imports, descriptors.ToList()); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetCSharpDocument()); - } - - private void RunDesignTimeTagHelpersTest(IEnumerable descriptors) - { - // Arrange - var projectEngine = CreateProjectEngine(builder => - { - builder.ConfigureDocumentClassifier(); - - // Some of these tests use templates - builder.AddTargetExtension(new TemplateTargetExtension()); - - SectionDirective.Register(builder); - }); - - var projectItem = CreateProjectItemFromFile(); - var imports = GetImports(projectEngine, projectItem); - - // Act - var codeDocument = projectEngine.ProcessDesignTime(RazorSourceDocument.ReadFrom(projectItem), FileKinds.Legacy, imports, descriptors.ToList()); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetCSharpDocument()); - AssertSourceMappingsMatchBaseline(codeDocument); - } - - private static IReadOnlyList GetImports(RazorProjectEngine projectEngine, RazorProjectItem projectItem) - { - var importFeatures = projectEngine.ProjectFeatures.OfType(); - var importItems = importFeatures.SelectMany(f => f.GetImports(projectItem)); - var importSourceDocuments = importItems.Where(i => i.Exists).Select(i => RazorSourceDocument.ReadFrom(i)).ToList(); - - return importSourceDocuments; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentBindIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentBindIntegrationTest.cs deleted file mode 100644 index 77bd6c9ed31..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentBindIntegrationTest.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Components; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentBindIntegrationTest : RazorIntegrationTestBase - { - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void BindDuplicates_ReportsDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue2"", ""myevent2"")] - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - - // Act - var result = CompileToCSharp(@" -
-@functions { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - var diagnostic = Assert.Single(result.Diagnostics); - Assert.Equal("RZ9989", diagnostic.Id); - Assert.Equal( - "The attribute '@bind-value' was matched by multiple bind attributes. Duplicates:" + Environment.NewLine + - "Test.BindAttributes" + Environment.NewLine + - "Test.BindAttributes", - diagnostic.GetMessage()); - } - - [Fact] - public void BindFallback_InvalidSyntax_TooManyParts() - { - // Arrange & Act - var generated = CompileToCSharp(@" - -@functions { - public string Text { get; set; } = ""text""; -}"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9991", diagnostic.Id); - } - - [Fact] - public void BindFallback_InvalidSyntax_TrailingDash() - { - // Arrange & Act - var generated = CompileToCSharp(@" - -@functions { - public string Text { get; set; } = ""text""; -}"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9991", diagnostic.Id); - } - - [Fact] - public void Bind_InvalidUseOfDirective_DoesNotThrow() - { - // We're looking for VS crash issues. Meaning if the parser returns - // diagnostics we don't want to throw. - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@functions { - public string page { get; set; } = ""text""; -}", throwOnFailure: false); - - // Assert - Assert.Collection( - generated.Diagnostics, - d => Assert.Equal("RZ2005", d.Id), - d => Assert.Equal("RZ1011", d.Id)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentChildContentIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentChildContentIntegrationTest.cs deleted file mode 100644 index 624de396b59..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentChildContentIntegrationTest.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentChildContentIntegrationTest : RazorIntegrationTestBase - { - private readonly CSharpSyntaxTree RenderChildContentComponent = Parse(@" -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering; -namespace Test -{ - public class RenderChildContent : ComponentBase - { - protected override void BuildRenderTree(RenderTreeBuilder builder) - { - builder.AddContent(0, ChildContent); - } - - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -"); - - private readonly CSharpSyntaxTree RenderChildContentStringComponent = Parse(@" -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering; -namespace Test -{ - public class RenderChildContentString : ComponentBase - { - protected override void BuildRenderTree(RenderTreeBuilder builder) - { - builder.AddContent(0, ChildContent, Value); - } - - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public string Value { get; set; } - } -} -"); - - private readonly CSharpSyntaxTree RenderMultipleChildContent = Parse(@" -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering -namespace Test -{ - public class RenderMultipleChildContent : ComponentBase - { - protected override void BuildRenderTree(RenderTreeBuilder builder) - { - builder.AddContent(0, Header, Name); - builder.AddContent(1, ChildContent, Value); - builder.AddContent(2, Footer); - } - - [Parameter] - public string Name { get; set; } - - [Parameter] - public RenderFragment Header { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - - [Parameter] - public string Value { get; set; } - } -} -"); - - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void ChildContent_AttributeAndBody_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentComponent); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment template = @
@context.ToLowerInvariant()
; } - -Some Content -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentSetByAttributeAndBody.Id, diagnostic.Id); - } - - [Fact] - public void ChildContent_AttributeAndExplicitChildContent_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentComponent); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment template = @
@context.ToLowerInvariant()
; } - - -Some Content - -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentSetByAttributeAndBody.Id, diagnostic.Id); - } - - [Fact] - public void ChildContent_ExplicitChildContent_UnrecogizedContent_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentComponent); - - // Act - var generated = CompileToCSharp(@" - - - -@somethingElse -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentMixedWithExplicitChildContent.Id, diagnostic.Id); - Assert.Equal( - "Unrecognized child content inside component 'RenderChildContent'. The component 'RenderChildContent' accepts " + - "child content through the following top-level items: 'ChildContent'.", - diagnostic.GetMessage()); - } - - [Fact] - public void ChildContent_ExplicitChildContent_UnrecogizedElement_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentComponent); - - // Act - var generated = CompileToCSharp(@" - - - - -"); - - // Assert - Assert.Collection( - generated.Diagnostics, - d => Assert.Equal("RZ10012", d.Id), - d => Assert.Equal("RZ9996", d.Id)); - } - - [Fact] - public void ChildContent_ExplicitChildContent_UnrecogizedAttribute_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentComponent); - - // Act - var generated = CompileToCSharp(@" - - - -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentHasInvalidAttribute.Id, diagnostic.Id); - } - - [Fact] - public void ChildContent_ExplicitChildContent_InvalidParameterName_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentStringComponent); - - // Act - var generated = CompileToCSharp(@" - - - -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentHasInvalidParameter.Id, diagnostic.Id); - } - - [Fact] - public void ChildContent_ExplicitChildContent_RepeatedParameterName_GeneratesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentStringComponent); - - // Act - var generated = CompileToCSharp(@" - - - - - - - -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentRepeatedParameterName.Id, diagnostic.Id); - Assert.Equal( - "The child content element 'ChildContent' of component 'RenderChildContentString' uses the same parameter name ('context') as enclosing child content " + - "element 'ChildContent' of component 'RenderChildContentString'. Specify the parameter name like: ' to resolve the ambiguity", - diagnostic.GetMessage()); - } - - [Fact] - public void ChildContent_ContextParameterNameOnComponent_Invalid_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentStringComponent); - - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentHasInvalidParameterOnComponent.Id, diagnostic.Id); - Assert.Equal( - "Invalid parameter name. The parameter name attribute 'Context' on component 'RenderChildContentString' can only include literal text.", - diagnostic.GetMessage()); - } - - [Fact] - public void ChildContent_ExplicitChildContent_ContainsDirectiveAttribute_ProducesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(RenderChildContentStringComponent); - - // Act - var generated = CompileToCSharp(@" - - - -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.ChildContentHasInvalidAttribute.Id, diagnostic.Id); - Assert.Equal( - "Unrecognized attribute '@key' on child content element 'ChildContent'.", - diagnostic.GetMessage()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentCodeGenerationTestBase.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentCodeGenerationTestBase.cs deleted file mode 100644 index b9fb0e4020d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentCodeGenerationTestBase.cs +++ /dev/null @@ -1,5406 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public abstract class ComponentCodeGenerationTestBase : RazorBaselineIntegrationTestBase - { - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - protected ComponentCodeGenerationTestBase() - : base(generateBaselines: null) - { - } - - #region Basics - - [Fact] - public void SingleLineControlFlowStatements_InCodeDirective() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Rendering; - -@code { - void RenderChildComponent(RenderTreeBuilder __builder) - { - var output = string.Empty; - if (__builder == null) output = ""Builder is null!""; - else output = ""Builder is not null!""; -

Output: @output

- } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void SingleLineControlFlowStatements_InCodeBlock() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.RenderTree; - -@{ - var output = string.Empty; - if (__builder == null) output = ""Builder is null!""; - else output = ""Builder is not null!""; -

Output: @output

-}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - [Fact] - public void ChildComponent_InFunctionsDirective() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Rendering; - -@{ RenderChildComponent(__builder); } - -@code { - void RenderChildComponent(RenderTreeBuilder __builder) - { - - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_InLocalFunction() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.RenderTree; -@{ - void RenderChildComponent() - { - - } -} - -@{ RenderChildComponent(); } -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_Simple() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithParameters() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class SomeType - { - } - - public class MyComponent : ComponentBase - { - [Parameter] public int IntProperty { get; set; } - [Parameter] public bool BoolProperty { get; set; } - [Parameter] public string StringProperty { get; set; } - [Parameter] public SomeType ObjectProperty { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ComponentWithTypeParameters() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components; -@typeparam TItem1 -@typeparam TItem2 - -

Item1

-@foreach (var item2 in Items2) -{ -

- @ChildContent(item2); -

-} -@code { - [Parameter] public TItem1 Item1 { get; set; } - [Parameter] public List Items2 { get; set; } - [Parameter] public RenderFragment ChildContent { get; set; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithExplicitStringParameter() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string StringProperty { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithNonPropertyAttributes() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ComponentParameter_TypeMismatch_ReportsDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class CoolnessMeter : ComponentBase - { - [Parameter] public int Coolness { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var assembly = CompileToAssembly(generated, throwOnFailure: false); - // This has some errors - Assert.Collection( - assembly.Diagnostics.OrderBy(d => d.Id), - d => Assert.Equal("CS1503", d.Id)); - } - - [Fact] - public void DataDashAttribute_ImplicitExpression() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@{ - var myValue = ""Expression value""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void DataDashAttribute_ExplicitExpression() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@{ - var myValue = ""Expression value""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void MarkupComment_IsNotIncluded() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@{ - var myValue = ""Expression value""; -} -
@myValue
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithFullyQualifiedTagNames() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} - -namespace Test2 -{ - public class MyComponent2 : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Bind - - [Fact] - public void BindToComponent_SpecifiesValue_WithMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public Action ValueChanged { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_WithStringAttribute_DoesNotUseStringSyntax() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class InputText : ComponentBase - { - [Parameter] - public string Value { get; set; } - - [Parameter] - public Action ValueChanged { get; set; } - } -}")); - - AdditionalSyntaxTrees.Add(Parse(@" -using System; - -namespace Test -{ - public class Person - { - public string Name { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@functions -{ - Person person = new Person(); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_TypeChecked_WithMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public Action ValueChanged { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public string ParentValue { get; set; } = ""42""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var assembly = CompileToAssembly(generated, throwOnFailure: false); - // This has some errors - Assert.Collection( - assembly.Diagnostics.OrderBy(d => d.Id), - d => Assert.Equal("CS0029", d.Id), - d => Assert.Equal("CS1503", d.Id)); - } - - [Fact] - public void BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public EventCallback ValueChanged { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_EventCallback_TypeChecked_WithMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public EventCallback ValueChanged { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public string ParentValue { get; set; } = ""42""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var assembly = CompileToAssembly(generated, throwOnFailure: false); - // This has some errors - Assert.Collection( - assembly.Diagnostics.OrderBy(d => d.Id), - d => Assert.Equal("CS1503", d.Id), - d => Assert.Equal("CS1503", d.Id)); - } - - [Fact] - public void BindToComponent_SpecifiesValue_WithoutMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public Action OnChanged { get; set; } - } -}")); - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -}")); - - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_SpecifiesValueAndExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public Action ValueChanged { get; set; } - - [Parameter] - public Expression> ValueExpression { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_EventCallback_SpecifiesValueAndExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public EventCallback ValueChanged { get; set; } - - [Parameter] - public Expression> ValueExpression { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_SpecifiesValueAndExpression_TypeChecked() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public int Value { get; set; } - - [Parameter] - public Action ValueChanged { get; set; } - - [Parameter] - public Expression> ValueExpression { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - var assembly = CompileToAssembly(generated, throwOnFailure: false); - // This has some errors - Assert.Collection( - assembly.Diagnostics.OrderBy(d => d.Id), - d => Assert.Equal("CS0029", d.Id), - d => Assert.Equal("CS1662", d.Id)); - } - - [Fact] - public void BindToComponent_SpecifiesValueAndExpression_Generic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public T SomeParam { get; set; } - - [Parameter] - public Action SomeParamChanged { get; set; } - - [Parameter] - public Expression> SomeParamExpression { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime ParentValue { get; set; } = DateTime.Now; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public T SomeParam { get; set; } - - [Parameter] - public EventCallback SomeParamChanged { get; set; } - - [Parameter] - public Expression> SomeParamExpression { get; set; } - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime ParentValue { get; set; } = DateTime.Now; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElement_WritesAttributes() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", null, ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - - // Act - var generated = CompileToCSharp(@" -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElement_WithoutCloseTag() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", null, ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - - // Act - var generated = CompileToCSharp(@" -
- -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElement_WithStringAttribute_WritesAttributes() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElementWithSuffix_WritesAttributes() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElementWithSuffix_OverridesEvent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElement_WithEventAsExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -@{ var x = ""anotherevent""; } -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElement_WithEventAsExplicitExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -@{ var x = ""anotherevent""; } -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithoutType_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithoutType_IsCaseSensitive() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputText_WithFormat_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - - public string Format { get; set; } = ""MM/dd/yyyy""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputText_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputCheckbox_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public bool Enabled { get; set; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElementFallback_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public int ParentValue { get; set; } = 42; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElementFallback_WithFormat_WritesAttributes() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElementFallback_WithCulture() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using System.Globalization -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToElementWithCulture() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""value"", ""myvalue"", ""myevent"")] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -@using System.Globalization -
-@code { - public string ParentValue { get; set; } = ""hi""; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToInputElementWithDefaultCulture() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - [BindInputElement(""custom"", null, ""value"", ""onchange"", isInvariantCulture: true, format: null)] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -@using System.Globalization - -@code { - public int ParentValue { get; set; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BindToInputElementWithDefaultCulture_Override() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - [BindInputElement(""custom"", null, ""value"", ""onchange"", isInvariantCulture: true, format: null)] - public static class BindAttributes - { - } -}")); - // Act - var generated = CompileToCSharp(@" -@using System.Globalization - -@code { - public int ParentValue { get; set; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - - [Fact] - public void BuiltIn_BindToInputText_CanOverrideEvent() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithSuffix() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithSuffix_CanOverrideEvent() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithDefaultFormat() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""custom"", null, ""value"", ""onchange"", isInvariantCulture: false, format: ""MM/dd"")] - public static class BindAttributes - { - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithDefaultFormat_Override() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""custom"", null, ""value"", ""onchange"", isInvariantCulture: false, format: ""MM/dd"")] - public static class BindAttributes - { - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""custom"", null, ""value"", ""onchange"", isInvariantCulture: true, format: ""MM/dd"")] - public static class BindAttributes - { - } -}")); - - // Act - var generated = CompileToCSharp(@" - -@code { - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Child Content - - [Fact] - public void ChildComponent_WithChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string MyAttr { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -Some textNested text"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithGenericChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string MyAttr { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -Some text@context.ToLowerInvariant()"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - - [Fact] - public void ChildComponent_WithGenericChildContent_SetsParameterName() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string MyAttr { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - - Some text@item.ToLowerInvariant() - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string MyAttr { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - - Some text@item.ToLowerInvariant() - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithElementOnlyChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -hello"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithExplicitChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -hello"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithExplicitGenericChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@context"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void MultipleExplictChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment Header { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -
Hi!
-
@(""bye!"")
-
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BodyAndAttributeChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment Header { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment header = (context) => @
@context.ToLowerInvariant()
; } - - Some Content -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void BodyAndExplicitChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment Header { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment header = (context) => @
@context.ToLowerInvariant()
; } - - Some Content -
Bye!
-
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void MultipleChildContentMatchingComponentName() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment Header { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - } - - public class Header : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -
Hi!
-
Bye!
-
-
Hello!
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Directives - - [Fact] - public void ChildComponent_WithPageDirective() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@page ""/MyPage"" -@page ""/AnotherRoute/{id}"" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithUsingDirectives() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} - -namespace Test2 -{ - public class MyComponent2 : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@page ""/MyPage"" -@page ""/AnotherRoute/{id}"" -@using Test2 - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithUsingDirectives_AmbiguousImport() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} - -namespace Test2 -{ - public class SomeComponent : ComponentBase - { - } -} - -namespace Test3 -{ - public class SomeComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Test2 -@using Test3 - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - var result = CompileToAssembly(generated, throwOnFailure: false); - - if (DesignTime) - { - Assert.Collection(result.Diagnostics, d => - { - Assert.Equal("CS0104", d.Id); - Assert.Equal(CodeAnalysis.DiagnosticSeverity.Error, d.Severity); - Assert.Equal("'SomeComponent' is an ambiguous reference between 'Test2.SomeComponent' and 'Test3.SomeComponent'", d.GetMessage()); - }); - } - } - - [Fact] - public void Component_IgnoresStaticAndAliasUsings() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} - -namespace Test2 -{ - public class SomeComponent : ComponentBase - { - } -} - -namespace Test3 -{ - public class SomeComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using static Test2.SomeComponent -@using Foo = Test3 - - ", throwOnFailure: false); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated, throwOnFailure: false); - } - - [Fact] - public void ChildContent_FromAnotherNamespace() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class HeaderComponent : ComponentBase - { - [Parameter] - public RenderFragment Header { get; set; } - } -} - -namespace AnotherTest -{ - public class FooterComponent : ComponentBase - { - [Parameter] - public RenderFragment Footer { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using AnotherTest - - -
Hi!
-
- -
@context
-
- -
Hi!
-
- -
@context
-
-"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithNamespaceDirective() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class HeaderComponent : ComponentBase - { - [Parameter] - public string Header { get; set; } - } -} - -namespace AnotherTest -{ - public class FooterComponent : ComponentBase - { - [Parameter] - public string Footer { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Test -@namespace AnotherTest - - - - - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region EventCallback - - [Fact] - public void EventCallback_CanPassEventCallback_Explicitly() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private void Increment() { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallbackOfT_Explicitly() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -(this, Increment))""/> - -@code { - private int counter; - private void Increment() { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallback_Implicitly_Action() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private void Increment() { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallback_Implicitly_ActionOfObject() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private void Increment(object e) { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallback_Implicitly_FuncOfTask() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private Task Increment() { - counter++; - return Task.CompletedTask; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private Task Increment(object e) { - counter++; - return Task.CompletedTask; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallbackOfT_Implicitly_Action() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private void Increment() { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - - -@code { - private int counter; - private void Increment(MouseEventArgs e) { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private Task Increment() { - counter++; - return Task.CompletedTask; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - - -@code { - private int counter; - private Task Increment(MouseEventArgs e) { - counter++; - return Task.CompletedTask; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - - -@code { - private int counter; - private void Increment(ChangeEventArgs e) { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var result = CompileToAssembly(generated, throwOnFailure: false); - - // Cannot convert from method group to Action - this isn't a great error message, but it's - // what the compiler gives us. - Assert.Collection(result.Diagnostics, d => { Assert.Equal("CS1503", d.Id); }); - } - - #endregion - - #region Event Handlers - - [Fact] - public void Component_WithImplicitLambdaEventHandler() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" - Increment()""/> - -@code { - private int counter; - private void Increment() { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithLambdaEventHandler() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public Action OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - { Increment(); })""/> - -@code { - private int counter; - private void Increment() { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - // Regression test for #954 - we need to allow arbitrary event handler - // attributes with weak typing. - [Fact] - public void ChildComponent_WithWeaklyTypeEventHandler() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class DynamicElement : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - - -@code { - private Action OnClick { get; set; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_WithExplicitEventHandler() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public Action OnClick { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private int counter; - private void Increment(EventArgs e) { - counter++; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithString() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithNoArgsLambdaDelegate() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - { }"" />"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithEventArgsLambdaDelegate() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - { }"" />"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithNoArgMethodGroup() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - void OnClick() { - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithoutCloseTag() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -
- -
-@code { - void OnClick() { - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithEventArgsMethodGroup() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - void OnClick(MouseEventArgs e) { - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - void OnClick(EventArgs e) { - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void AsyncEventHandler_OnElement_Action_MethodGroup() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Components.Web - -@code { - Task OnClick() - { - return Task.CompletedTask; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Components.Web - -@code { - Task OnClick(MouseEventArgs e) - { - return Task.CompletedTask; - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void AsyncEventHandler_OnElement_Action_Lambda() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Components.Web - await Task.Delay(10))"" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void AsyncEventHandler_OnElement_ActionEventArgs_Lambda() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using System.Threading.Tasks -@using Microsoft.AspNetCore.Components.Web - await Task.Delay(10))"" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithLambdaDelegate() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - { }"" />"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_OnElement_WithDelegate() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - void OnClick(MouseEventArgs e) { - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_AttributeNameIsCaseSensitive() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - void OnClick(MouseEventArgs e) { - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_PreventDefault_StopPropagation_Minimized() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_PreventDefault_StopPropagation() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - bool Foo { get; set; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_WithDelegate_PreventDefault() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web - -@code { - void OnFocus(FocusEventArgs e) { } - - bool ShouldPreventDefault() { return false; } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandler_PreventDefault_Duplicates() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Generics - - [Fact] - public void ChildComponent_Generic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_Generic_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_Generic_TypeInference_Multiple() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericWeaklyTypedAttribute() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericWeaklyTypedAttribute_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericBind() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public TItem Item { get; set; } - - [Parameter] - public Action ItemChanged { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -@code { - string Value; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericBind_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public TItem Item { get; set; } - - [Parameter] - public Action ItemChanged { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - string Value; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericBindWeaklyTyped() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -@code { - string Value; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericBindWeaklyTyped_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Value { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -@code { - string Value; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -
@context.ToLower()
-
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_GenericChildContent_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -
@context.ToLower()
-
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_NonGenericParameterizedChildContent_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - - [Parameter] public RenderFragment GenericFragment { get; set; } - - [Parameter] public RenderFragment IntFragment { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - @context.ToLower() - @context -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_WithFullyQualifiedTagName() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -
@context.ToLower()
-
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_MultipleGenerics() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem1 Item { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - - [Parameter] public RenderFragment AnotherChildContent { get; set; } - - public class Context - { - public TItem2 Item { get; set; } - } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -
@context.ToLower()
- - @System.Math.Max(0, item.Item); - -
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ChildComponent_MultipleGenerics_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem1 Item { get; set; } - - [Parameter] public List Items { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - - [Parameter] public RenderFragment AnotherChildContent { get; set; } - - public class Context - { - public TItem2 Item { get; set; } - } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -())> -
@context.ToLower()
- - @System.Math.Max(0, item.Item); - -
"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void NonGenericComponent_WithGenericEventHandler() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyEventArgs { } - - public class MyComponent : ComponentBase - { - [Parameter] public string Item { get; set; } - [Parameter] public EventCallback Event { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - public void MyEventHandler() {} -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_WithKey() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private object _someKey = new object(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_WithKey_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private object _someKey = new object(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_WithComponentRef_CreatesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - private MyComponent _my; - public void Foo() { System.GC.KeepAlive(_my); } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_NonGenericParameter_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; -using Test.Shared; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - [Parameter] public MyClass Foo { get; set; } - } -} - -namespace Test.Shared -{ - public class MyClass - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Test.Shared - - -@code { - MyClass Hello = new MyClass(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_NonGenericEventCallback_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyEventArgs { } - - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - [Parameter] public EventCallback MyEvent { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" -@using Test - {}"" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_GenericEventCallback_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyEventArgs { } - - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - [Parameter] public EventCallback MyEvent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Test - {}"" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_NestedGenericEventCallback_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyEventArgs { } - - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - [Parameter] public EventCallback>> MyEvent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Test - {}"" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyEventArgs { } - - public class MyComponent : ComponentBase - { - [Parameter] public TItem Item { get; set; } - [Parameter] public EventCallback MyEvent { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@using Test - {}"" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Key - - [Fact] - public void Element_WithKey() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private object someObject = new object(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithKey_AndOtherAttributes() - { - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private object someObject = new object(); - - [Parameter] public int Min { get; set; } - } -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithKey() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private DateTime someDate = DateTime.Now; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithKey_WithChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - Some further content - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithKey_AttributeNameIsCaseSensitive() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private object someObject = new object(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Splat - - [Fact] - public void Element_WithSplat() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithSplat_ImplicitExpression() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithSplat_ExplicitExpression() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithSplat() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithSplat_ImplicitExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithSplat_ExplicitExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithSplat_GenericTypeInference() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public T Value { get; set;} - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithSplat_AttributeNameIsCaseSensitive() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private Dictionary someAttributes = new Dictionary(); -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Ref - - [Fact] - public void Element_WithRef() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello - -@code { - private Microsoft.AspNetCore.Components.ElementReference myElem; - public void Foo() { System.GC.KeepAlive(myElem); } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithRef_AndOtherAttributes() - { - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private ElementReference _element; - - [Parameter] public int Min { get; set; } - public void Foo() { System.GC.KeepAlive(_element); } - } -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithRef() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - -@code { - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_WithRef_WithChildContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Arrange/Act - var generated = CompileToCSharp(@" - - Some further content - - -@code { - private Test.MyComponent myInstance; - public void Foo() { System.GC.KeepAlive(myInstance); } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Element_WithRef_AttributeNameIsCaseSensitive() - { - // Arrange/Act - var generated = CompileToCSharp(@" -Hello"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Templates - - [Fact] - public void RazorTemplate_InCodeBlock() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@{ - RenderFragment p = (person) => @
@person.Name
; -} -@code { - class Person - { - public string Name { get; set; } - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_InExplicitExpression() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@(RenderPerson((person) => @
@person.Name
)) -@code { - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_NonGeneric_InImplicitExpression() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@RenderPerson(@
HI
) -@code { - object RenderPerson(RenderFragment p) => null; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_Generic_InImplicitExpression() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@RenderPerson((person) => @
@person.Name
) -@code { - class Person - { - public string Name { get; set; } - } - - object RenderPerson(RenderFragment p) => null; -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_ContainsComponent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Name { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ - RenderFragment p = (person) => @
; -} -@code { - class Person - { - public string Name { get; set; } - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - // Targeted at the logic that assigns 'builder' names - [Fact] - public void RazorTemplate_FollowedByComponent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Name { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ - RenderFragment p = (person) => @
; -} - -@(""hello, world!"") - - -@code { - class Person - { - public string Name { get; set; } - } -}"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_NonGeneric_AsComponentParameter() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public RenderFragment Template { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment template = @
Joey
; } - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_Generic_AsComponentParameter() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public RenderFragment PersonTemplate { get; set; } - } - - public class Person - { - public string Name { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment template = (person) => @
@person.Name
; } - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void RazorTemplate_AsComponentParameter_MixedContent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public RenderFragment Template { get; set; } - } - - public class Context - { - public int Index { get; set; } - public string Item { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@{ RenderFragment template = (context) => @
  • #@context.Index - @context.Item.ToLower()
  • ; } - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Whitespace - - [Fact] - public void LeadingWhiteSpace_WithDirective() - { - // Arrange/Act - var generated = CompileToCSharp(@" - -@using System - -

    Hello

    "); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void LeadingWhiteSpace_WithCSharpExpression() - { - // Arrange/Act - var generated = CompileToCSharp(@" - -@(""My value"") - -

    Hello

    "); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void LeadingWhiteSpace_WithComponent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class SomeOtherComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -

    Hello

    "); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void TrailingWhiteSpace_WithDirective() - { - // Arrange/Act - var generated = CompileToCSharp(@" -

    Hello

    - -@page ""/my/url"" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void TrailingWhiteSpace_WithCSharpExpression() - { - // Arrange/Act - var generated = CompileToCSharp(@" -

    Hello

    - -@(""My value"") - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void TrailingWhiteSpace_WithComponent() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class SomeOtherComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@" -

    Hello

    - - - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Whitespace_BetweenElementAndFunctions() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - - @code { - int Foo = 18; - } -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void WhiteSpace_InsideAttribute_InMarkupBlock() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
    Hello
    "); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - - #region Imports - [Fact] - public void Component_WithImportsFile() - { - // Arrange - var importContent = @" -@using System.Text -@using System.Reflection -@attribute [Serializable] -"; - var importItem = CreateProjectItem("_Imports.razor", importContent, FileKinds.ComponentImport); - ImportItems.Add(importItem); - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class Counter : ComponentBase - { - public int Count { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ComponentImports() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -namespace Test -{ - public class MainLayout : ComponentBase, ILayoutComponent - { - public RenderFragment Body { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp("_Imports.razor", @" -@using System.Text -@using System.Reflection - -@layout MainLayout -@Foo -
    Hello
    -", throwOnFailure: false, fileKind: FileKinds.ComponentImport); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated, throwOnFailure: false); - } - - [Fact] - public void Component_NamespaceDirective_InImports() - { - // Arrange - var importContent = @" -@using System.Text -@using System.Reflection -@namespace New.Test -"; - var importItem = CreateProjectItem("_Imports.razor", importContent, FileKinds.ComponentImport); - ImportItems.Add(importItem); - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace New.Test -{ - public class Counter : ComponentBase - { - public int Count { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_NamespaceDirective_OverrideImports() - { - // Arrange - var importContent = @" -@using System.Text -@using System.Reflection -@namespace Import.Test -"; - var importItem = CreateProjectItem("_Imports.razor", importContent, FileKinds.ComponentImport); - ImportItems.Add(importItem); - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace New.Test -{ - public class Counter2 : ComponentBase - { - public int Count { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp("Pages/Counter.razor", @" -@namespace New.Test - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - #endregion - - #region Misc - - [Fact] // We don't process - we just skip them - public void Component_WithDocType() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -
    -
    "); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void DuplicateMarkupAttributes_IsAnError() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttribute.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateMarkupAttributes_IsAnError_EventHandler() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttributeDirective.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateMarkupAttributes_Multiple_IsAnError() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - Assert.All(generated.Diagnostics, d => - { - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttribute.Id, d.Id); - }); - } - - [Fact] - public void DuplicateMarkupAttributes_IsAnError_BindValue() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -
    - -
    -@functions { - private string text = ""hi""; -} -"); - - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttributeDirective.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -
    - -
    -@functions { - private string text = ""hi""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttributeDirective.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateMarkupAttributes_IsAnError_BindOnInput() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -
    - {}""> -
    -@functions { - private string text = ""hi""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateMarkupAttributeDirective.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateComponentParameters_IsAnError() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Message { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateComponentParameter.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateComponentParameters_IsAnError_Multiple() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Message { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - Assert.All(generated.Diagnostics, d => - { - Assert.Same(ComponentDiagnosticFactory.DuplicateComponentParameter.Id, d.Id); - }); - } - - [Fact] - public void DuplicateComponentParameters_IsAnError_WeaklyTyped() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Message { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateComponentParameter.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateComponentParameters_IsAnError_BindMessage() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Message { get; set; } - [Parameter] public EventCallback MessageChanged { get; set; } - [Parameter] public Expression> MessageExpression { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" - -@functions { - string message = ""hi""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateComponentParameterDirective.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateComponentParameters_IsAnError_BindMessageChanged() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Message { get; set; } - [Parameter] public EventCallback MessageChanged { get; set; } - [Parameter] public Expression> MessageExpression { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" - {})"" @bind-Message=""@message"" /> -@functions { - string message = ""hi""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateComponentParameterDirective.Id, diagnostic.Id); - } - - [Fact] - public void DuplicateComponentParameters_IsAnError_BindMessageExpression() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using System.Linq.Expressions; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public string Message { get; set; } - [Parameter] public EventCallback MessageChanged { get; set; } - [Parameter] public Expression> MessageExpression { get; set; } - } -} -")); - // Act - var generated = CompileToCSharp(@" - {})"" /> -@functions { - string message = ""hi""; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.DuplicateComponentParameterDirective.Id, diagnostic.Id); - } - - [Fact] - public void ScriptTag_WithErrorSuppressed() - { - // Arrange/Act - var generated = CompileToCSharp(@" -
    - -
    -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] // https://github.com/dotnet/blazor/issues/597 - public void Regression_597() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class Counter : ComponentBase - { - public int Count { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -@code { - string y = null; -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Regression_609() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class User : ComponentBase - { - public string Name { get; set; } - public Action NameChanged { get; set; } - public bool IsActive { get; set; } - public Action IsActiveChanged { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -@code { - public string UserName { get; set; } - public bool UserIsActive { get; set; } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] // https://github.com/dotnet/blazor/issues/772 - public void Regression_772() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class SurveyPrompt : ComponentBase - { - [Parameter] public string Title { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@page ""/"" - -

    Hello, world!

    - -Welcome to your new app. - - d.Id), - d => Assert.Equal("RZ1034", d.Id), - d => Assert.Equal("RZ1035", d.Id)); - } - - [Fact] // https://github.com/dotnet/blazor/issues/773 - public void Regression_773() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class SurveyPrompt : ComponentBase - { - [Parameter] public string Title { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" -@page ""/"" - -

    Hello, world!

    - -Welcome to your new app. - -Test!
    "" /> -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Regression_784() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" -@using Microsoft.AspNetCore.Components.Web -

    -@code { - public string ParentBgColor { get; set; } = ""#FFFFFF""; - - public void OnComponentHover(MouseEventArgs e) - { - } -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void EventHandlerTagHelper_EscapeQuotes() - { - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_TextTagsAreNotRendered() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class Counter : ComponentBase - { - public int Count { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -@if (true) -{ - This text is rendered -} -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_MatchingIsCaseSensitive() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public int IntProperty { get; set; } - [Parameter] public bool BoolProperty { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void Component_MultipleComponentsDifferByCase() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public int IntProperty { get; set; } - } - - public class Mycomponent : ComponentBase - { - [Parameter] public int IntProperty { get; set; } - } -} -")); - - // Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - [Fact] - public void ElementWithUppercaseTagName_CanHideWarningWithBang() - { - // Arrange & Act - var generated = CompileToCSharp(@" - -"); - - // Assert - AssertDocumentNodeMatchesBaseline(generated.CodeDocument); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); - CompileToAssembly(generated); - } - - #endregion - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs deleted file mode 100644 index 8e9215906e2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentDeclarationRazorIntegrationTest : RazorIntegrationTestBase - { - public ComponentDeclarationRazorIntegrationTest() - { - // Include this assembly to use types defined in tests. - BaseCompilation = DefaultBaseCompilation.AddReferences(MetadataReference.CreateFromFile(GetType().Assembly.Location)); - } - - internal override CSharpCompilation BaseCompilation { get; } - - internal override string FileKind => FileKinds.Component; - - internal override bool DeclarationOnly => true; - - [Fact] - public void DeclarationConfiguration_IncludesFunctions() - { - // Arrange & Act - var component = CompileToComponent(@" -@functions { - public string Value { get; set; } -}"); - - // Assert - var property = component.GetType().GetProperty("Value"); - Assert.NotNull(property); - Assert.Same(typeof(string), property.PropertyType); - } - - [Fact] - public void DeclarationConfiguration_IncludesInject() - { - // Arrange & Act - var component = CompileToComponent(@" -@inject string Value -"); - - // Assert - var property = component.GetType().GetProperty("Value", BindingFlags.NonPublic | BindingFlags.Instance); - Assert.NotNull(property); - Assert.Same(typeof(string), property.PropertyType); - } - - [Fact] - public void DeclarationConfiguration_IncludesUsings() - { - // Arrange & Act - var component = CompileToComponent(@" -@using System.Text -@inject StringBuilder Value -"); - - // Assert - var property = component.GetType().GetProperty("Value", BindingFlags.NonPublic | BindingFlags.Instance); - Assert.NotNull(property); - Assert.Same(typeof(StringBuilder), property.PropertyType); - } - - [Fact] - public void DeclarationConfiguration_IncludesInherits() - { - // Arrange & Act - var component = CompileToComponent($@" -@inherits {FullTypeName()} -"); - - // Assert - Assert.Same(typeof(BaseClass), component.GetType().BaseType); - } - - [Fact] - public void DeclarationConfiguration_IncludesImplements() - { - // Arrange & Act - var component = CompileToComponent($@" -@implements {FullTypeName()} -"); - - // Assert - var type = component.GetType(); - Assert.Contains(typeof(IDoCoolThings), component.GetType().GetInterfaces()); - } - - [Fact] // Regression test for https://github.com/dotnet/blazor/issues/453 - public void DeclarationConfiguration_FunctionsBlockHasLineMappings_MappingsApplyToError() - { - // Arrange & Act 1 - var generated = CompileToCSharp(@" -@functions { - public StringBuilder Builder { get; set; } -} -"); - - // Assert 1 - AssertSourceEquals(@" -// -#pragma warning disable 1591 -#pragma warning disable 0414 -#pragma warning disable 0649 -#pragma warning disable 0169 - -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - } - #pragma warning restore 1998 -#nullable restore -#line 1 ""x:\dir\subdir\Test\TestComponent.cshtml"" - - public StringBuilder Builder { get; set; } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 -", generated); - - // Act 2 - var assembly = CompileToAssembly(generated, throwOnFailure: false); - - // Assert 2 - var diagnostic = Assert.Single(assembly.Diagnostics); - - // This error should map to line 2 of the generated file, the test - // says 1 because Roslyn's line/column data structures are 0-based. - var position = diagnostic.Location.GetMappedLineSpan(); - Assert.EndsWith(".cshtml", position.Path); - Assert.Equal(1, position.StartLinePosition.Line); - } - - public class BaseClass : IComponent - { - public void Attach(RenderHandle renderHandle) - { - } - - protected virtual void BuildRenderTree(RenderTreeBuilder builder) - { - } - - public Task SetParametersAsync(ParameterView parameters) - { - throw new System.NotImplementedException(); - } - } - - public interface IDoCoolThings - { - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDesignTimeCodeGenerationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDesignTimeCodeGenerationTest.cs deleted file mode 100644 index f86a7d8d239..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDesignTimeCodeGenerationTest.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentDesignTimeCodeGenerationTest : ComponentCodeGenerationTestBase - { - internal override bool DesignTime => true; - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs deleted file mode 100644 index 863e2a0d16e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs +++ /dev/null @@ -1,205 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentDiagnosticRazorIntegrationTest : RazorIntegrationTestBase - { - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void RejectsEndTagWithNoStartTag() - { - // Arrange/Act - var result = CompileToCSharp( - "Line1\nLine2\nLine3"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ9981", item.Id); - Assert.Equal("Unexpected closing tag 'mytag' with no matching start tag.", item.GetMessage()); - }); - } - - // This used to be a sugar syntax for lambdas, but we don't support that anymore - [Fact] - public void OldCodeBlockAttributeSyntax_ReportsError() - { - // Arrange/Act - var generated = CompileToCSharp(@" - -@functions { - public bool DidInvokeCode { get; set; } = false; -}"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9979", diagnostic.Id); - Assert.NotNull(diagnostic.GetMessage()); - - } - - [Fact] - public void RejectsScriptTag() - { - // Arrange/Act - var result = CompileToCSharp(@"Hello -

    - -
    -Goodbye"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ9992", item.Id); - Assert.Equal("Script tags should not be placed inside components because they cannot be updated dynamically. To fix this, move the script tag to the 'index.html' file or another static location. For more information see https://go.microsoft.com/fwlink/?linkid=872131", item.GetMessage()); - Assert.Equal(2, item.Span.LineIndex); - Assert.Equal(4, item.Span.CharacterIndex); - }); - } - - [Fact] - public void RejectsTagHelperDirectives() - { - // Arrange/Act - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - var result = CompileToCSharp(@" -@addTagHelper *, TestAssembly -@tagHelperPrefix th - - -"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ9978", item.Id); - Assert.Equal("The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. " + - "Use '@using ' directive instead.", item.GetMessage()); - Assert.Equal(0, item.Span.LineIndex); - Assert.Equal(0, item.Span.CharacterIndex); - }, - item => - { - Assert.Equal("RZ9978", item.Id); - Assert.Equal("The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. " + - "Use '@using ' directive instead.", item.GetMessage()); - Assert.Equal(1, item.Span.LineIndex); - Assert.Equal(0, item.Span.CharacterIndex); - }); - } - - [Fact] - public void DirectiveAttribute_ComplexContent_ReportsError() - { - // Arrange & Act - var generated = CompileToCSharp(@" - -@functions { - public string Text { get; set; } = ""text""; -}"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9986", diagnostic.Id); - Assert.Equal( - "Component attributes do not support complex content (mixed C# and markup). Attribute: '@key', text: 'Foo @Text'", - diagnostic.GetMessage()); - } - - [Fact] - public void Component_StartsWithLowerCase_ReportsError() - { - // Arrange & Act - var generated = CompileToCSharp("lowerCase.razor", @" - -@functions { - public string Text { get; set; } = ""text""; -}", throwOnFailure: false); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ10011", diagnostic.Id); - Assert.Equal( - "Component 'lowerCase' starts with a lowercase character. Component names cannot start with a lowercase character.", - diagnostic.GetMessage()); - } - - [Fact] - public void Element_DoesNotStartWithLowerCase_ReportsWarning() - { - // Arrange & Act - var generated = CompileToCSharp(@" - - -@functions { - public string Text { get; set; } = ""text""; -}"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ10012", diagnostic.Id); - Assert.Equal(RazorDiagnosticSeverity.Warning, diagnostic.Severity); - Assert.Equal( - "Found markup element with unexpected name 'PossibleComponent'. If this is intended to be a component, add a @using directive for its namespace.", - diagnostic.GetMessage()); - } - - [Fact] - public void Element_DoesNotStartWithLowerCase_OverrideWithBang_NoWarning() - { - // Arrange & Act - var generated = CompileToCSharp(@" -"); - - // Assert - Assert.Empty(generated.Diagnostics); - } - - [Fact] - public void Component_StartAndEndTagCaseMismatch_ReportsError() - { - // Arrange & Act - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - var generated = CompileToCSharp(@" -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ10013", diagnostic.Id); - Assert.Equal( - "The start tag name 'MyComponent' does not match the end tag name 'mycomponent'. Components must have matching start and end tag names (case-sensitive).", - diagnostic.GetMessage()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDirectiveIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDirectiveIntegrationTest.cs deleted file mode 100644 index b7e968f74a1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDirectiveIntegrationTest.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using System.Reflection; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - // Integration tests for component directives - public class ComponentDirectiveIntegrationTest : RazorIntegrationTestBase - { - public ComponentDirectiveIntegrationTest() - { - // Include this assembly to use types defined in tests. - BaseCompilation = DefaultBaseCompilation.AddReferences(MetadataReference.CreateFromFile(GetType().Assembly.Location)); - } - - internal override CSharpCompilation BaseCompilation { get; } - - internal override string FileKind => FileKinds.Component; - - [Fact] - public void ComponentsDoNotHaveLayoutAttributeByDefault() - { - // Arrange/Act - var component = CompileToComponent($"Hello"); - - // Assert - Assert.Null(component.GetType().GetCustomAttribute()); - } - - [Fact] - public void SupportsLayoutDeclarations() - { - // Arrange/Act - var testComponentTypeName = FullTypeName(); - var component = CompileToComponent( - $"@layout {testComponentTypeName}\n" + - $"Hello"); - - // Assert - var layoutAttribute = component.GetType().GetCustomAttribute(); - Assert.NotNull(layoutAttribute); - } - - [Fact] - public void SupportsImplementsDeclarations() - { - // Arrange/Act - var testInterfaceTypeName = FullTypeName(); - var component = CompileToComponent( - $"@implements {testInterfaceTypeName}\n" + - $"Hello"); - - // Assert - Assert.IsAssignableFrom(component); - } - - [Fact] - public void SupportsMultipleImplementsDeclarations() - { - // Arrange/Act - var testInterfaceTypeName = FullTypeName(); - var testInterfaceTypeName2 = FullTypeName(); - var component = CompileToComponent( - $"@implements {testInterfaceTypeName}\n" + - $"@implements {testInterfaceTypeName2}\n" + - $"Hello"); - - // Assert - Assert.IsAssignableFrom(component); - Assert.IsAssignableFrom(component); - } - - [Fact] - public void SupportsInheritsDirective() - { - // Arrange/Act - var testBaseClassTypeName = FullTypeName(); - var component = CompileToComponent( - $"@inherits {testBaseClassTypeName}" + Environment.NewLine + - $"Hello"); - - // Assert - Assert.IsAssignableFrom(component); - } - - [Fact] - public void SupportsInjectDirective() - { - // Arrange/Act 1: Compilation - var componentType = CompileToComponent( - $"@inject {FullTypeName()} MyService1\n" + - $"@inject {FullTypeName()} MyService2\n" + - $"Hello from @MyService1 and @MyService2").GetType(); - - // Assert 1: Compiled type has correct properties - var propertyFlags = BindingFlags.Instance | BindingFlags.NonPublic; - var injectableProperties = componentType.GetProperties(propertyFlags) - .Where(p => p.GetCustomAttribute() != null); - Assert.Collection(injectableProperties.OrderBy(p => p.Name), - property => - { - Assert.Equal("MyService1", property.Name); - Assert.Equal(typeof(IMyService1), property.PropertyType); - Assert.False(property.GetMethod.IsPublic); - Assert.False(property.SetMethod.IsPublic); - }, - property => - { - Assert.Equal("MyService2", property.Name); - Assert.Equal(typeof(IMyService2), property.PropertyType); - Assert.False(property.GetMethod.IsPublic); - Assert.False(property.SetMethod.IsPublic); - }); - } - - public class TestLayout : IComponent - { - [Parameter] - public RenderFragment Body { get; set; } - - public void Attach(RenderHandle renderHandle) - { - throw new NotImplementedException(); - } - - public Task SetParametersAsync(ParameterView parameters) - { - throw new NotImplementedException(); - } - } - - public interface ITestInterface { } - - public interface ITestInterface2 { } - - public class TestBaseClass : ComponentBase { } - - public interface IMyService1 { } - public interface IMyService2 { } - public class MyService1Impl : IMyService1 { } - public class MyService2Impl : IMyService2 { } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiscoveryIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiscoveryIntegrationTest.cs deleted file mode 100644 index 3743979a0cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentDiscoveryIntegrationTest.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentDiscoveryIntegrationTest : RazorIntegrationTestBase - { - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void ComponentDiscovery_CanFindComponent_DefinedinCSharp() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var result = CompileToCSharp(string.Empty); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Contains(bindings.TagHelpers, t => t.Name == "Test.MyComponent"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_WithNamespace_DefinedinCSharp() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test.AnotherNamespace -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var result = CompileToCSharp(string.Empty); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - - Assert.Contains(bindings.TagHelpers, t => - { - return t.Name == "Test.AnotherNamespace.MyComponent" && - t.IsComponentFullyQualifiedNameMatch(); - }); - - Assert.DoesNotContain(bindings.TagHelpers, t => - { - return t.Name == "Test.AnotherNamespace.MyComponent" && - !t.IsComponentFullyQualifiedNameMatch(); - }); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_DefinedinCshtml() - { - // Arrange - - // Act - var result = CompileToCSharp("UniqueName.cshtml", string.Empty); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Contains(bindings.TagHelpers, t => t.Name == "Test.UniqueName"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_WithTypeParameter() - { - // Arrange - - // Act - var result = CompileToCSharp("UniqueName.cshtml", @" -@typeparam TItem -@functions { - [Parameter] public TItem Item { get; set; } -}"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Contains(bindings.TagHelpers, t => t.Name == "Test.UniqueName"); - } - - [Fact] - public void ComponentDiscovery_CanFindComponent_WithMultipleTypeParameters() - { - // Arrange - - // Act - var result = CompileToCSharp("UniqueName.cshtml", @" -@typeparam TItem1 -@typeparam TItem2 -@typeparam TItem3 -@functions { - [Parameter] public TItem1 Item { get; set; } -}"); - - // Assert - var bindings = result.CodeDocument.GetTagHelperContext(); - Assert.Contains(bindings.TagHelpers, t => t.Name == "Test.UniqueName"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentFilePathIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentFilePathIntegrationTest.cs deleted file mode 100644 index 2b3a60c2a64..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentFilePathIntegrationTest.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - // Integration tests focused on file path handling for class/namespace names - public class ComponentFilePathIntegrationTest : RazorIntegrationTestBase - { - internal override string FileKind => FileKinds.Component; - - [Fact] - public void FileNameIsInvalidClassName_SanitizesInvalidClassName() - { - // Arrange - - // Act - var result = CompileToAssembly("Filename with spaces.cshtml", ""); - - // Assert - Assert.Empty(result.Diagnostics); - - var type = Assert.Single(result.Assembly.GetTypes()); - Assert.Equal(DefaultRootNamespace, type.Namespace); - Assert.Equal("Filename_with_spaces", type.Name); - } - - [Theory] - [InlineData("ItemAtRoot.cs", "Test", "ItemAtRoot")] - [InlineData("Dir1\\MyFile.cs", "Test.Dir1", "MyFile")] - [InlineData("Dir1\\Dir2\\MyFile.cs", "Test.Dir1.Dir2", "MyFile")] - public void CreatesClassWithCorrectNameAndNamespace(string relativePath, string expectedNamespace, string expectedClassName) - { - // Arrange - relativePath = relativePath.Replace('\\', Path.DirectorySeparatorChar); - - // Act - var result = CompileToAssembly(relativePath, ""); - - // Assert - Assert.Empty(result.Diagnostics); - - var type = Assert.Single(result.Assembly.GetTypes()); - Assert.Equal(expectedNamespace, type.Namespace); - Assert.Equal(expectedClassName, type.Name); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentGenericTypeIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentGenericTypeIntegrationTest.cs deleted file mode 100644 index 70c936d13f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentGenericTypeIntegrationTest.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentGenericTypeIntegrationTest : RazorIntegrationTestBase - { - private readonly CSharpSyntaxTree GenericContextComponent = Parse(@" -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering; -namespace Test -{ - public class GenericContext : ComponentBase - { - protected override void BuildRenderTree(RenderTreeBuilder builder) - { - var items = (IReadOnlyList)Items ?? Array.Empty(); - for (var i = 0; i < items.Count; i++) - { - if (ChildContent == null) - { - builder.AddContent(i, Items[i]); - } - else - { - builder.AddContent(i, ChildContent, new Context() { Index = i, Item = items[i], }); - } - } - } - - [Parameter] - public List Items { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - - public class Context - { - public int Index { get; set; } - public TItem Item { get; set; } - } - } -} -"); - - private readonly CSharpSyntaxTree MultipleGenericParameterComponent = Parse(@" -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering; -namespace Test -{ - public class MultipleGenericParameter : ComponentBase - { - protected override void BuildRenderTree(RenderTreeBuilder builder) - { - builder.AddContent(0, Item1); - builder.AddContent(1, Item2); - builder.AddContent(2, Item3); - } - - [Parameter] - public TItem1 Item1 { get; set; } - - [Parameter] - public TItem2 Item2 { get; set; } - - [Parameter] - public TItem3 Item3 { get; set; } - } -} -"); - - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void GenericComponent_WithoutAnyTypeParameters_TriggersDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(GenericContextComponent); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.GenericComponentTypeInferenceUnderspecified.Id, diagnostic.Id); - Assert.Equal( - "The type of component 'GenericContext' cannot be inferred based on the values provided. Consider " + - "specifying the type arguments directly using the following attributes: 'TItem'.", - diagnostic.GetMessage()); - } - - [Fact] - public void GenericComponent_WithMissingTypeParameters_TriggersDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(MultipleGenericParameterComponent); - - // Act - var generated = CompileToCSharp(@" -"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Same(ComponentDiagnosticFactory.GenericComponentMissingTypeArgument.Id, diagnostic.Id); - Assert.Equal( - "The component 'MultipleGenericParameter' is missing required type arguments. " + - "Specify the missing types using the attributes: 'TItem2', 'TItem3'.", - diagnostic.GetMessage()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentImportsIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentImportsIntegrationTest.cs deleted file mode 100644 index a4241730fe0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentImportsIntegrationTest.cs +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentImportsIntegrationTest : RazorIntegrationTestBase - { - internal override string FileKind => FileKinds.ComponentImport; - - [Fact] - public void NoErrorsForUsingStatements() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@using System.Text -@using System.Reflection -@* This is allowed in imports *@ -"); - - // Assert - Assert.Empty(result.Diagnostics); - } - - [Fact] - public void NoErrorsForRazorComments() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@* This is allowed in imports *@ -"); - - // Assert - Assert.Empty(result.Diagnostics); - } - - [Fact] - public void NoErrorsForSupportedDirectives() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@inject FooService Foo -@typeparam TItem -@implements ISomeInterface -@inherits SomeNamespace.SomeBaseType -"); - - // Assert - Assert.Empty(result.Diagnostics); - } - - [Fact] - public void ErrorsForPageDirective() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@page ""/"" -"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ9987", item.Id); - Assert.Equal(@"The '@page' directive specified in _Imports.razor file will not be imported. The directive must appear at the top of each Razor file", item.GetMessage()); - }); - } - - [Fact] - public void ErrorsForTagHelperDirectives() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@addTagHelper *, TestAssembly -@removeTagHelper *, TestAssembly -@tagHelperPrefix th: -"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ9978", item.Id); - Assert.Equal(0, item.Span.LineIndex); - Assert.Equal(@"The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. Use '@using ' directive instead.", item.GetMessage()); - }, - item => - { - Assert.Equal("RZ9978", item.Id); - Assert.Equal(1, item.Span.LineIndex); - Assert.Equal(@"The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. Use '@using ' directive instead.", item.GetMessage()); - }, - item => - { - Assert.Equal("RZ9978", item.Id); - Assert.Equal(2, item.Span.LineIndex); - Assert.Equal(@"The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. Use '@using ' directive instead.", item.GetMessage()); - }); - } - - [Fact] - public void ErrorsForFunctionsDirective() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@functions { - public class Test - { - } -} -"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ10003", item.Id); - Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.GetMessage()); - }); - } - - [Fact] - public void ErrorsForSectionDirective() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@section Foo { -} -"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ10003", item.Id); - Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.GetMessage()); - }); - } - - [Fact] - public void ErrorsForMarkup() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -
    asdf
    -"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ10003", item.Id); - Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.GetMessage()); - }); - } - - [Fact] - public void ErrorsForCode() - { - // Arrange/Act - var result = CompileToCSharp("_Imports.razor", @" -@Foo -@(Bar) -@{ - var x = Foo; -}"); - - // Assert - Assert.Collection(result.Diagnostics, - item => - { - Assert.Equal("RZ10003", item.Id); - Assert.Equal(0, item.Span.LineIndex); - Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.GetMessage()); - }, - item => - { - Assert.Equal("RZ10003", item.Id); - Assert.Equal(1, item.Span.LineIndex); - Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.GetMessage()); - }, - item => - { - Assert.Equal("RZ10003", item.Id); - Assert.Equal(2, item.Span.LineIndex); - Assert.Equal(@"Markup, code and block directives are not valid in component imports.", item.GetMessage()); - }); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentRuntimeCodeGenerationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentRuntimeCodeGenerationTest.cs deleted file mode 100644 index dd493480863..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentRuntimeCodeGenerationTest.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentRuntimeCodeGenerationTest : ComponentCodeGenerationTestBase - { - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTemplateIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTemplateIntegrationTest.cs deleted file mode 100644 index 93d206b87a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTemplateIntegrationTest.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class ComponentTemplateIntegrationTest : RazorIntegrationTestBase - { - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - // Razor doesn't parse this as a template, we don't need much special handling for - // it because it will just be invalid in general. - [Fact] - public void Template_ImplicitExpressionInMarkupAttribute_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
    "" />", throwOnFailure: false); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ1005", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInMarkupAttribute_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
    )"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9994", diagnostic.Id); - } - - // Razor doesn't parse this as a template, we don't need much special handling for - // it because it will just be invalid in general. - [Fact] - public void Template_ImplicitExpressionInComponentAttribute_CreatesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - - // Act - var generated = CompileToCSharp(@"
    "" />", throwOnFailure: false); - - // Assert - Assert.Collection( - generated.Diagnostics, - d => Assert.Equal("RZ9986", d.Id), - d => Assert.Equal("RZ1005", d.Id)); - } - - [Fact] - public void Template_ExplicitExpressionInComponentAttribute_CreatesDiagnostic() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - } -} -")); - // Act - var generated = CompileToCSharp(@"
    )"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9994", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInRef_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
    )"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9994", diagnostic.Id); - } - - - [Fact] - public void Template_ExplicitExpressionInBind_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
    )"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9994", diagnostic.Id); - } - - [Fact] - public void Template_ExplicitExpressionInEventHandler_CreatesDiagnostic() - { - // Arrange - - // Act - var generated = CompileToCSharp(@"
    )"" />"); - - // Assert - var diagnostic = Assert.Single(generated.Diagnostics); - Assert.Equal("RZ9994", diagnostic.Id); - } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTypingTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTypingTest.cs deleted file mode 100644 index b3b8fc19e81..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ComponentTypingTest.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Xunit; -using Xunit.Sdk; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - // Similar to design time code generation tests, but goes a character at a time. - // Don't add many of these since they are slow - instead add features to existing - // tests here, and use these as smoke tests, not for detailed regression testing. - public class ComponentTypingTest : RazorIntegrationTestBase - { - internal override bool DesignTime => true; - - internal override string FileKind => FileKinds.Component; - - internal override bool UseTwoPhaseCompilation => true; - - [Fact] - public void DoSomeTyping() - { - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public int Value { get; set; } - [Parameter] public Action ValueChanged { get; set; } - [Parameter] public string AnotherValue { get; set; } - } - - public class ModelState - { - public Action Bind(Func func) => throw null; - } -} -")); - var text = @" -
    - - x)"" /> - -
    - -@functions { - Test.ModelState ModelState { get; set; } -}"; - - for (var i = 0; i <= text.Length; i++) - { - try - { - CompileToCSharp(text.Substring(0, i), throwOnFailure: false); - } - catch (Exception ex) - { - throw new XunitException($@" -Code generation failed on iteration {i} with source text: -{text.Substring(0, i)} - -Exception: -{ex} -"); - } - } - } - - [Fact] // Regression test for #1068 - public void Regression_1068() - { - // Arrange - - // Act - var generated = CompileToCSharp(@" - -@functions { - Test.ModelState ModelState { get; set; } -} -", throwOnFailure: false); - - // Assert - } - - [Fact] - public void MalformedAttributeContent() - { - // Act - // Arrange - AdditionalSyntaxTrees.Add(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] public int Value { get; set; } - [Parameter] public Action ValueChanged { get; set; } - [Parameter] public string AnotherValue { get; set; } - } - - public class ModelState - { - public Action Bind(Func func) => throw null; - } -} -")); - var generated = CompileToCSharp(@" - await SaveAsync(false))> -@functions { - Test.ModelState ModelState { get; set; } -}", throwOnFailure: false); - - // Assert - does not throw - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ExtensibleDirectiveTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/ExtensibleDirectiveTest.cs deleted file mode 100644 index 924d1435938..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/ExtensibleDirectiveTest.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - // Extensible directives only have codegen for design time, so we're only testing that. - public class ExtensibleDirectiveTest : IntegrationTestBase - { - public ExtensibleDirectiveTest() - : base(generateBaselines: null) - { - } - - [Fact] - public void NamespaceToken() - { - // Arrange - var engine = CreateProjectEngine(builder => - { - builder.ConfigureDocumentClassifier(); - - builder.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddNamespaceToken())); - }); - - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = engine.ProcessDesignTime(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetCSharpDocument()); - AssertLinePragmas(codeDocument, designTime: true); - AssertSourceMappingsMatchBaseline(codeDocument); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs deleted file mode 100644 index 7fd26ffd806..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class HtmlAttributeIntegrationTest : IntegrationTestBase - { - [Fact] - public void HtmlWithDataDashAttribute() - { - // Arrange - var projectItem = CreateProjectItemFromFile(); - - // Act - var compiled = CompileToCSharp(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentIntermediateNode()); - } - - [Fact] - public void HtmlWithConditionalAttribute() - { - // Arrange - var projectItem = CreateProjectItemFromFile(); - - // Act - var compiled = CompileToCSharp(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentIntermediateNode()); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/TagHelpersIntegrationTest.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/TagHelpersIntegrationTest.cs deleted file mode 100644 index c5c9810e765..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/TagHelpersIntegrationTest.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class TagHelpersIntegrationTest : IntegrationTestBase - { - [Fact] - public void SimpleTagHelpers() - { - // Arrange - var descriptors = new[] - { - CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly") - }; - - var projectEngine = CreateProjectEngine(builder => builder.AddTagHelpers(descriptors)); - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - } - - [Fact] - public void TagHelpersWithBoundAttributes() - { - // Arrange - var descriptors = new[] - { - CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("FooProp") - .TypeName("System.String"), - }) - }; - - var projectEngine = CreateProjectEngine(builder => builder.AddTagHelpers(descriptors)); - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - } - - [Fact] - public void NestedTagHelpers() - { - // Arrange - var descriptors = new[] - { - CreateTagHelperDescriptor( - tagName: "p", - typeName: "PTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "form", - typeName: "FormTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("value") - .PropertyName("FooProp") - .TypeName("System.String"), - }) - }; - - var projectEngine = CreateProjectEngine(builder => builder.AddTagHelpers(descriptors)); - var projectItem = CreateProjectItemFromFile(); - - // Act - var codeDocument = projectEngine.Process(projectItem); - - // Assert - var syntaxTree = codeDocument.GetSyntaxTree(); - var irTree = codeDocument.GetDocumentIntermediateNode(); - AssertDocumentNodeMatchesBaseline(codeDocument.GetDocumentIntermediateNode()); - } - - private static TagHelperDescriptor CreateTagHelperDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null) - { - var builder = TagHelperDescriptorBuilder.Create(typeName, assemblyName); - builder.TypeName(typeName); - - if (attributes != null) - { - foreach (var attributeBuilder in attributes) - { - builder.BoundAttributeDescriptor(attributeBuilder); - } - } - - builder.TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName(tagName)); - - var descriptor = builder.Build(); - - return descriptor; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/IntegrationTests/TestTagHelperDescriptors.cs b/src/Razor/test/RazorLanguage.Test/IntegrationTests/TestTagHelperDescriptors.cs deleted file mode 100644 index d2034b18e0a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/IntegrationTests/TestTagHelperDescriptors.cs +++ /dev/null @@ -1,637 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Reflection; - -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests -{ - public class TestTagHelperDescriptors - { - public static IEnumerable SimpleTagHelperDescriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "span", - typeName: "SpanTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "div", - typeName: "DivTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("value") - .PropertyName("FooProp") - .TypeName("System.String"), - builder => builder - .Name("bound") - .PropertyName("BoundProp") - .TypeName("System.String"), - builder => builder - .Name("age") - .PropertyName("AgeProp") - .TypeName("System.Int32"), - }) - }; - } - } - - public static IEnumerable MinimizedBooleanTagHelperDescriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "span", - typeName: "SpanTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "div", - typeName: "DivTagHelper", - assemblyName: "TestAssembly"), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("value") - .PropertyName("FooProp") - .TypeName("System.String"), - builder => builder - .Name("bound") - .PropertyName("BoundProp") - .TypeName("System.Boolean"), - builder => builder - .Name("age") - .PropertyName("AgeProp") - .TypeName("System.Int32"), - }) - }; - } - } - - public static IEnumerable CssSelectorTagHelperDescriptors - { - get - { - var inputTypePropertyInfo = typeof(TestType).GetRuntimeProperty("Type"); - var inputCheckedPropertyInfo = typeof(TestType).GetRuntimeProperty("Checked"); - - return new[] - { - CreateTagHelperDescriptor( - tagName: "a", - typeName: "TestNamespace.ATagHelper", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("href") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("~/") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch)), - }), - CreateTagHelperDescriptor( - tagName: "a", - typeName: "TestNamespace.ATagHelperMultipleSelectors", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("href") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("~/") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch)) - .RequireAttributeDescriptor(attribute => attribute - .Name("href") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("?hello=world") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.SuffixMatch)), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", inputTypePropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("type") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("text") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch)), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper2", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", inputTypePropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("ty") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch)), - }), - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("href") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("~/") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch)), - }), - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper2", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("type") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch)), - }), - }; - } - } - - public static IEnumerable EnumTagHelperDescriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("catch-all") - .PropertyName("CatchAll") - .AsEnum() - .TypeName($"{typeof(TestTagHelperDescriptors).FullName}.{nameof(MyEnum)}"), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("value") - .PropertyName("Value") - .AsEnum() - .TypeName($"{typeof(TestTagHelperDescriptors).FullName}.{nameof(MyEnum)}"), - }), - }; - } - } - - public static IEnumerable SymbolBoundTagHelperDescriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("[item]") - .PropertyName("ListItems") - .TypeName("System.Collections.Generic.List"), - builder => builder - .Name("[(item)]") - .PropertyName("ArrayItems") - .TypeName(typeof(string[]).FullName), - builder => builder - .Name("(click)") - .PropertyName("Event1") - .TypeName(typeof(Action).FullName), - builder => builder - .Name("(^click)") - .PropertyName("Event2") - .TypeName(typeof(Action).FullName), - builder => builder - .Name("*something") - .PropertyName("StringProperty1") - .TypeName(typeof(string).FullName), - builder => builder - .Name("#local") - .PropertyName("StringProperty2") - .TypeName(typeof(string).FullName), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("bound")), - }), - }; - } - } - - public static IEnumerable MinimizedTagHelpers_Descriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("catchall-bound-string") - .PropertyName("BoundRequiredString") - .TypeName(typeof(string).FullName), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("catchall-unbound-required")), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("input-bound-required-string") - .PropertyName("BoundRequiredString") - .TypeName(typeof(string).FullName), - builder => builder - .Name("input-bound-string") - .PropertyName("BoundString") - .TypeName(typeof(string).FullName), - }, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute.Name("input-bound-required-string")) - .RequireAttributeDescriptor(attribute => attribute.Name("input-unbound-required")), - }), - CreateTagHelperDescriptor( - tagName: "div", - typeName: "DivTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("boundbool") - .PropertyName("BoundBoolProp") - .TypeName(typeof(bool).FullName), - builder => builder - .Name("booldict") - .PropertyName("BoolDictProp") - .TypeName("System.Collections.Generic.IDictionary") - .AsDictionaryAttribute("booldict-prefix-", typeof(bool).FullName), - }), - }; - } - } - - public static IEnumerable DynamicAttributeTagHelpers_Descriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("bound") - .PropertyName("Bound") - .TypeName(typeof(string).FullName) - }), - }; - } - } - - public static IEnumerable DuplicateTargetTagHelperDescriptors - { - get - { - var typePropertyInfo = typeof(TestType).GetRuntimeProperty("Type"); - var checkedPropertyInfo = typeof(TestType).GetRuntimeProperty("Checked"); - return new[] - { - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", typePropertyInfo), - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "checked", checkedPropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("type")), - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("checked")) - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", typePropertyInfo), - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "checked", checkedPropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("type")), - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("checked")) - }) - }; - } - } - - public static IEnumerable AttributeTargetingTagHelperDescriptors - { - get - { - var inputTypePropertyInfo = typeof(TestType).GetRuntimeProperty("Type"); - var inputCheckedPropertyInfo = typeof(TestType).GetRuntimeProperty("Checked"); - return new[] - { - CreateTagHelperDescriptor( - tagName: "p", - typeName: "TestNamespace.PTagHelper", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("class")), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", inputTypePropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("type")), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper2", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", inputTypePropertyInfo), - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "checked", inputCheckedPropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute.Name("type")) - .RequireAttributeDescriptor(attribute => attribute.Name("checked")), - }), - CreateTagHelperDescriptor( - tagName: "*", - typeName: "TestNamespace.CatchAllTagHelper", - assemblyName: "TestAssembly", - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("catchAll")), - }), - }; - } - } - - public static IEnumerable PrefixedAttributeTagHelperDescriptors - { - get - { - return new[] - { - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper1", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("int-prefix-grabber") - .PropertyName("IntProperty") - .TypeName(typeof(int).FullName), - builder => builder - .Name("int-dictionary") - .PropertyName("IntDictionaryProperty") - .TypeName("System.Collections.Generic.IDictionary") - .AsDictionaryAttribute("int-prefix-", typeof(int).FullName), - builder => builder - .Name("string-prefix-grabber") - .PropertyName("StringProperty") - .TypeName(typeof(string).FullName), - builder => builder - .Name("string-dictionary") - .PropertyName("StringDictionaryProperty") - .TypeName("Namespace.DictionaryWithoutParameterlessConstructor") - .AsDictionaryAttribute("string-prefix-", typeof(string).FullName), - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper2", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => builder - .Name("int-dictionary") - .PropertyName("IntDictionaryProperty") - .TypeName(typeof(int).FullName) - .AsDictionaryAttribute("int-prefix-", typeof(int).FullName), - builder => builder - .Name("string-dictionary") - .PropertyName("StringDictionaryProperty") - .TypeName("Namespace.DictionaryWithoutParameterlessConstructor") - .AsDictionaryAttribute("string-prefix-", typeof(string).FullName), - }), - }; - } - } - - public static IEnumerable TagHelpersInSectionDescriptors - { - get - { - var propertyInfo = typeof(TestType).GetRuntimeProperty("BoundProperty"); - return new[] - { - CreateTagHelperDescriptor( - tagName: "MyTagHelper", - typeName: "TestNamespace.MyTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "BoundProperty", propertyInfo), - }), - CreateTagHelperDescriptor( - tagName: "NestedTagHelper", - typeName: "TestNamespace.NestedTagHelper", - assemblyName: "TestAssembly"), - }; - } - } - - public static IEnumerable DefaultPAndInputTagHelperDescriptors - { - get - { - var pAgePropertyInfo = typeof(TestType).GetRuntimeProperty("Age"); - var inputTypePropertyInfo = typeof(TestType).GetRuntimeProperty("Type"); - var checkedPropertyInfo = typeof(TestType).GetRuntimeProperty("Checked"); - - return new[] - { - CreateTagHelperDescriptor( - tagName: "p", - typeName: "TestNamespace.PTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "age", pAgePropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireTagStructure(TagStructure.NormalOrSelfClosing) - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", inputTypePropertyInfo), - }, - ruleBuilders: new Action[] - { - builder => builder.RequireTagStructure(TagStructure.WithoutEndTag) - }), - CreateTagHelperDescriptor( - tagName: "input", - typeName: "TestNamespace.InputTagHelper2", - assemblyName: "TestAssembly", - attributes: new Action[] - { - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "type", inputTypePropertyInfo), - builder => BuildBoundAttributeDescriptorFromPropertyInfo(builder, "checked", checkedPropertyInfo), - }), - }; - } - } - - private static TagHelperDescriptor CreateTagHelperDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null, - IEnumerable> ruleBuilders = null) - { - var builder = TagHelperDescriptorBuilder.Create(typeName, assemblyName); - builder.TypeName(typeName); - - if (attributes != null) - { - foreach (var attributeBuilder in attributes) - { - builder.BoundAttributeDescriptor(attributeBuilder); - } - } - - if (ruleBuilders != null) - { - foreach (var ruleBuilder in ruleBuilders) - { - builder.TagMatchingRuleDescriptor(innerRuleBuilder => - { - innerRuleBuilder.RequireTagName(tagName); - ruleBuilder(innerRuleBuilder); - }); - } - } - else - { - builder.TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName(tagName)); - } - - var descriptor = builder.Build(); - - return descriptor; - } - - private static void BuildBoundAttributeDescriptorFromPropertyInfo( - BoundAttributeDescriptorBuilder builder, - string name, - PropertyInfo propertyInfo) - { - builder - .Name(name) - .PropertyName(propertyInfo.Name) - .TypeName(propertyInfo.PropertyType.FullName); - - if (propertyInfo.PropertyType.GetTypeInfo().IsEnum) - { - builder.AsEnum(); - } - } - - private class TestType - { - public int Age { get; set; } - - public string Type { get; set; } - - public bool Checked { get; set; } - - public string BoundProperty { get; set; } - } - - public enum MyEnum - { - MyValue, - MySecondValue - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs deleted file mode 100644 index f4813684e19..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Testing; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - public class DefaultRazorIntermediateNodeBuilderTest - { - [Fact] - public void Ctor_CreatesEmptyBuilder() - { - // Arrange & Act - var builder = new DefaultRazorIntermediateNodeBuilder(); - var current = builder.Current; - - // Assert - Assert.Null(current); - } - - [Fact] - public void Push_WhenEmpty_AddsNode() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - var node = new BasicIntermediateNode(); - - // Act - builder.Push(node); - - // Assert - Assert.Same(node, builder.Current); - } - - [Fact] - public void Push_WhenNonEmpty_SetsUpChild() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var parent = new BasicIntermediateNode(); - builder.Push(parent); - - var node = new BasicIntermediateNode(); - - // Act - builder.Push(node); - - // Assert - Assert.Same(node, builder.Current); - Assert.Collection(parent.Children, n => Assert.Same(node, n)); - } - - [Fact] - public void Pop_ThrowsWhenEmpty() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - // Act & Assert - ExceptionAssert.Throws( - () => builder.Pop(), - "The 'Pop' operation is not valid when the builder is empty."); - } - - [Fact] - public void Pop_SingleNodeDepth_RemovesAndReturnsNode() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var node = new BasicIntermediateNode(); - builder.Push(node); - - // Act - var result = builder.Pop(); - - // Assert - Assert.Same(node, result); - Assert.Null(builder.Current); - } - - [Fact] - public void Pop_MultipleNodeDepth_RemovesAndReturnsNode() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var parent = new BasicIntermediateNode(); - builder.Push(parent); - - var node = new BasicIntermediateNode(); - builder.Push(node); - - // Act - var result = builder.Pop(); - - // Assert - Assert.Same(node, result); - Assert.Same(parent, builder.Current); - } - - [Fact] - public void Add_AddsToChildrenAndSetsParent() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var parent = new BasicIntermediateNode(); - builder.Push(parent); - - var node = new BasicIntermediateNode(); - - // Act - builder.Add(node); - - // Assert - Assert.Same(parent, builder.Current); - Assert.Collection(parent.Children, n => Assert.Same(node, n)); - } - - [Fact] - public void Insert_AddsToChildren_EmptyCollection() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var parent = new BasicIntermediateNode(); - builder.Push(parent); - - var node = new BasicIntermediateNode(); - - // Act - builder.Insert(0, node); - - // Assert - Assert.Same(parent, builder.Current); - Assert.Collection(parent.Children, n => Assert.Same(node, n)); - } - - [Fact] - public void Insert_AddsToChildren_NonEmpyCollection() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var parent = new BasicIntermediateNode(); - builder.Push(parent); - - var child = new BasicIntermediateNode(); - builder.Add(child); - - var node = new BasicIntermediateNode(); - - // Act - builder.Insert(0, node); - - // Assert - Assert.Same(parent, builder.Current); - Assert.Collection(parent.Children, n => Assert.Same(node, n), n => Assert.Same(child, n)); - } - - [Fact] - public void Insert_AddsToChildren_NonEmpyCollection_AtEnd() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var parent = new BasicIntermediateNode(); - builder.Push(parent); - - var child = new BasicIntermediateNode(); - builder.Add(child); - - var node = new BasicIntermediateNode(); - - // Act - builder.Insert(1, node); - - // Assert - Assert.Same(parent, builder.Current); - Assert.Collection(parent.Children, n => Assert.Same(child, n), n => Assert.Same(node, n)); - } - - [Fact] - public void Build_PopsMultipleLevels() - { - // Arrange - var builder = new DefaultRazorIntermediateNodeBuilder(); - - var document = new DocumentIntermediateNode(); - builder.Push(document); - - var node = new BasicIntermediateNode(); - builder.Push(node); - - // Act - var result = builder.Build(); - - // Assert - Assert.Same(document, result); - Assert.Null(builder.Current); - } - - private class BasicIntermediateNode : IntermediateNode - { - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public override void Accept(IntermediateNodeVisitor visitor) - { - throw new NotImplementedException(); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs deleted file mode 100644 index 8def071accd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - public class DocumentIntermediateNodeExtensionsTest - { - [Fact] - public void FindPrimaryClass_FindsClassWithAnnotation() - { - // Arrange - var document = new DocumentIntermediateNode(); - var @class = new ClassDeclarationIntermediateNode(); - @class.Annotations[CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass; - - var builder = IntermediateNodeBuilder.Create(document); - builder.Add(@class); - - // Act - var result = document.FindPrimaryClass(); - - // Assert - Assert.Same(@class, result); - } - - [Fact] - public void FindPrimaryMethod_FindsMethodWithAnnotation() - { - // Arrange - var document = new DocumentIntermediateNode(); - var method = new MethodDeclarationIntermediateNode(); - method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod; - - var builder = IntermediateNodeBuilder.Create(document); - builder.Add(method); - - // Act - var result = document.FindPrimaryMethod(); - - // Assert - Assert.Same(method, result); - } - - [Fact] - public void FindPrimaryNamespace_FindsNamespaceWithAnnotation() - { - // Arrange - var document = new DocumentIntermediateNode(); - var @namespace = new NamespaceDeclarationIntermediateNode(); - @namespace.Annotations[CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace; - - var builder = IntermediateNodeBuilder.Create(document); - builder.Add(@namespace); - - // Act - var result = document.FindPrimaryNamespace(); - - // Assert - Assert.Same(@namespace, result); - } - - [Fact] - public void FindDirectiveReferences_FindsMatchingDirectives() - { - // Arrange - var directive = DirectiveDescriptor.CreateSingleLineDirective("test"); - var directive2 = DirectiveDescriptor.CreateSingleLineDirective("test"); - - var document = new DocumentIntermediateNode(); - var @namespace = new NamespaceDeclarationIntermediateNode(); - - var builder = IntermediateNodeBuilder.Create(document); - builder.Push(@namespace); - - var match1 = new DirectiveIntermediateNode() - { - Directive = directive, - }; - builder.Add(match1); - - var nonMatch = new DirectiveIntermediateNode() - { - Directive = directive2, - }; - builder.Add(nonMatch); - - var match2 = new DirectiveIntermediateNode() - { - Directive = directive, - }; - builder.Add(match2); - - // Act - var results = document.FindDirectiveReferences(directive); - - // Assert - Assert.Collection( - results, - r => - { - Assert.Same(@namespace, r.Parent); - Assert.Same(match1, r.Node); - }, - r => - { - Assert.Same(@namespace, r.Parent); - Assert.Same(match2, r.Node); - }); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Intermediate/ExtensionIntermediateNodeTest.cs b/src/Razor/test/RazorLanguage.Test/Intermediate/ExtensionIntermediateNodeTest.cs deleted file mode 100644 index a4bf7950ae4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Intermediate/ExtensionIntermediateNodeTest.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - // These tests cover the methods on ExtensionIntermediateNode that are used to implement visitors - // that special case an extension node. - public class ExtensionIntermediateNodeTest - { - [Fact] - public void Accept_CallsStandardVisitExtension_ForStandardVisitor() - { - // Arrange - var node = new TestExtensionIntermediateNode(); - var visitor = new StandardVisitor(); - - // Act - node.Accept(visitor); - - // Assert - Assert.True(visitor.WasStandardMethodCalled); - Assert.False(visitor.WasSpecificMethodCalled); - } - - [Fact] - public void Accept_CallsSpecialVisitExtension_ForSpecialVisitor() - { - // Arrange - var node = new TestExtensionIntermediateNode(); - var visitor = new SpecialVisitor(); - - // Act - node.Accept(visitor); - - // Assert - Assert.False(visitor.WasStandardMethodCalled); - Assert.True(visitor.WasSpecificMethodCalled); - } - - private class TestExtensionIntermediateNode : ExtensionIntermediateNode - { - public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - - public override void Accept(IntermediateNodeVisitor visitor) - { - // This is the standard visitor boilerplate for an extension node. - AcceptExtensionNode(this, visitor); - } - - public override void WriteNode(CodeTarget target, CodeRenderingContext context) - { - throw new NotImplementedException(); - } - } - - private class StandardVisitor : IntermediateNodeVisitor - { - public bool WasStandardMethodCalled { get; private set; } - public bool WasSpecificMethodCalled { get; private set; } - - public override void VisitExtension(ExtensionIntermediateNode node) - { - WasStandardMethodCalled = true; - } - - public void VisitExtension(TestExtensionIntermediateNode node) - { - WasSpecificMethodCalled = true; - } - } - - private class SpecialVisitor : IntermediateNodeVisitor, IExtensionIntermediateNodeVisitor - { - public bool WasStandardMethodCalled { get; private set; } - public bool WasSpecificMethodCalled { get; private set; } - - public override void VisitExtension(ExtensionIntermediateNode node) - { - WasStandardMethodCalled = true; - } - - public void VisitExtension(TestExtensionIntermediateNode node) - { - WasSpecificMethodCalled = true; - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeReferenceTest.cs b/src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeReferenceTest.cs deleted file mode 100644 index 2adbe06a4ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeReferenceTest.cs +++ /dev/null @@ -1,510 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - public class IntermediateNodeReferenceTest - { - [Fact] - public void InsertAfter_SingleNode_AddsNodeAfterNode() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - - parent.Children.Add(node1); - parent.Children.Add(node3); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act - reference.InsertAfter(node2); - - // Assert - Assert.Equal(new[] { node1, node2, node3, }, parent.Children); - } - - [Fact] - public void InsertAfter_SingleNode_AddsNodeAfterNode_AtEnd() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - - parent.Children.Add(node1); - parent.Children.Add(node2); - - var reference = new IntermediateNodeReference(parent, node2); - - // Act - reference.InsertAfter(node3); - - // Assert - Assert.Equal(new[] { node1, node2, node3, }, parent.Children); - } - - [Fact] - public void InsertAfter_MultipleNodes_AddsNodesAfterNode() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - var node4 = new BasicIntermediateNode("Node4"); - - parent.Children.Add(node1); - parent.Children.Add(node4); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act - reference.InsertAfter(new[] { node2, node3 }); - - // Assert - Assert.Equal(new[] { node1, node2, node3, node4, }, parent.Children); - } - - [Fact] - public void InsertAfter_MultipleNodes_AddsNodesAfterNode_AtEnd() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - var node4 = new BasicIntermediateNode("Node4"); - - parent.Children.Add(node1); - parent.Children.Add(node2); - - var reference = new IntermediateNodeReference(parent, node2); - - // Act - reference.InsertAfter(new[] { node3, node4 }); - - // Assert - Assert.Equal(new[] { node1, node2, node3, node4, }, parent.Children); - } - - [Fact] - public void InsertBefore_SingleNode_AddsNodeBeforeNode() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - - parent.Children.Add(node1); - parent.Children.Add(node3); - - var reference = new IntermediateNodeReference(parent, node3); - - // Act - reference.InsertBefore(node2); - - // Assert - Assert.Equal(new[] { node1, node2, node3, }, parent.Children); - } - - [Fact] - public void InsertBefore_SingleNode_AddsNodeBeforeNode_AtBeginning() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - - parent.Children.Add(node2); - parent.Children.Add(node3); - - var reference = new IntermediateNodeReference(parent, node2); - - // Act - reference.InsertBefore(node1); - - // Assert - Assert.Equal(new[] { node1, node2, node3, }, parent.Children); - } - - [Fact] - public void InsertBefore_MultipleNodes_AddsNodesBeforeNode() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - var node4 = new BasicIntermediateNode("Node4"); - - parent.Children.Add(node1); - parent.Children.Add(node4); - - var reference = new IntermediateNodeReference(parent, node4); - - // Act - reference.InsertBefore(new[] { node2, node3 }); - - // Assert - Assert.Equal(new[] { node1, node2, node3, node4, }, parent.Children); - } - - [Fact] - public void InsertAfter_MultipleNodes_AddsNodesBeforeNode_AtBeginning() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - var node4 = new BasicIntermediateNode("Node4"); - - parent.Children.Add(node3); - parent.Children.Add(node4); - - var reference = new IntermediateNodeReference(parent, node3); - - // Act - reference.InsertBefore(new[] { node1, node2 }); - - // Assert - Assert.Equal(new[] { node1, node2, node3, node4, }, parent.Children); - } - - [Fact] - public void Remove_RemovesNode() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - - parent.Children.Add(node1); - parent.Children.Add(node3); - parent.Children.Add(node2); - - var reference = new IntermediateNodeReference(parent, node3); - - // Act - reference.Remove(); - - // Assert - Assert.Equal(new[] { node1, node2,}, parent.Children); - } - - [Fact] - public void Replace_ReplacesNode() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - var node2 = new BasicIntermediateNode("Node2"); - var node3 = new BasicIntermediateNode("Node3"); - var node4 = new BasicIntermediateNode("Node4"); - - parent.Children.Add(node1); - parent.Children.Add(node4); - parent.Children.Add(node3); - - var reference = new IntermediateNodeReference(parent, node4); - - // Act - reference.Replace(node2); - - // Assert - Assert.Equal(new[] { node1, node2, node3, }, parent.Children); - } - - [Fact] - public void InsertAfter_SingleNode_ThrowsForReferenceNotInitialized() - { - // Arrange - var reference = new IntermediateNodeReference(); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new BasicIntermediateNode("_"))); - Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); - } - - [Fact] - public void InsertAfter_MulipleNodes_ThrowsForReferenceNotInitialized() - { - // Arrange - var reference = new IntermediateNodeReference(); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIntermediateNode("_") })); - Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); - } - - [Fact] - public void InsertBefore_SingleNode_ThrowsForReferenceNotInitialized() - { - // Arrange - var reference = new IntermediateNodeReference(); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new BasicIntermediateNode("_"))); - Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); - } - - [Fact] - public void InsertBefore_MulipleNodes_ThrowsForReferenceNotInitialized() - { - // Arrange - var reference = new IntermediateNodeReference(); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIntermediateNode("_") })); - Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); - } - - [Fact] - public void Remove_ThrowsForReferenceNotInitialized() - { - // Arrange - var reference = new IntermediateNodeReference(); - - // Act & Assert - var exception = Assert.Throws(() => reference.Remove()); - Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); - } - - [Fact] - public void Replace_ThrowsForReferenceNotInitialized() - { - // Arrange - var reference = new IntermediateNodeReference(); - - // Act & Assert - var exception = Assert.Throws(() => reference.Replace(new BasicIntermediateNode("_"))); - Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); - } - - [Fact] - public void InsertAfter_SingleNode_ThrowsForReadOnlyCollection() - { - // Arrange - var parent = new BasicIntermediateNode("Parent", IntermediateNodeCollection.ReadOnly); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new BasicIntermediateNode("_"))); - Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); - } - - [Fact] - public void InsertAfter_MulipleNodes_ThrowsForReadOnlyCollection() - { - // Arrange - var parent = new BasicIntermediateNode("Parent", IntermediateNodeCollection.ReadOnly); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIntermediateNode("_") })); - Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); - } - - [Fact] - public void InsertBefore_SingleNode_ThrowsForReadOnlyCollection() - { - // Arrange - var parent = new BasicIntermediateNode("Parent", IntermediateNodeCollection.ReadOnly); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new BasicIntermediateNode("_"))); - Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); - } - - [Fact] - public void InsertBefore_MulipleNodes_ThrowsForReadOnlyCollection() - { - // Arrange - var parent = new BasicIntermediateNode("Parent", IntermediateNodeCollection.ReadOnly); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIntermediateNode("_") })); - Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); - } - - [Fact] - public void Remove_ThrowsForReadOnlyCollection() - { - // Arrange - var parent = new BasicIntermediateNode("Parent", IntermediateNodeCollection.ReadOnly); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.Remove()); - Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); - } - - [Fact] - public void Replace_ThrowsForReadOnlyCollection() - { - // Arrange - var parent = new BasicIntermediateNode("Parent", IntermediateNodeCollection.ReadOnly); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.Replace(new BasicIntermediateNode("_"))); - Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); - } - - [Fact] - public void InsertAfter_SingleNode_ThrowsForNodeNotFound() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new BasicIntermediateNode("_"))); - Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); - } - - [Fact] - public void InsertAfter_MulipleNodes_ThrowsForNodeNotFound() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIntermediateNode("_") })); - Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); - } - - [Fact] - public void InsertBefore_SingleNode_ThrowsForNodeNotFound() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new BasicIntermediateNode("_"))); - Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); - } - - [Fact] - public void InsertBefore_MulipleNodes_ThrowsForNodeNotFound() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIntermediateNode("_") })); - Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); - } - - [Fact] - public void Remove_ThrowsForNodeNotFound() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.Remove()); - Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); - } - - [Fact] - public void Replace_ThrowsForNodeNotFound() - { - // Arrange - var parent = new BasicIntermediateNode("Parent"); - - var node1 = new BasicIntermediateNode("Node1"); - - var reference = new IntermediateNodeReference(parent, node1); - - // Act & Assert - var exception = Assert.Throws(() => reference.Replace(new BasicIntermediateNode("_"))); - Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); - } - - private class BasicIntermediateNode : IntermediateNode - { - public BasicIntermediateNode(string name) - : this(name, new IntermediateNodeCollection()) - { - Name = name; - } - - public BasicIntermediateNode(string name, IntermediateNodeCollection children) - { - Name = name; - Children = children; - } - - public string Name { get; } - - public override IntermediateNodeCollection Children { get; } - - public override void Accept(IntermediateNodeVisitor visitor) - { - throw new System.NotImplementedException(); - } - - public override string ToString() => Name; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeWalkerTest.cs b/src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeWalkerTest.cs deleted file mode 100644 index f91735f9c35..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Intermediate/IntermediateNodeWalkerTest.cs +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - public class IntermediateNodeWalkerTest - { - [Fact] - public void IntermediateNodeWalker_Visit_TraversesEntireGraph() - { - // Arrange - var walker = new DerivedIntermediateNodeWalker(); - - var nodes = new IntermediateNode[] - { - new BasicIntermediateNode("Root"), - new BasicIntermediateNode("Root->A"), - new BasicIntermediateNode("Root->B"), - new BasicIntermediateNode("Root->B->1"), - new BasicIntermediateNode("Root->B->2"), - new BasicIntermediateNode("Root->C"), - }; - - var builder = new DefaultRazorIntermediateNodeBuilder(); - builder.Push(nodes[0]); - builder.Add(nodes[1]); - builder.Push(nodes[2]); - builder.Add(nodes[3]); - builder.Add(nodes[4]); - builder.Pop(); - builder.Add(nodes[5]); - - var root = builder.Pop(); - - // Act - walker.Visit(root); - - // Assert - Assert.Equal(nodes, walker.Visited.ToArray()); - } - - [Fact] - public void IntermediateNodeWalker_Visit_SetsParentAndAncestors() - { - // Arrange - var walker = new DerivedIntermediateNodeWalker(); - - var nodes = new IntermediateNode[] - { - new BasicIntermediateNode("Root"), - new BasicIntermediateNode("Root->A"), - new BasicIntermediateNode("Root->B"), - new BasicIntermediateNode("Root->B->1"), - new BasicIntermediateNode("Root->B->2"), - new BasicIntermediateNode("Root->C"), - }; - - var ancestors = new Dictionary() - { - { "Root", new string[]{ } }, - { "Root->A", new string[] { "Root" } }, - { "Root->B", new string[] { "Root" } }, - { "Root->B->1", new string[] { "Root->B", "Root" } }, - { "Root->B->2", new string[] { "Root->B", "Root" } }, - { "Root->C", new string[] { "Root" } }, - }; - - walker.OnVisiting = (n) => - { - Assert.Equal(ancestors[((BasicIntermediateNode)n).Name], walker.Ancestors.Cast().Select(b => b.Name)); - Assert.Equal(ancestors[((BasicIntermediateNode)n).Name].FirstOrDefault(), ((BasicIntermediateNode)walker.Parent)?.Name); - }; - - var builder = new DefaultRazorIntermediateNodeBuilder(); - builder.Push(nodes[0]); - builder.Add(nodes[1]); - builder.Push(nodes[2]); - builder.Add(nodes[3]); - builder.Add(nodes[4]); - builder.Pop(); - builder.Add(nodes[5]); - - var root = builder.Pop(); - - // Act & Assert - walker.Visit(root); - } - - private class DerivedIntermediateNodeWalker : IntermediateNodeWalker - { - public new IReadOnlyList Ancestors => base.Ancestors; - - public new IntermediateNode Parent => base.Parent; - - public List Visited { get; } = new List(); - - public Action OnVisiting { get; set; } - - public override void VisitDefault(IntermediateNode node) - { - Visited.Add(node); - - OnVisiting?.Invoke(node); - base.VisitDefault(node); - } - - public virtual void VisitBasic(BasicIntermediateNode node) - { - VisitDefault(node); - } - } - - private class BasicIntermediateNode : IntermediateNode - { - public BasicIntermediateNode(string name) - { - Name = name; - } - - public string Name { get; } - - public override IntermediateNodeCollection Children { get; } = new IntermediateNodeCollection(); - - public override void Accept(IntermediateNodeVisitor visitor) - { - ((DerivedIntermediateNodeWalker)visitor).VisitBasic(this); - } - - public override string ToString() - { - return Name; - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/LargeTextSourceDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/LargeTextSourceDocumentTest.cs deleted file mode 100644 index fb47799b239..00000000000 --- a/src/Razor/test/RazorLanguage.Test/LargeTextSourceDocumentTest.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System.IO; -using System.Text; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Test -{ - public class LargeTextSourceDocumentTest - { - private const int ChunkTestLength = 10; - - [Fact] - public void GetChecksum_ReturnsCopiedChecksum() - { - // Arrange - var contentString = "Hello World"; - var stream = TestRazorSourceDocument.CreateStreamContent(contentString); - var reader = new StreamReader(stream, detectEncodingFromByteOrderMarks: true); - var document = new LargeTextSourceDocument(reader, 5, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var firstChecksum = document.GetChecksum(); - var secondChecksum = document.GetChecksum(); - - // Assert - Assert.Equal(firstChecksum, secondChecksum); - Assert.NotSame(firstChecksum, secondChecksum); - } - - [Fact] - public void GetChecksum_ComputesCorrectChecksum_UTF8() - { - // Arrange - var contentString = "Hello World"; - var stream = TestRazorSourceDocument.CreateStreamContent(contentString); - var reader = new StreamReader(stream, detectEncodingFromByteOrderMarks: true); - var document = new LargeTextSourceDocument(reader, 5, Encoding.UTF8, RazorSourceDocumentProperties.Default); - var expectedChecksum = new byte[] { 10, 77, 85, 168, 215, 120, 229, 2, 47, 171, 112, 25, 119, 197, 216, 64, 187, 196, 134, 208 }; - - // Act - var checksum = document.GetChecksum(); - - // Assert - Assert.Equal(expectedChecksum, checksum); - } - - [Fact] - public void GetChecksum_ComputesCorrectChecksum_UTF32() - { - // Arrange - var contentString = "Hello World"; - var stream = TestRazorSourceDocument.CreateStreamContent(contentString, Encoding.UTF32); - var reader = new StreamReader(stream, detectEncodingFromByteOrderMarks: true); - var document = new LargeTextSourceDocument(reader, 5, Encoding.UTF32, RazorSourceDocumentProperties.Default); - var expectedChecksum = new byte[] { 108, 172, 130, 171, 42, 19, 155, 176, 211, 80, 224, 121, 169, 133, 25, 134, 48, 228, 199, 141 }; - - // Act - var checksum = document.GetChecksum(); - - // Assert - Assert.Equal(expectedChecksum, checksum); - } - - [Theory] - [InlineData(ChunkTestLength - 1)] - [InlineData(ChunkTestLength)] - [InlineData(ChunkTestLength + 1)] - [InlineData(ChunkTestLength * 2 - 1)] - [InlineData(ChunkTestLength * 2)] - [InlineData(ChunkTestLength * 2 + 1)] - public void Indexer_ProvidesCharacterAccessToContent(int contentLength) - { - // Arrange - var content = new char[contentLength]; - - for (var i = 0; i < contentLength - 1; i++) - { - content[i] = 'a'; - } - content[contentLength - 1] = 'b'; - var contentString = new string(content); - - var stream = TestRazorSourceDocument.CreateStreamContent(new string(content)); - var reader = new StreamReader(stream, true); - var document = new LargeTextSourceDocument(reader, ChunkTestLength, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var output = new char[contentLength]; - for (var i = 0; i < document.Length; i++) - { - output[i] = document[i]; - } - var outputString = new string(output); - - // Assert - Assert.Equal(contentLength, document.Length); - Assert.Equal(contentString, outputString); - } - - [Theory] - [InlineData("test.cshtml")] - [InlineData(null)] - public void FilePath(string filePath) - { - // Arrange - var stream = TestRazorSourceDocument.CreateStreamContent("abc"); - var reader = new StreamReader(stream, true); - - // Act - var document = new LargeTextSourceDocument(reader, ChunkTestLength, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: filePath, relativePath: null)); - - // Assert - Assert.Equal(filePath, document.FilePath); - } - - [Theory] - [InlineData("test.cshtml")] - [InlineData(null)] - public void RelativePath(string relativePath) - { - // Arrange - var stream = TestRazorSourceDocument.CreateStreamContent("abc"); - var reader = new StreamReader(stream, true); - - // Act - var document = new LargeTextSourceDocument(reader, ChunkTestLength, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: relativePath)); - - // Assert - Assert.Equal(relativePath, document.RelativePath); - } - - [Fact] - public void Lines() - { - // Arrange - var stream = TestRazorSourceDocument.CreateStreamContent("abc\ndef\nghi"); - var reader = new StreamReader(stream, true); - - // Act - var document = new LargeTextSourceDocument(reader, ChunkTestLength, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Assert - Assert.Equal(3, document.Lines.Count); - } - - [Theory] - [InlineData("", 0, 0, 0)] // Nothing to copy - [InlineData("a", 0, 100, 1)] // Destination index different from start - [InlineData("j", ChunkTestLength - 1, 0, 1)] // One char just before the chunk limit - [InlineData("k", ChunkTestLength, 0, 1)] // One char one the chunk limit - [InlineData("l", ChunkTestLength + 1, 0, 1)] // One char just after the chunk limit - [InlineData("jk", ChunkTestLength - 1, 0, 2)] // Two char that are on both chunk sides - [InlineData("abcdefghijklmnopqrstuvwxy", 0, 100, 25)] // Everything except the last - [InlineData("abcdefghijklmnopqrstuvwxyz", 0, 0, 26)] // Copy all - [InlineData("xyz", 23, 0, 3)] // The last chars - public void CopyTo(string expected, int sourceIndex, int destinationIndex, int count) - { - // Arrange - var stream = TestRazorSourceDocument.CreateStreamContent("abcdefghijklmnopqrstuvwxyz"); - - var reader = new StreamReader(stream, true); - var document = new LargeTextSourceDocument(reader, ChunkTestLength, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var destination = new char[1000]; - document.CopyTo(sourceIndex, destination, destinationIndex, count); - - // Assert - var copy = new string(destination, destinationIndex, count); - Assert.Equal(expected, copy); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/BaselineWriter.cs b/src/Razor/test/RazorLanguage.Test/Legacy/BaselineWriter.cs deleted file mode 100644 index eee1a8fd58e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/BaselineWriter.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Diagnostics; -using System.IO; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public static class BaselineWriter - { - private static object baselineLock = new object(); - - [Conditional("GENERATE_BASELINES")] - public static void WriteBaseline(string baselineFile, string output) - { - var root = RecursiveFind("Razor.sln", Path.GetFullPath(".")); - var baselinePath = Path.Combine(root, baselineFile); - - // Serialize writes to minimize contention for file handles and directory access. - lock (baselineLock) - { - // Update baseline - using (var stream = File.Open(baselinePath, FileMode.Create, FileAccess.Write)) - { - using (var writer = new StreamWriter(stream)) - { - writer.Write(output); - } - } - } - } - - private static string RecursiveFind(string path, string start) - { - var test = Path.Combine(start, path); - if (File.Exists(test)) - { - return start; - } - else - { - return RecursiveFind(path, new DirectoryInfo(start).Parent.FullName); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpAutoCompleteTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpAutoCompleteTest.cs deleted file mode 100644 index 7e4ae9cf5a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpAutoCompleteTest.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpAutoCompleteTest : ParserTestBase - { - [Fact] - public void FunctionsDirectiveAutoCompleteAtEOF() - { - // Arrange, Act & Assert - ParseDocumentTest("@functions{", new[] { FunctionsDirective.Directive }); - } - - [Fact] - public void SectionDirectiveAutoCompleteAtEOF() - { - // Arrange, Act & Assert - ParseDocumentTest("@section Header {", new[] { SectionDirective.Directive }); - } - - [Fact] - public void VerbatimBlockAutoCompleteAtEOF() - { - ParseDocumentTest("@{"); - } - - [Fact] - public void FunctionsDirectiveAutoCompleteAtStartOfFile() - { - // Arrange, Act & Assert - ParseDocumentTest("@functions{" + Environment.NewLine + "foo", new[] { FunctionsDirective.Directive }); - } - - [Fact] - public void SectionDirectiveAutoCompleteAtStartOfFile() - { - // Arrange, Act & Assert - ParseDocumentTest("@section Header {" + Environment.NewLine + "

    Foo

    ", new[] { SectionDirective.Directive }); - } - - [Fact] - public void VerbatimBlockAutoCompleteAtStartOfFile() - { - ParseDocumentTest("@{" + Environment.NewLine + "

    "); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpBlockTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpBlockTest.cs deleted file mode 100644 index b6efbe507ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpBlockTest.cs +++ /dev/null @@ -1,748 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpBlockTest : ParserTestBase - { - [Fact] - public void CSharpBlock_SingleLineControlFlowStatement_Error() - { - ParseDocumentTest( -@"@{ - var time = DateTime.Now; - if (time.ToBinary() % 2 == 0)

    The time: @time

    - - if (time.ToBinary() %3 == 0) - // For some reason we want to render the time now? -

    The confusing time: @time

    - - if (time.ToBinary() % 4 == 0) - @:

    The time: @time

    - - if (time.ToBinary() % 5 == 0) @@SomeGitHubUserName Hi! -}"); - } - - [Fact] - public void CSharpBlock_SingleLineControlFlowStatement() - { - ParseDocumentTest( -@"@{ - var time = DateTime.Now; - if (time.ToBinary() % 2 == 0) @time -}"); - } - - [Fact] - public void LocalFunctionsWithRazor() - { - ParseDocumentTest( -@"@{ - void Foo() - { - var time = DateTime.Now - Hello the time is @time - } -}"); - } - - [Fact] - public void LocalFunctionsWithGenerics() - { - ParseDocumentTest( -@"@{ - void Foo() - { - Hello the time is @{ DisplayCount(new List()); } - } - - void DisplayCount(List something) - { - The count is something.Count - } -}"); - } - - [Fact] - public void NestedCodeBlockWithCSharpAt() - { - ParseDocumentTest("@{ if (true) { var val = @x; if (val != 3) { } } }"); - } - - [Fact] - public void NestedCodeBlockWithMarkupSetsDotAsMarkup() - { - ParseDocumentTest("@if (true) { @if(false) {
    @something.
    } }"); - } - - [Fact] - public void BalancingBracketsIgnoresStringLiteralCharactersAndBrackets() - { - // BalancingBracketsIgnoresStringLiteralCharactersAndBracketsInsideSingleLineComments - ParseDocumentTest(@"@if(foo) { - // bar } "" baz ' - zoop(); -}"); - } - - [Fact] - public void NestedCodeBlockWithAtDoesntCauseError() - { - ParseDocumentTest("@if (true) { @if(false) { } }"); - } - - [Fact] - public void BalancingBracketsIgnoresStringLiteralCharactersAndBracketsInsideBlockComments() - { - ParseDocumentTest( - @"@if(foo) { - /* bar } "" */ ' baz } ' - zoop(); -}"); - } - - [Fact] - public void SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsForKeyword - ParseDocumentTest( - "@for(int i = 0; i < 10; new Foo { Bar = \"baz\" }) { Debug.WriteLine(@\"foo } bar\"); }"); - } - - [Fact] - public void SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsForeachKeyword - ParseDocumentTest( - "@foreach(int i = 0; i < 10; new Foo { Bar = \"baz\" }) { Debug.WriteLine(@\"foo } bar\"); }"); - } - - [Fact] - public void SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsWhileKeyword - ParseDocumentTest( - "@while(int i = 0; i < 10; new Foo { Bar = \"baz\" }) { Debug.WriteLine(@\"foo } bar\"); }"); - } - - [Fact] - public void SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsUsingKeywordFollowedByParen - ParseDocumentTest( - "@using(int i = 0; i < 10; new Foo { Bar = \"baz\" }) { Debug.WriteLine(@\"foo } bar\"); }"); - } - - [Fact] - public void SupportsUsingsNestedWithinOtherBlocks() - { - ParseDocumentTest( - "@if(foo) { using(int i = 0; i < 10; new Foo { Bar = \"baz\" }) { Debug.WriteLine(@\"foo } bar\"); } }"); - } - - [Fact] - public void SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches - ParseDocumentTest( - "@if(int i = 0; i < 10; new Foo { Bar = \"baz\" }) { Debug.WriteLine(@\"foo } bar\"); }"); - } - - [Fact] - public void AllowsEmptyBlockStatement() - { - ParseDocumentTest("@if(false) { }"); - } - - [Fact] - public void TerminatesParenBalancingAtEOF() - { - ParseDocumentTest("@Html.En(code()"); - } - - [Fact] - public void SupportsBlockCommentBetweenIfAndElseClause() - { - ParseDocumentTest( - "@if(foo) { bar(); } /* Foo */ /* Bar */ else { baz(); }"); - } - - [Fact] - public void SupportsRazorCommentBetweenIfAndElseClause() - { - RunRazorCommentBetweenClausesTest( - "@if(foo) { bar(); } ", " else { baz(); }"); - } - - [Fact] - public void SupportsBlockCommentBetweenElseIfAndElseClause() - { - ParseDocumentTest( - "@if(foo) { bar(); } else if(bar) { baz(); } /* Foo */ /* Bar */ else { biz(); }"); - } - - [Fact] - public void SupportsRazorCommentBetweenElseIfAndElseClause() - { - RunRazorCommentBetweenClausesTest( - "@if(foo) { bar(); } else if(bar) { baz(); } ", " else { baz(); }"); - } - - [Fact] - public void SupportsBlockCommentBetweenIfAndElseIfClause() - { - ParseDocumentTest( - "if(foo) { bar(); } /* Foo */ /* Bar */ else if(bar) { baz(); }"); - } - - [Fact] - public void SupportsRazorCommentBetweenIfAndElseIfClause() - { - RunRazorCommentBetweenClausesTest("@if(foo) { bar(); } ", " else if(bar) { baz(); }"); - } - - [Fact] - public void SupportsLineCommentBetweenIfAndElseClause() - { - ParseDocumentTest(@"@if(foo) { bar(); } -// Foo -// Bar -else { baz(); }"); - } - - [Fact] - public void SupportsLineCommentBetweenElseIfAndElseClause() - { - ParseDocumentTest(@"@if(foo) { bar(); } else if(bar) { baz(); } -// Foo -// Bar -else { biz(); }"); - } - - [Fact] - public void SupportsLineCommentBetweenIfAndElseIfClause() - { - ParseDocumentTest(@"@if(foo) { bar(); } -// Foo -// Bar -else if(bar) { baz(); }"); - } - - [Fact] - public void ParsesElseIfBranchesOfIfStatement() - { - const string ifStatement = @"@if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""foo } bar""); -}"; - const string elseIfBranch = @" else if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""bar } baz""); -}"; - const string document = ifStatement + elseIfBranch; - - ParseDocumentTest(document); - } - - [Fact] - public void ParsesMultipleElseIfBranchesOfIfStatement() - { - const string ifStatement = @"@if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""foo } bar""); -}"; - const string elseIfBranch = @" else if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""bar } baz""); -}"; - const string document = ifStatement + elseIfBranch + elseIfBranch + elseIfBranch + elseIfBranch; - ParseDocumentTest(document); - } - - [Fact] - public void ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch() - { - const string ifStatement = @"@if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""foo } bar""); -}"; - const string elseIfBranch = @" else if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""bar } baz""); -}"; - const string elseBranch = @" else { Debug.WriteLine(@""bar } baz""); }"; - const string document = ifStatement + elseIfBranch + elseIfBranch + elseBranch; - - ParseDocumentTest(document); - } - - [Fact] - public void StopsParsingCodeAfterElseBranch() - { - const string ifStatement = @"@if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""foo } bar""); -}"; - const string elseIfBranch = @" else if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""bar } baz""); -}"; - const string elseBranch = @" else { Debug.WriteLine(@""bar } baz""); }"; - const string document = ifStatement + elseIfBranch + elseBranch + elseIfBranch; - - ParseDocumentTest(document); - } - - [Fact] - public void StopsParsingIfIfStatementNotFollowedByElse() - { - const string document = @"@if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""foo } bar""); -}"; - - ParseDocumentTest(document); - } - - [Fact] - public void AcceptsElseIfWithNoCondition() - { - // We don't want to be a full C# parser - If the else if is missing it's condition, the C# compiler - // can handle that, we have all the info we need to keep parsing - const string ifBranch = @"@if(int i = 0; i < 10; new Foo { Bar = ""baz"" }) { - Debug.WriteLine(@""foo } bar""); -}"; - const string elseIfBranch = @" else if { foo(); }"; - const string document = ifBranch + elseIfBranch; - - ParseDocumentTest(document); - } - - [Fact] - public void CorrectlyParsesDoWhileBlock() - { - ParseDocumentTest( - "@do { var foo = bar; } while(foo != bar);"); - } - - [Fact] - public void CorrectlyParsesDoWhileBlockMissingSemicolon() - { - ParseDocumentTest("@do { var foo = bar; } while(foo != bar)"); - } - - [Fact] - public void CorrectlyParsesDoWhileBlockMissingWhileCondition() - { - ParseDocumentTest("@do { var foo = bar; } while"); - } - - [Fact] - public void CorrectlyParsesDoWhileBlockMissingWhileConditionWithSemicolon() - { - ParseDocumentTest( - "@do { var foo = bar; } while;"); - } - - [Fact] - public void CorrectlyParsesDoWhileBlockMissingWhileClauseEntirely() - { - ParseDocumentTest("@do { var foo = bar; } narf;"); - } - - [Fact] - public void SupportsBlockCommentBetweenDoAndWhileClause() - { - ParseDocumentTest( - "@do { var foo = bar; } /* Foo */ /* Bar */ while(true);"); - } - - [Fact] - public void SupportsLineCommentBetweenDoAndWhileClause() - { - ParseDocumentTest(@"@do { var foo = bar; } -// Foo -// Bar -while(true);"); - } - - [Fact] - public void SupportsRazorCommentBetweenDoAndWhileClause() - { - RunRazorCommentBetweenClausesTest( - "@do { var foo = bar; } ", " while(true);"); - } - - [Fact] - public void CorrectlyParsesMarkupInDoWhileBlock() - { - ParseDocumentTest("@do { var foo = bar;

    Foo

    foo++; } while (foo);"); - } - - [Fact] - public void SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsSwitchKeyword - ParseDocumentTest(@"@switch(foo) { - case 0: - break; - case 1: - { - break; - } - case 2: - return; - default: - return; -}"); - } - - [Fact] - public void ThenBalancesBracesIfFirstIdentifierIsLockKeyword() - { - // ParseBlockSkipsParenthesisedExpressionAndThenBalancesBracesIfFirstIdentifierIsLockKeyword - ParseDocumentTest( - "@lock(foo) { Debug.WriteLine(@\"foo } bar\"); }"); - } - - [Fact] - public void HasErrorsIfNamespaceImportMissingSemicolon() - { - ParseDocumentTest( - "@using Foo.Bar.Baz"); - } - - [Fact] - public void HasErrorsIfNamespaceAliasMissingSemicolon() - { - ParseDocumentTest( - "@using Foo.Bar.Baz = FooBarBaz"); - } - - [Fact] - public void ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat() - { - ParseDocumentTest( - "@using Foo.Bar.Baz;"); - } - - [Fact] - public void DoesntCaptureWhitespaceAfterUsing() - { - ParseDocumentTest("@using Foo "); - } - - [Fact] - public void CapturesNewlineAfterUsing() - { - ParseDocumentTest($"@using Foo{Environment.NewLine}"); - } - - [Fact] - public void ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat() - { - ParseDocumentTest( - "@using FooBarBaz = FooBarBaz;"); - } - - [Fact] - public void TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock() - { - ParseDocumentTest("@using "); - } - - [Fact] - public void TerminatesSingleLineCommentAtEndOfFile() - { - const string document = "@foreach(var f in Foo) { // foo bar baz"; - ParseDocumentTest(document); - } - - [Fact] - public void TerminatesBlockCommentAtEndOfFile() - { - const string document = "@foreach(var f in Foo) { /* foo bar baz"; - ParseDocumentTest(document); - } - - [Fact] - public void TerminatesSingleSlashAtEndOfFile() - { - const string document = "@foreach(var f in Foo) { / foo bar baz"; - ParseDocumentTest(document); - } - - [Fact] - public void SupportsBlockCommentBetweenTryAndFinallyClause() - { - ParseDocumentTest("@try { bar(); } /* Foo */ /* Bar */ finally { baz(); }"); - } - - [Fact] - public void SupportsRazorCommentBetweenTryAndFinallyClause() - { - RunRazorCommentBetweenClausesTest("@try { bar(); } ", " finally { biz(); }"); - } - - [Fact] - public void SupportsBlockCommentBetweenCatchAndFinallyClause() - { - ParseDocumentTest( - "@try { bar(); } catch(bar) { baz(); } /* Foo */ /* Bar */ finally { biz(); }"); - } - - [Fact] - public void SupportsRazorCommentBetweenCatchAndFinallyClause() - { - RunRazorCommentBetweenClausesTest( - "@try { bar(); } catch(bar) { baz(); } ", " finally { biz(); }"); - } - - [Fact] - public void SupportsBlockCommentBetweenTryAndCatchClause() - { - ParseDocumentTest("@try { bar(); } /* Foo */ /* Bar */ catch(bar) { baz(); }"); - } - - [Fact] - public void SupportsRazorCommentBetweenTryAndCatchClause() - { - RunRazorCommentBetweenClausesTest("@try { bar(); }", " catch(bar) { baz(); }"); - } - - [Fact] - public void SupportsLineCommentBetweenTryAndFinallyClause() - { - ParseDocumentTest(@"@try { bar(); } -// Foo -// Bar -finally { baz(); }"); - } - - [Fact] - public void SupportsLineCommentBetweenCatchAndFinallyClause() - { - ParseDocumentTest(@"@try { bar(); } catch(bar) { baz(); } -// Foo -// Bar -finally { biz(); }"); - } - - [Fact] - public void SupportsLineCommentBetweenTryAndCatchClause() - { - ParseDocumentTest(@"@try { bar(); } -// Foo -// Bar -catch(bar) { baz(); }"); - } - - [Fact] - public void SupportsTryStatementWithNoAdditionalClauses() - { - ParseDocumentTest("@try { var foo = new { } }"); - } - - [Fact] - public void SupportsMarkupWithinTryClause() - { - RunSimpleWrappedMarkupTest( - prefix: "@try {", - markup: "

    Foo

    ", - suffix: "}"); - } - - [Fact] - public void SupportsTryStatementWithOneCatchClause() - { - ParseDocumentTest("@try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } }"); - } - - [Fact] - public void SupportsMarkupWithinCatchClause() - { - RunSimpleWrappedMarkupTest( - prefix: "@try { var foo = new { } } catch(Foo Bar Baz) {", - markup: "

    Foo

    ", - suffix: "}"); - } - - [Fact] - public void SupportsTryStatementWithMultipleCatchClause() - { - ParseDocumentTest( - "@try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) " + - "{ var foo = new { } } catch(Foo Bar Baz) { var foo = new { } }"); - } - - [Fact] - public void SupportsExceptionLessCatchClauses() - { - ParseDocumentTest("@try { var foo = new { } } catch { var foo = new { } }"); - } - - [Fact] - public void SupportsMarkupWithinAdditionalCatchClauses() - { - RunSimpleWrappedMarkupTest( - prefix: "@try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) " + - "{ var foo = new { } } catch(Foo Bar Baz) {", - markup: "

    Foo

    ", - suffix: "}"); - } - - [Fact] - public void SupportsTryStatementWithFinallyClause() - { - ParseDocumentTest("@try { var foo = new { } } finally { var foo = new { } }"); - } - - [Fact] - public void SupportsMarkupWithinFinallyClause() - { - RunSimpleWrappedMarkupTest( - prefix: "@try { var foo = new { } } finally {", - markup: "

    Foo

    ", - suffix: "}"); - } - - [Fact] - public void StopsParsingCatchClausesAfterFinallyBlock() - { - var content = "@try { var foo = new { } } finally { var foo = new { } }"; - ParseDocumentTest(content + " catch(Foo Bar Baz) { }"); - } - - [Fact] - public void DoesNotAllowMultipleFinallyBlocks() - { - var content = "@try { var foo = new { } } finally { var foo = new { } }"; - ParseDocumentTest(content + " finally { }"); - } - - [Fact] - public void AcceptsTrailingDotIntoImplicitExpressionWhenEmbeddedInCode() - { - // Arrange - ParseDocumentTest("@if(foo) { @foo. }"); - } - - [Fact] - public void ParsesExpressionOnSwitchCharacterFollowedByOpenParen() - { - // Arrange - ParseDocumentTest("@if(foo) { @(foo + bar) }"); - } - - [Fact] - public void ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart() - { - // Arrange - ParseDocumentTest("@if(foo) { @foo[4].bar() }"); - } - - [Fact] - public void TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart() - { - // Arrange - ParseDocumentTest("@if(foo) { @@class.Foo() }"); - } - - [Fact] - public void TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement() - { - // Arrange - ParseDocumentTest("@if(foo) { @@@@class.Foo() }"); - } - - [Fact] - public void DoesNotParseOnSwitchCharacterNotFollowedByOpenAngleOrColon() - { - // ParseBlockDoesNotParseMarkupStatementOrExpressionOnSwitchCharacterNotFollowedByOpenAngleOrColon - // Arrange - ParseDocumentTest("@if(foo) { @\"Foo\".ToString(); }"); - } - - [Fact] - public void ParsersCanNestRecursively() - { - // Arrange - ParseDocumentTest("@foreach(var c in db.Categories) {" + Environment.NewLine - + "
    " + Environment.NewLine - + "

    @c.Name

    " + Environment.NewLine - + "
      " + Environment.NewLine - + " @foreach(var p in c.Products) {" + Environment.NewLine - + "
    • @p.Name
    • " + Environment.NewLine - + " }" + Environment.NewLine - + "
    " + Environment.NewLine - + "
    " + Environment.NewLine - + " }"); - } - - [Fact] - public void WithDoubleTransitionInAttributeValue_DoesNotThrow() - { - var input = "@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow() - { - var input = "@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow() - { - var input = "@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransitionBetweenAttributeValue_DoesNotThrow() - { - var input = "@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransitionWithExpressionBlock_DoesNotThrow() - { - var input = "@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransitionInEmail_DoesNotThrow() - { - var input = "@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransitionInRegex_DoesNotThrow() - { - var input = @"@{}"; - ParseDocumentTest(input); - } - - [Fact] - public void WithDoubleTransition_EndOfFile_Throws() - { - ParseDocumentTest("@{}"); - } - - private void RunRazorCommentBetweenClausesTest(string preComment, string postComment, AcceptedCharactersInternal acceptedCharacters = AcceptedCharactersInternal.Any) - { - ParseDocumentTest(preComment + "@* Foo *@ @* Bar *@" + postComment); - } - - private void RunSimpleWrappedMarkupTest(string prefix, string markup, string suffix) - { - ParseDocumentTest(prefix + markup + suffix); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpCodeParserTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpCodeParserTest.cs deleted file mode 100644 index 250eff4f407..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpCodeParserTest.cs +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Test.Legacy -{ - public class CSharpCodeParserTest - { - public static TheoryData InvalidTagHelperPrefixData - { - get - { - var directiveLocation = new SourceLocation(1, 2, 3); - - RazorDiagnostic InvalidPrefixError(int length, char character, string prefix) - { - return RazorDiagnosticFactory.CreateParsing_InvalidTagHelperPrefixValue( - new SourceSpan(directiveLocation, length), SyntaxConstants.CSharp.TagHelperPrefixKeyword, character, prefix); - } - - return new TheoryData> - { - { - "th ", - directiveLocation, - new[] - { - InvalidPrefixError(3, ' ', "th "), - } - }, - { - "th\t", - directiveLocation, - new[] - { - InvalidPrefixError(3, '\t', "th\t"), - } - }, - { - "th" + Environment.NewLine, - directiveLocation, - new[] - { - InvalidPrefixError(2 + Environment.NewLine.Length, Environment.NewLine[0], "th" + Environment.NewLine), - } - }, - { - " th ", - directiveLocation, - new[] - { - InvalidPrefixError(4, ' ', " th "), - } - }, - { - "@", - directiveLocation, - new[] - { - InvalidPrefixError(1, '@', "@"), - } - }, - { - "t@h", - directiveLocation, - new[] - { - InvalidPrefixError(3, '@', "t@h"), - } - }, - { - "!", - directiveLocation, - new[] - { - InvalidPrefixError(1, '!', "!"), - } - }, - { - "!th", - directiveLocation, - new[] - { - InvalidPrefixError(3, '!', "!th"), - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(InvalidTagHelperPrefixData))] - public void ValidateTagHelperPrefix_ValidatesPrefix( - string directiveText, - SourceLocation directiveLocation, - object expectedErrors) - { - // Arrange - var expectedDiagnostics = (IEnumerable)expectedErrors; - var source = TestRazorSourceDocument.Create(); - var options = RazorParserOptions.CreateDefault(); - var context = new ParserContext(source, options); - - var parser = new CSharpCodeParser(context); - var diagnostics = new List(); - - // Act - parser.ValidateTagHelperPrefix(directiveText, directiveLocation, diagnostics); - - // Assert - Assert.Equal(expectedDiagnostics, diagnostics); - } - - [Theory] - [InlineData("foo,assemblyName", 4)] - [InlineData("foo, assemblyName", 5)] - [InlineData(" foo, assemblyName", 8)] - [InlineData(" foo , assemblyName", 11)] - [InlineData("foo, assemblyName", 8)] - [InlineData(" foo , assemblyName ", 14)] - public void ParseAddOrRemoveDirective_CalculatesAssemblyLocationInLookupText(string text, int assemblyLocation) - { - // Arrange - var source = TestRazorSourceDocument.Create(); - var options = RazorParserOptions.CreateDefault(); - var context = new ParserContext(source, options); - - var parser = new CSharpCodeParser(context); - - var directive = new CSharpCodeParser.ParsedDirective() - { - DirectiveText = text, - }; - - var diagnostics = new List(); - var expected = new SourceLocation(assemblyLocation, 0, assemblyLocation); - - // Act - var result = parser.ParseAddOrRemoveDirective(directive, SourceLocation.Zero, diagnostics); - - // Assert - Assert.Empty(diagnostics); - Assert.Equal("foo", result.TypePattern); - Assert.Equal("assemblyName", result.AssemblyName); - } - - [Theory] - [InlineData("", 1)] - [InlineData("*,", 2)] - [InlineData("?,", 2)] - [InlineData(",", 1)] - [InlineData(",,,", 3)] - [InlineData("First, ", 7)] - [InlineData("First , ", 8)] - [InlineData(" ,Second", 8)] - [InlineData(" , Second", 9)] - [InlineData("SomeType,", 9)] - [InlineData("SomeAssembly", 12)] - [InlineData("First,Second,Third", 18)] - public void ParseAddOrRemoveDirective_CreatesErrorIfInvalidLookupText_DoesNotThrow(string directiveText, int errorLength) - { - // Arrange - var source = TestRazorSourceDocument.Create(); - var options = RazorParserOptions.CreateDefault(); - var context = new ParserContext(source, options); - - var parser = new CSharpCodeParser(context); - - var directive = new CSharpCodeParser.ParsedDirective() - { - DirectiveText = directiveText - }; - - var diagnostics = new List(); - var expectedError = RazorDiagnosticFactory.CreateParsing_InvalidTagHelperLookupText( - new SourceSpan(new SourceLocation(1, 2, 3), errorLength), directiveText); - - // Act - var result = parser.ParseAddOrRemoveDirective(directive, new SourceLocation(1, 2, 3), diagnostics); - - // Assert - Assert.Same(directive, result); - - var error = Assert.Single(diagnostics); - Assert.Equal(expectedError, error); - } - - [Fact] - public void TagHelperPrefixDirective_DuplicatesCauseError() - { - // Arrange - var expectedDiagnostic = RazorDiagnosticFactory.CreateParsing_DuplicateDirective( - new SourceSpan(null, 22 + Environment.NewLine.Length, 1, 0, 16), "tagHelperPrefix"); - var source = TestRazorSourceDocument.Create( - @"@tagHelperPrefix ""th:"" -@tagHelperPrefix ""th""", - filePath: null); - - // Act - var document = RazorSyntaxTree.Parse(source); - - // Assert - var erroredNode = document.Root.DescendantNodes().Last(n => n.GetSpanContext()?.ChunkGenerator is TagHelperPrefixDirectiveChunkGenerator); - var chunkGenerator = Assert.IsType(erroredNode.GetSpanContext().ChunkGenerator); - var diagnostic = Assert.Single(chunkGenerator.Diagnostics); - Assert.Equal(expectedDiagnostic, diagnostic); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpErrorTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpErrorTest.cs deleted file mode 100644 index bc3284ee23a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpErrorTest.cs +++ /dev/null @@ -1,345 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpErrorTest : ParserTestBase - { - [Fact] - public void HandlesQuotesAfterTransition() - { - ParseDocumentTest("@\""); - } - - [Fact] - public void WithHelperDirectiveProducesError() - { - ParseDocumentTest("@helper fooHelper { }"); - } - - [Fact] - public void WithNestedCodeBlockProducesError() - { - ParseDocumentTest("@if { @{} }"); - } - - [Fact] - public void CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode() - { - // ParseBlockCapturesWhitespaceToEndOfLineInInvalidUsingStatementAndTreatsAsFileCode - ParseDocumentTest( - "@using " + Environment.NewLine + Environment.NewLine); - } - - [Fact] - public void MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace() - { - ParseDocumentTest("@{"); - } - - [Fact] - public void MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void MethodProducesErrorIfNewlineFollowsTransition() - { - ParseDocumentTest("@" + Environment.NewLine); - } - - [Fact] - public void MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr() - { - // ParseBlockMethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpression - ParseDocumentTest("@{" + Environment.NewLine - + " @ {}" + Environment.NewLine - + "}"); - } - - [Fact] - public void MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression() - { - ParseDocumentTest("@{" + Environment.NewLine - + " @"); - } - - [Fact] - public void MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace() - { - ParseDocumentTest("@!!!"); - } - - [Fact] - public void ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed() - { - // ParseBlockShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExpressionUnclosed - ParseDocumentTest("@(foo bar" + Environment.NewLine - + "baz"); - } - - [Fact] - public void ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed() - { - // ParseBlockShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExpressionUnclosed - ParseDocumentTest("@(foo bar" + Environment.NewLine - + "" + Environment.NewLine - + "baz" + Environment.NewLine - + "@Html.Foo(Bar);" + Environment.NewLine); - } - - [Fact] - // Test for fix to Dev10 884975 - Incorrect Error Messaging - public void ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed() - { - // ParseBlockShouldReportErrorAndTerminateAtEOFIfParenInImplicitExpressionUnclosed - ParseDocumentTest("@Foo(Bar(Baz)" + Environment.NewLine - + "Biz" + Environment.NewLine - + "Boz"); - } - - [Fact] - // Test for fix to Dev10 884975 - Incorrect Error Messaging - public void ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed() - { - // ParseBlockShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed - ParseDocumentTest("@Foo(Bar(Baz)" + Environment.NewLine - + "Biz" + Environment.NewLine - + "" + Environment.NewLine - + "Boz" + Environment.NewLine - + ""); - } - - [Fact] - // Test for fix to Dev10 884975 - Incorrect Error Messaging - public void ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed() - { - // ParseBlockShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed - ParseDocumentTest("@Foo[Bar[Baz]" + Environment.NewLine - + "Biz" + Environment.NewLine - + "Boz"); - } - - [Fact] - // Test for fix to Dev10 884975 - Incorrect Error Messaging - public void ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed() - { - // ParseBlockShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExpressionUnclosed - ParseDocumentTest("@Foo[Bar[Baz]" + Environment.NewLine - + "Biz" + Environment.NewLine - + "" + Environment.NewLine - + "Boz" + Environment.NewLine - + ""); - } - - // Simple EOF handling errors: - [Fact] - public void ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF() - { - ParseDocumentTest("@{ var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfClassBlockUnterminatedAtEOF() - { - ParseDocumentTest( - "@functions { var foo = bar; if(foo != null) { bar(); } ", - new[] { FunctionsDirective.Directive }); - } - - [Fact] - public void ReportsErrorIfIfBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@if"); - } - - [Fact] - public void ReportsErrorIfElseBlockUnterminatedAtEOF() - { - ParseDocumentTest("@if(foo) { baz(); } else { var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfElseIfBlockUnterminatedAtEOF() - { - ParseDocumentTest("@if(foo) { baz(); } else if { var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfDoBlockUnterminatedAtEOF() - { - ParseDocumentTest("@do { var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfTryBlockUnterminatedAtEOF() - { - ParseDocumentTest("@try { var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfCatchBlockUnterminatedAtEOF() - { - ParseDocumentTest("@try { baz(); } catch(Foo) { var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfFinallyBlockUnterminatedAtEOF() - { - ParseDocumentTest("@try { baz(); } finally { var foo = bar; if(foo != null) { bar(); } "); - } - - [Fact] - public void ReportsErrorIfForBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@for"); - } - - [Fact] - public void ReportsErrorIfForeachBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@foreach"); - } - - [Fact] - public void ReportsErrorIfWhileBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@while"); - } - - [Fact] - public void ReportsErrorIfSwitchBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@switch"); - } - - [Fact] - public void ReportsErrorIfLockBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@lock"); - } - - [Fact] - public void ReportsErrorIfUsingBlockUnterminatedAtEOF() - { - RunUnterminatedSimpleKeywordBlock("@using"); - } - - [Fact] - public void RequiresControlFlowStatementsToHaveBraces() - { - ParseDocumentTest("@if(foo)

    Bar

    else if(bar)

    Baz

    else

    Boz

    "); - } - - [Fact] - public void IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError() - { - ParseDocumentTest("@if(foo)) { var bar = foo; }"); - } - - [Fact] - public void OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart() - { - ParseDocumentTest("@if(foo) { @

    Bar

    }"); - } - - [Fact] - public void TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen() - { - ParseDocumentTest("@if(foo bar" + Environment.NewLine - + "baz"); - } - - [Fact] - public void TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen() - { - ParseDocumentTest("@foreach(foo bar" + Environment.NewLine - + "baz"); - } - - [Fact] - public void TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen() - { - ParseDocumentTest("@do { } while(foo bar" + Environment.NewLine - + "baz"); - } - - [Fact] - public void TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen() - { - ParseDocumentTest("@using(foo bar" + Environment.NewLine - + "baz"); - } - - [Fact] - public void ResumesIfStatementAfterOpenParen() - { - ParseDocumentTest("@if(" + Environment.NewLine - + "else {

    Foo

    }"); - } - - [Fact] - public void TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing() - { - ParseDocumentTest("@if(foo) {" + Environment.NewLine - + " var p = \"foo bar baz" + Environment.NewLine - + ";" + Environment.NewLine - + "}"); - } - - [Fact] - public void TerminatesNormalStringAtEndOfFile() - { - ParseDocumentTest("@if(foo) { var foo = \"blah blah blah blah blah"); - } - - [Fact] - public void TerminatesVerbatimStringAtEndOfFile() - { - ParseDocumentTest("@if(foo) { var foo = @\"blah " + Environment.NewLine - + "blah; " + Environment.NewLine - + "

    Foo

    " + Environment.NewLine - + "blah " + Environment.NewLine - + "blah"); - } - - [Fact] - public void CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement() - { - ParseDocumentTest("@if(foo) {" + Environment.NewLine - + " var foo = \"foo bar baz" + Environment.NewLine - + "

    Foo is @foo

    " + Environment.NewLine - + "}"); - } - - [Fact] - public void CorrectlyParsesAtSignInDelimitedBlock() - { - ParseDocumentTest("@(Request[\"description\"] ?? @photo.Description)"); - } - - [Fact] - public void CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode() - { - ParseDocumentTest("@{string.Format(}"); - } - - private void RunUnterminatedSimpleKeywordBlock(string keyword) - { - ParseDocumentTest( - keyword + " (foo) { var foo = bar; if(foo != null) { bar(); } "); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpExplicitExpressionTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpExplicitExpressionTest.cs deleted file mode 100644 index fdb782cf690..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpExplicitExpressionTest.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpExplicitExpressionTest : ParserTestBase - { - [Fact] - public void ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty() - { - ParseDocumentTest("@()"); - } - - [Fact] - public void ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr() - { - // ParseBlockShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpression - ParseDocumentTest("@("); - } - - [Fact] - public void ShouldAcceptEscapedQuoteInNonVerbatimStrings() - { - ParseDocumentTest("@(\"\\\"\")"); - } - - [Fact] - public void ShouldAcceptEscapedQuoteInVerbatimStrings() - { - ParseDocumentTest("@(@\"\"\"\")"); - } - - [Fact] - public void ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings() - { - ParseDocumentTest("@(@\"\"\"\"\"\")"); - } - - [Fact] - public void ShouldAcceptMultiLineVerbatimStrings() - { - ParseDocumentTest(@"@(@""" + Environment.NewLine - + @"Foo" + Environment.NewLine - + @"Bar" + Environment.NewLine - + @"Baz" + Environment.NewLine - + @""")"); - } - - [Fact] - public void ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings() - { - ParseDocumentTest("@(\"\\\"hello, world\\\"\")"); - } - - [Fact] - public void ShouldAcceptMultipleEscapedQuotesInVerbatimStrings() - { - ParseDocumentTest("@(@\"\"\"hello, world\"\"\")"); - } - - [Fact] - public void ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings() - { - ParseDocumentTest("@(\"\\\"\\\"\")"); - } - - [Fact] - public void ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings() - { - ParseDocumentTest("@(@\"\"\"\"\"\")"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpFunctionsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpFunctionsTest.cs deleted file mode 100644 index f50d91b2950..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpFunctionsTest.cs +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpFunctionsTest : ParserTestBase - { - [Fact] - public void Functions_SingleLineControlFlowStatement_Error() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - string GetAnnouncmentText(string message) - { - if (message.Length > 0)

    Message: @message

    - - if (message == null) - // Nothing to render -

    Message was null

    - - if (DateTime.Now.ToBinary() % 2 == 0) - @:

    The time: @time

    - - if (message != null) @@SomeGitHubUserName @message - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void Functions_SingleLineControlFlowStatement() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - string GetAnnouncmentText(string message) - { - if (message.Length > 0) return ""Anouncement: "" + message; - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void MarkupInFunctionsBlock_DoesNotParseWhenNotSupported() - { - ParseDocumentTest( - RazorLanguageVersion.Version_2_1, - @" -@functions { - void Announcment(string message) - { -

    @message

    - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void MarkupInFunctionsBlock_ParsesMarkupInsideMethod() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - void Announcment(string message) - { -

    @message

    - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - // This will parse correctly in Razor, but will generate invalid C#. - [Fact] - public void MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - void Announcment(string message) =>

    @message

    -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void MarkupInFunctionsBlock_DoesNotParseMarkupInString() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - void Announcment(string message) => ""

    @message

    ""; -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - void Announcment(string message) => @""

    @message

    ""; -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void MarkupInFunctionsBlock_CanContainCurlyBraces() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - void Announcment(string message) - { -
    - @if (message.Length > 0) - { -

    @message.Length

    - } -
    - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void MarkupInFunctionsBlock_MarkupCanContainTemplate() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - void Announcment(string message) - { -
    - @if (message.Length > 0) - { - Repeat(@

    @message.Length

    ); - } -
    - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - - [Fact] - public void ReservedKeywordsInFunctionsBlock_WithMarkup() - { - ParseDocumentTest( - RazorLanguageVersion.Version_3_0, - @" -@functions { - class Person - { - public void DoSomething() - { -

    Just do it!

    - } - } -} -", new[] { FunctionsDirective.Directive, }, designTime: false); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpImplicitExpressionTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpImplicitExpressionTest.cs deleted file mode 100644 index 4fdcc42df01..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpImplicitExpressionTest.cs +++ /dev/null @@ -1,564 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpImplicitExpressionTest : ParserTestBase - { - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket1() - { - // Act & Assert - ParseDocumentTest("@val??["); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket2() - { - // Act & Assert - ParseDocumentTest("@val??[0"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket3() - { - // Act & Assert - ParseDocumentTest("@val?["); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket4() - { - // Act & Assert - ParseDocumentTest("@val?("); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket5() - { - // Act & Assert - ParseDocumentTest("@val?[more"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket6() - { - // Act & Assert - ParseDocumentTest("@val?[0]"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket7() - { - // Act & Assert - ParseDocumentTest("@val?[

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket8() - { - // Act & Assert - ParseDocumentTest("@val?[more.

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket9() - { - // Act & Assert - ParseDocumentTest("@val??[more

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket10() - { - // Act & Assert - ParseDocumentTest("@val?[-1]?"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket11() - { - // Act & Assert - ParseDocumentTest("@val?[abc]?[def"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket12() - { - // Act & Assert - ParseDocumentTest("@val?[abc]?[2]"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket13() - { - // Act & Assert - ParseDocumentTest("@val?[abc]?.more?[def]"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket14() - { - // Act & Assert - ParseDocumentTest("@val?[abc]?.more?.abc"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket15() - { - // Act & Assert - ParseDocumentTest("@val?[null ?? true]"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Bracket16() - { - // Act & Assert - ParseDocumentTest("@val?[abc?.gef?[-1]]"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot1() - { - // Act & Assert - ParseDocumentTest("@val?"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot2() - { - // Act & Assert - ParseDocumentTest("@val??"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot3() - { - // Act & Assert - ParseDocumentTest("@val??more"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot4() - { - // Act & Assert - ParseDocumentTest("@val?!"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot5() - { - // Act & Assert - ParseDocumentTest("@val?."); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot6() - { - // Act & Assert - ParseDocumentTest("@val??."); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot7() - { - // Act & Assert - ParseDocumentTest("@val?.(abc)"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot8() - { - // Act & Assert - ParseDocumentTest("@val?.

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot9() - { - // Act & Assert - ParseDocumentTest("@val?.more"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot10() - { - // Act & Assert - ParseDocumentTest("@val?.more

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot11() - { - // Act & Assert - ParseDocumentTest("@val??.more

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot12() - { - // Act & Assert - ParseDocumentTest("@val?.more(false)?.

    "); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot13() - { - // Act & Assert - ParseDocumentTest("@val?.more(false)?.abc"); - } - - [Fact] - public void ParsesNullConditionalOperatorImplicitExpression_Dot14() - { - // Act & Assert - ParseDocumentTest("@val?.more(null ?? true)?.abc"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock() - { - // Act & Assert - ParseDocumentTest("@{ @val!.Name![0]!?.Bar }"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock() - { - // Act & Assert - ParseDocumentTest("@functions { public void Foo() { @Model!.Name![0]!?.Bar } }", new[] { FunctionsDirective.Directive }); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket() - { - // Act & Assert - ParseDocumentTest("@val!!["); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket() - { - // Act & Assert - ParseDocumentTest("@val!["); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis() - { - // Act & Assert - ParseDocumentTest("@val!("); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier() - { - // Act & Assert - ParseDocumentTest("@val![more"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Brackets() - { - // Act & Assert - ParseDocumentTest("@val![0]"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml() - { - // Act & Assert - ParseDocumentTest("@val![

    "); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket() - { - // Act & Assert - ParseDocumentTest("@val![more.

    "); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional() - { - // Act & Assert - ParseDocumentTest("@val?![more

    "); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_SingleOperator() - { - // Act & Assert - ParseDocumentTest("@val![-1]!"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete() - { - // Act & Assert - ParseDocumentTest("@val![abc]![def"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Multiple() - { - // Act & Assert - ParseDocumentTest("@val![abc]![2]"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed() - { - // Act & Assert - ParseDocumentTest("@val![abc]!.more![def]"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2() - { - // Act & Assert - ParseDocumentTest("@val![abc]!.more!.abc"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Bracket15() - { - // Act & Assert - ParseDocumentTest("@val![null! ?? true]"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Nested() - { - // Act & Assert - ParseDocumentTest("@val![abc!.gef![-1]]"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Ending() - { - // Act & Assert - ParseDocumentTest("@val!"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional() - { - // Act & Assert - ParseDocumentTest("@val!?"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Combined() - { - // Act & Assert - ParseDocumentTest("@val!?.more"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator() - { - // Act & Assert - ParseDocumentTest("@val!."); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding() - { - // Act & Assert - ParseDocumentTest("@val!?."); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding() - { - // Act & Assert - ParseDocumentTest("@val!.(abc)"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml() - { - // Act & Assert - ParseDocumentTest("@val!.

    "); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_FullExpression() - { - // Act & Assert - ParseDocumentTest("@val!.more"); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml() - { - // Act & Assert - ParseDocumentTest("@val!.more

    "); - } - - [Fact] - public void ParsesNullForgivenessOperatorImplicitExpression_Complex() - { - // Act & Assert - ParseDocumentTest("@val!.more(false)!.

    "); - } - - [Fact] - public void NestedImplicitExpression() - { - ParseDocumentTest("if (true) { @foo }"); - } - - [Fact] - public void AcceptsNonEnglishCharactersThatAreValidIdentifiers() - { - ParseDocumentTest("@हळूँजद॔."); - } - - [Fact] - public void OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition() - { - ParseDocumentTest("@/"); - } - - [Fact] - public void OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition() - { - ParseDocumentTest("@"); - } - - [Fact] - public void SupportsSlashesWithinComplexImplicitExpressions() - { - ParseDocumentTest("@DataGridColumn.Template(\"Years of Service\", e => (int)Math.Round((DateTime.Now - dt).TotalDays / 365))"); - } - - [Fact] - public void ParsesSingleIdentifierAsImplicitExpression() - { - ParseDocumentTest("@foo"); - } - - [Fact] - public void DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace() - { - ParseDocumentTest("@foo ;"); - } - - [Fact] - public void IgnoresSemicolonAtEndOfSimpleImplicitExpression() - { - ParseDocumentTest("@foo;"); - } - - [Fact] - public void ParsesDottedIdentifiersAsImplicitExpression() - { - ParseDocumentTest("@foo.bar.baz"); - } - - [Fact] - public void IgnoresSemicolonAtEndOfDottedIdentifiers() - { - ParseDocumentTest("@foo.bar.baz;"); - } - - [Fact] - public void DoesNotIncludeDotAtEOFInImplicitExpression() - { - ParseDocumentTest("@foo.bar."); - } - - [Fact] - public void DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1() - { - // ParseBlockMethodDoesNotIncludeDotFollowedByInvalidIdentifierCharacterInImplicitExpression1 - ParseDocumentTest("@foo.bar.0"); - } - - [Fact] - public void DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2() - { - // ParseBlockMethodDoesNotIncludeDotFollowedByInvalidIdentifierCharacterInImplicitExpression2 - ParseDocumentTest("@foo.bar.

    "); - } - - [Fact] - public void DoesNotIncludeSemicolonAfterDot() - { - ParseDocumentTest("@foo.bar.;"); - } - - [Fact] - public void TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr() - { - // ParseBlockMethodTerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpression - ParseDocumentTest("@foo.bar

    "); - } - - [Fact] - public void ProperlyParsesParenthesesAndBalancesThemInImplicitExpression() - { - ParseDocumentTest(@"@foo().bar(""bi\""z"", 4)(""chained method; call"").baz(@""bo""""z"", '\'', () => { return 4; }, (4+5+new { foo = bar[4] }))"); - } - - [Fact] - public void ProperlyParsesBracketsAndBalancesThemInImplicitExpression() - { - ParseDocumentTest(@"@foo.bar[4 * (8 + 7)][""fo\""o""].baz"); - } - - [Fact] - public void TerminatesImplicitExpressionAtHtmlEndTag() - { - ParseDocumentTest("@foo().bar.baz

    zoop"); - } - - [Fact] - public void TerminatesImplicitExpressionAtHtmlStartTag() - { - ParseDocumentTest("@foo().bar.baz

    zoop"); - } - - [Fact] - public void TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar() - { - // ParseBlockTerminatesImplicitExpressionBeforeDotIfDotNotFollowedByIdentifierStartCharacter - ParseDocumentTest("@foo().bar.baz.42"); - } - - [Fact] - public void StopsBalancingParenthesesAtEOF() - { - ParseDocumentTest("@foo(()"); - } - - [Fact] - public void TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace() - { - ParseDocumentTest("@foo.bar() (baz)"); - } - - [Fact] - public void TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace() - { - ParseDocumentTest("@foo .bar() (baz)"); - } - - [Fact] - public void TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace() - { - ParseDocumentTest("@foo. bar() (baz)"); - } - - [Fact] - public void OutputExpressionIfModuleTokenNotFollowedByBrace() - { - ParseDocumentTest("@module.foo()"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpLanguageCharacteristicsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpLanguageCharacteristicsTest.cs deleted file mode 100644 index 84802523b2f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpLanguageCharacteristicsTest.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpLanguageCharacteristicsTest - { - [Fact] - public void GetSample_RightShiftAssign_ReturnsCorrectToken() - { - // Arrange & Act - var token = CSharpLanguageCharacteristics.Instance.GetSample(SyntaxKind.RightShiftAssign); - - // Assert - Assert.Equal(">>=", token); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpNestedStatementsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpNestedStatementsTest.cs deleted file mode 100644 index 613cdca2a4a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpNestedStatementsTest.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpNestedStatementsTest : ParserTestBase - { - [Fact] - public void NestedSimpleStatement() - { - ParseDocumentTest("@while(true) { foo(); }"); - } - - [Fact] - public void NestedKeywordStatement() - { - ParseDocumentTest("@while(true) { for(int i = 0; i < 10; i++) { foo(); } }"); - } - - [Fact] - public void NestedCodeBlock() - { - ParseDocumentTest("@while(true) { { { { foo(); } } } }"); - } - - [Fact] - public void NestedImplicitExpression() - { - ParseDocumentTest("@while(true) { @foo }"); - } - - [Fact] - public void NestedExplicitExpression() - { - ParseDocumentTest("@while(true) { @(foo) }"); - } - - [Fact] - public void NestedMarkupBlock() - { - ParseDocumentTest("@while(true) {

    Hello

    }"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpRazorCommentsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpRazorCommentsTest.cs deleted file mode 100644 index 55d3edf1e20..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpRazorCommentsTest.cs +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpRazorCommentsTest : ParserTestBase - { - [Fact] - public void UnterminatedRazorComment() - { - ParseDocumentTest("@*"); - } - - [Fact] - public void EmptyRazorComment() - { - ParseDocumentTest("@**@"); - } - - [Fact] - public void RazorCommentInImplicitExpressionMethodCall() - { - ParseDocumentTest("@foo(" + Environment.NewLine - + "@**@" + Environment.NewLine); - } - - [Fact] - public void UnterminatedRazorCommentInImplicitExpressionMethodCall() - { - ParseDocumentTest("@foo(@*"); - } - - [Fact] - public void RazorMultilineCommentInBlock() - { - ParseDocumentTest(@" -@{ - @* -This is a comment - *@ -} -"); - } - - [Fact] - public void RazorCommentInVerbatimBlock() - { - ParseDocumentTest("@{" + Environment.NewLine - + " "); - } - - [Fact] - public void RazorCommentInClosingTagBlock() - { - ParseDocumentTest(""); - } - - [Fact] - public void UnterminatedRazorCommentInVerbatimBlock() - { - ParseDocumentTest("@{@*"); - } - - [Fact] - public void RazorCommentInMarkup() - { - ParseDocumentTest( - "

    " + Environment.NewLine - + "@**@" + Environment.NewLine - + "

    "); - } - - [Fact] - public void MultipleRazorCommentInMarkup() - { - ParseDocumentTest( - "

    " + Environment.NewLine - + " @**@ " + Environment.NewLine - + "@**@" + Environment.NewLine - + "

    "); - } - - [Fact] - public void MultipleRazorCommentsInSameLineInMarkup() - { - ParseDocumentTest( - "

    " + Environment.NewLine - + "@**@ @**@" + Environment.NewLine - + "

    "); - } - - [Fact] - public void RazorCommentsSurroundingMarkup() - { - ParseDocumentTest( - "

    " + Environment.NewLine - + "@* hello *@ content @* world *@" + Environment.NewLine - + "

    "); - } - - [Fact] - public void RazorCommentBetweenCodeBlockAndMarkup() - { - ParseDocumentTest( - "@{ }" + Environment.NewLine + - "@* Hello World *@" + Environment.NewLine + - "
    Foo
    " - ); - } - - [Fact] - public void RazorCommentWithExtraNewLineInMarkup() - { - ParseDocumentTest( - "

    " + Environment.NewLine + Environment.NewLine - + "@* content *@" + Environment.NewLine - + "@*" + Environment.NewLine - + "content" + Environment.NewLine - + "*@" + Environment.NewLine + Environment.NewLine - + "

    "); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpReservedWordsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpReservedWordsTest.cs deleted file mode 100644 index 91325241666..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpReservedWordsTest.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpReservedWordsTest : ParserTestBase - { - [Fact] - public void ReservedWord() - { - ParseDocumentTest("@namespace"); - } - - [Fact] - private void ReservedWordIsCaseSensitive() - { - ParseDocumentTest("@NameSpace"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpSectionTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpSectionTest.cs deleted file mode 100644 index 517dd4a83da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpSectionTest.cs +++ /dev/null @@ -1,290 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpSectionTest : ParserTestBase - { - [Fact] - public void CapturesNewlineImmediatelyFollowing() - { - ParseDocumentTest( - "@section" + Environment.NewLine, - new[] { SectionDirective.Directive }); - } - - [Fact] - public void CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace() - { - ParseDocumentTest( - "@section Foo " + Environment.NewLine + " ", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void CapturesWhitespaceToEndOfLineInSectionStatementMissingName() - { - ParseDocumentTest( - "@section " + Environment.NewLine + " ", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void IgnoresSectionUnlessAllLowerCase() - { - ParseDocumentTest( - "@Section foo", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar() - { - // ParseSectionBlockReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartCharacter - ParseDocumentTest( - "@section 9 {

    Foo

    }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace() - { - // ParseSectionBlockReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace - ParseDocumentTest( - "@section foo-bar {

    Foo

    }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ParserOutputsErrorOnNestedSections() - { - ParseDocumentTest( - "@section foo { @section bar {

    Foo

    } }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ParserOutputsErrorOnMultipleNestedSections() - { - ParseDocumentTest( - "@section foo { @section bar {

    Foo

    @section baz { } } }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ParserDoesNotOutputErrorOtherNestedDirectives() - { - // This isn't a real scenario but we just want to verify we don't show misleading errors. - ParseDocumentTest( - "@section foo { @inherits Bar }", - new[] { SectionDirective.Directive, InheritsDirective.Directive }); - } - - [Fact] - public void HandlesEOFAfterOpenBrace() - { - ParseDocumentTest( - "@section foo {", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void HandlesEOFAfterOpenContent1() - { - - ParseDocumentTest( - "@section foo { ", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void HandlesEOFAfterOpenContent2() - { - - ParseDocumentTest( - "@section foo {\n", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void HandlesEOFAfterOpenContent3() - { - - ParseDocumentTest( - "@section foo {abc", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void HandlesEOFAfterOpenContent4() - { - - ParseDocumentTest( - "@section foo {\n abc", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void HandlesUnterminatedSection() - { - ParseDocumentTest( - "@section foo {

    Foo{}

    ", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void HandlesUnterminatedSectionWithNestedIf() - { - // Arrange - var newLine = Environment.NewLine; - var spaces = " "; - - // Act & Assert - ParseDocumentTest( - string.Format( - "@section Test{0}{{{0}{1}@if(true){0}{1}{{{0}{1}{1}

    Hello World

    {0}{1}}}", - newLine, - spaces), - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace() - { - // ParseSectionBlockReportsErrorAndAcceptsWhitespaceToEndOfLineIfSectionNotFollowedByOpenBrace - ParseDocumentTest( - "@section foo " + Environment.NewLine, - new[] { SectionDirective.Directive }); - } - - [Fact] - public void AcceptsOpenBraceMultipleLinesBelowSectionName() - { - ParseDocumentTest( - "@section foo " - + Environment.NewLine - + Environment.NewLine - + Environment.NewLine - + Environment.NewLine - + Environment.NewLine - + Environment.NewLine - + "{" + Environment.NewLine - + "

    Foo

    " + Environment.NewLine - + "}", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ParsesNamedSectionCorrectly() - { - ParseDocumentTest( - "@section foo {

    Foo

    }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void DoesNotRequireSpaceBetweenSectionNameAndOpenBrace() - { - ParseDocumentTest( - "@section foo{

    Foo

    }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void BalancesBraces() - { - ParseDocumentTest( - "@section foo { }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void AllowsBracesInCSharpExpression() - { - ParseDocumentTest( - "@section foo { I really want to render a close brace, so here I go: @(\"}\") }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock() - { - ParseDocumentTest( - "@section Foo {" + Environment.NewLine - + "@if(true) {" + Environment.NewLine - + "}" + Environment.NewLine - + "}", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace() - { - // SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlockNoWhitespace - ParseDocumentTest( - "@section Foo {" + Environment.NewLine - + "@if(true) {" + Environment.NewLine - + "}}", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup() - { - ParseDocumentTest( - "@section foo {something}", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ParsesComment() - { - ParseDocumentTest( - "@section s {}", - new[] { SectionDirective.Directive }); - } - - // This was a user reported bug (codeplex #710), the section parser wasn't handling - // comments. - [Fact] - public void ParsesCommentWithDelimiters() - { - ParseDocumentTest( - "@section s {}", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void CommentRecoversFromUnclosedTag() - { - ParseDocumentTest( - "@section s {" + Environment.NewLine + " \" '-->}", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void ParsesXmlProcessingInstruction() - { - ParseDocumentTest( - "@section s { }", - new[] { SectionDirective.Directive }); - } - - [Fact] - public void _WithDoubleTransition1() - { - ParseDocumentTest("@section s {}", new[] { SectionDirective.Directive }); - } - - [Fact] - public void _WithDoubleTransition2() - { - ParseDocumentTest("@section s {}", new[] { SectionDirective.Directive }); - } - - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpSpecialBlockTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpSpecialBlockTest.cs deleted file mode 100644 index d18b24759ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpSpecialBlockTest.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpSpecialBlockTest : ParserTestBase - { - [Fact] - public void NonKeywordStatementInCodeBlockIsHandledCorrectly() - { - ParseDocumentTest( -@"@{ - List photos = gallery.Photo.ToList(); -}"); - } - - [Fact] - public void BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode() - { - // ParseBlockBalancesBracesOutsideStringsIfFirstCharacterIsBraceAndReturnsSpanOfTypeCode - ParseDocumentTest("@{foo\"b}ar\" if(condition) { string.Format(\"{0}\"); } }"); - } - - [Fact] - public void BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr() - { - // ParseBlockBalancesParensOutsideStringsIfFirstCharacterIsParenAndReturnsSpanOfTypeExpression - ParseDocumentTest("@(foo\"b)ar\" if(condition) { string.Format(\"{0}\"); } )"); - } - - [Fact] - public void ParseBlockIgnoresSingleSlashAtStart() - { - ParseDocumentTest("@/ foo"); - } - - [Fact] - public void ParseBlockTerminatesSingleLineCommentAtEndOfLine() - { - ParseDocumentTest( -"@if(!false) {" + Environment.NewLine + -" // Foo" + Environment.NewLine + -"\t

    A real tag!

    " + Environment.NewLine + -"}"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpStatementTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpStatementTest.cs deleted file mode 100644 index a8da56d6a9c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpStatementTest.cs +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - // Basic Tests for C# Statements: - // * Basic case for each statement - // * Basic case for ALL clauses - - // This class DOES NOT contain - // * Error cases - // * Tests for various types of nested statements - // * Comment tests - - public class CSharpStatementTest : ParserTestBase - { - [Fact] - public void ForStatement() - { - ParseDocumentTest("@for(int i = 0; i++; i < length) { foo(); }"); - } - - [Fact] - public void ForEachStatement() - { - ParseDocumentTest("@foreach(var foo in bar) { foo(); }"); - } - - [Fact] - public void AwaitForEachStatement() - { - ParseDocumentTest("@await foreach(var foo in bar) { foo(); }"); - } - - [Fact] - public void MalformedAwaitForEachStatement() - { - ParseDocumentTest("@await foreach(var foo in bar { foo(); "); - } - - [Fact] - public void WhileStatement() - { - ParseDocumentTest("@while(true) { foo(); }"); - } - - [Fact] - public void SwitchStatement() - { - ParseDocumentTest("@switch(foo) { foo(); }"); - } - - [Fact] - public void LockStatement() - { - ParseDocumentTest("@lock(baz) { foo(); }"); - } - - [Fact] - public void IfStatement() - { - ParseDocumentTest("@if(true) { foo(); }"); - } - - [Fact] - public void ElseIfClause() - { - ParseDocumentTest("@if(true) { foo(); } else if(false) { foo(); } else if(!false) { foo(); }"); - } - - [Fact] - public void ElseClause() - { - ParseDocumentTest("@if(true) { foo(); } else { foo(); }"); - } - - [Fact] - public void TryStatement() - { - ParseDocumentTest("@try { foo(); }"); - } - - [Fact] - public void CatchClause() - { - ParseDocumentTest("@try { foo(); } catch(IOException ioex) { handleIO(); } catch(Exception ex) { handleOther(); }"); - } - - [Fact] - public void ExceptionFilter_TryCatchWhenComplete_SingleLine() - { - ParseDocumentTest("@try { someMethod(); } catch(Exception) when (true) { handleIO(); }"); - } - - [Fact] - public void ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine() - { - ParseDocumentTest("@try { A(); } catch(Exception) when (true) { B(); } finally { C(); }"); - } - - [Fact] - public void ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine() - { - ParseDocumentTest("@try { A(); } catch(Exception) when (true) { B(); } catch(IOException) when (false) { C(); }"); - } - - [Fact] - public void ExceptionFilter_MultiLine() - { - ParseDocumentTest( -@"@try -{ -A(); -} -catch(Exception) when (true) -{ -B(); -} -catch(IOException) when (false) -{ -C(); -}"); - } - - [Fact] - public void ExceptionFilter_NestedTryCatchWhen() - { - ParseDocumentTest("@{try { someMethod(); } catch(Exception) when (true) { handleIO(); }}"); - } - - [Fact] - public void ExceptionFilter_IncompleteTryCatchWhen() - { - ParseDocumentTest("@try { someMethod(); } catch(Exception) when"); - } - - [Fact] - public void ExceptionFilter_IncompleteTryWhen() - { - ParseDocumentTest("@try { someMethod(); } when"); - } - - [Fact] - public void ExceptionFilter_IncompleteTryCatchNoBodyWhen() - { - ParseDocumentTest("@try { someMethod(); } catch(Exception) when { anotherMethod(); }"); - } - - [Fact] - public void ExceptionFilter_IncompleteTryCatchWhenNoBodies() - { - ParseDocumentTest("@try { someMethod(); } catch(Exception) when (true)"); - } - - [Fact] - public void ExceptionFilterError_TryCatchWhen_InCompleteCondition() - { - ParseDocumentTest("@try { someMethod(); } catch(Exception) when ("); - } - - [Fact] - public void ExceptionFilterError_TryCatchWhen_InCompleteBody() - { - ParseDocumentTest("@try { someMethod(); } catch(Exception) when (true) {"); - } - - [Fact] - public void FinallyClause() - { - ParseDocumentTest("@try { foo(); } finally { Dispose(); }"); - } - - [Fact] - public void Using_VariableDeclaration_Simple() - { - ParseDocumentTest("@{ using var foo = someDisposable; }"); - } - - [Fact] - public void Using_VariableDeclaration_Complex() - { - ParseDocumentTest("@{ using Some.Disposable.TypeName foo = GetDisposable(() => { using var bar = otherDisposable; }); }"); - } - - [Fact] - public void StaticUsing_NoUsing() - { - ParseDocumentTest("@using static"); - } - - [Fact] - public void StaticUsing_SingleIdentifier() - { - ParseDocumentTest("@using static System"); - } - - [Fact] - public void StaticUsing_MultipleIdentifiers() - { - ParseDocumentTest("@using static System.Console"); - } - - [Fact] - public void StaticUsing_GlobalPrefix() - { - ParseDocumentTest("@using static global::System.Console"); - } - - [Fact] - public void StaticUsing_Complete_Spaced() - { - ParseDocumentTest("@using static global::System.Console "); - } - - [Fact] - public void UsingStatement() - { - ParseDocumentTest("@using(var foo = new Foo()) { foo.Bar(); }"); - } - - [Fact] - public void UsingTypeAlias() - { - ParseDocumentTest("@using StringDictionary = System.Collections.Generic.Dictionary"); - } - - [Fact] - public void UsingNamespaceImport() - { - ParseDocumentTest("@using System.Text.Encoding.ASCIIEncoding"); - } - - [Fact] - public void DoStatement() - { - ParseDocumentTest("@do { foo(); } while(true);"); - } - - [Fact] - public void NonBlockKeywordTreatedAsImplicitExpression() - { - ParseDocumentTest("@is foo"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTemplateTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTemplateTest.cs deleted file mode 100644 index 55a2695afa5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTemplateTest.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpTemplateTest : ParserTestBase - { - [Fact] - public void HandlesSingleLineTemplate() - { - ParseDocumentTest("@{ var foo = @: bar" + Environment.NewLine + "; }"); - } - - [Fact] - public void HandlesSingleLineImmediatelyFollowingStatementChar() - { - ParseDocumentTest("@{i@: bar" + Environment.NewLine + "}"); - } - - [Fact] - public void HandlesSimpleTemplateInExplicitExpressionParens() - { - ParseDocumentTest("@(Html.Repeat(10, @

    Foo #@item

    ))"); - } - - [Fact] - public void HandlesSimpleTemplateInImplicitExpressionParens() - { - ParseDocumentTest("@Html.Repeat(10, @

    Foo #@item

    )"); - } - - [Fact] - public void HandlesTwoTemplatesInImplicitExpressionParens() - { - ParseDocumentTest("@Html.Repeat(10, @

    Foo #@item

    , @

    Foo #@item

    )"); - } - - [Fact] - public void ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens() - { - // ParseBlockProducesErrorButCorrectlyParsesNestedTemplateInImplicitExpressionParens - ParseDocumentTest("@Html.Repeat(10, @

    Foo #@Html.Repeat(10, @

    @item

    )

    )"); - } - - [Fact] - public void HandlesSimpleTemplateInStatementWithinCodeBlock() - { - ParseDocumentTest("@foreach(foo in Bar) { Html.ExecuteTemplate(foo, @

    Foo #@item

    ); }"); - } - - [Fact] - public void HandlesTwoTemplatesInStatementWithinCodeBlock() - { - ParseDocumentTest("@foreach(foo in Bar) { Html.ExecuteTemplate(foo, @

    Foo #@item

    , @

    Foo #@item

    ); }"); - } - - [Fact] - public void ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock() - { - // ParseBlockProducesErrorButCorrectlyParsesNestedTemplateInStatementWithinCodeBlock - ParseDocumentTest("@foreach(foo in Bar) { Html.ExecuteTemplate(foo, @

    Foo #@Html.Repeat(10, @

    @item

    )

    ); }"); - } - - [Fact] - public void HandlesSimpleTemplateInStatementWithinStatementBlock() - { - ParseDocumentTest("@{ var foo = bar; Html.ExecuteTemplate(foo, @

    Foo #@item

    ); }"); - } - - [Fact] - public void HandlessTwoTemplatesInStatementWithinStatementBlock() - { - ParseDocumentTest("@{ var foo = bar; Html.ExecuteTemplate(foo, @

    Foo #@item

    , @

    Foo #@item

    ); }"); - } - - [Fact] - public void ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock() - { - // ParseBlockProducesErrorButCorrectlyParsesNestedTemplateInStatementWithinStatementBlock - ParseDocumentTest("@{ var foo = bar; Html.ExecuteTemplate(foo, @

    Foo #@Html.Repeat(10, @

    @item

    )

    ); }"); - } - - [Fact] - public void _WithDoubleTransition_DoesNotThrow() - { - ParseDocumentTest("@{ var foo = bar; Html.ExecuteTemplate(foo, @

    Foo #@item

    ); }"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpToMarkupSwitchTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpToMarkupSwitchTest.cs deleted file mode 100644 index c427d580f87..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpToMarkupSwitchTest.cs +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpToMarkupSwitchTest : ParserTestBase - { - [Fact] - public void SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated() - { - ParseDocumentTest("@{ List< }"); - } - - [Fact] - public void GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode() - { - ParseDocumentTest("@Foo( @

    Foo

    )", designTime: true); - } - - [Fact] - public void GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode() - { - ParseDocumentTest("@Foo( " + Environment.NewLine - + "@:

    Foo

    " + Environment.NewLine - + ")", designTime: true); - } - - [Fact] - public void GivesSpacesToCodeOnTagTransitionInDesignTimeMode() - { - ParseDocumentTest("@{" + Environment.NewLine - + "

    Foo

    " + Environment.NewLine - + "}", designTime: true); - } - - [Fact] - public void GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode() - { - ParseDocumentTest("@{" + Environment.NewLine - + " @

    Foo

    " + Environment.NewLine - + "}", designTime: true); - } - - [Fact] - public void GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode() - { - ParseDocumentTest("@{" + Environment.NewLine - + " @:

    Foo

    " + Environment.NewLine - + "}", designTime: true); - } - - [Fact] - public void ShouldSupportSingleLineMarkupContainingStatementBlock() - { - ParseDocumentTest("@Repeat(10," + Environment.NewLine - + " @: @{}" + Environment.NewLine - + ")"); - } - - [Fact] - public void ShouldSupportMarkupWithoutPreceedingWhitespace() - { - ParseDocumentTest("@foreach(var file in files){" + Environment.NewLine - + Environment.NewLine - + Environment.NewLine - + "@:Baz" + Environment.NewLine - + "
    " + Environment.NewLine - + "Foo" + Environment.NewLine - + "@:Bar" + Environment.NewLine - + "}"); - } - - [Fact] - public void GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline() - { - // ParseBlockGivesAllWhitespaceOnSameLineExcludingPreceedingNewlineButIncludingTrailingNewLineToMarkup - ParseDocumentTest("@if(foo) {" + Environment.NewLine - + " var foo = \"After this statement there are 10 spaces\"; " + Environment.NewLine - + "

    " + Environment.NewLine - + " Foo" + Environment.NewLine - + " @bar" + Environment.NewLine - + "

    " + Environment.NewLine - + " @:Hello!" + Environment.NewLine - + " var biz = boz;" + Environment.NewLine - + "}"); - } - - [Fact] - public void AllowsMarkupInIfBodyWithBraces() - { - ParseDocumentTest("@if(foo) {

    Bar

    } else if(bar) {

    Baz

    } else {

    Boz

    }"); - } - - [Fact] - public void AllowsMarkupInIfBodyWithBracesWithinCodeBlock() - { - ParseDocumentTest("@{ if(foo) {

    Bar

    } else if(bar) {

    Baz

    } else {

    Boz

    } }"); - } - - [Fact] - public void SupportsMarkupInCaseAndDefaultBranchesOfSwitch() - { - // Arrange - ParseDocumentTest("@switch(foo) {" + Environment.NewLine - + " case 0:" + Environment.NewLine - + "

    Foo

    " + Environment.NewLine - + " break;" + Environment.NewLine - + " case 1:" + Environment.NewLine - + "

    Bar

    " + Environment.NewLine - + " return;" + Environment.NewLine - + " case 2:" + Environment.NewLine - + " {" + Environment.NewLine - + "

    Baz

    " + Environment.NewLine - + "

    Boz

    " + Environment.NewLine - + " }" + Environment.NewLine - + " default:" + Environment.NewLine - + "

    Biz

    " + Environment.NewLine - + "}"); - } - - [Fact] - public void SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock() - { - // Arrange - ParseDocumentTest("@{ switch(foo) {" + Environment.NewLine - + " case 0:" + Environment.NewLine - + "

    Foo

    " + Environment.NewLine - + " break;" + Environment.NewLine - + " case 1:" + Environment.NewLine - + "

    Bar

    " + Environment.NewLine - + " return;" + Environment.NewLine - + " case 2:" + Environment.NewLine - + " {" + Environment.NewLine - + "

    Baz

    " + Environment.NewLine - + "

    Boz

    " + Environment.NewLine - + " }" + Environment.NewLine - + " default:" + Environment.NewLine - + "

    Biz

    " + Environment.NewLine - + "} }"); - } - - [Fact] - public void ParsesMarkupStatementOnOpenAngleBracket() - { - ParseDocumentTest("@for(int i = 0; i < 10; i++) {

    Foo

    }"); - } - - [Fact] - public void ParsesMarkupStatementOnOpenAngleBracketInCodeBlock() - { - ParseDocumentTest("@{ for(int i = 0; i < 10; i++) {

    Foo

    } }"); - } - - [Fact] - public void ParsesMarkupStatementOnSwitchCharacterFollowedByColon() - { - // Arrange - ParseDocumentTest("@if(foo) { @:Bar" + Environment.NewLine - + "} zoop"); - } - - [Fact] - public void ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon() - { - // Arrange - ParseDocumentTest("@if(foo) { @::Sometext" + Environment.NewLine - + "}"); - } - - - [Fact] - public void ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon() - { - // Arrange - ParseDocumentTest("@if(foo) { @:::Sometext" + Environment.NewLine - + "}"); - } - - [Fact] - public void ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock() - { - // Arrange - ParseDocumentTest("@{ if(foo) { @:Bar" + Environment.NewLine - + "} } zoop"); - } - - [Fact] - public void CorrectlyReturnsFromMarkupBlockWithPseudoTag() - { - ParseDocumentTest("@if (i > 0) { ; }"); - } - - [Fact] - public void CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock() - { - ParseDocumentTest("@{ if (i > 0) { ; } }"); - } - - [Fact] - public void SupportsAllKindsOfImplicitMarkupInCodeBlock() - { - ParseDocumentTest("@{" + Environment.NewLine - + " if(true) {" + Environment.NewLine - + " @:Single Line Markup" + Environment.NewLine - + " }" + Environment.NewLine - + " foreach (var p in Enumerable.Range(1, 10)) {" + Environment.NewLine - + " The number is @p" + Environment.NewLine - + " }" + Environment.NewLine - + " if(!false) {" + Environment.NewLine - + "

    A real tag!

    " + Environment.NewLine - + " }" + Environment.NewLine - + "}"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerCommentTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerCommentTest.cs deleted file mode 100644 index 0a7c55cc345..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerCommentTest.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpTokenizerCommentTest : CSharpTokenizerTestBase - { - private new SyntaxToken IgnoreRemaining => (SyntaxToken)base.IgnoreRemaining; - - [Fact] - public void Next_Ignores_Star_At_EOF_In_RazorComment() - { - TestTokenizer( - "@* Foo * Bar * Baz *", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, " Foo * Bar * Baz *")); - } - - [Fact] - public void Next_Ignores_Star_Without_Trailing_At() - { - TestTokenizer( - "@* Foo * Bar * Baz *@", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, " Foo * Bar * Baz "), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@")); - } - - [Fact] - public void Next_Returns_RazorComment_Token_For_Entire_Razor_Comment() - { - TestTokenizer( - "@* Foo Bar Baz *@", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, " Foo Bar Baz "), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@")); - } - - [Fact] - public void Next_Returns_Comment_Token_For_Entire_Single_Line_Comment() - { - TestTokenizer("// Foo Bar Baz", SyntaxFactory.Token(SyntaxKind.CSharpComment, "// Foo Bar Baz")); - } - - [Fact] - public void Single_Line_Comment_Is_Terminated_By_Newline() - { - TestTokenizer("// Foo Bar Baz\na", SyntaxFactory.Token(SyntaxKind.CSharpComment, "// Foo Bar Baz"), IgnoreRemaining); - } - - [Fact] - public void Multi_Line_Comment_In_Single_Line_Comment_Has_No_Effect() - { - TestTokenizer("// Foo/*Bar*/ Baz\na", SyntaxFactory.Token(SyntaxKind.CSharpComment, "// Foo/*Bar*/ Baz"), IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Comment_Token_For_Entire_Multi_Line_Comment() - { - TestTokenizer("/* Foo\nBar\nBaz */", SyntaxFactory.Token(SyntaxKind.CSharpComment, "/* Foo\nBar\nBaz */")); - } - - [Fact] - public void Multi_Line_Comment_Is_Terminated_By_End_Sequence() - { - TestTokenizer("/* Foo\nBar\nBaz */a", SyntaxFactory.Token(SyntaxKind.CSharpComment, "/* Foo\nBar\nBaz */"), IgnoreRemaining); - } - - [Fact] - public void Unterminated_Multi_Line_Comment_Captures_To_EOF() - { - TestTokenizer("/* Foo\nBar\nBaz", SyntaxFactory.Token(SyntaxKind.CSharpComment, "/* Foo\nBar\nBaz"), IgnoreRemaining); - } - - [Fact] - public void Nested_Multi_Line_Comments_Terminated_At_First_End_Sequence() - { - TestTokenizer("/* Foo/*\nBar\nBaz*/ */", SyntaxFactory.Token(SyntaxKind.CSharpComment, "/* Foo/*\nBar\nBaz*/"), IgnoreRemaining); - } - - [Fact] - public void Nested_Multi_Line_Comments_Terminated_At_Full_End_Sequence() - { - TestTokenizer("/* Foo\nBar\nBaz* */", SyntaxFactory.Token(SyntaxKind.CSharpComment, "/* Foo\nBar\nBaz* */"), IgnoreRemaining); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerIdentifierTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerIdentifierTest.cs deleted file mode 100644 index e5a3a466ac8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerIdentifierTest.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpTokenizerIdentifierTest : CSharpTokenizerTestBase - { - [Fact] - public void Simple_Identifier_Is_Recognized() - { - TestTokenizer("foo", SyntaxFactory.Token(SyntaxKind.Identifier, "foo")); - } - - [Fact] - public void Identifier_Starting_With_Underscore_Is_Recognized() - { - TestTokenizer("_foo", SyntaxFactory.Token(SyntaxKind.Identifier, "_foo")); - } - - [Fact] - public void Identifier_Can_Contain_Digits() - { - TestTokenizer("foo4", SyntaxFactory.Token(SyntaxKind.Identifier, "foo4")); - } - - [Fact] - public void Identifier_Can_Start_With_Titlecase_Letter() - { - TestTokenizer("ῼfoo", SyntaxFactory.Token(SyntaxKind.Identifier, "ῼfoo")); - } - - [Fact] - public void Identifier_Can_Start_With_Letter_Modifier() - { - TestTokenizer("ᵊfoo", SyntaxFactory.Token(SyntaxKind.Identifier, "ᵊfoo")); - } - - [Fact] - public void Identifier_Can_Start_With_Other_Letter() - { - TestTokenizer("ƻfoo", SyntaxFactory.Token(SyntaxKind.Identifier, "ƻfoo")); - } - - [Fact] - public void Identifier_Can_Start_With_Number_Letter() - { - TestTokenizer("Ⅽool", SyntaxFactory.Token(SyntaxKind.Identifier, "Ⅽool")); - } - - [Fact] - public void Identifier_Can_Contain_Non_Spacing_Mark() - { - TestTokenizer("foo\u0300", SyntaxFactory.Token(SyntaxKind.Identifier, "foo\u0300")); - } - - [Fact] - public void Identifier_Can_Contain_Spacing_Combining_Mark() - { - TestTokenizer("fooः", SyntaxFactory.Token(SyntaxKind.Identifier, "fooः")); - } - - [Fact] - public void Identifier_Can_Contain_Non_English_Digit() - { - TestTokenizer("foo١", SyntaxFactory.Token(SyntaxKind.Identifier, "foo١")); - } - - [Fact] - public void Identifier_Can_Contain_Connector_Punctuation() - { - TestTokenizer("foo‿bar", SyntaxFactory.Token(SyntaxKind.Identifier, "foo‿bar")); - } - - [Fact] - public void Identifier_Can_Contain_Format_Character() - { - TestTokenizer("foo؃bar", SyntaxFactory.Token(SyntaxKind.Identifier, "foo؃bar")); - } - - [Fact] - public void Keywords_Are_Recognized_As_Keyword_Tokens() - { - TestKeyword("abstract", CSharpKeyword.Abstract); - TestKeyword("byte", CSharpKeyword.Byte); - TestKeyword("class", CSharpKeyword.Class); - TestKeyword("delegate", CSharpKeyword.Delegate); - TestKeyword("event", CSharpKeyword.Event); - TestKeyword("fixed", CSharpKeyword.Fixed); - TestKeyword("if", CSharpKeyword.If); - TestKeyword("internal", CSharpKeyword.Internal); - TestKeyword("new", CSharpKeyword.New); - TestKeyword("override", CSharpKeyword.Override); - TestKeyword("readonly", CSharpKeyword.Readonly); - TestKeyword("short", CSharpKeyword.Short); - TestKeyword("struct", CSharpKeyword.Struct); - TestKeyword("try", CSharpKeyword.Try); - TestKeyword("unsafe", CSharpKeyword.Unsafe); - TestKeyword("volatile", CSharpKeyword.Volatile); - TestKeyword("as", CSharpKeyword.As); - TestKeyword("do", CSharpKeyword.Do); - TestKeyword("is", CSharpKeyword.Is); - TestKeyword("params", CSharpKeyword.Params); - TestKeyword("ref", CSharpKeyword.Ref); - TestKeyword("switch", CSharpKeyword.Switch); - TestKeyword("ushort", CSharpKeyword.Ushort); - TestKeyword("while", CSharpKeyword.While); - TestKeyword("case", CSharpKeyword.Case); - TestKeyword("const", CSharpKeyword.Const); - TestKeyword("explicit", CSharpKeyword.Explicit); - TestKeyword("float", CSharpKeyword.Float); - TestKeyword("null", CSharpKeyword.Null); - TestKeyword("sizeof", CSharpKeyword.Sizeof); - TestKeyword("typeof", CSharpKeyword.Typeof); - TestKeyword("implicit", CSharpKeyword.Implicit); - TestKeyword("private", CSharpKeyword.Private); - TestKeyword("this", CSharpKeyword.This); - TestKeyword("using", CSharpKeyword.Using); - TestKeyword("extern", CSharpKeyword.Extern); - TestKeyword("return", CSharpKeyword.Return); - TestKeyword("stackalloc", CSharpKeyword.Stackalloc); - TestKeyword("uint", CSharpKeyword.Uint); - TestKeyword("base", CSharpKeyword.Base); - TestKeyword("catch", CSharpKeyword.Catch); - TestKeyword("continue", CSharpKeyword.Continue); - TestKeyword("double", CSharpKeyword.Double); - TestKeyword("for", CSharpKeyword.For); - TestKeyword("in", CSharpKeyword.In); - TestKeyword("lock", CSharpKeyword.Lock); - TestKeyword("object", CSharpKeyword.Object); - TestKeyword("protected", CSharpKeyword.Protected); - TestKeyword("static", CSharpKeyword.Static); - TestKeyword("false", CSharpKeyword.False); - TestKeyword("public", CSharpKeyword.Public); - TestKeyword("sbyte", CSharpKeyword.Sbyte); - TestKeyword("throw", CSharpKeyword.Throw); - TestKeyword("virtual", CSharpKeyword.Virtual); - TestKeyword("decimal", CSharpKeyword.Decimal); - TestKeyword("else", CSharpKeyword.Else); - TestKeyword("operator", CSharpKeyword.Operator); - TestKeyword("string", CSharpKeyword.String); - TestKeyword("ulong", CSharpKeyword.Ulong); - TestKeyword("bool", CSharpKeyword.Bool); - TestKeyword("char", CSharpKeyword.Char); - TestKeyword("default", CSharpKeyword.Default); - TestKeyword("foreach", CSharpKeyword.Foreach); - TestKeyword("long", CSharpKeyword.Long); - TestKeyword("void", CSharpKeyword.Void); - TestKeyword("enum", CSharpKeyword.Enum); - TestKeyword("finally", CSharpKeyword.Finally); - TestKeyword("int", CSharpKeyword.Int); - TestKeyword("out", CSharpKeyword.Out); - TestKeyword("sealed", CSharpKeyword.Sealed); - TestKeyword("true", CSharpKeyword.True); - TestKeyword("goto", CSharpKeyword.Goto); - TestKeyword("unchecked", CSharpKeyword.Unchecked); - TestKeyword("interface", CSharpKeyword.Interface); - TestKeyword("break", CSharpKeyword.Break); - TestKeyword("checked", CSharpKeyword.Checked); - TestKeyword("namespace", CSharpKeyword.Namespace); - TestKeyword("when", CSharpKeyword.When); - } - - private void TestKeyword(string keyword, CSharpKeyword keywordType) - { - TestTokenizer(keyword, SyntaxFactory.Token(SyntaxKind.Keyword, keyword)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerLiteralTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerLiteralTest.cs deleted file mode 100644 index c7c250cce3a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerLiteralTest.cs +++ /dev/null @@ -1,288 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpTokenizerLiteralTest : CSharpTokenizerTestBase - { - private new SyntaxToken IgnoreRemaining => (SyntaxToken)base.IgnoreRemaining; - - [Fact] - public void Simple_Integer_Literal_Is_Recognized() - { - TestSingleToken("01189998819991197253", SyntaxKind.IntegerLiteral); - } - - [Fact] - public void Integer_Type_Suffix_Is_Recognized() - { - TestSingleToken("42U", SyntaxKind.IntegerLiteral); - TestSingleToken("42u", SyntaxKind.IntegerLiteral); - - TestSingleToken("42L", SyntaxKind.IntegerLiteral); - TestSingleToken("42l", SyntaxKind.IntegerLiteral); - - TestSingleToken("42UL", SyntaxKind.IntegerLiteral); - TestSingleToken("42Ul", SyntaxKind.IntegerLiteral); - - TestSingleToken("42uL", SyntaxKind.IntegerLiteral); - TestSingleToken("42ul", SyntaxKind.IntegerLiteral); - - TestSingleToken("42LU", SyntaxKind.IntegerLiteral); - TestSingleToken("42Lu", SyntaxKind.IntegerLiteral); - - TestSingleToken("42lU", SyntaxKind.IntegerLiteral); - TestSingleToken("42lu", SyntaxKind.IntegerLiteral); - } - - [Fact] - public void Trailing_Letter_Is_Not_Part_Of_Integer_Literal_If_Not_Type_Sufix() - { - TestTokenizer("42a", SyntaxFactory.Token(SyntaxKind.IntegerLiteral, "42"), IgnoreRemaining); - } - - [Fact] - public void Simple_Hex_Literal_Is_Recognized() - { - TestSingleToken("0x0123456789ABCDEF", SyntaxKind.IntegerLiteral); - } - - [Fact] - public void Integer_Type_Suffix_Is_Recognized_In_Hex_Literal() - { - TestSingleToken("0xDEADBEEFU", SyntaxKind.IntegerLiteral); - TestSingleToken("0xDEADBEEFu", SyntaxKind.IntegerLiteral); - - TestSingleToken("0xDEADBEEFL", SyntaxKind.IntegerLiteral); - TestSingleToken("0xDEADBEEFl", SyntaxKind.IntegerLiteral); - - TestSingleToken("0xDEADBEEFUL", SyntaxKind.IntegerLiteral); - TestSingleToken("0xDEADBEEFUl", SyntaxKind.IntegerLiteral); - - TestSingleToken("0xDEADBEEFuL", SyntaxKind.IntegerLiteral); - TestSingleToken("0xDEADBEEFul", SyntaxKind.IntegerLiteral); - - TestSingleToken("0xDEADBEEFLU", SyntaxKind.IntegerLiteral); - TestSingleToken("0xDEADBEEFLu", SyntaxKind.IntegerLiteral); - - TestSingleToken("0xDEADBEEFlU", SyntaxKind.IntegerLiteral); - TestSingleToken("0xDEADBEEFlu", SyntaxKind.IntegerLiteral); - } - - [Fact] - public void Trailing_Letter_Is_Not_Part_Of_Hex_Literal_If_Not_Type_Sufix() - { - TestTokenizer("0xDEADBEEFz", SyntaxFactory.Token(SyntaxKind.IntegerLiteral, "0xDEADBEEF"), IgnoreRemaining); - } - - [Fact] - public void Dot_Followed_By_Non_Digit_Is_Not_Part_Of_Real_Literal() - { - TestTokenizer("3.a", SyntaxFactory.Token(SyntaxKind.IntegerLiteral, "3"), IgnoreRemaining); - } - - [Fact] - public void Simple_Real_Literal_Is_Recognized() - { - TestTokenizer("3.14159", SyntaxFactory.Token(SyntaxKind.RealLiteral, "3.14159")); - } - - [Fact] - public void Real_Literal_Between_Zero_And_One_Is_Recognized() - { - TestTokenizer(".14159", SyntaxFactory.Token(SyntaxKind.RealLiteral, ".14159")); - } - - [Fact] - public void Integer_With_Real_Type_Suffix_Is_Recognized() - { - TestSingleToken("42F", SyntaxKind.RealLiteral); - TestSingleToken("42f", SyntaxKind.RealLiteral); - TestSingleToken("42D", SyntaxKind.RealLiteral); - TestSingleToken("42d", SyntaxKind.RealLiteral); - TestSingleToken("42M", SyntaxKind.RealLiteral); - TestSingleToken("42m", SyntaxKind.RealLiteral); - } - - [Fact] - public void Integer_With_Exponent_Is_Recognized() - { - TestSingleToken("1e10", SyntaxKind.RealLiteral); - TestSingleToken("1E10", SyntaxKind.RealLiteral); - TestSingleToken("1e+10", SyntaxKind.RealLiteral); - TestSingleToken("1E+10", SyntaxKind.RealLiteral); - TestSingleToken("1e-10", SyntaxKind.RealLiteral); - TestSingleToken("1E-10", SyntaxKind.RealLiteral); - } - - [Fact] - public void Real_Number_With_Type_Suffix_Is_Recognized() - { - TestSingleToken("3.14F", SyntaxKind.RealLiteral); - TestSingleToken("3.14f", SyntaxKind.RealLiteral); - TestSingleToken("3.14D", SyntaxKind.RealLiteral); - TestSingleToken("3.14d", SyntaxKind.RealLiteral); - TestSingleToken("3.14M", SyntaxKind.RealLiteral); - TestSingleToken("3.14m", SyntaxKind.RealLiteral); - } - - [Fact] - public void Real_Number_With_Exponent_Is_Recognized() - { - TestSingleToken("3.14E10", SyntaxKind.RealLiteral); - TestSingleToken("3.14e10", SyntaxKind.RealLiteral); - TestSingleToken("3.14E+10", SyntaxKind.RealLiteral); - TestSingleToken("3.14e+10", SyntaxKind.RealLiteral); - TestSingleToken("3.14E-10", SyntaxKind.RealLiteral); - TestSingleToken("3.14e-10", SyntaxKind.RealLiteral); - } - - [Fact] - public void Real_Number_With_Exponent_And_Type_Suffix_Is_Recognized() - { - TestSingleToken("3.14E+10F", SyntaxKind.RealLiteral); - } - - [Fact] - public void Single_Character_Literal_Is_Recognized() - { - TestSingleToken("'f'", SyntaxKind.CharacterLiteral); - } - - [Fact] - public void Multi_Character_Literal_Is_Recognized() - { - TestSingleToken("'foo'", SyntaxKind.CharacterLiteral); - } - - [Fact] - public void Character_Literal_Is_Terminated_By_EOF_If_Unterminated() - { - TestSingleToken("'foo bar", SyntaxKind.CharacterLiteral); - } - - [Fact] - public void Character_Literal_Not_Terminated_By_Escaped_Quote() - { - TestSingleToken("'foo\\'bar'", SyntaxKind.CharacterLiteral); - } - - [Fact] - public void Character_Literal_Is_Terminated_By_EOL_If_Unterminated() - { - TestTokenizer("'foo\n", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'foo"), IgnoreRemaining); - } - - [Fact] - public void Character_Literal_Terminated_By_EOL_Even_When_Last_Char_Is_Slash() - { - TestTokenizer("'foo\\\n", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'foo\\"), IgnoreRemaining); - } - - [Fact] - public void Character_Literal_Terminated_By_EOL_Even_When_Last_Char_Is_Slash_And_Followed_By_Stuff() - { - TestTokenizer("'foo\\\nflarg", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'foo\\"), IgnoreRemaining); - } - - [Fact] - public void Character_Literal_Terminated_By_CRLF_Even_When_Last_Char_Is_Slash() - { - TestTokenizer("'foo\\" + Environment.NewLine, SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'foo\\"), IgnoreRemaining); - } - - [Fact] - public void Character_Literal_Terminated_By_CRLF_Even_When_Last_Char_Is_Slash_And_Followed_By_Stuff() - { - TestTokenizer($"'foo\\{Environment.NewLine}flarg", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'foo\\"), IgnoreRemaining); - } - - [Fact] - public void Character_Literal_Allows_Escaped_Escape() - { - TestTokenizer("'foo\\\\'blah", SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'foo\\\\'"), IgnoreRemaining); - } - - [Fact] - public void String_Literal_Is_Recognized() - { - TestSingleToken("\"foo\"", SyntaxKind.StringLiteral); - } - - [Fact] - public void String_Literal_Is_Terminated_By_EOF_If_Unterminated() - { - TestSingleToken("\"foo bar", SyntaxKind.StringLiteral); - } - - [Fact] - public void String_Literal_Not_Terminated_By_Escaped_Quote() - { - TestSingleToken("\"foo\\\"bar\"", SyntaxKind.StringLiteral); - } - - [Fact] - public void String_Literal_Is_Terminated_By_EOL_If_Unterminated() - { - TestTokenizer("\"foo\n", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"foo"), IgnoreRemaining); - } - - [Fact] - public void String_Literal_Terminated_By_EOL_Even_When_Last_Char_Is_Slash() - { - TestTokenizer("\"foo\\\n", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"foo\\"), IgnoreRemaining); - } - - [Fact] - public void String_Literal_Terminated_By_EOL_Even_When_Last_Char_Is_Slash_And_Followed_By_Stuff() - { - TestTokenizer("\"foo\\\nflarg", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"foo\\"), IgnoreRemaining); - } - - [Fact] - public void String_Literal_Terminated_By_CRLF_Even_When_Last_Char_Is_Slash() - { - TestTokenizer("\"foo\\" + Environment.NewLine, SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"foo\\"), IgnoreRemaining); - } - - [Fact] - public void String_Literal_Terminated_By_CRLF_Even_When_Last_Char_Is_Slash_And_Followed_By_Stuff() - { - TestTokenizer($"\"foo\\{Environment.NewLine}flarg", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"foo\\"), IgnoreRemaining); - } - - [Fact] - public void String_Literal_Allows_Escaped_Escape() - { - TestTokenizer("\"foo\\\\\"blah", SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"foo\\\\\""), IgnoreRemaining); - } - - [Fact] - public void Verbatim_String_Literal_Can_Contain_Newlines() - { - TestSingleToken("@\"foo\nbar\nbaz\"", SyntaxKind.StringLiteral); - } - - [Fact] - public void Verbatim_String_Literal_Not_Terminated_By_Escaped_Double_Quote() - { - TestSingleToken("@\"foo\"\"bar\"", SyntaxKind.StringLiteral); - } - - [Fact] - public void Verbatim_String_Literal_Is_Terminated_By_Slash_Double_Quote() - { - TestTokenizer("@\"foo\\\"bar\"", SyntaxFactory.Token(SyntaxKind.StringLiteral, "@\"foo\\\""), IgnoreRemaining); - } - - [Fact] - public void Verbatim_String_Literal_Is_Terminated_By_EOF() - { - TestSingleToken("@\"foo", SyntaxKind.StringLiteral); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerOperatorsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerOperatorsTest.cs deleted file mode 100644 index fdf27183870..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerOperatorsTest.cs +++ /dev/null @@ -1,297 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpTokenizerOperatorsTest : CSharpTokenizerTestBase - { - [Fact] - public void LeftBrace_Is_Recognized() - { - TestSingleToken("{", SyntaxKind.LeftBrace); - } - - [Fact] - public void Plus_Is_Recognized() - { - TestSingleToken("+", SyntaxKind.Plus); - } - - [Fact] - public void Assign_Is_Recognized() - { - TestSingleToken("=", SyntaxKind.Assign); - } - - [Fact] - public void Arrow_Is_Recognized() - { - TestSingleToken("->", SyntaxKind.Arrow); - } - - [Fact] - public void AndAssign_Is_Recognized() - { - TestSingleToken("&=", SyntaxKind.AndAssign); - } - - [Fact] - public void RightBrace_Is_Recognized() - { - TestSingleToken("}", SyntaxKind.RightBrace); - } - - [Fact] - public void Minus_Is_Recognized() - { - TestSingleToken("-", SyntaxKind.Minus); - } - - [Fact] - public void LessThan_Is_Recognized() - { - TestSingleToken("<", SyntaxKind.LessThan); - } - - [Fact] - public void Equals_Is_Recognized() - { - TestSingleToken("==", SyntaxKind.Equals); - } - - [Fact] - public void OrAssign_Is_Recognized() - { - TestSingleToken("|=", SyntaxKind.OrAssign); - } - - [Fact] - public void LeftBracket_Is_Recognized() - { - TestSingleToken("[", SyntaxKind.LeftBracket); - } - - [Fact] - public void Star_Is_Recognized() - { - TestSingleToken("*", SyntaxKind.Star); - } - - [Fact] - public void GreaterThan_Is_Recognized() - { - TestSingleToken(">", SyntaxKind.GreaterThan); - } - - [Fact] - public void NotEqual_Is_Recognized() - { - TestSingleToken("!=", SyntaxKind.NotEqual); - } - - [Fact] - public void XorAssign_Is_Recognized() - { - TestSingleToken("^=", SyntaxKind.XorAssign); - } - - [Fact] - public void RightBracket_Is_Recognized() - { - TestSingleToken("]", SyntaxKind.RightBracket); - } - - [Fact] - public void Slash_Is_Recognized() - { - TestSingleToken("/", SyntaxKind.Slash); - } - - [Fact] - public void QuestionMark_Is_Recognized() - { - TestSingleToken("?", SyntaxKind.QuestionMark); - } - - [Fact] - public void LessThanEqual_Is_Recognized() - { - TestSingleToken("<=", SyntaxKind.LessThanEqual); - } - - [Fact] - public void LeftShift_Is_Not_Specially_Recognized() - { - TestTokenizer("<<", - SyntaxFactory.Token(SyntaxKind.LessThan, "<"), - SyntaxFactory.Token(SyntaxKind.LessThan, "<")); - } - - [Fact] - public void LeftParen_Is_Recognized() - { - TestSingleToken("(", SyntaxKind.LeftParenthesis); - } - - [Fact] - public void Modulo_Is_Recognized() - { - TestSingleToken("%", SyntaxKind.Modulo); - } - - [Fact] - public void NullCoalesce_Is_Recognized() - { - TestSingleToken("??", SyntaxKind.NullCoalesce); - } - - [Fact] - public void GreaterThanEqual_Is_Recognized() - { - TestSingleToken(">=", SyntaxKind.GreaterThanEqual); - } - - [Fact] - public void EqualGreaterThan_Is_Recognized() - { - TestSingleToken("=>", SyntaxKind.GreaterThanEqual); - } - - [Fact] - public void RightParen_Is_Recognized() - { - TestSingleToken(")", SyntaxKind.RightParenthesis); - } - - [Fact] - public void And_Is_Recognized() - { - TestSingleToken("&", SyntaxKind.And); - } - - [Fact] - public void DoubleColon_Is_Recognized() - { - TestSingleToken("::", SyntaxKind.DoubleColon); - } - - [Fact] - public void PlusAssign_Is_Recognized() - { - TestSingleToken("+=", SyntaxKind.PlusAssign); - } - - [Fact] - public void Semicolon_Is_Recognized() - { - TestSingleToken(";", SyntaxKind.Semicolon); - } - - [Fact] - public void Tilde_Is_Recognized() - { - TestSingleToken("~", SyntaxKind.Tilde); - } - - [Fact] - public void DoubleOr_Is_Recognized() - { - TestSingleToken("||", SyntaxKind.DoubleOr); - } - - [Fact] - public void ModuloAssign_Is_Recognized() - { - TestSingleToken("%=", SyntaxKind.ModuloAssign); - } - - [Fact] - public void Colon_Is_Recognized() - { - TestSingleToken(":", SyntaxKind.Colon); - } - - [Fact] - public void Not_Is_Recognized() - { - TestSingleToken("!", SyntaxKind.Not); - } - - [Fact] - public void DoubleAnd_Is_Recognized() - { - TestSingleToken("&&", SyntaxKind.DoubleAnd); - } - - [Fact] - public void DivideAssign_Is_Recognized() - { - TestSingleToken("/=", SyntaxKind.DivideAssign); - } - - [Fact] - public void Comma_Is_Recognized() - { - TestSingleToken(",", SyntaxKind.Comma); - } - - [Fact] - public void Xor_Is_Recognized() - { - TestSingleToken("^", SyntaxKind.Xor); - } - - [Fact] - public void Decrement_Is_Recognized() - { - TestSingleToken("--", SyntaxKind.Decrement); - } - - [Fact] - public void MultiplyAssign_Is_Recognized() - { - TestSingleToken("*=", SyntaxKind.MultiplyAssign); - } - - [Fact] - public void Dot_Is_Recognized() - { - TestSingleToken(".", SyntaxKind.Dot); - } - - [Fact] - public void Or_Is_Recognized() - { - TestSingleToken("|", SyntaxKind.Or); - } - - [Fact] - public void Increment_Is_Recognized() - { - TestSingleToken("++", SyntaxKind.Increment); - } - - [Fact] - public void MinusAssign_Is_Recognized() - { - TestSingleToken("-=", SyntaxKind.MinusAssign); - } - - [Fact] - public void RightShift_Is_Not_Specially_Recognized() - { - TestTokenizer(">>", - SyntaxFactory.Token(SyntaxKind.GreaterThan, ">"), - SyntaxFactory.Token(SyntaxKind.GreaterThan, ">")); - } - - [Fact] - public void Hash_Is_Recognized() - { - TestSingleToken("#", SyntaxKind.Hash); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTest.cs deleted file mode 100644 index 5ee0715a7e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTest.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpTokenizerTest : CSharpTokenizerTestBase - { - private new SyntaxToken IgnoreRemaining => (SyntaxToken)base.IgnoreRemaining; - - [Fact] - public void Next_Returns_Null_When_EOF_Reached() - { - TestTokenizer(""); - } - - [Fact] - public void Next_Returns_Newline_Token_For_Single_CR() - { - TestTokenizer( - "\r\ra", - SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), - IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Newline_Token_For_Single_LF() - { - TestTokenizer( - "\n\na", - SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), - IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Newline_Token_For_Single_NEL() - { - // NEL: Unicode "Next Line" U+0085 - TestTokenizer( - "\u0085\u0085a", - SyntaxFactory.Token(SyntaxKind.NewLine, "\u0085"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\u0085"), - IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Newline_Token_For_Single_Line_Separator() - { - // Unicode "Line Separator" U+2028 - TestTokenizer( - "\u2028\u2028a", - SyntaxFactory.Token(SyntaxKind.NewLine, "\u2028"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\u2028"), - IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Newline_Token_For_Single_Paragraph_Separator() - { - // Unicode "Paragraph Separator" U+2029 - TestTokenizer( - "\u2029\u2029a", - SyntaxFactory.Token(SyntaxKind.NewLine, "\u2029"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\u2029"), - IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Single_Newline_Token_For_CRLF() - { - TestTokenizer( - "\r\n\r\na", - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), - IgnoreRemaining); - } - - [Fact] - public void Next_Returns_Token_For_Whitespace_Characters() - { - TestTokenizer( - " \f\t\u000B \n ", - SyntaxFactory.Token(SyntaxKind.Whitespace, " \f\t\u000B "), - SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " ")); - } - - [Fact] - public void Transition_Is_Recognized() - { - TestSingleToken("@", SyntaxKind.Transition); - } - - [Fact] - public void Transition_Is_Recognized_As_SingleCharacter() - { - TestTokenizer( - "@(", - SyntaxFactory.Token(SyntaxKind.Transition, "@"), - SyntaxFactory.Token(SyntaxKind.LeftParenthesis, "(")); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTestBase.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTestBase.cs deleted file mode 100644 index 83b2adc684f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpTokenizerTestBase.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public abstract class CSharpTokenizerTestBase : TokenizerTestBase - { - private static SyntaxToken _ignoreRemaining = SyntaxFactory.Token(SyntaxKind.Marker, string.Empty); - - internal override object IgnoreRemaining - { - get { return _ignoreRemaining; } - } - - internal override object CreateTokenizer(ITextDocument source) - { - return new CSharpTokenizer(source); - } - - internal void TestSingleToken(string text, SyntaxKind expectedTokenKind) - { - TestTokenizer(text, SyntaxFactory.Token(expectedTokenKind, text)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpVerbatimBlockTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpVerbatimBlockTest.cs deleted file mode 100644 index a2f4509a6d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpVerbatimBlockTest.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpVerbatimBlockTest : ParserTestBase - { - private const string TestExtraKeyword = "model"; - - [Fact] - public void VerbatimBlock() - { - ParseDocumentTest("@{ foo(); }"); - } - - [Fact] - public void InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan() - { - ParseDocumentTest("@{@}"); - } - - [Fact] - public void InnerImplicitExprDoesNotAcceptDotAfterAt() - { - ParseDocumentTest("@{@.}"); - } - - [Fact] - public void InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime() - { - ParseDocumentTest("@{" + Environment.NewLine + " @" + Environment.NewLine + "}", designTime: true); - } - - [Fact] - public void InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode() - { - ParseDocumentTest("@{@foo." + Environment.NewLine + "}"); - } - - [Fact] - public void InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode() - { - ParseDocumentTest("@{@foo." + Environment.NewLine + "}", designTime: true); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpWhitespaceHandlingTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CSharpWhitespaceHandlingTest.cs deleted file mode 100644 index 67ce3318dc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CSharpWhitespaceHandlingTest.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class CSharpWhitespaceHandlingTest : ParserTestBase - { - [Fact] - public void StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor() - { - ParseDocumentTest("@{@: @if (true) { }" + Environment.NewLine + "}"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/CodeBlockEditHandlerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/CodeBlockEditHandlerTest.cs deleted file mode 100644 index add55188090..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/CodeBlockEditHandlerTest.cs +++ /dev/null @@ -1,293 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Test.Legacy -{ - public class CodeBlockEditHandlerTest - { - [Fact] - public void IsAcceptableReplacement_AcceptableReplacement_ReturnsTrue() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(0, 5), "H3ll0"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.True(result); - } - - [Fact] - public void IsAcceptableReplacement_AcceptableReplacement_WithMarkup_ReturnsTrue() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello
    @world
    ."); - var change = new SourceChange(new SourceSpan(0, 5), "H3ll0"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.True(result); - } - - [Fact] - public void IsAcceptableReplacement_ChangeModifiesInvalidContent_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(6, 1), "!"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableReplacement_ChangeAddsOpenAngle_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello
    ."); - var change = new SourceChange(new SourceSpan(6, 1), "<"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableReplacement_ChangeToComment_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello @"); - var change = new SourceChange(new SourceSpan(6, 1), "@*"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableReplacement_ChangeContainsInvalidContent_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(0, 0), "{"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableReplacement_NotReplace_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(0, 5), string.Empty); - - // Act - var result = CodeBlockEditHandler.IsAcceptableReplacement(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableDeletion_ValidChange_ReturnsTrue() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(0, 5), string.Empty); - - // Act - var result = CodeBlockEditHandler.IsAcceptableDeletion(span, change); - - // Assert - Assert.True(result); - } - - [Fact] - public void IsAcceptableDeletion_InvalidChange_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(5, 3), string.Empty); - - // Act - var result = CodeBlockEditHandler.IsAcceptableDeletion(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableDeletion_NotDelete_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "world"); - var change = new SourceChange(new SourceSpan(0, 0), "hello"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableDeletion(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void ModifiesInvalidContent_ValidContent_ReturnsFalse() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(0, 5), string.Empty); - - // Act - var result = CodeBlockEditHandler.ModifiesInvalidContent(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void ModifiesInvalidContent_InvalidContent_ReturnsTrue() - { - // Arrange - var span = GetSpan(SourceLocation.Zero, "Hello {world}."); - var change = new SourceChange(new SourceSpan(5, 7), string.Empty); - - // Act - var result = CodeBlockEditHandler.ModifiesInvalidContent(span, change); - - // Assert - Assert.True(result); - } - - [Fact] - public void IsAcceptableInsertion_ValidChange_ReturnsTrue() - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 0), "hello"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableInsertion(change); - - // Assert - Assert.True(result); - } - - [Fact] - public void IsAcceptableInsertion_InvalidChange_ReturnsFalse() - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 0), "{"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableInsertion(change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableInsertion_InvalidChange_Transition_ReturnsFalse() - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 0), "@"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableInsertion(change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableInsertion_InvalidChange_TemplateTransition_ReturnsFalse() - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 0), "<"); - - // Act - var result = CodeBlockEditHandler.IsAcceptableInsertion(change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableInsertion_NotInsert_ReturnsFalse() - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 2), string.Empty); - - // Act - var result = CodeBlockEditHandler.IsAcceptableInsertion(change); - - // Assert - Assert.False(result); - } - - [Theory] - [InlineData("{")] - [InlineData("}")] - [InlineData("if (true) { }")] - [InlineData("@
    ")] - [InlineData("
    ")] - [InlineData("*")] - public void ContainsInvalidContent_InvalidContent_ReturnsTrue(string content) - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 0), content); - - // Act - var result = CodeBlockEditHandler.ContainsInvalidContent(change); - - // Assert - Assert.True(result); - } - - [Theory] - [InlineData("var x = true;")] - [InlineData("if (true) Console.WriteLine('!')")] - public void ContainsInvalidContent_ValidContent_ReturnsFalse(string content) - { - // Arrange - var change = new SourceChange(new SourceSpan(0, 0), content); - - // Act - var result = CodeBlockEditHandler.ContainsInvalidContent(change); - - // Assert - Assert.False(result); - } - - private static SyntaxNode GetSpan(SourceLocation start, string content) - { - var builder = SyntaxListBuilder.Create(); - var tokens = CSharpLanguageCharacteristics.Instance.TokenizeString(content).ToArray(); - foreach (var token in tokens) - { - builder.Add((SyntaxToken)token.CreateRed()); - } - var node = SyntaxFactory.CSharpStatementLiteral(builder.ToList()); - - return node; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/DirectiveCSharpTokenizerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/DirectiveCSharpTokenizerTest.cs deleted file mode 100644 index 7f6e8db88af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/DirectiveCSharpTokenizerTest.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class DirectiveCSharpTokenizerTest : CSharpTokenizerTestBase - { - [Fact] - public void Next_ReturnsNull_AfterTokenizingFirstDirective() - { - TestTokenizer( - "\r\n @something \r\n @this is ignored", - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.Transition, "@"), - SyntaxFactory.Token(SyntaxKind.Identifier, "something"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n")); - } - - [Fact] - public void Next_IncludesComments_ReturnsNull_AfterTokenizingFirstDirective() - { - TestTokenizer( - "@*included*@\r\n @something \"value\"\r\n @this is ignored", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, "included"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.Transition, "@"), - SyntaxFactory.Token(SyntaxKind.Identifier, "something"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"value\""), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n")); - } - - internal override object CreateTokenizer(ITextDocument source) - { - return new DirectiveCSharpTokenizer(source); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/DirectiveHtmlTokenizerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/DirectiveHtmlTokenizerTest.cs deleted file mode 100644 index ffee2ab489c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/DirectiveHtmlTokenizerTest.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class DirectiveHtmlTokenizerTest : HtmlTokenizerTestBase - { - [Fact] - public void Next_ReturnsNull_WhenHtmlIsSeen() - { - TestTokenizer( - "\r\n
    Ignored
    ", - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.OpenAngle, "<")); - } - - [Fact] - public void Next_IncludesRazorComments_ReturnsNull_WhenHtmlIsSeen() - { - TestTokenizer( - "\r\n @*included*@
    Ignored
    ", - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, "included"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.Whitespace, " "), - SyntaxFactory.Token(SyntaxKind.OpenAngle, "<")); - } - - internal override object CreateTokenizer(ITextDocument source) - { - return new DirectiveHtmlTokenizer(source); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/DisposableActionTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/DisposableActionTest.cs deleted file mode 100644 index 8f14f832c48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/DisposableActionTest.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class DisposableActionTest - { - [Fact] - public void ActionIsExecutedOnDispose() - { - // Arrange - var called = false; - var action = new DisposableAction(() => { called = true; }); - - // Act - action.Dispose(); - - // Assert - Assert.True(called, "The action was not run when the DisposableAction was disposed"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlAttributeTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/HtmlAttributeTest.cs deleted file mode 100644 index 5706173abc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlAttributeTest.cs +++ /dev/null @@ -1,264 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Linq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class HtmlAttributeTest : ParserTestBase - { - [Fact] - public void SymbolBoundAttributes_BeforeEqualWhitespace1() - { - var attributeName = "[item]"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_BeforeEqualWhitespace2() - { - var attributeName = "[(item,"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_BeforeEqualWhitespace3() - { - var attributeName = "(click)"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_BeforeEqualWhitespace4() - { - var attributeName = "(^click)"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_BeforeEqualWhitespace5() - { - var attributeName = "*something"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_BeforeEqualWhitespace6() - { - var attributeName = "#local"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_Whitespace1() - { - var attributeName = "[item]"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_Whitespace2() - { - var attributeName = "[(item,"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_Whitespace3() - { - var attributeName = "(click)"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_Whitespace4() - { - var attributeName = "(^click)"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_Whitespace5() - { - var attributeName = "*something"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes_Whitespace6() - { - var attributeName = "#local"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes1() - { - var attributeName = "[item]"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes2() - { - var attributeName = "[(item,"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes3() - { - var attributeName = "(click)"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes4() - { - var attributeName = "(^click)"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes5() - { - var attributeName = "*something"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SymbolBoundAttributes6() - { - var attributeName = "#local"; - ParseDocumentTest($"@{{}}"); - } - - [Fact] - public void SimpleLiteralAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SimpleLiteralAttributeWithWhitespaceSurroundingEquals() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void DynamicAttributeWithWhitespaceSurroundingEquals() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void MultiPartLiteralAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void DoubleQuotedLiteralAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void NewLinePrecedingAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void NewLineBetweenAttributes() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void WhitespaceAndNewLinePrecedingAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void UnquotedLiteralAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SimpleExpressionAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void MultiValueExpressionAttribute() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void VirtualPathAttributesWorkWithConditionalAttributes() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void UnquotedAttributeWithCodeWithSpacesInBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void UnquotedAttributeWithCodeWithSpacesInDocument() - { - ParseDocumentTest("}"); - } - - [Fact] - public void ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag() - { - ParseDocumentTest(RazorLanguageVersion.Experimental, "@{}", directives: null, designTime: false); - } - - [Fact] - public void ConditionalAttributesAreDisabledForDataAttributesInBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void ConditionalAttributesAreDisabledForDataAttributesInDocument() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void ComponentFileKind_ParsesDirectiveAttributesAsMarkup() - { - ParseDocumentTest("", fileKind: FileKinds.Component); - } - - [Fact] - public void ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup() - { - ParseDocumentTest("", fileKind: FileKinds.Component); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlBlockTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/HtmlBlockTest.cs deleted file mode 100644 index f44b9d2421c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlBlockTest.cs +++ /dev/null @@ -1,279 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class HtmlBlockTest : ParserTestBase - { - [Fact] - public void HandlesUnbalancedTripleDashHTMLComments() - { - ParseDocumentTest( -@"@{ - -}"); - } - - [Fact] - public void HandlesOpenAngleAtEof() - { - ParseDocumentTest("@{" + Environment.NewLine - + "<"); - } - - [Fact] - public void HandlesOpenAngleWithProperTagFollowingIt() - { - ParseDocumentTest("@{" + Environment.NewLine - + "<" + Environment.NewLine - + "", - designTime: true); - } - - [Fact] - public void TagWithoutCloseAngleDoesNotTerminateBlock() - { - ParseDocumentTest("@{< " + Environment.NewLine - + " "); - } - - [Fact] - public void AllowsStartAndEndTagsToDifferInCase() - { - ParseDocumentTest("@{
  • Foo

  • }"); - } - - [Fact] - public void ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon() - { - ParseDocumentTest("@{@:
  • Foo Bar Baz" + Environment.NewLine - + "bork}"); - } - - [Fact] - public void StopsParsingSingleLineBlockAtEOFIfNoEOLReached() - { - ParseDocumentTest("@{@:foo bar"); - } - - [Fact] - public void StopsAtMatchingCloseTagToStartTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void WithSelfClosingTagJustEmitsTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void CanHandleSelfClosingTagsWithinBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SupportsTagsWithAttributes() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted() - { - ParseDocumentTest("@{\" />}"); - } - - [Fact] - public void AllowsCloseAngleBracketInAttributeValueIfSingleQuoted() - { - ParseDocumentTest("@{\' />}"); - } - - [Fact] - public void AllowsSlashInAttributeValueIfDoubleQuoted() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void AllowsSlashInAttributeValueIfSingleQuoted() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void TerminatesAtEOF() - { - ParseDocumentTest("@{"); - } - - [Fact] - public void SupportsCommentAsBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SupportsCommentWithExtraDashAsBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SupportsCommentWithinBlock() - { - ParseDocumentTest("@{barbaz}"); - } - - [Fact] - public void HtmlCommentSupportsMultipleDashes() - { - ParseDocumentTest( -@"
    -
    -
    -
    -"); - } - - [Fact] - public void ProperlyBalancesCommentStartAndEndTags() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void TerminatesAtEOFWhenParsingComment() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void TerminatesCommentAtFirstOccurrenceOfEndSequence() - { - ParseDocumentTest("@{-->}"); - } - - [Fact] - public void TreatsMalformedTagsAsContent() - { - ParseDocumentTest("@{}"); - } - - - [Fact] - public void ParsesSGMLDeclarationAsEmptyTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void TerminatesSGMLDeclarationAtFirstCloseAngle() - { - ParseDocumentTest("@{ baz>}"); - } - - [Fact] - public void ParsesXMLProcessingInstructionAsEmptyTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair() - { - ParseDocumentTest("@{ baz}"); - } - - [Fact] - public void DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark() - { - // ParseBlockDoesNotTerminateXMLProcessingInstructionAtCloseAngleUnlessPreceededByQuestionMark - ParseDocumentTest("@{ baz?>}"); - } - - [Fact] - public void SupportsScriptTagsWithLessThanSignsInThem() - { - ParseDocumentTest(@"@{}"); - } - - [Fact] - public void SupportsScriptTagsWithSpacedLessThanSignsInThem() - { - ParseDocumentTest(@"@{}"); - } - - [Fact] - public void AcceptsEmptyTextTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void AcceptsTextTagAsOuterTagButDoesNotRender() - { - ParseDocumentTest("@{Foo Bar Baz zoop}"); - } - - [Fact] - public void RendersLiteralTextTagIfDoubled() - { - ParseDocumentTest("@{Foo Bar Baz zoop}"); - } - - [Fact] - public void DoesNotConsiderPsuedoTagWithinMarkupBlock() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void StopsParsingMidEmptyTagIfEOFReached() - { - ParseDocumentTest("@{
    Foo @if(true) {} Bar
  • }"); - } - - [Fact] - public void IgnoresTagsInContentsOfScriptTag() - { - ParseDocumentTest(@"@{}"); - } - - [Fact] - public void HandlesForwardSlashInAttributeContent() - { - ParseDocumentTest(@"@{

    }"); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/HtmlDocumentTest.cs deleted file mode 100644 index 9b28275bc5c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlDocumentTest.cs +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class HtmlDocumentTest : ParserTestBase - { - private static readonly TestFile Nested1000 = TestFile.Create("TestFiles/nested-1000.html", typeof(HtmlDocumentTest)); - - [Fact] - public void NestedCodeBlockWithMarkupSetsDotAsMarkup() - { - ParseDocumentTest("@if (true) { @if(false) {

    @something.
    } }"); - } - - [Fact] - public void OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString() - { - ParseDocumentTest(string.Empty); - } - - [Fact] - public void OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan() - { - ParseDocumentTest(" "); - } - - [Fact] - public void AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan() - { - ParseDocumentTest("@"); - } - - [Fact] - public void CorrectlyHandlesOddlySpacedHTMLElements() - { - ParseDocumentTest("

    Foo

    "); - } - - [Fact] - public void CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement() - { - ParseDocumentTest("
    Foo @if(true) {} Bar
    "); - } - - [Fact] - public void WithinSectionDoesNotCreateDocumentLevelSpan() - { - ParseDocumentTest("@section Foo {" + Environment.NewLine - + " " + Environment.NewLine - + "}", - new[] { SectionDirective.Directive, }); - } - - [Fact] - public void ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered() - { - ParseDocumentTest("foo baz"); - } - - [Fact] - public void HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput() - { - ParseDocumentTest("foo @bar baz"); - } - - [Fact] - public void EmitsAtSignAsMarkupIfAtEndOfFile() - { - ParseDocumentTest("foo @"); - } - - [Fact] - public void EmitsCodeBlockIfFirstCharacterIsSwapCharacter() - { - ParseDocumentTest("@bar"); - } - - [Fact] - public void ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText() - { - ParseDocumentTest("example@microsoft.com"); - } - - [Fact] - public void DoesNotSwitchToCodeOnEmailAddressInAttribute() - { - ParseDocumentTest("Email me"); - } - - [Fact] - public void DoesNotReturnErrorOnMismatchedTags() - { - ParseDocumentTest("Foo

    Baz"); - } - - [Fact] - public void ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered() - { - ParseDocumentTest("Foo BazBar"); - - // Act - var token = sut.AcceptAllButLastDoubleHyphens(); - - // Assert - Assert.True(doubleHyphenToken.IsEquivalentTo(token)); - Assert.True(sut.At(SyntaxKind.CloseAngle)); - Assert.True(doubleHyphenToken.IsEquivalentTo(sut.PreviousToken)); - } - - [Fact] - public void AcceptAllButLastDoubleHypens_ReturnsTheDoubleHyphenTokenAfterAcceptingTheDash() - { - // Arrange - var sut = CreateTestParserForContent("--->"); - - // Act - var token = sut.AcceptAllButLastDoubleHyphens(); - - // Assert - Assert.True(doubleHyphenToken.IsEquivalentTo(token)); - Assert.True(sut.At(SyntaxKind.CloseAngle)); - Assert.True(HtmlMarkupParser.IsHyphen(sut.PreviousToken)); - } - - [Fact] - public void IsHtmlCommentAhead_ReturnsTrueForEmptyCommentTag() - { - // Arrange - var sut = CreateTestParserForContent(""); - - // Act & Assert - Assert.True(sut.IsHtmlCommentAhead()); - } - - [Fact] - public void IsHtmlCommentAhead_ReturnsTrueForValidCommentTag() - { - // Arrange - var sut = CreateTestParserForContent(""); - - // Act & Assert - Assert.True(sut.IsHtmlCommentAhead()); - } - - [Fact] - public void IsHtmlCommentAhead_ReturnsTrueForValidCommentTagWithExtraDashesAtClosingTag() - { - // Arrange - var sut = CreateTestParserForContent(""); - - // Act & Assert - Assert.True(sut.IsHtmlCommentAhead()); - } - - [Fact] - public void IsHtmlCommentAhead_ReturnsFalseForContentWithBadEndingAndExtraDash() - { - // Arrange - var sut = CreateTestParserForContent(""); - - // Act & Assert - Assert.False(sut.IsHtmlCommentAhead()); - } - - [Fact] - public void IsHtmlCommentAhead_ReturnsTrueForValidCommentTagWithExtraInfoAfter() - { - // Arrange - var sut = CreateTestParserForContent(" the first part is a valid comment without the Open angle and bang tokens"); - - // Act & Assert - Assert.True(sut.IsHtmlCommentAhead()); - } - - [Fact] - public void IsHtmlCommentAhead_ReturnsFalseForNotClosedComment() - { - // Arrange - var sut = CreateTestParserForContent(""); - - // Act & Assert - Assert.True(sut.IsHtmlCommentAhead()); - } - - [Fact] - public void IsCommentContentEndingInvalid_ReturnsFalseForAllowedContent() - { - // Arrange - var expectedToken1 = SyntaxFactory.Token(SyntaxKind.Text, "a"); - var sequence = Enumerable.Range((int)'a', 26).Select(item => SyntaxFactory.Token(SyntaxKind.Text, ((char)item).ToString())); - - // Act & Assert - Assert.False(HtmlMarkupParser.IsCommentContentEndingInvalid(sequence)); - } - - [Fact] - public void IsCommentContentEndingInvalid_ReturnsTrueForDisallowedContent() - { - // Arrange - var expectedToken1 = SyntaxFactory.Token(SyntaxKind.Text, "a"); - var sequence = new[] - { - SyntaxFactory.Token(SyntaxKind.OpenAngle, "<"), - SyntaxFactory.Token(SyntaxKind.Bang, "!"), - SyntaxFactory.Token(SyntaxKind.Text, "-") - }; - - // Act & Assert - Assert.True(HtmlMarkupParser.IsCommentContentEndingInvalid(sequence)); - } - - [Fact] - public void IsCommentContentEndingInvalid_ReturnsFalseForEmptyContent() - { - // Arrange - var expectedToken1 = SyntaxFactory.Token(SyntaxKind.Text, "a"); - var sequence = Array.Empty(); - - // Act & Assert - Assert.False(HtmlMarkupParser.IsCommentContentEndingInvalid(sequence)); - } - - private class TestHtmlMarkupParser : HtmlMarkupParser - { - public new SyntaxToken PreviousToken - { - get => base.PreviousToken; - } - - public new bool IsHtmlCommentAhead() - { - return base.IsHtmlCommentAhead(); - } - - public TestHtmlMarkupParser(ParserContext context) : base(context) - { - EnsureCurrent(); - } - - public new SyntaxToken AcceptAllButLastDoubleHyphens() - { - return base.AcceptAllButLastDoubleHyphens(); - } - } - - private static TestHtmlMarkupParser CreateTestParserForContent(string content) - { - var source = TestRazorSourceDocument.Create(content); - var options = RazorParserOptions.CreateDefault(); - var context = new ParserContext(source, options); - - return new TestHtmlMarkupParser(context); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTagsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTagsTest.cs deleted file mode 100644 index cf4852999d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTagsTest.cs +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Text; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class HtmlTagsTest : ParserTestBase - { - private static readonly string[] VoidElementNames = new[] - { - "area", - "base", - "br", - "col", - "command", - "embed", - "hr", - "img", - "input", - "keygen", - "link", - "meta", - "param", - "source", - "track", - "wbr", - }; - - [Fact] - public void EmptyTagNestsLikeNormalTag() - { - ParseDocumentTest("@{

    Bar}"); - } - - [Fact] - public void EmptyTag() - { - // This can happen in situations where a user is in VS' HTML editor and they're modifying - // the contents of an HTML tag. - ParseDocumentTest("@{<> Bar}"); - } - - [Fact] - public void CommentTag() - { - ParseDocumentTest("@{ Bar}"); - } - - [Fact] - public void DocTypeTag() - { - ParseDocumentTest("@{ foo}"); - } - - [Fact] - public void ProcessingInstructionTag() - { - ParseDocumentTest("@{ foo}"); - } - - [Fact] - public void ElementTags() - { - ParseDocumentTest("@{

    Foo

    Bar}"); - } - - [Fact] - public void TextTags() - { - ParseDocumentTest("@{Foo}"); - } - - [Fact] - public void CDataTag() - { - ParseDocumentTest("@{ Bar}"); - } - - [Fact] - public void ScriptTag() - { - ParseDocumentTest(""); - } - - [Fact] - public void ScriptTag_WithNestedMalformedTag() - { - ParseDocumentTest(""); - } - - [Fact] - public void ScriptTag_WithNestedEndTag() - { - ParseDocumentTest(""); - } - - [Fact] - public void ScriptTag_WithNestedBeginTag() - { - ParseDocumentTest(""); - } - - [Fact] - public void ScriptTag_WithNestedTag() - { - ParseDocumentTest(""); - } - - [Fact] - public void ScriptTag_Incomplete() - { - ParseDocumentTest(" }"); - } - - [Fact] - public void VoidElementFollowedByContent() - { - // Arrange - var content = new StringBuilder(); - foreach (var tagName in VoidElementNames) - { - content.AppendLine("@{"); - content.AppendLine("<" + tagName + ">var x = true;"); - content.AppendLine("}"); - } - - // Act & Assert - ParseDocumentTest(content.ToString()); - } - - [Fact] - public void VoidElementFollowedByOtherTag() - { - // Arrange - var content = new StringBuilder(); - foreach (var tagName in VoidElementNames) - { - content.AppendLine(@"{"); - content.AppendLine("<" + tagName + "> var x = true;"); - content.AppendLine("}"); - } - - // Act & Assert - ParseDocumentTest(content.ToString()); - } - - [Fact] - public void VoidElementFollowedByCloseTag() - { - // Arrange - var content = new StringBuilder(); - foreach (var tagName in VoidElementNames) - { - content.AppendLine("@{"); - content.AppendLine("<" + tagName + "> var x = true;"); - content.AppendLine("}"); - } - - // Act & Assert - ParseDocumentTest(content.ToString()); - } - - [Fact] - public void IncompleteVoidElementEndTag() - { - // Arrange - var content = new StringBuilder(); - foreach (var tagName in VoidElementNames) - { - content.AppendLine("@{"); - content.AppendLine("<" + tagName + ">foo#@i

    }"); - } - - [Fact] - public void SwitchesToCodeWhenSwapCharacterEncounteredMidTag() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SwitchesToCodeWhenSwapCharacterEncounteredInTagContent() - { - ParseDocumentTest("@{@bar@boz}"); - } - - [Fact] - public void ParsesCodeWithinSingleLineMarkup() - { - // TODO: Fix at a later date, HTML should be a tag block: https://github.com/aspnet/Razor/issues/101 - ParseDocumentTest("@{@:
  • Foo @Bar Baz" + Environment.NewLine - + "bork}"); - } - - [Fact] - public void SupportsCodeWithinComment() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SupportsCodeWithinSGMLDeclaration() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SupportsCodeWithinCDataDeclaration() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void SupportsCodeWithinXMLProcessingInstruction() - { - ParseDocumentTest("@{}"); - } - - [Fact] - public void DoesNotSwitchToCodeOnEmailAddressInText() - { - ParseDocumentTest("@{anurse@microsoft.com}"); - } - - [Fact] - public void DoesNotSwitchToCodeOnEmailAddressInAttribute() - { - ParseDocumentTest("@{Email me}"); - } - - [Fact] - public void GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine() - { - ParseDocumentTest("@{
      " + Environment.NewLine - + " @foreach(var p in Products) {" + Environment.NewLine - + "
    • Product: @p.Name
    • " + Environment.NewLine - + " }" + Environment.NewLine - + "
    }"); - } - - [Fact] - public void ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine() - { - ParseDocumentTest("
      " + Environment.NewLine - + " @foreach(var p in Products) {" + Environment.NewLine - + "
    • Product: @p.Name
    • " + Environment.NewLine - + " }" + Environment.NewLine - + "
    "); - } - - [Fact] - public void SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine() - { - ParseDocumentTest("@{@section foo {" + Environment.NewLine - + "
      " + Environment.NewLine - + " @foreach(var p in Products) {" + Environment.NewLine - + "
    • Product: @p.Name
    • " + Environment.NewLine - + " }" + Environment.NewLine - + "
    " + Environment.NewLine - + "}}", - new[] { SectionDirective.Directive, }); - } - - [Fact] - public void CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode() - { - ParseDocumentTest("@{
      " + Environment.NewLine - + " @foreach(var p in Products) {" + Environment.NewLine - + "
    • Product: @p.Name
    • " + Environment.NewLine - + " }" + Environment.NewLine - + "
    }", - designTime: true); - } - - // Tests for "@@" escape sequence: - [Fact] - public void TreatsTwoAtSignsAsEscapeSequence() - { - ParseDocumentTest("@{@@bar}"); - } - - [Fact] - public void TreatsPairsOfAtSignsAsEscapeSequence() - { - ParseDocumentTest("@{@@@@@bar}"); - } - - [Fact] - public void ParseDocumentTreatsTwoAtSignsAsEscapeSequence() - { - ParseDocumentTest("@@bar"); - } - - [Fact] - public void ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence() - { - ParseDocumentTest("@@@@@bar"); - } - - [Fact] - public void SectionBodyTreatsTwoAtSignsAsEscapeSequence() - { - ParseDocumentTest( - "@section Foo { @@bar }", - new[] { SectionDirective.Directive, }); - } - - [Fact] - public void SectionBodyTreatsPairsOfAtSignsAsEscapeSequence() - { - ParseDocumentTest( - "@section Foo { @@@@@bar }", - new[] { SectionDirective.Directive, }); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTest.cs deleted file mode 100644 index 92091fa278c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTest.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class HtmlTokenizerTest : HtmlTokenizerTestBase - { - [Fact] - public void Next_Returns_Null_When_EOF_Reached() - { - TestTokenizer(""); - } - - [Fact] - public void Text_Is_Recognized() - { - TestTokenizer("foo-9309&smlkmb;::-3029022,.sdkq92384", - SyntaxFactory.Token(SyntaxKind.Text, "foo-9309&smlkmb;::-3029022,.sdkq92384")); - } - - [Fact] - public void Whitespace_Is_Recognized() - { - TestTokenizer(" \t\f ", - SyntaxFactory.Token(SyntaxKind.Whitespace, " \t\f ")); - } - - [Fact] - public void Newline_Is_Recognized() - { - TestTokenizer("\n\r\r\n", - SyntaxFactory.Token(SyntaxKind.NewLine, "\n"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r"), - SyntaxFactory.Token(SyntaxKind.NewLine, "\r\n")); - } - - [Fact] - public void Transition_Is_Not_Recognized_Mid_Text_If_Surrounded_By_Alphanumeric_Characters() - { - TestSingleToken("foo@bar", SyntaxKind.Text); - } - - [Fact] - public void OpenAngle_Is_Recognized() - { - TestSingleToken("<", SyntaxKind.OpenAngle); - } - - [Fact] - public void Bang_Is_Recognized() - { - TestSingleToken("!", SyntaxKind.Bang); - } - - [Fact] - public void Solidus_Is_Recognized() - { - TestSingleToken("/", SyntaxKind.ForwardSlash); - } - - [Fact] - public void QuestionMark_Is_Recognized() - { - TestSingleToken("?", SyntaxKind.QuestionMark); - } - - [Fact] - public void LeftBracket_Is_Recognized() - { - TestSingleToken("[", SyntaxKind.LeftBracket); - } - - [Fact] - public void CloseAngle_Is_Recognized() - { - TestSingleToken(">", SyntaxKind.CloseAngle); - } - - [Fact] - public void RightBracket_Is_Recognized() - { - TestSingleToken("]", SyntaxKind.RightBracket); - } - - [Fact] - public void Equals_Is_Recognized() - { - TestSingleToken("=", SyntaxKind.Equals); - } - - [Fact] - public void DoubleQuote_Is_Recognized() - { - TestSingleToken("\"", SyntaxKind.DoubleQuote); - } - - [Fact] - public void SingleQuote_Is_Recognized() - { - TestSingleToken("'", SyntaxKind.SingleQuote); - } - - [Fact] - public void Transition_Is_Recognized() - { - TestSingleToken("@", SyntaxKind.Transition); - } - - [Fact] - public void DoubleHyphen_Is_Recognized() - { - TestSingleToken("--", SyntaxKind.DoubleHyphen); - } - - [Fact] - public void SingleHyphen_Is_Not_Recognized() - { - TestSingleToken("-", SyntaxKind.Text); - } - - [Fact] - public void SingleHyphen_Mid_Text_Is_Not_Recognized_As_Separate_Token() - { - TestSingleToken("foo-bar", SyntaxKind.Text); - } - - [Fact] - public void Next_Ignores_Star_At_EOF_In_RazorComment() - { - TestTokenizer( - "@* Foo * Bar * Baz *", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, " Foo * Bar * Baz *")); - } - - [Fact] - public void Next_Ignores_Star_Without_Trailing_At() - { - TestTokenizer( - "@* Foo * Bar * Baz *@", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, " Foo * Bar * Baz "), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@")); - } - - [Fact] - public void Next_Returns_RazorComment_Token_For_Entire_Razor_Comment() - { - TestTokenizer( - "@* Foo Bar Baz *@", - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@"), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentLiteral, " Foo Bar Baz "), - SyntaxFactory.Token(SyntaxKind.RazorCommentStar, "*"), - SyntaxFactory.Token(SyntaxKind.RazorCommentTransition, "@")); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTestBase.cs b/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTestBase.cs deleted file mode 100644 index 0b6250d6d8f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/HtmlTokenizerTestBase.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public abstract class HtmlTokenizerTestBase : TokenizerTestBase - { - private static SyntaxToken _ignoreRemaining = SyntaxFactory.Token(SyntaxKind.Marker, string.Empty); - - internal override object IgnoreRemaining - { - get { return _ignoreRemaining; } - } - - internal override object CreateTokenizer(ITextDocument source) - { - return new HtmlTokenizer(source); - } - - internal void TestSingleToken(string text, SyntaxKind expectedTokenKind) - { - TestTokenizer(text, SyntaxFactory.Token(expectedTokenKind, text)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/ImplicitExpressionEditHandlerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/ImplicitExpressionEditHandlerTest.cs deleted file mode 100644 index bf71526eded..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/ImplicitExpressionEditHandlerTest.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class ImplicitExpressionEditHandlerTest - { - [Fact] - public void IsAcceptableDeletionInBalancedParenthesis_DeletionStartNotInBalancedParenthesis_ReturnsFalse() - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(Hell)(o)"); - var change = new SourceChange(new SourceSpan(6, 1), string.Empty); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableDeletionInBalancedParenthesis(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableDeletionInBalancedParenthesis_DeletionEndNotInBalancedParenthesis_ReturnsFalse() - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(Hell)(o)"); - var change = new SourceChange(new SourceSpan(5, 1), string.Empty); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableDeletionInBalancedParenthesis(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableDeletionInBalancedParenthesis_DeletionOverlapsBalancedParenthesis_ReturnsFalse() - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(Hell)(o)"); - var change = new SourceChange(new SourceSpan(5, 2), string.Empty); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableDeletionInBalancedParenthesis(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableDeletionInBalancedParenthesis_DeletionDoesNotImpactBalancedParenthesis_ReturnsTrue() - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(H(ell)o)"); - var change = new SourceChange(new SourceSpan(3, 3), string.Empty); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableDeletionInBalancedParenthesis(span, change); - - // Assert - Assert.True(result); - } - - [Theory] - [InlineData("(")] - [InlineData(")")] - public void IsAcceptableInsertionInBalancedParenthesis_ReturnsFalseIfChangeIsParenthesis(string changeText) - { - // Arrange - var change = new SourceChange(0, 1, changeText); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableInsertionInBalancedParenthesis(null, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void TryUpdateCountFromContent_SingleLeftParenthesis_CountsCorrectly() - { - // Arrange - var content = "("; - var count = 0; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateCountFromContent(content, ref count); - - // Assert - Assert.True(result); - Assert.Equal(1, count); - } - - [Fact] - public void TryUpdateCountFromContent_SingleRightParenthesis_CountsCorrectly() - { - // Arrange - var content = ")"; - var count = 2; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateCountFromContent(content, ref count); - - // Assert - Assert.True(result); - Assert.Equal(1, count); - } - - [Fact] - public void TryUpdateCountFromContent_CorrectCount_ReturnsTrue() - { - // Arrange - var content = "\"(()("; - var count = 0; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateCountFromContent(content, ref count); - - // Assert - Assert.True(result); - Assert.Equal(2, count); - } - - [Fact] - public void TryUpdateCountFromContent_ExistingCountAndNonParenthesisContent_ReturnsTrue() - { - // Arrange - var content = "'(abc)de)fg"; - var count = 1; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateCountFromContent(content, ref count); - - // Assert - Assert.True(result); - Assert.Equal(0, count); - } - - [Fact] - public void TryUpdateCountFromContent_InvalidParenthesis_ReturnsFalse() - { - // Arrange - var content = "'())))))"; - var count = 4; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateCountFromContent(content, ref count); - - // Assert - Assert.False(result); - Assert.Equal(4, count); - } - - [Fact] - public void TryUpdateBalanceCount_SingleLeftParenthesis_CountsCorrectly() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.LeftParenthesis, "("); - var count = 0; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.True(result); - Assert.Equal(1, count); - } - - [Fact] - public void TryUpdateBalanceCount_SingleRightParenthesis_CountsCorrectly() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.RightParenthesis, ")"); - var count = 2; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.True(result); - Assert.Equal(1, count); - } - - [Fact] - public void TryUpdateBalanceCount_IncompleteStringLiteral_CountsCorrectly() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"(("); - var count = 2; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.True(result); - Assert.Equal(4, count); - } - - [Fact] - public void TryUpdateBalanceCount_IncompleteCharacterLiteral_CountsCorrectly() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'(("); - var count = 2; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.True(result); - Assert.Equal(4, count); - } - - [Fact] - public void TryUpdateBalanceCount_CompleteStringLiteral_CountsCorrectly() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.StringLiteral, "\"((\""); - var count = 2; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.True(result); - Assert.Equal(2, count); - } - - [Fact] - public void TryUpdateBalanceCount_CompleteCharacterLiteral_CountsCorrectly() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "'('"); - var count = 2; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.True(result); - Assert.Equal(2, count); - } - - [Fact] - public void TryUpdateBalanceCount_InvalidParenthesis_ReturnsFalse() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.RightParenthesis, ")"); - var count = 0; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.False(result); - Assert.Equal(0, count); - } - - [Fact] - public void TryUpdateBalanceCount_InvalidParenthesisStringLiteral_ReturnsFalse() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.StringLiteral, "\")"); - var count = 0; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.False(result); - Assert.Equal(0, count); - } - - [Fact] - public void TryUpdateBalanceCount_InvalidParenthesisCharacterLiteral_ReturnsFalse() - { - // Arrange - var token = Syntax.SyntaxFactory.Token(SyntaxKind.CharacterLiteral, "')"); - var count = 0; - - // Act - var result = ImplicitExpressionEditHandler.TryUpdateBalanceCount(token, ref count); - - // Assert - Assert.False(result); - Assert.Equal(0, count); - } - - [Fact] - public void ContainsPosition_AtStartOfToken_ReturnsTrue() - { - // Arrange - var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); - - // Act - var result = ImplicitExpressionEditHandler.ContainsPosition(4, token); - - // Assert - Assert.True(result); - } - - [Fact] - public void ContainsPosition_InsideOfToken_ReturnsTrue() - { - // Arrange - var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); - - // Act - var result = ImplicitExpressionEditHandler.ContainsPosition(6, token); - - // Assert - Assert.True(result); - } - - [Fact] - public void ContainsPosition_AtEndOfToken_ReturnsFalse() - { - // Arrange - var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); - - // Act - var result = ImplicitExpressionEditHandler.ContainsPosition(9, token); - - // Assert - Assert.False(result); - } - - [Theory] - [InlineData(10)] - [InlineData(2)] - public void ContainsPosition_OutsideOfToken_ReturnsFalse(int position) - { - // Arrange - var token = GetTokens(new SourceLocation(4, 1, 2), "hello").Single(); - - // Act - var result = ImplicitExpressionEditHandler.ContainsPosition(position, token); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsInsideParenthesis_SurroundedByCompleteParenthesis_ReturnsFalse() - { - // Arrange - var tokens = GetTokens(SourceLocation.Zero, "(hello)point(world)"); - - // Act - var result = ImplicitExpressionEditHandler.IsInsideParenthesis(9, tokens); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsInsideParenthesis_InvalidParenthesis_ReturnsFalse() - { - // Arrange - var tokens = GetTokens(SourceLocation.Zero, "(hello))point)"); - - // Act - var result = ImplicitExpressionEditHandler.IsInsideParenthesis(10, tokens); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsInsideParenthesis_NoParenthesis_ReturnsFalse() - { - // Arrange - var tokens = GetTokens(SourceLocation.Zero, "Hello World"); - - // Act - var result = ImplicitExpressionEditHandler.IsInsideParenthesis(3, tokens); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsInsideParenthesis_InBalancedParenthesis_ReturnsTrue() - { - // Arrange - var tokens = GetTokens(SourceLocation.Zero, "Foo(GetValue(), DoSomething(point))"); - - // Act - var result = ImplicitExpressionEditHandler.IsInsideParenthesis(30, tokens); - - // Assert - Assert.True(result); - } - - [Theory] - [InlineData("(")] - [InlineData(")")] - public void IsAcceptableInsertionInBalancedParenthesis_InsertingParenthesis_ReturnsFalse(string text) - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(Hello World)"); - var change = new SourceChange(new SourceSpan(3, 0), text); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableInsertionInBalancedParenthesis(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableInsertionInBalancedParenthesis_UnbalancedParenthesis_ReturnsFalse() - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(Hello"); - var change = new SourceChange(new SourceSpan(6, 0), " World"); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableInsertionInBalancedParenthesis(span, change); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsAcceptableInsertionInBalancedParenthesis_BalancedParenthesis_ReturnsTrue() - { - // Arrange - var span = GetSyntaxNode(SourceLocation.Zero, "(Hello)"); - var change = new SourceChange(new SourceSpan(6, 0), " World"); - - // Act - var result = ImplicitExpressionEditHandler.IsAcceptableInsertionInBalancedParenthesis(span, change); - - // Assert - Assert.True(result); - } - - private static Syntax.MarkupTextLiteralSyntax GetSyntaxNode(SourceLocation start, string content) - { - var builder = SyntaxListBuilder.Create(); - var tokens = CSharpLanguageCharacteristics.Instance.TokenizeString(content).ToArray(); - foreach (var token in tokens) - { - builder.Add(token); - } - var node = SyntaxFactory.MarkupTextLiteral(builder.ToList()).CreateRed(parent: null, position: start.AbsoluteIndex); - - return (Syntax.MarkupTextLiteralSyntax)node; - } - - private static IReadOnlyList GetTokens(SourceLocation start, string content) - { - var parent = GetSyntaxNode(start, content); - return parent.LiteralTokens; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/LineTrackingStringBufferTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/LineTrackingStringBufferTest.cs deleted file mode 100644 index 27179a9f6d9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/LineTrackingStringBufferTest.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class LineTrackingStringBufferTest - { - [Fact] - public void CtorInitializesProperties() - { - var buffer = new LineTrackingStringBuffer(string.Empty, "test.cshtml"); - Assert.Equal(0, buffer.Length); - } - - [Fact] - public void CharAtCorrectlyReturnsLocation() - { - var buffer = new LineTrackingStringBuffer("foo\rbar\nbaz\r\nbiz", "test.cshtml"); - var chr = buffer.CharAt(14); - Assert.Equal('i', chr.Character); - Assert.Equal(new SourceLocation("test.cshtml", 14, 3, 1), chr.Location); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/MarkupElementGroupingTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/MarkupElementGroupingTest.cs deleted file mode 100644 index f1167e3eb84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/MarkupElementGroupingTest.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class MarkupElementGroupingTest : ParserTestBase - { - [Fact] - public void Handles_ValidTags() - { - // Arrange - var content = @" -
    Foo
    -

    Bar

    -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_ValidNestedTags() - { - // Arrange - var content = @" -
    - Foo -

    Bar

    - Baz -
    "; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_ValidNestedTagsMixedWithCode() - { - // Arrange - var content = @" -
    - Foo -

    @Bar

    - @{ var x = Bar; } -
    -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_EndTagsWithMissingStartTags() - { - // Arrange - var content = @" -Foo
  • -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_StartTagsWithMissingEndTags() - { - // Arrange - var content = @" -
    - Foo -

    - Bar - -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_SelfClosingTags() - { - // Arrange - var content = @" -
    Foo -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_MalformedTags_RecoversSuccessfully() - { - // Arrange - var content = @" -

    contentfooter
    -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_MisplacedEndTags_RecoversSuccessfully() - { - // Arrange - var content = @" -
    contentfooter
    -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_DoesNotSpecialCase_VoidTags() - { - // Arrange - var content = @" -Foo -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_SpecialCasesVoidTags_WithNoEndTags() - { - // Arrange - var content = @" - -"; - - // Act & Assert - ParseDocumentTest(content); - } - - [Fact] - public void Handles_IncompleteTags() - { - // Arrange - var content = @" -<
    >Foo< > -"; - - // Act & Assert - ParseDocumentTest(content); - } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/RazorDirectivesTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/RazorDirectivesTest.cs deleted file mode 100644 index 946fea9b51a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/RazorDirectivesTest.cs +++ /dev/null @@ -1,978 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class RazorDirectivesTest : ParserTestBase - { - [Fact] - public void DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - builder => - { - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.AddTypeToken(); - }); - - // Act & Assert - ParseDocumentTest( -@"@custom System.Text.Encoding.ASCIIEncoding -@custom System.Text.Encoding.UTF8Encoding", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - builder => - { - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.AddTypeToken(); - }); - - // Act & Assert - ParseDocumentTest( -@"@custom System.Text.Encoding.ASCIIEncoding -@custom System.Text.Encoding.UTF8Encoding", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives() - { - // Arrange - var customDescriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - builder => - { - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.AddTypeToken(); - }); - var somethingDescriptor = DirectiveDescriptor.CreateDirective( - "something", - DirectiveKind.SingleLine, - builder => - { - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.AddMemberToken(); - }); - - // Act & Assert - ParseDocumentTest( -@"@custom System.Text.Encoding.ASCIIEncoding -@something Else", - new[] { customDescriptor, somethingDescriptor }); - } - - [Fact] - public void DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives() - { - // Arrange - var customDescriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - builder => - { - builder.Usage = DirectiveUsage.FileScopedSinglyOccurring; - builder.AddTypeToken(); - }); - var somethingDescriptor = DirectiveDescriptor.CreateDirective( - "something", - DirectiveKind.SingleLine, - builder => - { - builder.Usage = DirectiveUsage.FileScopedMultipleOccurring; - builder.AddMemberToken(); - }); - - // Act & Assert - ParseDocumentTest( -@"@* There are two directives beneath this *@ -@custom System.Text.Encoding.ASCIIEncoding - -@something Else - -

    This is extra

    ", - new[] { customDescriptor, somethingDescriptor }); - } - - [Fact] - public void DirectiveDescriptor_TokensMustBeSeparatedBySpace() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken().AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"string1\"\"string2\"", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddNamespaceToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System.", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddNamespaceToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System<", - new[] { descriptor }); - } - [Fact] - public void DirectiveDescriptor_CanHandleIncompleteNamespaceTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddNamespaceToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System." + Environment.NewLine, - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_CanHandleInvalidNamespaceTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddNamespaceToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System<" + Environment.NewLine, - new[] { descriptor }); - } - - [Fact] - public void ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddTypeToken()); - - // Act & Assert - ParseDocumentTest(Environment.NewLine + " @custom System.Text.Encoding.ASCIIEncoding", - new[] { descriptor }); - } - - [Fact] - public void BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace() - { - // Act & Assert - ParseDocumentTest(Environment.NewLine + " @addTagHelper \"*, Foo\""); - } - - [Fact] - public void BuiltInDirectiveErrorsIfNotAtStartOfLine() - { - // Act & Assert - ParseDocumentTest("{ @addTagHelper \"*, Foo\"" + Environment.NewLine + "}"); - } - - [Fact] - public void ExtensibleDirectiveErrorsIfNotAtStartOfLine() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddTypeToken()); - - // Act & Assert - ParseDocumentTest( - "{ @custom System.Text.Encoding.ASCIIEncoding" + Environment.NewLine + "}", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsTypeTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddTypeToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System.Text.Encoding.ASCIIEncoding", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsMemberTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddMemberToken()); - - // Act & Assert - ParseDocumentTest( - "@custom Some_Member", - new[] { descriptor }); - } - - [Fact] - public void Parser_ParsesNamespaceDirectiveToken_WithSingleSegment() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddNamespaceToken()); - - // Act & Assert - ParseDocumentTest( - "@custom BaseNamespace", - new[] { descriptor }); - } - - [Fact] - public void Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddNamespaceToken()); - - // Act & Assert - ParseDocumentTest( - "@custom BaseNamespace.Foo.Bar", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsStringTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"AString\"", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom AString", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_StringToken_ParserErrorForNonStringValue() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom {foo?}", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom 'AString'", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom AString\"", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsMultipleTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddTypeToken().AddMemberToken().AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System.Text.Encoding.ASCIIEncoding Some_Member \"AString\"", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsRazorBlocks() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.RazorBlock, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"Header\" {

    F{o}o

    }", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsCodeBlocks() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.CodeBlock, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"Name\" { foo(); bar(); }", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_AllowsWhiteSpaceAroundTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddTypeToken().AddMemberToken()); - - // Act & Assert - ParseDocumentTest( - "@custom System.Text.Encoding.ASCIIEncoding Some_Member ", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_ErrorsForInvalidMemberTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddMemberToken()); - - // Act & Assert - ParseDocumentTest( - "@custom -Some_Member", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_NoErrorsSemicolonAfterDirective() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"hello\" ; ", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_AllowsNullableTypes() - { - // Arrange - var variants = new[] - { - "string?", - "string?[]", - "global::System.Int32?", - "KeyValuePair?", - "KeyValuePair?[]", - "global::System.Collections.Generic.KeyValuePair?[]", - }; - - var directiveName = "custom"; - var source = $"@{directiveName}"; - var descriptor = DirectiveDescriptor.CreateDirective( - directiveName, - DirectiveKind.SingleLine, - b => - { - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - }); - - for (var i = 0; i < variants.Length; i++) - { - source += $" {variants[i]}"; - } - - // Act & Assert - ParseDocumentTest(source, new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_AllowsTupleTypes() - { - // Arrange - var variants = new[] - { - "(bool, int)", - "(int aa, string bb)?", - "( int? q , bool w )", - "( int ? q, bool ?w ,(long ? [])) ?", - "(List<(int, string)?> aa, string bb)", - "(string ss, (int u, List<(string, int)> k, (Char c, bool b, List l)), global::System.Int32[] a)", - }; - - var directiveName = "custom"; - var source = $"@{directiveName}"; - var descriptor = DirectiveDescriptor.CreateDirective( - directiveName, - DirectiveKind.SingleLine, - b => - { - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - b.AddTypeToken(); - }); - - for (var i = 0; i < variants.Length; i++) - { - source += $" {variants[i]}"; - } - - // Act & Assert - ParseDocumentTest(source, new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddTypeToken()); - - // Act & Assert - ParseDocumentTest( - $"@custom (bool, int?) ", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_ErrorsExtraContentAfterDirective() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"hello\" \"world\"", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.CodeBlock, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"Hello\" World { foo(); bar(); }", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.CodeBlock, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"Hello\"", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_ErrorsWhenMissingEndBrace() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.CodeBlock, - b => b.AddStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"Hello\" {", - new[] { descriptor }); - } - - [Fact] - public void TagHelperPrefixDirective_NoValueSucceeds() - { - ParseDocumentTest("@tagHelperPrefix \"\""); - } - - [Fact] - public void TagHelperPrefixDirective_Succeeds() - { - ParseDocumentTest("@tagHelperPrefix Foo"); - } - - [Fact] - public void TagHelperPrefixDirective_WithQuotes_Succeeds() - { - ParseDocumentTest("@tagHelperPrefix \"Foo\""); - } - - [Fact] - public void TagHelperPrefixDirective_RequiresValue() - { - ParseDocumentTest("@tagHelperPrefix "); - } - - [Fact] - public void TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue() - { - ParseDocumentTest("@tagHelperPrefix \"Foo"); - } - - [Fact] - public void TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue() - { - ParseDocumentTest("@tagHelperPrefix Foo \""); - } - - [Fact] - public void RemoveTagHelperDirective_NoValue_Invalid() - { - ParseDocumentTest("@removeTagHelper \"\""); - } - - [Fact] - public void RemoveTagHelperDirective_InvalidLookupText_AddsError() - { - ParseDocumentTest("@removeTagHelper Foo"); - } - - [Fact] - public void RemoveTagHelperDirective_SingleQuotes_AddsError() - { - ParseDocumentTest("@removeTagHelper '*, Foo'"); - } - - [Fact] - public void RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError() - { - ParseDocumentTest("@removeTagHelper \"Foo\""); - } - - [Fact] - public void RemoveTagHelperDirective_SupportsSpaces() - { - ParseDocumentTest("@removeTagHelper Foo, Bar "); - } - - [Fact] - public void RemoveTagHelperDirective_RequiresValue() - { - ParseDocumentTest("@removeTagHelper "); - } - - [Fact] - public void RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue() - { - // Arrange - ParseDocumentTest("@removeTagHelper \"Foo"); - } - - [Fact] - public void RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue() - { - ParseDocumentTest("@removeTagHelper Foo\""); - } - - [Fact] - public void AddTagHelperDirective_NoValue_Invalid() - { - ParseDocumentTest("@addTagHelper \"\""); - } - - [Fact] - public void AddTagHelperDirective_InvalidLookupText_AddsError() - { - ParseDocumentTest("@addTagHelper Foo"); - } - - [Fact] - public void AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError() - { - ParseDocumentTest("@addTagHelper \"Foo\""); - } - - [Fact] - public void AddTagHelperDirective_SingleQuotes_AddsError() - { - ParseDocumentTest("@addTagHelper '*, Foo'"); - } - - [Fact] - public void AddTagHelperDirective_SupportsSpaces() - { - ParseDocumentTest("@addTagHelper Foo, Bar "); - } - - [Fact] - public void AddTagHelperDirective_RequiresValue() - { - ParseDocumentTest("@addTagHelper "); - } - - [Fact] - public void AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue() - { - ParseDocumentTest("@addTagHelper \"Foo"); - } - - [Fact] - public void AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue() - { - ParseDocumentTest("@addTagHelper Foo\""); - } - - [Fact] - public void InheritsDirectiveSupportsArrays() - { - ParseDocumentTest( - "@inherits string[[]][]", - new[] { InheritsDirective.Directive, }); - } - - [Fact] - public void InheritsDirectiveSupportsNestedGenerics() - { - ParseDocumentTest( - "@inherits System.Web.Mvc.WebViewPage>", - new[] { InheritsDirective.Directive, }); - } - - [Fact] - public void InheritsDirectiveSupportsTypeKeywords() - { - ParseDocumentTest( - "@inherits string", - new[] { InheritsDirective.Directive, }); - } - - [Fact] - public void Parse_FunctionsDirective() - { - ParseDocumentTest( - "@functions { foo(); bar(); }", - new[] { FunctionsDirective.Directive, }); - } - - [Fact] - public void EmptyFunctionsDirective() - { - ParseDocumentTest( - "@functions { }", - new[] { FunctionsDirective.Directive, }); - } - - [Fact] - public void Parse_SectionDirective() - { - ParseDocumentTest( - "@section Header {

    F{o}o

    }", - new[] { SectionDirective.Directive, }); - } - - [Fact] - public void OptionalDirectiveTokens_AreSkipped() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddOptionalStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom ", - new[] { descriptor }); - } - - [Fact] - public void OptionalDirectiveTokens_WithSimpleTokens_AreParsed() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddOptionalStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"simple-value\"", - new[] { descriptor }); - } - - [Fact] - public void OptionalDirectiveTokens_WithBraces_AreParsed() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddOptionalStringToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"{formaction}?/{id}?\"", - new[] { descriptor }); - } - - [Fact] - public void OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddOptionalStringToken().AddOptionalTypeToken()); - - // Act & Assert - ParseDocumentTest( - "@custom \"{formaction}?/{id}?\" System.String", - new[] { descriptor }); - } - - [Fact] - public void OptionalMemberTokens_WithMissingMember_IsParsed() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "TestDirective", - DirectiveKind.SingleLine, - b => b.AddOptionalMemberToken().AddOptionalStringToken()); - - // Act & Assert - ParseDocumentTest( - "@TestDirective ", - new[] { descriptor }); - } - - [Fact] - public void OptionalMemberTokens_WithMemberSpecified_IsParsed() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "TestDirective", - DirectiveKind.SingleLine, - b => b.AddOptionalMemberToken().AddOptionalStringToken()); - - // Act & Assert - ParseDocumentTest( - "@TestDirective PropertyName", - new[] { descriptor }); - } - - [Fact] - public void Directives_CanUseReservedWord_Class() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "class", - DirectiveKind.SingleLine); - - // Act & Assert - ParseDocumentTest( - "@class", - new[] { descriptor }); - } - - [Fact] - public void Directives_CanUseReservedWord_Namespace() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "namespace", - DirectiveKind.SingleLine); - - // Act & Assert - ParseDocumentTest( - "@namespace", - new[] { descriptor }); - } - - [Fact] - public void Directives_ReservedWordInsideCodeBlock() - { - ParseDocumentTest("@{ class }"); - } - - [Fact] - public void DirectiveDescriptor_UnderstandsAttributeTokens() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddAttributeToken()); - - // Act & Assert - ParseDocumentTest(@" -@custom [Serializable] -@custom [DllImport(""user32.dll"", SetLastError=false, ExactSpelling=false)] -", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_AttributeToken_BalancesBrackets() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddAttributeToken()); - - // Act & Assert - ParseDocumentTest(@" -@custom [SomeCustom(new int[] { 1, 2, 3 } -", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddAttributeToken()); - - // Act & Assert - ParseDocumentTest(@" -@custom [SomeCustom(new int[] - { - 1, - 2, - 3 - }] -", - new[] { descriptor }); - } - - [Fact] - public void DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket() - { - // Arrange - var descriptor = DirectiveDescriptor.CreateDirective( - "custom", - DirectiveKind.SingleLine, - b => b.AddAttributeToken()); - - // Act & Assert - ParseDocumentTest("@custom Serializable]", - new[] { descriptor }); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/RazorParserTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/RazorParserTest.cs deleted file mode 100644 index 7d848c29754..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/RazorParserTest.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class RazorParserTest - { - [Fact] - public void CanParseStuff() - { - var parser = new RazorParser(); - var sourceDocument = TestRazorSourceDocument.CreateResource("TestFiles/Source/BasicMarkup.cshtml", GetType()); - var output = parser.Parse(sourceDocument); - - Assert.NotNull(output); - } - - [Fact] - public void ParseMethodCallsParseDocumentOnMarkupParserAndReturnsResults() - { - // Arrange - var parser = new RazorParser(); - var expected = -@"RazorDocument - [0..12)::12 - [foo @bar baz] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..4)::4 - [foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Whitespace;[ ]; - CSharpCodeBlock - [4..8)::4 - CSharpImplicitExpression - [4..8)::4 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [5..8)::3 - CSharpCodeBlock - [5..8)::3 - CSharpExpressionLiteral - [5..8)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [8..12)::4 - [ baz] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[baz]; -"; - - // Act - var syntaxTree = parser.Parse(TestRazorSourceDocument.Create("foo @bar baz")); - - // Assert - var actual = SyntaxNodeSerializer.Serialize(syntaxTree.Root); - Assert.Equal(expected, actual); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/SourceLocationTrackerTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/SourceLocationTrackerTest.cs deleted file mode 100644 index 9671ecedda1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/SourceLocationTrackerTest.cs +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class SourceLocationTrackerTest - { - private static readonly SourceLocation TestStartLocation = new SourceLocation(10, 42, 45); - - [Fact] - public void ConstructorSetsCurrentLocationToZero() - { - Assert.Equal(SourceLocation.Zero, new SourceLocationTracker().CurrentLocation); - } - - [Fact] - public void ConstructorWithSourceLocationSetsCurrentLocationToSpecifiedValue() - { - var loc = new SourceLocation(10, 42, 4); - Assert.Equal(loc, new SourceLocationTracker(loc).CurrentLocation); - } - - [Theory] - [InlineData(null)] - [InlineData("path-to-file")] - public void Advance_PreservesSourceLocationFilePath(string path) - { - // Arrange - var sourceLocation = new SourceLocation(path, 15, 2, 8); - - // Act - var result = SourceLocationTracker.Advance(sourceLocation, "Hello world"); - - // Assert - Assert.Equal(path, result.FilePath); - Assert.Equal(26, result.AbsoluteIndex); - Assert.Equal(2, result.LineIndex); - Assert.Equal(19, result.CharacterIndex); - } - - [Fact] - public void UpdateLocationAdvancesCorrectlyForMultiLineString() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation("foo\nbar\rbaz\r\nbox"); - - // Assert - Assert.Equal(26, tracker.CurrentLocation.AbsoluteIndex); - Assert.Equal(45, tracker.CurrentLocation.LineIndex); - Assert.Equal(3, tracker.CurrentLocation.CharacterIndex); - } - - [Fact] - public void UpdateLocationAdvancesAbsoluteIndexOnNonNewlineCharacter() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('f', 'o'); - - // Assert - Assert.Equal(11, tracker.CurrentLocation.AbsoluteIndex); - } - - [Fact] - public void UpdateLocationAdvancesCharacterIndexOnNonNewlineCharacter() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('f', 'o'); - - // Assert - Assert.Equal(46, tracker.CurrentLocation.CharacterIndex); - } - - [Fact] - public void UpdateLocationDoesNotAdvanceLineIndexOnNonNewlineCharacter() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('f', 'o'); - - // Assert - Assert.Equal(42, tracker.CurrentLocation.LineIndex); - } - - [Fact] - public void UpdateLocationAdvancesLineIndexOnSlashN() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\n', 'o'); - - // Assert - Assert.Equal(43, tracker.CurrentLocation.LineIndex); - } - - [Fact] - public void UpdateLocationAdvancesAbsoluteIndexOnSlashN() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\n', 'o'); - - // Assert - Assert.Equal(11, tracker.CurrentLocation.AbsoluteIndex); - } - - [Fact] - public void UpdateLocationResetsCharacterIndexOnSlashN() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\n', 'o'); - - // Assert - Assert.Equal(0, tracker.CurrentLocation.CharacterIndex); - } - - [Fact] - public void UpdateLocationAdvancesLineIndexOnSlashRFollowedByNonNewlineCharacter() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\r', 'o'); - - // Assert - Assert.Equal(43, tracker.CurrentLocation.LineIndex); - } - - [Fact] - public void UpdateLocationAdvancesAbsoluteIndexOnSlashRFollowedByNonNewlineCharacter() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\r', 'o'); - - // Assert - Assert.Equal(11, tracker.CurrentLocation.AbsoluteIndex); - } - - [Fact] - public void UpdateLocationResetsCharacterIndexOnSlashRFollowedByNonNewlineCharacter() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\r', 'o'); - - // Assert - Assert.Equal(0, tracker.CurrentLocation.CharacterIndex); - } - - [Fact] - public void UpdateLocationDoesNotAdvanceLineIndexOnSlashRFollowedBySlashN() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\r', '\n'); - - // Assert - Assert.Equal(42, tracker.CurrentLocation.LineIndex); - } - - [Fact] - public void UpdateLocationAdvancesAbsoluteIndexOnSlashRFollowedBySlashN() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\r', '\n'); - - // Assert - Assert.Equal(11, tracker.CurrentLocation.AbsoluteIndex); - } - - [Fact] - public void UpdateLocationAdvancesCharacterIndexOnSlashRFollowedBySlashN() - { - // Arrange - var tracker = new SourceLocationTracker(TestStartLocation); - - // Act - tracker.UpdateLocation('\r', '\n'); - - // Assert - Assert.Equal(46, tracker.CurrentLocation.CharacterIndex); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperBlockRewriterTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperBlockRewriterTest.cs deleted file mode 100644 index b574dbdf128..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperBlockRewriterTest.cs +++ /dev/null @@ -1,2341 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class TagHelperBlockRewriterTest : TagHelperRewritingTestBase - { - public static TagHelperDescriptor[] SymbolBoundAttributes_Descriptors = new[] - { - TagHelperDescriptorBuilder.Create("CatchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireAttributeDescriptor(attribute => attribute.Name("bound"))) - .BoundAttributeDescriptor(attribute => - attribute - .Name("[item]") - .PropertyName("ListItems") - .TypeName(typeof(List).Namespace + "List")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("[(item)]") - .PropertyName("ArrayItems") - .TypeName(typeof(string[]).Namespace + "System.String[]")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("(click)") - .PropertyName("Event1") - .TypeName(typeof(Action).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("(^click)") - .PropertyName("Event2") - .TypeName(typeof(Action).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("*something") - .PropertyName("StringProperty1") - .TypeName(typeof(string).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("#local") - .PropertyName("StringProperty2") - .TypeName(typeof(string).FullName)) - .Build() - }; - - [Fact] - public void CanHandleSymbolBoundAttributes1() - { - EvaluateData(SymbolBoundAttributes_Descriptors, "
      "); - } - - [Fact] - public void CanHandleSymbolBoundAttributes2() - { - EvaluateData(SymbolBoundAttributes_Descriptors, "
        "); - } - - [Fact] - public void CanHandleSymbolBoundAttributes3() - { - EvaluateData(SymbolBoundAttributes_Descriptors, ""); - } - - [Fact] - public void CanHandleSymbolBoundAttributes4() - { - EvaluateData(SymbolBoundAttributes_Descriptors, ""); - } - - [Fact] - public void CanHandleSymbolBoundAttributes5() - { - EvaluateData(SymbolBoundAttributes_Descriptors, ""); - } - - [Fact] - public void CanHandleSymbolBoundAttributes6() - { - EvaluateData(SymbolBoundAttributes_Descriptors, "
        "); - } - - [Fact] - public void CanHandleSymbolBoundAttributes7() - { - EvaluateData(SymbolBoundAttributes_Descriptors, "
        "); - } - - public static TagHelperDescriptor[] WithoutEndTag_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build() - }; - - [Fact] - public void CanHandleWithoutEndTagTagStructure1() - { - EvaluateData(WithoutEndTag_Descriptors, ""); - } - - [Fact] - public void CanHandleWithoutEndTagTagStructure2() - { - EvaluateData(WithoutEndTag_Descriptors, ""); - } - - [Fact] - public void CanHandleWithoutEndTagTagStructure3() - { - EvaluateData(WithoutEndTag_Descriptors, ""); - } - - [Fact] - public void CanHandleWithoutEndTagTagStructure4() - { - EvaluateData(WithoutEndTag_Descriptors, ""); - } - - [Fact] - public void CanHandleWithoutEndTagTagStructure5() - { - EvaluateData(WithoutEndTag_Descriptors, "
        "); - } - - public static TagHelperDescriptor[] GetTagStructureCompatibilityDescriptors(TagStructure structure1, TagStructure structure2) - { - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(structure1)) - .Build(), - TagHelperDescriptorBuilder.Create("InputTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(structure2)) - .Build() - }; - - return descriptors; - } - - [Fact] - public void AllowsCompatibleTagStructures1() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.Unspecified, TagStructure.Unspecified); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures2() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.Unspecified, TagStructure.Unspecified); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures3() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.Unspecified, TagStructure.WithoutEndTag); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures4() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.WithoutEndTag, TagStructure.WithoutEndTag); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures5() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.Unspecified, TagStructure.NormalOrSelfClosing); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures6() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.Unspecified, TagStructure.WithoutEndTag); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures7() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.NormalOrSelfClosing, TagStructure.Unspecified); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures8() - { - // Arrange - var descriptors = GetTagStructureCompatibilityDescriptors(TagStructure.WithoutEndTag, TagStructure.Unspecified); - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing() - { - // Arrange - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - { - rule - .RequireTagName("*") - .RequireAttributeDescriptor(b => - { - b.Name = "@onclick"; - b.Metadata.Add(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString); - }); - }) - .AddMetadata(ComponentMetadata.SpecialKindKey, ComponentMetadata.EventHandler.TagHelperKind) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void AllowsCompatibleTagStructures_DirectiveAttribute_Void() - { - // Arrange - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - { - rule - .RequireTagName("*") - .RequireAttributeDescriptor(b => - { - b.Name = "@onclick"; - b.Metadata.Add(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString); - }); - - }) - .AddMetadata(ComponentMetadata.SpecialKindKey, ComponentMetadata.EventHandler.TagHelperKind) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, ""); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes1() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes4() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes8() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes9() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes10() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes11() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes12() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes13() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes14() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes15() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes16() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes18() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes19() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelpersWithAttributes20() - { - RunParseTreeRewriterTest("

        }\">

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelper1() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelper5() - { - RunParseTreeRewriterTest(" <

        ", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelper7() - { - RunParseTreeRewriterTest("<<> <<>>", "strong", "p"); - } - - [Fact] - public void CreatesErrorForMalformedTagHelper8() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - public static TagHelperDescriptor[] CodeTagHelperAttributes_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PersonTagHelper", "personAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("person")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("age") - .PropertyName("Age") - .TypeName(typeof(int).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("birthday") - .PropertyName("BirthDay") - .TypeName(typeof(DateTime).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("name") - .PropertyName("Name") - .TypeName(typeof(string).FullName)) - .Build() - }; - - [Fact] - public void UnderstandsMultipartNonStringTagHelperAttributes() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, " 123)()\" />"); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes1() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes2() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes3() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes4() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes5() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes6() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes7() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes8() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes9() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes10() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes11() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void CreatesMarkupCodeSpansForNonStringTagHelperAttributes12() - { - EvaluateData(CodeTagHelperAttributes_Descriptors, ""); - } - - [Fact] - public void TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2() - { - RunParseTreeRewriterTest("

        Hello World

        ", "strong", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3() - { - RunParseTreeRewriterTest("

        Hello World

        ", "strong", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "strong", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2() - { - // Arrange - var doWhileString = "@do { var foo = bar; Foo foo++; } while (foo);"; - var currentFormattedString = "

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        Hello World

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4() - { - // Arrange - var doWhileString = "@do { var foo = bar; Foo foo++; } while (foo);"; - var currentFormattedString = "

        Hello World

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        Hello

        World

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6() - { - // Arrange - var doWhileString = "@do { var foo = bar; Foo foo++; } while (foo);"; - var currentFormattedString = "

        Hello

        World

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        Hello World inside of strong tag

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        {0}

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2() - { - // Arrange - var doWhileString = "@do { var foo = bar;

        Foo

        foo++; } while (foo);"; - var currentFormattedString = "

        {0}

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        Hello World {0}

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4() - { - // Arrange - var doWhileString = "@do { var foo = bar;

        Foo

        foo++; } while (foo);"; - var currentFormattedString = "

        Hello World {0}

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        {0}

        {0}

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6() - { - // Arrange - var doWhileString = "@do { var foo = bar;

        Foo

        foo++; } while (foo);"; - var currentFormattedString = "

        {0}

        {0}

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var currentFormattedString = "

        Hello {0}inside of {0} strong tag

        "; - var document = string.Format(currentFormattedString, dateTimeNowString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8() - { - // Arrange - var doWhileString = "@do { var foo = bar;

        Foo

        foo++; } while (foo);"; - var currentFormattedString = "

        Hello {0}inside of {0} strong tag

        "; - var document = string.Format(currentFormattedString, doWhileString); - - // Act & Assert - RunParseTreeRewriterTest(document, "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml1() - { - RunParseTreeRewriterTest("<<

        >>

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml2() - { - RunParseTreeRewriterTest("<

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml3() - { - RunParseTreeRewriterTest("< p />", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml4() - { - RunParseTreeRewriterTest("", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml5() - { - RunParseTreeRewriterTest("< class=\"foo\"

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml6() - { - RunParseTreeRewriterTest("/>

        >", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml7() - { - RunParseTreeRewriterTest("/>

        >", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml8() - { - RunParseTreeRewriterTest("@DateTime.Now/>

        >", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml9() - { - RunParseTreeRewriterTest("

        @DateTime.Now / >

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_AllowsInvalidHtml10() - { - RunParseTreeRewriterTest("

        < @DateTime.Now >

        ", "p"); - } - - [Fact] - public void UnderstandsEmptyAttributeTagHelpers1() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void UnderstandsEmptyAttributeTagHelpers2() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void UnderstandsEmptyAttributeTagHelpers3() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void UnderstandsEmptyAttributeTagHelpers4() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void UnderstandsEmptyAttributeTagHelpers5() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - public static TagHelperDescriptor[] EmptyTagHelperBoundAttribute_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("mythTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("myth")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound") - .PropertyName("Bound") - .TypeName(typeof(bool).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("name") - .PropertyName("Name") - .TypeName(typeof(string).FullName)) - .Build() - }; - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes1() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes2() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes3() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes4() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes5() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes6() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes7() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes8() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes9() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes10() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes11() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes12() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes13() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void CreatesErrorForEmptyTagHelperBoundAttributes14() - { - EvaluateData(EmptyTagHelperBoundAttribute_Descriptors, ""); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesScriptTagHelpers1() - { - RunParseTreeRewriterTest("", "p", "div", "script"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesScriptTagHelpers2() - { - RunParseTreeRewriterTest("", "p", "div", "script"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesScriptTagHelpers3() - { - RunParseTreeRewriterTest("

        World

        ", "p", "div", "script"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesScriptTagHelpers4() - { - RunParseTreeRewriterTest(" ", "p", "div", "script"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesScriptTagHelpers5() - { - RunParseTreeRewriterTest(" World

        ", "p", "div", "script"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesScriptTagHelpers7() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p", "div", "script"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - - [Fact] - public void TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "p"); - } - - - [Fact] - public void TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3() - { - RunParseTreeRewriterTest("Hello

        World", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5() - { - RunParseTreeRewriterTest("

        Hello World inside of strong tag

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4() - { - RunParseTreeRewriterTest("

        Hello World inside of strong tag

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1() - { - RunParseTreeRewriterTest("

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "p"); - } - - [Fact] - public void TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4() - { - RunParseTreeRewriterTest("

        Hello World inside of strong tag

        ", "p"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document1() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document2() - { - // Arrange - var document = ""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document3() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document4() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document5() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document6() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Document7() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block1() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block2() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block3() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block4() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block5() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block6() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void GeneratesExpectedOutputForUnboundDataDashAttributes_Block7() - { - // Arrange - var dateTimeNowString = "@DateTime.Now"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - RunParseTreeRewriterTest(document, "input"); - } - - public static TagHelperDescriptor[] MinimizedAttribute_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => attribute.Name("unbound-required"))) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => attribute.Name("bound-required-string"))) - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound-required-string") - .PropertyName("BoundRequiredString") - .TypeName(typeof(string).FullName)) - .Build(), - TagHelperDescriptorBuilder.Create("InputTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => attribute.Name("bound-required-int"))) - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound-required-int") - .PropertyName("BoundRequiredInt") - .TypeName(typeof(int).FullName)) - .Build(), - TagHelperDescriptorBuilder.Create("InputTagHelper3", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("input")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("int-dictionary") - .PropertyName("DictionaryOfIntProperty") - .TypeName(typeof(IDictionary).Namespace + ".IDictionary") - .AsDictionaryAttribute("int-prefix-", typeof(int).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("string-dictionary") - .PropertyName("DictionaryOfStringProperty") - .TypeName(typeof(IDictionary).Namespace + ".IDictionary") - .AsDictionaryAttribute("string-prefix-", typeof(string).FullName)) - .Build(), - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound-string") - .PropertyName("BoundRequiredString") - .TypeName(typeof(string).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound-int") - .PropertyName("BoundRequiredString") - .TypeName(typeof(int).FullName)) - .Build(), - }; - - [Fact] - public void UnderstandsMinimizedAttributes_Document1() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document2() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document3() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document4() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document5() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document6() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document7() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document8() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document9() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document10() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document11() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document12() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document13() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document14() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document15() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document16() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document17() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document18() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document19() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document20() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document21() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document22() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document23() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document24() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document25() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document26() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document27() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document28() - { - // Arrange - var document = ""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document29() - { - // Arrange - var document = "

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document30() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document31() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $"

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document32() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $""; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Document33() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $"

        "; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block1() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block2() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block3() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block4() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block5() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block6() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block7() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block8() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block9() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block10() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block11() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block12() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block13() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block14() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block15() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block16() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block17() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block18() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block19() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block20() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block21() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block22() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block23() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block24() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block25() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block26() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block27() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block28() - { - // Arrange - var document = ""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block29() - { - // Arrange - var document = "

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block30() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block31() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $"

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block32() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $""; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_Block33() - { - // Arrange - var expressionString = "@DateTime.Now + 1"; - var document = $"

        "; - - // Wrap in a CSharp block - document = $"@{{{document}}}"; - - // Act & Assert - EvaluateData(MinimizedAttribute_Descriptors, document); - } - - [Fact] - public void UnderstandsMinimizedAttributes_PartialTags1() - { - EvaluateData(MinimizedAttribute_Descriptors, " - rule - .RequireTagName("input")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("boundbool") - .PropertyName("BoundBoolProp") - .TypeName(typeof(bool).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("boundbooldict") - .PropertyName("BoundBoolDictProp") - .TypeName("System.Collections.Generic.IDictionary") - .AsDictionary("boundbooldict-", typeof(bool).FullName)) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, document); - } - - [Fact] - public void FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes() - { - // Arrange - var document = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("boundbool") - .PropertyName("BoundBoolProp") - .TypeName(typeof(bool).FullName)) - .BoundAttributeDescriptor(attribute => - attribute - .Name("boundbooldict") - .PropertyName("BoundBoolDictProp") - .TypeName("System.Collections.Generic.IDictionary") - .AsDictionary("boundbooldict-", typeof(bool).FullName)) - .Build(), - }; - - var featureFlags = new TestRazorParserFeatureFlags(); - - // Act & Assert - EvaluateData(descriptors, document, featureFlags: featureFlags); - } - - [Fact] - public void Rewrites_ComponentDirectiveAttributes() - { - // Arrange - var document = @""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create(ComponentMetadata.Bind.TagHelperKind, "Bind", ComponentsApi.AssemblyName) - .AddMetadata(ComponentMetadata.SpecialKindKey, ComponentMetadata.Bind.TagHelperKind) - .AddMetadata(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString) - .AddMetadata(TagHelperMetadata.Runtime.Name, ComponentMetadata.Bind.RuntimeName) - .TypeName("Microsoft.AspNetCore.Components.Bind") - .AddMetadata(ComponentMetadata.Bind.FallbackKey, bool.TrueString) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireAttributeDescriptor(r => - { - r.Name = "@bind-"; - r.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch; - r.Metadata.Add(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString); - })) - .BoundAttributeDescriptor(attribute => - attribute - .Name("@bind-...") - .PropertyName("Bind") - .AsDictionaryAttribute("@bind-", typeof(object).FullName) - .TypeName("System.Collections.Generic.Dictionary") - .AddMetadata(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString) - .BindAttributeParameter(p => - { - p.Name = "event"; - p.TypeName = typeof(string).FullName; - p.SetPropertyName("Event"); - })) - .Build(), - }; - - var featureFlags = new TestRazorParserFeatureFlags(allowCSharpInMarkupAttributeArea: false); - - // Act & Assert - EvaluateData(descriptors, document, featureFlags: featureFlags); - } - - [Fact] - public void Rewrites_MinimizedComponentDirectiveAttributes() - { - // Arrange - var document = @""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create(ComponentMetadata.Bind.TagHelperKind, "Bind", ComponentsApi.AssemblyName) - .AddMetadata(ComponentMetadata.SpecialKindKey, ComponentMetadata.Bind.TagHelperKind) - .AddMetadata(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString) - .AddMetadata(TagHelperMetadata.Runtime.Name, ComponentMetadata.Bind.RuntimeName) - .TypeName("Microsoft.AspNetCore.Components.Bind") - .AddMetadata(ComponentMetadata.Bind.FallbackKey, bool.TrueString) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireAttributeDescriptor(r => - { - r.Name = "@bind-"; - r.NameComparisonMode = RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch; - r.Metadata.Add(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString); - })) - .BoundAttributeDescriptor(attribute => - attribute - .Name("@bind-...") - .PropertyName("Bind") - .AsDictionaryAttribute("@bind-", typeof(object).FullName) - .TypeName("System.Collections.Generic.Dictionary") - .AddMetadata(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString) - .BindAttributeParameter(p => - { - p.Name = "param"; - p.TypeName = typeof(string).FullName; - p.SetPropertyName("Param"); - })) - .Build(), - }; - - var featureFlags = new TestRazorParserFeatureFlags(allowCSharpInMarkupAttributeArea: false); - - // Act & Assert - EvaluateData(descriptors, document, featureFlags: featureFlags); - } - - private class TestRazorParserFeatureFlags : RazorParserFeatureFlags - { - public TestRazorParserFeatureFlags( - bool allowMinimizedBooleanTagHelperAttributes = false, - bool allowHtmlCommentsInTagHelper = false, - bool allowComponentFileKind = false, - bool allowRazorInCodeBlockDirectives = false, - bool allowUsingVariableDeclarations = false, - bool allowConditionalDataDashAttributesInComponents = false, - bool allowCSharpInMarkupAttributeArea = true, - bool allowNullableForgivenessOperator = false) - { - AllowMinimizedBooleanTagHelperAttributes = allowMinimizedBooleanTagHelperAttributes; - AllowHtmlCommentsInTagHelpers = allowHtmlCommentsInTagHelper; - AllowComponentFileKind = allowComponentFileKind; - AllowRazorInAllCodeBlocks = allowRazorInCodeBlockDirectives; - AllowUsingVariableDeclarations = allowUsingVariableDeclarations; - AllowConditionalDataDashAttributes = allowConditionalDataDashAttributesInComponents; - AllowCSharpInMarkupAttributeArea = allowCSharpInMarkupAttributeArea; - AllowNullableForgivenessOperator = allowNullableForgivenessOperator; - } - - public override bool AllowMinimizedBooleanTagHelperAttributes { get; } - - public override bool AllowHtmlCommentsInTagHelpers { get; } - - public override bool AllowComponentFileKind { get; } - - public override bool AllowRazorInAllCodeBlocks { get; } - - public override bool AllowUsingVariableDeclarations { get; } - - public override bool AllowConditionalDataDashAttributes { get; } - - public override bool AllowCSharpInMarkupAttributeArea { get; } - - public override bool AllowNullableForgivenessOperator { get; } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperParseTreeRewriterTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperParseTreeRewriterTest.cs deleted file mode 100644 index 044f59124d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperParseTreeRewriterTest.cs +++ /dev/null @@ -1,1936 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase - { - public static TheoryData GetAttributeNameValuePairsData - { - get - { - Func> kvp = - (key, value) => new KeyValuePair(key, value); - var empty = Enumerable.Empty>(); - var csharp = TagHelperParseTreeRewriter.Rewriter.InvalidAttributeValueMarker; - - // documentContent, expectedPairs - return new TheoryData>> - { - { "", empty }, - { "", empty }, - { "", new[] { kvp("href", csharp) } }, - { "", new[] { kvp("href", $"prefix{csharp} suffix") } }, - { "", new[] { kvp("href", "~/home") } }, - { "", new[] { kvp("href", "~/home") } }, - { - "", - new[] { kvp("href", $"{csharp}::0"), kvp("class", "btn btn-success"), kvp("random", "") } - }, - { "", new[] { kvp("href", "") } }, - { "> expectedPairs) - { - // Arrange - var errorSink = new ErrorSink(); - var parseResult = ParseDocument(documentContent); - var document = parseResult.Root; - var parseTreeRewriter = new TagHelperParseTreeRewriter.Rewriter( - parseResult.Source, - null, - Enumerable.Empty(), - parseResult.Options.FeatureFlags, - errorSink); - - // Assert - Guard - var rootBlock = Assert.IsType(document); - var rootMarkup = Assert.IsType(rootBlock.Document); - var childBlock = Assert.Single(rootMarkup.Children); - var element = Assert.IsType(childBlock); - Assert.Empty(errorSink.Errors); - - // Act - var pairs = parseTreeRewriter.GetAttributeNameValuePairs(element.StartTag); - - // Assert - Assert.Equal(expectedPairs, pairs); - } - - public static TagHelperDescriptor[] PartialRequiredParentTags_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong")) - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(), - TagHelperDescriptorBuilder.Create("CatchALlTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("*")) - .Build(), - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .Build(), - }; - - [Fact] - public void UnderstandsPartialRequiredParentTags1() - { - var document = "

        "; - EvaluateData(PartialRequiredParentTags_Descriptors, document); - } - - [Fact] - public void UnderstandsPartialRequiredParentTags2() - { - var document = "

        "; - EvaluateData(PartialRequiredParentTags_Descriptors, document); - } - - [Fact] - public void UnderstandsPartialRequiredParentTags3() - { - var document = "

        "; - EvaluateData(PartialRequiredParentTags_Descriptors, document); - } - - [Fact] - public void UnderstandsPartialRequiredParentTags4() - { - var document = "<

        <

        "; - EvaluateData(PartialRequiredParentTags_Descriptors, document); - } - - [Fact] - public void UnderstandsPartialRequiredParentTags5() - { - var document = "<

        <

        "; - EvaluateData(PartialRequiredParentTags_Descriptors, document); - } - - [Fact] - public void UnderstandsPartialRequiredParentTags6() - { - var document = "<

        <

        "; - EvaluateData(PartialRequiredParentTags_Descriptors, document); - } - - public static TagHelperDescriptor[] NestedVoidSelfClosingRequiredParent_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build(), - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireParentTag("p")) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireParentTag("input")) - .Build(), - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .Build(), - }; - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent1() - { - var document = ""; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent2() - { - var document = "

        "; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent3() - { - var document = "


        "; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent4() - { - var document = "


        "; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent5() - { - var document = ""; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent6() - { - var document = "

        "; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent7() - { - var document = "


        "; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedVoidSelfClosingRequiredParent8() - { - var document = "


        "; - EvaluateData(NestedVoidSelfClosingRequiredParent_Descriptors, document); - } - - public static TagHelperDescriptor[] NestedRequiredParent_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireParentTag("p")) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireParentTag("div")) - .Build(), - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .Build(), - }; - - [Fact] - public void UnderstandsNestedRequiredParent1() - { - var document = ""; - EvaluateData(NestedRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedRequiredParent2() - { - var document = "

        "; - EvaluateData(NestedRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedRequiredParent3() - { - var document = "
        "; - EvaluateData(NestedRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedRequiredParent4() - { - var document = ""; - EvaluateData(NestedRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsNestedRequiredParent5() - { - var document = "

        "; - EvaluateData(NestedRequiredParent_Descriptors, document); - } - - [Fact] - public void UnderstandsTagHelperPrefixAndAllowedChildren() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("strong") - .Build(), - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong")) - .Build(), - }; - - // Act & Assert - EvaluateData( - descriptors, - documentContent, - tagHelperPrefix: "th:"); - } - - [Fact] - public void UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("strong") - .Build(), - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong").RequireParentTag("p")) - .Build(), - }; - - // Act & Assert - EvaluateData( - descriptors, - documentContent, - tagHelperPrefix: "th:"); - } - - [Fact] - public void InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent() - { - // Rewrite_InvalidStructure_UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("strong") - .Build(), - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong").RequireParentTag("p")) - .Build(), - }; - - // Act & Assert - EvaluateData( - descriptors, - documentContent, - tagHelperPrefix: "th:"); - } - - [Fact] - public void NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("strong") - .Build(), - }; - - // Act & Assert - EvaluateData( - descriptors, - documentContent, - tagHelperPrefix: "th:"); - } - - [Fact] - public void DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1() - { - var document = ""; - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2() - { - var document = ""; - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3() - { - var document = ""; - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4() - { - var document = ""; - RunParseTreeRewriterTest(document, "input"); - } - - [Fact] - public void UnderstandsTagHelpersInHtmlTypedScriptTags1() - { - var document = ""; - RunParseTreeRewriterTest(document, "p", "input"); - } - - [Fact] - public void UnderstandsTagHelpersInHtmlTypedScriptTags2() - { - var document = ""; - RunParseTreeRewriterTest(document, "p", "input"); - } - - [Fact] - public void UnderstandsTagHelpersInHtmlTypedScriptTags3() - { - var document = "

        "; - RunParseTreeRewriterTest(document, "p", "input"); - } - - [Fact] - public void UnderstandsTagHelpersInHtmlTypedScriptTags4() - { - var document = "

        "; - RunParseTreeRewriterTest(document, "p", "input"); - } - - [Fact] - public void CanHandleInvalidChildrenWithWhitespace() - { - // Arrange - var documentContent = $"

        {Environment.NewLine} {Environment.NewLine} Hello" + - $"{Environment.NewLine} {Environment.NewLine}

        "; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("br") - .Build() - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void RecoversWhenRequiredAttributeMismatchAndRestrictedChildren() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireAttributeDescriptor(attribute => attribute.Name("required"))) - .AllowChildTag("br") - .Build() - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void CanHandleMultipleTagHelpersWithAllowedChildren_OneNull() - { - // Arrange - var documentContent = "

        Hello World

        "; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("strong") - .AllowChildTag("br") - .Build(), - TagHelperDescriptorBuilder.Create("PTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .Build(), - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong")) - .Build(), - TagHelperDescriptorBuilder.Create("BRTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("br") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void CanHandleMultipleTagHelpersWithAllowedChildren() - { - // Arrange - var documentContent = "

        Hello World

        "; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("strong") - .Build(), - TagHelperDescriptorBuilder.Create("PTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("br") - .Build(), - TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong")) - .Build(), - TagHelperDescriptorBuilder.Create("BRTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("br") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren1() - { - // Arrange - var documentContent = "


        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "br" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren2() - { - // Arrange - var documentContent = $"

        {Environment.NewLine}
        {Environment.NewLine}

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "br" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren3() - { - // Arrange - var documentContent = "


        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren4() - { - // Arrange - var documentContent = "

        Hello

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren5() - { - // Arrange - var documentContent = "


        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "br", "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren6() - { - // Arrange - var documentContent = "


        Hello

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren7() - { - // Arrange - var documentContent = "

        Title:
        Something

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren8() - { - // Arrange - var documentContent = "

        Title:
        Something

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong", "br" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren9() - { - // Arrange - var documentContent = "

        Title:
        Something

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong", "br" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren10() - { - // Arrange - var documentContent = "

        Title:
        A Very Cool

        Something

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren11() - { - // Arrange - var documentContent = "

        Title:
        A Very Cool

        Something

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "custom" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren12() - { - // Arrange - var documentContent = "

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "custom" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren13() - { - // Arrange - var documentContent = "

        <

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "custom" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsAllowedChildren14() - { - // Arrange - var documentContent = "


        :Hello:

        "; - var descriptors = GetAllowedChildrenTagHelperDescriptors(new[] { "custom", "strong" }); - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - private TagHelperDescriptor[] GetAllowedChildrenTagHelperDescriptors(string[] allowedChildren) - { - var pTagHelperBuilder = TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")); - var strongTagHelperBuilder = TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("strong")); - - foreach (var childTag in allowedChildren) - { - pTagHelperBuilder.AllowChildTag(childTag); - strongTagHelperBuilder.AllowChildTag(childTag); - } - var descriptors = new TagHelperDescriptor[] - { - pTagHelperBuilder.Build(), - strongTagHelperBuilder.Build(), - TagHelperDescriptorBuilder.Create("BRTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("br") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build(), - }; - - return descriptors; - } - - [Fact] - public void AllowsSimpleHtmlCommentsAsChildren() - { - // Arrange - var allowedChildren = new List { "b" }; - var literal = "asdf"; - var commentOutput = "Hello World"; - var document = $"

        {literal}

        "; - - var pTagHelperBuilder = TagHelperDescriptorBuilder - .Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")); - foreach (var childTag in allowedChildren) - { - pTagHelperBuilder.AllowChildTag(childTag); - } - - var descriptors = new TagHelperDescriptor[] - { - pTagHelperBuilder.Build() - }; - - // Act & Assert - EvaluateData(descriptors, document); - } - - [Fact] - public void DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff() - { - // Arrange - var allowedChildren = new List { "b" }; - var comment1 = "Hello"; - var document = $"

        "; - - var pTagHelperBuilder = TagHelperDescriptorBuilder - .Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")); - foreach (var childTag in allowedChildren) - { - pTagHelperBuilder.AllowChildTag(childTag); - } - - var descriptors = new TagHelperDescriptor[] - { - pTagHelperBuilder.Build() - }; - - // Act & Assert - EvaluateData( - descriptors, - document, - featureFlags: RazorParserFeatureFlags.Create(RazorLanguageVersion.Version_2_0, FileKinds.Legacy)); - } - - [Fact] - public void FailsForContentWithCommentsAsChildren() - { - // Arrange - var allowedChildren = new List { "b" }; - var comment1 = "Hello"; - var literal = "asdf"; - var comment2 = "World"; - var document = $"

        {literal}

        "; - - var pTagHelperBuilder = TagHelperDescriptorBuilder - .Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")); - foreach (var childTag in allowedChildren) - { - pTagHelperBuilder.AllowChildTag(childTag); - } - - var descriptors = new TagHelperDescriptor[] - { - pTagHelperBuilder.Build() - }; - - // Act & Assert - EvaluateData(descriptors, document); - } - - [Fact] - public void AllowsRazorCommentsAsChildren() - { - // Arrange - var allowedChildren = new List { "b" }; - var literal = "asdf"; - var commentOutput = $"@*{literal}*@"; - var document = $"

        {literal}{commentOutput}

        "; - - var pTagHelperBuilder = TagHelperDescriptorBuilder - .Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")); - foreach (var childTag in allowedChildren) - { - pTagHelperBuilder.AllowChildTag(childTag); - } - - var descriptors = new TagHelperDescriptor[] - { - pTagHelperBuilder.Build() - }; - - // Act & Assert - EvaluateData(descriptors, document); - } - - [Fact] - public void AllowsRazorMarkupInHtmlComment() - { - // Arrange - var allowedChildren = new List { "b" }; - var literal = "asdf"; - var part1 = "Hello "; - var part2 = "World"; - var commentStart = ""; - var document = $"

        {literal}{commentStart}{part1}@{part2}{commentEnd}

        "; - - var pTagHelperBuilder = TagHelperDescriptorBuilder - .Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")); - foreach (var childTag in allowedChildren) - { - pTagHelperBuilder.AllowChildTag(childTag); - } - - var descriptors = new TagHelperDescriptor[] - { - pTagHelperBuilder.Build() - }; - - // Act & Assert - EvaluateData(descriptors, document); - } - - [Fact] - public void UnderstandsNullTagNameWithAllowedChildrenForCatchAll() - { - // Arrange - var documentContent = "

        "; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("custom") - .Build(), - TagHelperDescriptorBuilder.Create("CatchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("*")) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("PTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .AllowChildTag("custom") - .Build(), - TagHelperDescriptorBuilder.Create("CatchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("*")) - .Build(), - }; - - // Act & Assert - EvaluateData(descriptors, documentContent, "th:"); - } - - [Fact] - public void CanHandleStartTagOnlyTagTagMode() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build() - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void CreatesErrorForWithoutEndTagTagStructureForEndTags() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build() - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - [Fact] - public void CreatesErrorForInconsistentTagStructures() - { - // Arrange - var documentContent = ""; - var descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("InputTagHelper1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build(), - TagHelperDescriptorBuilder.Create("InputTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireTagStructure(TagStructure.NormalOrSelfClosing)) - .Build() - }; - - // Act & Assert - EvaluateData(descriptors, documentContent); - } - - public static TagHelperDescriptor[] RequiredAttribute_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("pTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("p") - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .Build(), - TagHelperDescriptorBuilder.Create("divTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("div") - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style"))) - .Build(), - TagHelperDescriptorBuilder.Create("catchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireAttributeDescriptor(attribute => attribute.Name("catchAll"))) - .Build() - }; - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7() - { - EvaluateData(RequiredAttribute_Descriptors, "

        words and spaces

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8() - { - EvaluateData(RequiredAttribute_Descriptors, "

        words and spaces

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9() - { - EvaluateData(RequiredAttribute_Descriptors, "

        wordsandspaces

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10() - { - EvaluateData(RequiredAttribute_Descriptors, ""); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11() - { - EvaluateData(RequiredAttribute_Descriptors, ""); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12() - { - EvaluateData(RequiredAttribute_Descriptors, "words and spaces"); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13() - { - EvaluateData(RequiredAttribute_Descriptors, "words and spaces"); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18() - { - EvaluateData(RequiredAttribute_Descriptors, "

        words and spaces

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21() - { - EvaluateData(RequiredAttribute_Descriptors, "
        words and spaces
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22() - { - EvaluateData(RequiredAttribute_Descriptors, "
        words and spaces
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23() - { - EvaluateData(RequiredAttribute_Descriptors, "
        wordsandspaces
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24() - { - EvaluateData(RequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25() - { - EvaluateData(RequiredAttribute_Descriptors, "

        words and spaces

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26() - { - EvaluateData(RequiredAttribute_Descriptors, "
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27() - { - EvaluateData(RequiredAttribute_Descriptors, "
        words and spaces
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28() - { - EvaluateData(RequiredAttribute_Descriptors, "
        words and spaces
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29() - { - EvaluateData(RequiredAttribute_Descriptors, "
        words and spaces
        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30() - { - EvaluateData(RequiredAttribute_Descriptors, "
        wordsandspaces
        "); - } - - public static TagHelperDescriptor[] NestedRequiredAttribute_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("pTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("p") - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .Build(), - TagHelperDescriptorBuilder.Create("catchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireAttributeDescriptor(attribute => attribute.Name("catchAll"))) - .Build(), - }; - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2() - { - EvaluateData(NestedRequiredAttribute_Descriptors, ""); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8() - { - EvaluateData(NestedRequiredAttribute_Descriptors, ""); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9() - { - EvaluateData(NestedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10() - { - EvaluateData(NestedRequiredAttribute_Descriptors, ""); - } - - public static TagHelperDescriptor[] MalformedRequiredAttribute_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("pTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("p") - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .Build(), - }; - - [Fact] - public void RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1() - { - EvaluateData(MalformedRequiredAttribute_Descriptors, ""); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8() - { - EvaluateData(MalformedRequiredAttribute_Descriptors, "

        "); - } - - [Fact] - public void RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9() - { - EvaluateData(MalformedRequiredAttribute_Descriptors, "

        rule.RequireTagName("myth")) - .Build(), - TagHelperDescriptorBuilder.Create("mythTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("myth2")) - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound") - .PropertyName("Bound") - .TypeName(typeof(bool).FullName)) - .Build() - }; - - public static TagHelperDescriptor[] PrefixedTagHelperCatchAll_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("mythTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("*")) - .Build(), - }; - - [Fact] - public void AllowsPrefixedTagHelpers1() - { - EvaluateData(PrefixedTagHelperCatchAll_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers2() - { - EvaluateData(PrefixedTagHelperCatchAll_Descriptors, "words and spaces", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers3() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers4() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers5() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers6() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers7() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers8() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers9() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers10() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "words and spaces", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsPrefixedTagHelpers11() - { - EvaluateData(PrefixedTagHelperColon_Descriptors, "", tagHelperPrefix: "th:"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3() - { - RunParseTreeRewriterTest("@{words with spaces}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4() - { - RunParseTreeRewriterTest("@{words and spaces}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9() - { - RunParseTreeRewriterTest("@{}", "p", "text"); - } - - [Fact] - public void AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData2() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData3() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData4() - { - RunParseTreeRewriterTest("@{words and spaces}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData5() - { - RunParseTreeRewriterTest("@{

        }", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData6() - { - RunParseTreeRewriterTest("@{

        }", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData7() - { - RunParseTreeRewriterTest("@{

        }", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData8() - { - RunParseTreeRewriterTest("@{

        }", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData9() - { - RunParseTreeRewriterTest("@{

        }", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData10() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData11() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithBlockData12() - { - RunParseTreeRewriterTest("@{

        }", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithAttributeData1() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithAttributeData2() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithAttributeData3() - { - RunParseTreeRewriterTest("@{words with spaces}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithAttributeData4() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutCSharp_WithAttributeData5() - { - RunParseTreeRewriterTest("@{}", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData1() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData2() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData3() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData4() - { - RunParseTreeRewriterTest("words and spaces", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData5() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData6() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData7() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData8() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData9() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData10() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData11() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithBlockData12() - { - RunParseTreeRewriterTest("

        ", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithAttributeData1() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithAttributeData2() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithAttributeData3() - { - RunParseTreeRewriterTest("words and spaces", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithAttributeData4() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void AllowsTagHelperElementOptOutHTML_WithAttributeData5() - { - RunParseTreeRewriterTest("", "strong", "p"); - } - - [Fact] - public void DoesNotRewriteTextTagTransitionTagHelpers1() - { - RunParseTreeRewriterTest("Hello World", "p", "text"); - } - - [Fact] - public void DoesNotRewriteTextTagTransitionTagHelpers2() - { - RunParseTreeRewriterTest("@{Hello World}", "p", "text"); - } - - [Fact] - public void DoesNotRewriteTextTagTransitionTagHelpers3() - { - RunParseTreeRewriterTest("@{

        Hello World

        }", "p", "text"); - } - - [Fact] - public void DoesNotRewriteTextTagTransitionTagHelpers4() - { - RunParseTreeRewriterTest("@{

        Hello World

        }", "p", "text"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers1() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers2() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers3() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers4() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers5() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers6() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers7() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void DoesNotRewriteSpecialTagTagHelpers8() - { - RunParseTreeRewriterTest("", "!--", "?xml", "![CDATA[", "!DOCTYPE"); - } - - [Fact] - public void RewritesNestedTagHelperTagBlocks1() - { - RunParseTreeRewriterTest("

        ", "p", "div"); - } - - [Fact] - public void RewritesNestedTagHelperTagBlocks2() - { - RunParseTreeRewriterTest("

        Hello World

        ", "p", "div"); - } - - [Fact] - public void RewritesNestedTagHelperTagBlocks3() - { - RunParseTreeRewriterTest("

        Hel

        lo

        World

        ", "p", "div"); - } - - [Fact] - public void RewritesNestedTagHelperTagBlocks4() - { - RunParseTreeRewriterTest("

        Hello

        World

        ", "p", "div"); - } - - [Fact] - public void HandlesMalformedNestedNonTagHelperTags_Correctly() - { - RunParseTreeRewriterTest("
        @{
        }"); - } - - [Fact] - public void HandlesNonTagHelperStartAndEndVoidTags_Correctly() - { - RunParseTreeRewriterTest("Foo"); - } - - public static TagHelperDescriptor[] CaseSensitive_Descriptors = new TagHelperDescriptor[] - { - TagHelperDescriptorBuilder.Create("pTagHelper", "SomeAssembly") - .SetCaseSensitive() - .BoundAttributeDescriptor(attribute => - attribute - .Name("bound") - .PropertyName("Bound") - .TypeName(typeof(bool).FullName)) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("p") - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .Build(), - TagHelperDescriptorBuilder.Create("catchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireAttributeDescriptor(attribute => attribute.Name("catchAll"))) - .Build(), - }; - - [Fact] - public void HandlesCaseSensitiveTagHelpersCorrectly1() - { - EvaluateData(CaseSensitive_Descriptors, "

        "); - } - - [Fact] - public void HandlesCaseSensitiveTagHelpersCorrectly2() - { - EvaluateData(CaseSensitive_Descriptors, "

        "); - } - - [Fact] - public void HandlesCaseSensitiveTagHelpersCorrectly3() - { - EvaluateData(CaseSensitive_Descriptors, "

        "); - } - - [Fact] - public void HandlesCaseSensitiveTagHelpersCorrectly4() - { - EvaluateData(CaseSensitive_Descriptors, "

        "); - } - - [Fact] - public void HandlesCaseSensitiveTagHelpersCorrectly5() - { - EvaluateData(CaseSensitive_Descriptors, "

        "); - } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperRewritingTestBase.cs b/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperRewritingTestBase.cs deleted file mode 100644 index febc0663a53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/TagHelperRewritingTestBase.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class TagHelperRewritingTestBase : ParserTestBase - { - internal void RunParseTreeRewriterTest(string documentContent, params string[] tagNames) - { - var descriptors = BuildDescriptors(tagNames); - - EvaluateData(descriptors, documentContent); - } - - internal IEnumerable BuildDescriptors(params string[] tagNames) - { - var descriptors = new List(); - - foreach (var tagName in tagNames) - { - var descriptor = TagHelperDescriptorBuilder.Create(tagName + "taghelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName(tagName)) - .Build(); - descriptors.Add(descriptor); - } - - return descriptors; - } - - internal void EvaluateData( - IEnumerable descriptors, - string documentContent, - string tagHelperPrefix = null, - RazorParserFeatureFlags featureFlags = null) - { - var syntaxTree = ParseDocument(documentContent, featureFlags: featureFlags); - - var rewrittenTree = TagHelperParseTreeRewriter.Rewrite(syntaxTree, tagHelperPrefix, descriptors); - - BaselineTest(rewrittenTree); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/TextReaderExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/TextReaderExtensionsTest.cs deleted file mode 100644 index e95878c148e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/TextReaderExtensionsTest.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class TextReaderExtensionsTest - { - [Fact] - public void ReadUntilWithCharReadsAllTextUpToSpecifiedCharacterButNotPast() - { - RunReaderTest("foo bar baz @biz", "foo bar baz ", '@', r => r.ReadUntil('@')); - } - - [Fact] - public void ReadUntilWithCharWithInclusiveFlagReadsAllTextUpToSpecifiedCharacterButNotPastIfInclusiveFalse() - { - RunReaderTest("foo bar baz @biz", "foo bar baz ", '@', r => r.ReadUntil('@', inclusive: false)); - } - - [Fact] - public void ReadUntilWithCharWithInclusiveFlagReadsAllTextUpToAndIncludingSpecifiedCharacterIfInclusiveTrue() - { - RunReaderTest("foo bar baz @biz", "foo bar baz @", 'b', r => r.ReadUntil('@', inclusive: true)); - } - - [Fact] - public void ReadUntilWithCharReadsToEndIfSpecifiedCharacterNotFound() - { - RunReaderTest("foo bar baz", "foo bar baz", -1, r => r.ReadUntil('@')); - } - - [Fact] - public void ReadUntilWithMultipleTerminatorsReadsUntilAnyTerminatorIsFound() - { - RunReaderTest("", " r.ReadUntil('/', '>')); - } - - [Fact] - public void ReadUntilWithMultipleTerminatorsHonorsInclusiveFlagWhenFalse() - { - // NOTE: Using named parameters would be difficult here, hence the inline comment - RunReaderTest("", " r.ReadUntil(/* inclusive */ false, '/', '>')); - } - - [Fact] - public void ReadUntilWithMultipleTerminatorsHonorsInclusiveFlagWhenTrue() - { - // NOTE: Using named parameters would be difficult here, hence the inline comment - RunReaderTest("", "', r => r.ReadUntil(/* inclusive */ true, '/', '>')); - } - - [Fact] - public void ReadUntilWithPredicateStopsWhenPredicateIsTrue() - { - RunReaderTest("foo bar baz 0 zoop zork zoink", "foo bar baz ", '0', r => r.ReadUntil(c => Char.IsDigit(c))); - } - - [Fact] - public void ReadUntilWithPredicateHonorsInclusiveFlagWhenFalse() - { - RunReaderTest("foo bar baz 0 zoop zork zoink", "foo bar baz ", '0', r => r.ReadUntil(c => Char.IsDigit(c), inclusive: false)); - } - - [Fact] - public void ReadUntilWithPredicateHonorsInclusiveFlagWhenTrue() - { - RunReaderTest("foo bar baz 0 zoop zork zoink", "foo bar baz 0", ' ', r => r.ReadUntil(c => Char.IsDigit(c), inclusive: true)); - } - - [Fact] - public void ReadWhileWithPredicateStopsWhenPredicateIsFalse() - { - RunReaderTest("012345a67890", "012345", 'a', r => r.ReadWhile(c => Char.IsDigit(c))); - } - - [Fact] - public void ReadWhileWithPredicateHonorsInclusiveFlagWhenFalse() - { - RunReaderTest("012345a67890", "012345", 'a', r => r.ReadWhile(c => Char.IsDigit(c), inclusive: false)); - } - - [Fact] - public void ReadWhileWithPredicateHonorsInclusiveFlagWhenTrue() - { - RunReaderTest("012345a67890", "012345a", '6', r => r.ReadWhile(c => Char.IsDigit(c), inclusive: true)); - } - - private static void RunReaderTest(string testString, string expectedOutput, int expectedPeek, Func action) - { - // Arrange - var reader = new StringReader(testString); - - // Act - var read = action(reader); - - // Assert - Assert.Equal(expectedOutput, read); - - if (expectedPeek == -1) - { - Assert.True(reader.Peek() == -1, "Expected that the reader would be positioned at the end of the input stream"); - } - else - { - Assert.Equal((char)expectedPeek, (char)reader.Peek()); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/TokenizerLookaheadTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/TokenizerLookaheadTest.cs deleted file mode 100644 index 5561f2e3c02..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/TokenizerLookaheadTest.cs +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class TokenizerLookaheadTest : HtmlTokenizerTestBase - { - [Fact] - public void Lookahead_MaintainsExistingBufferWhenRejected() - { - // Arrange - var tokenizer = new ExposedTokenizer("01234"); - tokenizer.Buffer.Append("pre-existing values"); - - // Act - var result = tokenizer.Lookahead("0x", takeIfMatch: true, caseSensitive: true); - - // Assert - Assert.False(result); - Assert.Equal("pre-existing values", tokenizer.Buffer.ToString(), StringComparer.Ordinal); - } - - [Fact] - public void Lookahead_AddsToExistingBufferWhenSuccessfulAndTakeIfMatchIsTrue() - { - // Arrange - var tokenizer = new ExposedTokenizer("0x1234"); - tokenizer.Buffer.Append("pre-existing values"); - - // Act - var result = tokenizer.Lookahead("0x", takeIfMatch: true, caseSensitive: true); - - // Assert - Assert.True(result); - Assert.Equal("pre-existing values0x", tokenizer.Buffer.ToString(), StringComparer.Ordinal); - } - - [Fact] - public void Lookahead_MaintainsExistingBufferWhenSuccessfulAndTakeIfMatchIsFalse() - { - // Arrange - var tokenizer = new ExposedTokenizer("0x1234"); - tokenizer.Buffer.Append("pre-existing values"); - - // Act - var result = tokenizer.Lookahead("0x", takeIfMatch: false, caseSensitive: true); - - // Assert - Assert.True(result); - Assert.Equal("pre-existing values", tokenizer.Buffer.ToString(), StringComparer.Ordinal); - } - - [Fact] - public void LookaheadUntil_PassesThePreviousTokensInTheSameOrder() - { - // Arrange - var tokenizer = CreateContentTokenizer("asdf--fvd--<"); - - // Act - var i = 3; - IEnumerable previousTokens = null; - var tokenFound = tokenizer.LookaheadUntil((s, p) => - { - previousTokens = p; - return --i == 0; - }); - - // Assert - Assert.Equal(4, previousTokens.Count()); - - // For the very first element, there will be no previous items, so null is expected - var orderIndex = 0; - Assert.Null(previousTokens.ElementAt(orderIndex++)); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.Text, "asdf"), previousTokens.ElementAt(orderIndex++)); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.DoubleHyphen, "--"), previousTokens.ElementAt(orderIndex++)); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.Text, "fvd"), previousTokens.ElementAt(orderIndex++)); - } - - [Fact] - public void LookaheadUntil_ReturnsFalseAfterIteratingOverAllTokensIfConditionIsNotMet() - { - // Arrange - var tokenizer = CreateContentTokenizer("asdf--fvd"); - - // Act - var tokens = new Stack(); - var tokenFound = tokenizer.LookaheadUntil((s, p) => - { - tokens.Push(s); - return false; - }); - - // Assert - Assert.False(tokenFound); - Assert.Equal(3, tokens.Count); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.Text, "fvd"), tokens.Pop()); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.DoubleHyphen, "--"), tokens.Pop()); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.Text, "asdf"), tokens.Pop()); - } - - [Fact] - public void LookaheadUntil_ReturnsTrueAndBreaksIteration() - { - // Arrange - var tokenizer = CreateContentTokenizer("asdf--fvd"); - - // Act - var tokens = new Stack(); - var tokenFound = tokenizer.LookaheadUntil((s, p) => - { - tokens.Push(s); - return s.Kind == SyntaxKind.DoubleHyphen; - }); - - // Assert - Assert.True(tokenFound); - Assert.Equal(2, tokens.Count); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.DoubleHyphen, "--"), tokens.Pop()); - AssertTokenEqual(SyntaxFactory.Token(SyntaxKind.Text, "asdf"), tokens.Pop()); - } - - private static TestTokenizerBackedParser CreateContentTokenizer(string content) - { - var source = TestRazorSourceDocument.Create(content); - var options = RazorParserOptions.CreateDefault(); - var context = new ParserContext(source, options); - - var tokenizer = new TestTokenizerBackedParser(HtmlLanguageCharacteristics.Instance, context); - return tokenizer; - } - - private static void AssertTokenEqual(SyntaxToken expected, SyntaxToken actual) - { - Assert.True(expected.IsEquivalentTo(actual), "Tokens not equal."); - } - - private class ExposedTokenizer : Tokenizer - { - public ExposedTokenizer(string input) - : base(new SeekableTextReader(input, filePath: null)) - { - } - - public new StringBuilder Buffer - { - get - { - return base.Buffer; - } - } - - public override SyntaxKind RazorCommentStarKind - { - get - { - throw new NotImplementedException(); - } - } - - public override SyntaxKind RazorCommentTransitionKind - { - get - { - throw new NotImplementedException(); - } - } - - public override SyntaxKind RazorCommentKind - { - get - { - throw new NotImplementedException(); - } - } - - protected override int StartState - { - get - { - throw new NotImplementedException(); - } - } - - protected override SyntaxToken CreateToken( - string content, - SyntaxKind type, - RazorDiagnostic[] errors) - { - throw new NotImplementedException(); - } - - protected override StateResult Dispatch() - { - throw new NotImplementedException(); - } - } - - private class TestTokenizerBackedParser : TokenizerBackedParser - { - internal TestTokenizerBackedParser(LanguageCharacteristics language, ParserContext context) : base(language, context) - { - } - - internal new bool LookaheadUntil(Func, bool> condition) - { - return base.LookaheadUntil(condition); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/TokenizerTestBase.cs b/src/Razor/test/RazorLanguage.Test/Legacy/TokenizerTestBase.cs deleted file mode 100644 index 21ccddba3b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/TokenizerTestBase.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Diagnostics; -using System.Text; -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public abstract class TokenizerTestBase - { - internal abstract object IgnoreRemaining { get; } - internal abstract object CreateTokenizer(ITextDocument source); - - internal void TestTokenizer(string input, params SyntaxToken[] expectedSymbols) - { - // Arrange - var success = true; - var output = new StringBuilder(); - using (var source = new SeekableTextReader(input, filePath: null)) - { - var tokenizer = (Tokenizer)CreateTokenizer(source); - var counter = 0; - SyntaxToken current = null; - while ((current = tokenizer.NextToken()) != null) - { - if (counter >= expectedSymbols.Length) - { - output.AppendLine(string.Format("F: Expected: << Nothing >>; Actual: {0}", current)); - success = false; - } - else if (ReferenceEquals(expectedSymbols[counter], IgnoreRemaining)) - { - output.AppendLine(string.Format("P: Ignored |{0}|", current)); - } - else - { - if (!expectedSymbols[counter].IsEquivalentTo(current)) - { - output.AppendLine(string.Format("F: Expected: {0}; Actual: {1}", expectedSymbols[counter], current)); - success = false; - } - else - { - output.AppendLine(string.Format("P: Expected: {0}", expectedSymbols[counter])); - } - counter++; - } - } - if (counter < expectedSymbols.Length && !ReferenceEquals(expectedSymbols[counter], IgnoreRemaining)) - { - success = false; - for (; counter < expectedSymbols.Length; counter++) - { - output.AppendLine(string.Format("F: Expected: {0}; Actual: << None >>", expectedSymbols[counter])); - } - } - } - Assert.True(success, Environment.NewLine + output.ToString()); - WriteTraceLine(output.Replace("{", "{{").Replace("}", "}}").ToString()); - } - - [Conditional("PARSER_TRACE")] - private static void WriteTraceLine(string format, params object[] args) - { - Trace.WriteLine(string.Format(format, args)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Legacy/WhiteSpaceRewriterTest.cs b/src/Razor/test/RazorLanguage.Test/Legacy/WhiteSpaceRewriterTest.cs deleted file mode 100644 index 4bc69b6d7c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Legacy/WhiteSpaceRewriterTest.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Legacy -{ - public class WhiteSpaceRewriterTest : ParserTestBase - { - [Fact] - public void Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block() - { - // Arrange - var content = @" -
        - @result -
        -
        - @(result) -
        "; - var parsed = ParseDocument( - RazorLanguageVersion.Latest, - content, - Array.Empty()); - - var rewriter = new WhitespaceRewriter(); - - // Act - var rewritten = rewriter.Visit(parsed.Root); - - // Assert - var rewrittenTree = RazorSyntaxTree.Create(rewritten, parsed.Source, parsed.Diagnostics, parsed.Options); - BaselineTest(rewrittenTree); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/Microsoft.AspNetCore.Razor.Language.Test.csproj b/src/Razor/test/RazorLanguage.Test/Microsoft.AspNetCore.Razor.Language.Test.csproj deleted file mode 100644 index 120eee7bb48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Microsoft.AspNetCore.Razor.Language.Test.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - - $(StandardTestTfms) - $(DefaultItemExcludes);TestFiles\**\* - $(DefineConstants);GENERATE_BASELINES - - - false - - - - - - - - - - - - - - - - - - - diff --git a/src/Razor/test/RazorLanguage.Test/Properties/AssemblyInfo.cs b/src/Razor/test/RazorLanguage.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index 3337ebeac24..00000000000 --- a/src/Razor/test/RazorLanguage.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Runtime.CompilerServices; - -[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/RazorCodeDocumentExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/RazorCodeDocumentExtensionsTest.cs deleted file mode 100644 index 2840823a175..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorCodeDocumentExtensionsTest.cs +++ /dev/null @@ -1,631 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Microsoft.AspNetCore.Razor.Language.Intermediate; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorCodeDocumentExtensionsTest - { - [Fact] - public void GetRazorSyntaxTree_ReturnsSyntaxTree() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorSyntaxTree.Parse(codeDocument.Source); - codeDocument.Items[typeof(RazorSyntaxTree)] = expected; - - // Act - var actual = codeDocument.GetSyntaxTree(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void SetRazorSyntaxTree_SetsSyntaxTree() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorSyntaxTree.Parse(codeDocument.Source); - - // Act - codeDocument.SetSyntaxTree(expected); - - // Assert - Assert.Same(expected, codeDocument.Items[typeof(RazorSyntaxTree)]); - } - - [Fact] - public void GetAndSetImportSyntaxTrees_ReturnsSyntaxTrees() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = new[] { RazorSyntaxTree.Parse(codeDocument.Source), }; - codeDocument.SetImportSyntaxTrees(expected); - - // Act - var actual = codeDocument.GetImportSyntaxTrees(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void GetAndSetTagHelpers_ReturnsTagHelpers() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = new[] { TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly").Build() }; - codeDocument.SetTagHelpers(expected); - - // Act - var actual = codeDocument.GetTagHelpers(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void GetIRDocument_ReturnsIRDocument() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = new DocumentIntermediateNode(); - codeDocument.Items[typeof(DocumentIntermediateNode)] = expected; - - // Act - var actual = codeDocument.GetDocumentIntermediateNode(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void SetIRDocument_SetsIRDocument() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = new DocumentIntermediateNode(); - - // Act - codeDocument.SetDocumentIntermediateNode((DocumentIntermediateNode)expected); - - // Assert - Assert.Same(expected, codeDocument.Items[typeof(DocumentIntermediateNode)]); - } - - [Fact] - public void GetCSharpDocument_ReturnsCSharpDocument() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorCSharpDocument.Create("", RazorCodeGenerationOptions.CreateDefault(), Array.Empty()); - codeDocument.Items[typeof(RazorCSharpDocument)] = expected; - - // Act - var actual = codeDocument.GetCSharpDocument(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void SetCSharpDocument_SetsCSharpDocument() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorCSharpDocument.Create("", RazorCodeGenerationOptions.CreateDefault(), Array.Empty()); - - // Act - codeDocument.SetCSharpDocument(expected); - - // Assert - Assert.Same(expected, codeDocument.Items[typeof(RazorCSharpDocument)]); - } - - [Fact] - public void GetTagHelperContext_ReturnsTagHelperContext() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = TagHelperDocumentContext.Create(null, new TagHelperDescriptor[0]); - codeDocument.Items[typeof(TagHelperDocumentContext)] = expected; - - // Act - var actual = codeDocument.GetTagHelperContext(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void SetTagHelperContext_SetsTagHelperContext() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = TagHelperDocumentContext.Create(null, new TagHelperDescriptor[0]); - - // Act - codeDocument.SetTagHelperContext(expected); - - // Assert - Assert.Same(expected, codeDocument.Items[typeof(TagHelperDocumentContext)]); - } - - [Fact] - public void GetParserOptions_ReturnsSuccessfully() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorParserOptions.CreateDefault(); - codeDocument.Items[typeof(RazorParserOptions)] = expected; - - // Act - var actual = codeDocument.GetParserOptions(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void SetParserOptions_SetsSuccessfully() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorParserOptions.CreateDefault(); - - // Act - codeDocument.SetParserOptions(expected); - - // Assert - Assert.Same(expected, codeDocument.Items[typeof(RazorParserOptions)]); - } - - [Fact] - public void GetCodeGenerationOptions_ReturnsSuccessfully() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorCodeGenerationOptions.CreateDefault(); - codeDocument.Items[typeof(RazorCodeGenerationOptions)] = expected; - - // Act - var actual = codeDocument.GetCodeGenerationOptions(); - - // Assert - Assert.Same(expected, actual); - } - - [Fact] - public void SetCodeGenerationOptions_SetsSuccessfully() - { - // Arrange - var codeDocument = TestRazorCodeDocument.CreateEmpty(); - - var expected = RazorCodeGenerationOptions.CreateDefault(); - - // Act - codeDocument.SetCodeGenerationOptions(expected); - - // Assert - Assert.Same(expected, codeDocument.Items[typeof(RazorCodeGenerationOptions)]); - } - - [Fact] - public void TryComputeNamespace_RootNamespaceNotSet_ReturnsNull() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Test.cshtml", relativePath: "Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Null(@namespace); - } - - [Fact] - public void TryComputeNamespace_RelativePathNull_ReturnsNull() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Test.cshtml", relativePath: null); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Null(@namespace); - } - - [Fact] - public void TryComputeNamespace_FilePathNull_ReturnsNull() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: null, relativePath: "Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Null(@namespace); - } - - [Fact] - public void TryComputeNamespace_RelativePathLongerThanFilePath_ReturnsNull() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Test.cshtml", relativePath: "Some\\invalid\\relative\\path\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Null(@namespace); - } - - [Fact] - public void TryComputeNamespace_ComputesNamespace() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Components\\Test.cshtml", relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetCodeGenerationOptions(RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello"; - })); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("Hello.Components", @namespace); - } - - [Fact] - public void TryComputeNamespace_UsesIROptions_ComputesNamespace() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Components\\Test.cshtml", relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("Hello.Components", @namespace); - } - - [Fact] - public void TryComputeNamespace_NoRootNamespaceFallback_ReturnsNull() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Components\\Test.cshtml", relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: false, out var @namespace); - - // Assert - Assert.Null(@namespace); - } - - [Fact] - public void TryComputeNamespace_PrefersOptionsFromCodeDocument_ComputesNamespace() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Components\\Test.cshtml", relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetCodeGenerationOptions(RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "World"; - })); - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("World.Components", @namespace); - } - - [Fact] - public void TryComputeNamespace_SanitizesNamespaceName() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create(filePath: "C:\\Hello\\Components with space\\Test$name.cshtml", relativePath: "\\Components with space\\Test$name.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hel?o.World"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("Hel_o.World.Components_with_space", @namespace); - } - - [Fact] - public void TryComputeNamespace_RespectsNamespaceDirective() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create( - content: "@namespace My.Custom.NS", - filePath: "C:\\Hello\\Components\\Test.cshtml", - relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetFileKind(FileKinds.Component); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(sourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - }))); - - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello.World"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("My.Custom.NS", @namespace); - } - - [Fact] - public void TryComputeNamespace_RespectsImportsNamespaceDirective() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create( - filePath: "C:\\Hello\\Components\\Test.cshtml", - relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetFileKind(FileKinds.Component); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(sourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - }))); - - var importSourceDocument = TestRazorSourceDocument.Create( - content: "@namespace My.Custom.NS", - filePath: "C:\\Hello\\_Imports.razor", - relativePath: "\\_Imports.razor"); - codeDocument.SetImportSyntaxTrees(new[] - { - RazorSyntaxTree.Parse(importSourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - })) - }); - - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello.World"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("My.Custom.NS.Components", @namespace); - } - - [Fact] - public void TryComputeNamespace_RespectsImportsNamespaceDirective_SameFolder() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create( - filePath: "C:\\Hello\\Components\\Test.cshtml", - relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetFileKind(FileKinds.Component); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(sourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - }))); - - var importSourceDocument = TestRazorSourceDocument.Create( - content: "@namespace My.Custom.NS", - filePath: "C:\\Hello\\Components\\_Imports.razor", - relativePath: "\\Components\\_Imports.razor"); - codeDocument.SetImportSyntaxTrees(new[] - { - RazorSyntaxTree.Parse(importSourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - })) - }); - - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello.World"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("My.Custom.NS", @namespace); - } - - [Fact] - public void TryComputeNamespace_OverrideImportsNamespaceDirective() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create( - content: "@namespace My.Custom.OverrideNS", - filePath: "C:\\Hello\\Components\\Test.cshtml", - relativePath: "\\Components\\Test.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetFileKind(FileKinds.Component); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(sourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - }))); - - var importSourceDocument = TestRazorSourceDocument.Create( - content: "@namespace My.Custom.NS", - filePath: "C:\\Hello\\_Imports.razor", - relativePath: "\\_Imports.razor"); - codeDocument.SetImportSyntaxTrees(new[] - { - RazorSyntaxTree.Parse(importSourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - })) - }); - - var documentNode = new DocumentIntermediateNode() - { - Options = RazorCodeGenerationOptions.Create(c => - { - c.RootNamespace = "Hello.World"; - }) - }; - codeDocument.SetDocumentIntermediateNode(documentNode); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("My.Custom.OverrideNS", @namespace); - } - - [Theory] - [InlineData("/", "foo.cshtml", "Base")] - [InlineData("/", "foo/bar.cshtml", "Base.foo")] - [InlineData("/", "foo/bar/baz.cshtml", "Base.foo.bar")] - [InlineData("/foo/", "bar/baz.cshtml", "Base.bar")] - [InlineData("/Foo/", "bar/baz.cshtml", "Base.bar")] - [InlineData("c:\\", "foo.cshtml", "Base")] - [InlineData("c:\\", "foo\\bar.cshtml", "Base.foo")] - [InlineData("c:\\", "foo\\bar\\baz.cshtml", "Base.foo.bar")] - [InlineData("c:\\foo\\", "bar\\baz.cshtml", "Base.bar")] - [InlineData("c:\\Foo\\", "bar\\baz.cshtml", "Base.bar")] - public void TryComputeNamespace_ComputesNamespaceWithSuffix(string basePath, string relativePath, string expectedNamespace) - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create( - filePath: Path.Combine(basePath, relativePath), - relativePath: relativePath); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(sourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - }))); - - var importRelativePath = "_ViewImports.cshtml"; - var importSourceDocument = TestRazorSourceDocument.Create( - content: "@namespace Base", - filePath: Path.Combine(basePath, importRelativePath), - relativePath: importRelativePath); - codeDocument.SetImportSyntaxTrees(new[] - { - RazorSyntaxTree.Parse(importSourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - })) - }); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal(expectedNamespace, @namespace); - } - - [Fact] - public void TryComputeNamespace_ForNonRelatedFiles_UsesNamespaceVerbatim() - { - // Arrange - var sourceDocument = TestRazorSourceDocument.Create( - filePath: "c:\\foo\\bar\\bleh.cshtml", - relativePath: "bar\\bleh.cshtml"); - var codeDocument = TestRazorCodeDocument.Create(sourceDocument, Array.Empty()); - codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(sourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - }))); - - var importSourceDocument = TestRazorSourceDocument.Create( - content: "@namespace Base", - filePath: "c:\\foo\\baz\\bleh.cshtml", - relativePath: "baz\\bleh.cshtml"); - codeDocument.SetImportSyntaxTrees(new[] - { - RazorSyntaxTree.Parse(importSourceDocument, RazorParserOptions.Create(options => - { - options.Directives.Add(NamespaceDirective.Directive); - })) - }); - - // Act - codeDocument.TryComputeNamespace(fallbackToRootNamespace: true, out var @namespace); - - // Assert - Assert.Equal("Base", @namespace); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorCodeDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/RazorCodeDocumentTest.cs deleted file mode 100644 index c0cce4b7c65..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorCodeDocumentTest.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorCodeDocumentTest - { - [Fact] - public void Create() - { - // Arrange - var source = TestRazorSourceDocument.Create(); - - // Act - var code = RazorCodeDocument.Create(source); - - // Assert - Assert.Same(source, code.Source); - Assert.NotNull(code.Items); - } - - [Fact] - public void Create_WithImports() - { - // Arrange - var source = TestRazorSourceDocument.Create(); - - var imports = new RazorSourceDocument[] - { - TestRazorSourceDocument.Create(), - }; - - // Act - var code = RazorCodeDocument.Create(source, imports); - - // Assert - Assert.Same(source, code.Source); - Assert.NotNull(code.Items); - - Assert.NotSame(imports, code.Imports); - Assert.Collection(imports, d => Assert.Same(imports[0], d)); - } - - [Fact] - public void Create_WithImports_AllowsNull() - { - // Arrange - var source = TestRazorSourceDocument.Create(); - - // Act - var code = RazorCodeDocument.Create(source, imports: null); - - // Assert - Assert.Same(source, code.Source); - Assert.NotNull(code.Items); - Assert.Empty(code.Imports); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorDiagnosticDescriptorTest.cs b/src/Razor/test/RazorLanguage.Test/RazorDiagnosticDescriptorTest.cs deleted file mode 100644 index 9b3af87f6fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorDiagnosticDescriptorTest.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorDiagnosticDescriptorTest - { - [Fact] - public void RazorDiagnosticDescriptor_Ctor() - { - // Arrange & Act - var descriptor = new RazorDiagnosticDescriptor("RZ0001", () => "Hello, World!", RazorDiagnosticSeverity.Error); - - // Assert - Assert.Equal("RZ0001", descriptor.Id); - Assert.Equal(RazorDiagnosticSeverity.Error, descriptor.Severity); - Assert.Equal("Hello, World!", descriptor.GetMessageFormat()); - } - - [Fact] - public void RazorDiagnosticDescriptor_Equals() - { - // Arrange - var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", () => "a!", RazorDiagnosticSeverity.Error); - var descriptor2 = new RazorDiagnosticDescriptor("RZ0001", () => "b!", RazorDiagnosticSeverity.Error); - - // Act - var result = descriptor1.Equals(descriptor2); - - // Assert - Assert.True(result); - } - - [Fact] - public void RazorDiagnosticDescriptor_NotEquals() - { - // Arrange - var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", () => "a!", RazorDiagnosticSeverity.Error); - var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", () => "b!", RazorDiagnosticSeverity.Error); - - // Act - var result = descriptor1.Equals(descriptor2); - - // Assert - Assert.False(result); - } - - [Fact] - public void RazorDiagnosticDescriptor_HashCodesEqual() - { - // Arrange - var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", () => "a!", RazorDiagnosticSeverity.Error); - var descriptor2 = new RazorDiagnosticDescriptor("RZ0001", () => "b!", RazorDiagnosticSeverity.Error); - - // Act - var result = descriptor1.GetHashCode() == descriptor2.GetHashCode(); - - // Assert - Assert.True(result); - } - - [Fact] - public void RazorDiagnosticDescriptor_HashCodesNotEqual() - { - // Arrange - var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", () => "a!", RazorDiagnosticSeverity.Error); - var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", () => "b!", RazorDiagnosticSeverity.Error); - - // Act - var result = descriptor1.GetHashCode() == descriptor2.GetHashCode(); - - // Assert - Assert.False(result); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorDiagnosticTest.cs b/src/Razor/test/RazorLanguage.Test/RazorDiagnosticTest.cs deleted file mode 100644 index 0ad45e8ed53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorDiagnosticTest.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright(c) .NET Foundation.All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorDiagnosticTest - { - [Fact] - public void Create_WithDescriptor_CreatesDefaultRazorDiagnostic() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0001", () => "a", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - // Act - var diagnostic = RazorDiagnostic.Create(descriptor, span); - - // Assert - var defaultDiagnostic = Assert.IsType(diagnostic); - Assert.Equal("RZ0001", defaultDiagnostic.Id); - Assert.Equal(RazorDiagnosticSeverity.Error, defaultDiagnostic.Severity); - Assert.Equal(span, diagnostic.Span); - } - - [Fact] - public void Create_WithDescriptor_AndArgs_CreatesDefaultRazorDiagnostic() - { - // Arrange - var descriptor = new RazorDiagnosticDescriptor("RZ0001", () => "a", RazorDiagnosticSeverity.Error); - var span = new SourceSpan("test.cs", 15, 1, 8, 5); - - // Act - var diagnostic = RazorDiagnostic.Create(descriptor, span, "Hello", "World"); - - // Assert - var defaultDiagnostic = Assert.IsType(diagnostic); - Assert.Equal("RZ0001", defaultDiagnostic.Id); - Assert.Equal(RazorDiagnosticSeverity.Error, defaultDiagnostic.Severity); - Assert.Equal(span, diagnostic.Span); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorEngineBuilderExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/RazorEngineBuilderExtensionsTest.cs deleted file mode 100644 index 3df637cadca..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorEngineBuilderExtensionsTest.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ -#pragma warning disable CS0618 // Type or member is obsolete - public class RazorEngineBuilderExtensionsTest - { - [Fact] - public void AddDirective_ExistingFeature_UsesFeature() - { - // Arrange - var expected = new DefaultRazorDirectiveFeature(); - var engine = RazorEngine.CreateEmpty(b => - { - b.Features.Add(expected); - - // Act - b.AddDirective(DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine)); - }); - - // Assert - var actual = Assert.Single(engine.Features.OfType()); - Assert.Same(expected, actual); - - var directive = Assert.Single(actual.Directives); - Assert.Equal("test", directive.Directive); - } - - [Fact] - public void AddDirective_NoFeature_CreatesFeature() - { - // Arrange - var engine = RazorEngine.CreateEmpty(b => - { - // Act - b.AddDirective(DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine)); - }); - - // Assert - var actual = Assert.Single(engine.Features.OfType()); - Assert.IsType(actual); - - var directive = Assert.Single(actual.Directives); - Assert.Equal("test", directive.Directive); - } - - [Fact] - public void AddTargetExtensions_ExistingFeature_UsesFeature() - { - // Arrange - var extension = new MyTargetExtension(); - - var expected = new DefaultRazorTargetExtensionFeature(); - var engine = RazorEngine.CreateEmpty(b => - { - b.Features.Add(expected); - - // Act - b.AddTargetExtension(extension); - }); - - // Assert - var actual = Assert.Single(engine.Features.OfType()); - Assert.Same(expected, actual); - - Assert.Same(extension, Assert.Single(actual.TargetExtensions)); - } - - [Fact] - public void AddTargetExtensions_NoFeature_CreatesFeature() - { - // Arrange - var extension = new MyTargetExtension(); - - var engine = RazorEngine.CreateEmpty(b => - { - // Act - b.AddTargetExtension(extension); - }); - - // Assert - var actual = Assert.Single(engine.Features.OfType()); - Assert.IsType(actual); - - Assert.Same(extension, Assert.Single(actual.TargetExtensions)); - } - - private class MyTargetExtension : ICodeTargetExtension - { - } - } -#pragma warning restore CS0618 // Type or member is obsolete -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorEngineTest.cs b/src/Razor/test/RazorLanguage.Test/RazorEngineTest.cs deleted file mode 100644 index 225f73f3428..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorEngineTest.cs +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ -#pragma warning disable CS0618 // Type or member is obsolete - public class RazorEngineTest - { - [Fact] - public void Create_NoArg_CreatesDefaultRuntimeEngine() - { - // Arrange - // Act - var engine = RazorEngine.Create(); - - // Assert - Assert.IsType(engine); - AssertDefaultRuntimeFeatures(engine.Features); - AssertDefaultRuntimePhases(engine.Phases); - AssertDefaultRuntimeTargetExtensions(engine); - } - - [Fact] - public void CreateDesignTime_NoArg_CreatesDefaultDesignTimeEngine() - { - // Arrange - // Act - var engine = RazorEngine.CreateDesignTime(); - - // Assert - Assert.IsType(engine); - AssertDefaultDesignTimeFeatures(engine.Features); - AssertDefaultDesignTimePhases(engine.Phases); - AssertDefaultDesignTimeTargetExtensions(engine); - } - - [Fact] - public void Create_Null_CreatesDefaultRuntimeEngine() - { - // Arrange - // Act - var engine = RazorEngine.Create(configure: null); - - // Assert - Assert.IsType(engine); - AssertDefaultRuntimeFeatures(engine.Features); - AssertDefaultRuntimePhases(engine.Phases); - AssertDefaultRuntimeTargetExtensions(engine); - } - - [Fact] - public void CreateDesignTime_Null_CreatesDefaultDesignTimeEngine() - { - // Arrange - // Act - var engine = RazorEngine.CreateDesignTime(configure: null); - - // Assert - Assert.IsType(engine); - AssertDefaultDesignTimeFeatures(engine.Features); - AssertDefaultDesignTimePhases(engine.Phases); - AssertDefaultDesignTimeTargetExtensions(engine); - } - - [Fact] - public void Create_Lambda_AddsFeaturesAndPhases() - { - // Arrange - IRazorEngineFeature[] features = null; - IRazorEnginePhase[] phases = null; - - // Act - var engine = RazorEngine.Create(builder => - { - builder.Features.Clear(); - builder.Phases.Clear(); - - builder.Features.Add(Mock.Of()); - builder.Features.Add(Mock.Of()); - - builder.Phases.Add(Mock.Of()); - builder.Phases.Add(Mock.Of()); - - features = builder.Features.ToArray(); - phases = builder.Phases.ToArray(); - }); - - // Assert - Assert.Collection( - engine.Features, - f => Assert.Same(features[0], f), - f => Assert.Same(features[1], f)); - - Assert.Collection( - engine.Phases, - p => Assert.Same(phases[0], p), - p => Assert.Same(phases[1], p)); - } - - [Fact] - public void CreateDesignTime_Lambda_AddsFeaturesAndPhases() - { - // Arrange - IRazorEngineFeature[] features = null; - IRazorEnginePhase[] phases = null; - - // Act - var engine = RazorEngine.CreateDesignTime(builder => - { - builder.Features.Clear(); - builder.Phases.Clear(); - - builder.Features.Add(Mock.Of()); - builder.Features.Add(Mock.Of()); - - builder.Phases.Add(Mock.Of()); - builder.Phases.Add(Mock.Of()); - - features = builder.Features.ToArray(); - phases = builder.Phases.ToArray(); - }); - - // Assert - Assert.Collection( - engine.Features, - f => Assert.Same(features[0], f), - f => Assert.Same(features[1], f)); - - Assert.Collection( - engine.Phases, - p => Assert.Same(phases[0], p), - p => Assert.Same(phases[1], p)); - } - - private static void AssertDefaultRuntimeTargetExtensions(RazorEngine engine) - { - var feature = engine.Features.OfType().FirstOrDefault(); - Assert.NotNull(feature); - - Assert.Collection( - feature.TargetExtensions, - extension => Assert.IsType(extension), - extension => Assert.IsType(extension), - extension => Assert.IsType(extension)); - } - - private static void AssertDefaultRuntimeFeatures(IEnumerable features) - { - Assert.Collection( - features, - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature)); - } - - private static void AssertDefaultRuntimePhases(IReadOnlyList phases) - { - Assert.Collection( - 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)); - } - - private static void AssertDefaultDesignTimeTargetExtensions(RazorEngine engine) - { - var feature = engine.Features.OfType().FirstOrDefault(); - Assert.NotNull(feature); - - Assert.Collection( - feature.TargetExtensions, - extension => Assert.IsType(extension), - extension => Assert.IsType(extension), - extension => Assert.IsType(extension)); - } - - private static void AssertDefaultDesignTimeFeatures(IEnumerable features) - { - Assert.Collection( - features, - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature)); - } - - private static void AssertDefaultDesignTimePhases(IReadOnlyList phases) - { - Assert.Collection( - 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)); - } - } -#pragma warning restore CS0618 // Type or member is obsolete -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/RazorLanguageVersionTest.cs b/src/Razor/test/RazorLanguage.Test/RazorLanguageVersionTest.cs deleted file mode 100644 index 5b09826ebfb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorLanguageVersionTest.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using System.Reflection; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorLanguageVersionTest - { - [Fact] - public void TryParseInvalid() - { - // Arrange - var value = "not-version"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var _); - - // Assert - Assert.False(result); - } - - [Fact] - public void TryParse10() - { - // Arrange - var value = "1.0"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Version_1_0, version); - } - - [Fact] - public void TryParse11() - { - // Arrange - var value = "1.1"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Version_1_1, version); - } - - [Fact] - public void TryParse20() - { - // Arrange - var value = "2.0"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Version_2_0, version); - } - - [Fact] - public void TryParse21() - { - // Arrange - var value = "2.1"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Version_2_1, version); - } - - [Fact] - public void TryParse30() - { - // Arrange - var value = "3.0"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Version_3_0, version); - } - - [Fact] - public void TryParseLatest() - { - // Arrange - var value = "Latest"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Version_3_0, version); - } - - [Fact] - public void TryParseExperimental() - { - // Arrange - var value = "experimental"; - - // Act - var result = RazorLanguageVersion.TryParse(value, out var version); - - // Assert - Assert.True(result); - Assert.Same(RazorLanguageVersion.Experimental, version); - } - - [Fact] - public void LatestPointsToNewestVersion() - { - // Arrange - var v = RazorLanguageVersion.Parse("latest"); - var versions = typeof(RazorLanguageVersion).GetFields(BindingFlags.Public | BindingFlags.Static) - .Where(f => f.Name.StartsWith("Version_")) - .Select(f => f.GetValue(obj: null)) - .Cast(); - - // Act & Assert - Assert.NotEmpty(versions); - foreach (var version in versions) - { - Assert.True(version.CompareTo(v) <= 0, $"RazorLanguageVersion {version} has a higher version than RazorLanguageVersion.Latest"); - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorParserFeatureFlagsTest.cs b/src/Razor/test/RazorLanguage.Test/RazorParserFeatureFlagsTest.cs deleted file mode 100644 index d645d45ced6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorParserFeatureFlagsTest.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorParserFeatureFlagsTest - { - [Fact] - public void Create_LatestVersion_AllowsLatestFeatures() - { - // Arrange & Act - var context = RazorParserFeatureFlags.Create(RazorLanguageVersion.Latest, FileKinds.Legacy); - - // Assert - Assert.True(context.AllowComponentFileKind); - Assert.True(context.AllowRazorInAllCodeBlocks); - Assert.True(context.AllowUsingVariableDeclarations); - Assert.True(context.AllowNullableForgivenessOperator); - } - - [Fact] - public void Create_21Version_Allows21Features() - { - // Arrange & Act - var context = RazorParserFeatureFlags.Create(RazorLanguageVersion.Version_2_1, FileKinds.Legacy); - - // Assert - Assert.True(context.AllowMinimizedBooleanTagHelperAttributes); - Assert.True(context.AllowHtmlCommentsInTagHelpers); - } - - [Fact] - public void Create_OldestVersion_DoesNotAllowLatestFeatures() - { - // Arrange & Act - var context = RazorParserFeatureFlags.Create(RazorLanguageVersion.Version_1_0, FileKinds.Legacy); - - // Assert - Assert.False(context.AllowMinimizedBooleanTagHelperAttributes); - Assert.False(context.AllowHtmlCommentsInTagHelpers); - Assert.False(context.AllowComponentFileKind); - Assert.False(context.AllowRazorInAllCodeBlocks); - Assert.False(context.AllowUsingVariableDeclarations); - Assert.False(context.AllowNullableForgivenessOperator); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorProjectEngineBuilderExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/RazorProjectEngineBuilderExtensionsTest.cs deleted file mode 100644 index f0a57128c3c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorProjectEngineBuilderExtensionsTest.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorProjectEngineBuilderExtensionsTest - { - [Fact] - public void SetImportFeature_SetsTheImportFeature() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - var testFeature1 = Mock.Of(); - var testFeature2 = Mock.Of(); - builder.Features.Add(testFeature1); - builder.Features.Add(testFeature2); - var newFeature = Mock.Of(); - - // Act - builder.SetImportFeature(newFeature); - - // Assert - var feature = Assert.Single(builder.Features); - Assert.Same(newFeature, feature); - } - - [Fact] - public void AddTargetExtension_CreatesAndAddsToTargetExtensionFeatureIfItDoesNotExist() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - var expectedExtension = Mock.Of(); - - // Act - builder.AddTargetExtension(expectedExtension); - - // Assert - var feature = Assert.Single(builder.Features); - var codeTargetExtensionFeature = Assert.IsAssignableFrom(feature); - var extensions = Assert.Single(codeTargetExtensionFeature.TargetExtensions); - Assert.Same(expectedExtension, extensions); - } - - [Fact] - public void AddTargetExtension_UsesExistingFeatureIfExistsAndAddsTo() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - var codeTargetExtensionFeature = new DefaultRazorTargetExtensionFeature(); - builder.Features.Add(codeTargetExtensionFeature); - var expectedExtension = Mock.Of(); - - // Act - builder.AddTargetExtension(expectedExtension); - - // Assert - var feature = Assert.Single(builder.Features); - Assert.Same(codeTargetExtensionFeature, feature); - var extensions = Assert.Single(codeTargetExtensionFeature.TargetExtensions); - Assert.Same(expectedExtension, extensions); - } - - [Fact] - public void AddDirective_CreatesAndAddsToDirectiveFeatureIfItDoesNotExist() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - var expectedDirective = Mock.Of(); - - // Act - builder.AddDirective(expectedDirective); - - // Assert - var feature = Assert.Single(builder.Features); - var directiveFeature = Assert.IsAssignableFrom(feature); - var directive = Assert.Single(directiveFeature.Directives); - Assert.Same(expectedDirective, directive); - } - - [Fact] - public void AddDirective_UsesExistingFeatureIfExistsAndAddsTo() - { - // Arrange - var builder = new DefaultRazorProjectEngineBuilder(RazorConfiguration.Default, Mock.Of()); - var directiveFeature = new DefaultRazorDirectiveFeature(); - builder.Features.Add(directiveFeature); - var expecteDirective = Mock.Of(); - - // Act - builder.AddDirective(expecteDirective); - - // Assert - var feature = Assert.Single(builder.Features); - Assert.Same(directiveFeature, feature); - var directive = Assert.Single(directiveFeature.Directives); - Assert.Same(expecteDirective, directive); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorProjectEngineFeatureBaseTest.cs b/src/Razor/test/RazorLanguage.Test/RazorProjectEngineFeatureBaseTest.cs deleted file mode 100644 index 8344e787c7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorProjectEngineFeatureBaseTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorProjectEngineFeatureBaseTest - { - [Fact] - public void ProjectEngineSetter_CallsOnInitialized() - { - // Arrange - var testFeature = new TestFeature(); - - // Act - testFeature.ProjectEngine = Mock.Of(); - - // Assert - Assert.Equal(1, testFeature.InitializationCount); - } - - private class TestFeature : RazorProjectEngineFeatureBase - { - public int InitializationCount { get; private set; } - - protected override void OnInitialized() - { - InitializationCount++; - } - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorProjectEngineTest.cs b/src/Razor/test/RazorLanguage.Test/RazorProjectEngineTest.cs deleted file mode 100644 index c9fa4504cda..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorProjectEngineTest.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.AspNetCore.Razor.Language.Extensions; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorProjectEngineTest - { - [Fact] - public void CreateDesignTime_Lambda_AddsFeaturesAndPhases() - { - // Arrange - - // Act - var engine = RazorProjectEngine.Create(RazorConfiguration.Default, Mock.Of()); - - // Assert - AssertDefaultPhases(engine); - AssertDefaultFeatures(engine); - AssertDefaultDirectives(engine); - AssertDefaultTargetExtensions(engine); - } - - private static void AssertDefaultPhases(RazorProjectEngine engine) - { - Assert.Collection( - 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)); - } - - private static void AssertDefaultFeatures(RazorProjectEngine engine) - { - var features = engine.EngineFeatures.OrderBy(f => f.GetType().Name).ToArray(); - Assert.Collection( - features, - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature), - feature => Assert.IsType(feature)); - } - - private static void AssertDefaultDirectives(RazorProjectEngine engine) - { - var feature = engine.EngineFeatures.OfType().FirstOrDefault(); - Assert.NotNull(feature); - Assert.Collection( - feature.Directives, - directive => Assert.Same(FunctionsDirective.Directive, directive), - directive => Assert.Same(ImplementsDirective.Directive, directive), - directive => Assert.Same(InheritsDirective.Directive, directive), - directive => Assert.Same(NamespaceDirective.Directive, directive), - directive => Assert.Same(AttributeDirective.Directive, directive)); - } - - private static void AssertDefaultTargetExtensions(RazorProjectEngine engine) - { - var feature = engine.EngineFeatures.OfType().FirstOrDefault(); - Assert.NotNull(feature); - - var extensions = feature.TargetExtensions.OrderBy(f => f.GetType().Name).ToArray(); - Assert.Collection( - extensions, - extension => Assert.IsType(extension), - extension => Assert.IsType(extension), - extension => Assert.IsType(extension), - extension => Assert.IsType(extension)); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorProjectItemTest.cs b/src/Razor/test/RazorLanguage.Test/RazorProjectItemTest.cs deleted file mode 100644 index e1e95b2cc0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorProjectItemTest.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorProjectItemTest - { - [Fact] - public void CombinedPath_ReturnsPathIfBasePathIsEmpty() - { - // Arrange - var emptyBasePath = "/"; - var path = "/foo/bar.cshtml"; - var projectItem = new TestRazorProjectItem(path, basePath: emptyBasePath); - - // Act - var combinedPath = projectItem.CombinedPath; - - // Assert - Assert.Equal(path, combinedPath); - } - - [Theory] - [InlineData("/root", "/root/foo/bar.cshtml")] - [InlineData("root/subdir", "root/subdir/foo/bar.cshtml")] - public void CombinedPath_ConcatsPaths(string basePath, string expected) - { - // Arrange - var path = "/foo/bar.cshtml"; - var projectItem = new TestRazorProjectItem(path, basePath: basePath); - - // Act - var combinedPath = projectItem.CombinedPath; - - // Assert - Assert.Equal(expected, combinedPath); - } - - [Theory] - [InlineData("/Home/Index")] - [InlineData("EditUser")] - public void Extension_ReturnsNullIfFileDoesNotHaveExtension(string path) - { - // Arrange - var projectItem = new TestRazorProjectItem(path, basePath: "/views"); - - // Act - var extension = projectItem.Extension; - - // Assert - Assert.Null(extension); - } - - [Theory] - [InlineData("/Home/Index.cshtml", ".cshtml")] - [InlineData("/Home/Index.en-gb.cshtml", ".cshtml")] - [InlineData("EditUser.razor", ".razor")] - public void Extension_ReturnsFileExtension(string path, string expected) - { - // Arrange - var projectItem = new TestRazorProjectItem(path, basePath: "/views"); - - // Act - var extension = projectItem.Extension; - - // Assert - Assert.Equal(expected, extension); - } - - [Theory] - [InlineData("Home/Index.cshtml", "Index.cshtml")] - [InlineData("/Accounts/Customers/Manage-en-us.razor", "Manage-en-us.razor")] - public void FileName_ReturnsFileNameWithExtension(string path, string expected) - { - // Arrange - var projectItem = new TestRazorProjectItem(path, basePath: "/"); - - // Act - var fileName = projectItem.FileName; - - // Assert - Assert.Equal(expected, fileName); - } - - [Theory] - [InlineData("Home/Index", "Home/Index")] - [InlineData("Home/Index.cshtml", "Home/Index")] - [InlineData("/Accounts/Customers/Manage.en-us.razor", "/Accounts/Customers/Manage.en-us")] - [InlineData("/Accounts/Customers/Manage-en-us.razor", "/Accounts/Customers/Manage-en-us")] - public void PathWithoutExtension_ExcludesExtension(string path, string expected) - { - // Arrange - var projectItem = new TestRazorProjectItem(path, basePath: "/"); - - // Act - var fileName = projectItem.FilePathWithoutExtension; - - // Assert - Assert.Equal(expected, fileName); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorProjectTest.cs b/src/Razor/test/RazorLanguage.Test/RazorProjectTest.cs deleted file mode 100644 index 7831db35217..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorProjectTest.cs +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Testing; -using Moq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorProjectTest - { - [Fact] - public void NormalizeAndEnsureValidPath_DoesNotModifyPath() - { - // Arrange - var project = new TestRazorProject(); - - // Act - var path = project.NormalizeAndEnsureValidPath("/Views/Home/Index.cshtml"); - - // Assert - Assert.Equal("/Views/Home/Index.cshtml", path); - } - - [Theory] - [InlineData(null)] - [InlineData("")] - public void NormalizeAndEnsureValidPath_ThrowsIfPathIsNullOrEmpty(string path) - { - // Arrange - var project = new TestRazorProject(); - - // Act and Assert - ExceptionAssert.ThrowsArgumentNullOrEmptyString(() => project.NormalizeAndEnsureValidPath(path), "path"); - } - - [Theory] - [InlineData("foo")] - [InlineData("~/foo")] - [InlineData("\\foo")] - public void NormalizeAndEnsureValidPath_ThrowsIfPathDoesNotStartWithForwardSlash(string path) - { - // Arrange - var project = new TestRazorProject(); - - // Act and Assert - ExceptionAssert.ThrowsArgument( - () => project.NormalizeAndEnsureValidPath(path), - "path", - "Path must begin with a forward slash '/'."); - } - - [Fact] - public void FindHierarchicalItems_ReturnsEmptySequenceIfPathIsAtRoot() - { - // Arrange - var project = new TestRazorProject(); - - // Act - var result = project.FindHierarchicalItems("/", "File.cshtml"); - - // Assert - Assert.Empty(result); - } - - [Theory] - [InlineData("_ViewStart.cshtml")] - [InlineData("_ViewImports.cshtml")] - public void FindHierarchicalItems_ReturnsItemsForPath(string fileName) - { - // Arrange - var path = "/Views/Home/Index.cshtml"; - var items = new List - { - CreateProjectItem($"/{fileName}"), - CreateProjectItem($"/Views/{fileName}"), - CreateProjectItem($"/Views/Home/{fileName}") - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(path, $"{fileName}"); - - // Assert - Assert.Collection( - result, - item => Assert.Equal($"/Views/Home/{fileName}", item.FilePath), - item => Assert.Equal($"/Views/{fileName}", item.FilePath), - item => Assert.Equal($"/{fileName}", item.FilePath)); - } - - [Fact] - public void FindHierarchicalItems_ReturnsItemsForPathAtRoot() - { - // Arrange - var path = "/Index.cshtml"; - var items = new List - { - CreateProjectItem("/File.cshtml") - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(path, "File.cshtml"); - - // Assert - Assert.Collection( - result, - item => Assert.Equal("/File.cshtml", item.FilePath)); - } - - [Fact] - public void FindHierarchicalItems_DoesNotIncludePassedInItem() - { - // Arrange - var path = "/Areas/MyArea/Views/Home/File.cshtml"; - var items = new List - { - CreateProjectItem("/Areas/MyArea/Views/Home/File.cshtml"), - CreateProjectItem("/Areas/MyArea/Views/File.cshtml"), - CreateProjectItem("/Areas/MyArea/File.cshtml"), - CreateProjectItem("/Areas/File.cshtml"), - CreateProjectItem("/File.cshtml"), - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(path, "File.cshtml"); - - // Assert - Assert.Collection( - result, - item => Assert.Equal("/Areas/MyArea/Views/File.cshtml", item.FilePath), - item => Assert.Equal("/Areas/MyArea/File.cshtml", item.FilePath), - item => Assert.Equal("/Areas/File.cshtml", item.FilePath), - item => Assert.Equal("/File.cshtml", item.FilePath)); - } - - [Fact] - public void FindHierarchicalItems_ReturnsEmptySequenceIfPassedInItemWithFileNameIsAtRoot() - { - // Arrange - var path = "/File.cshtml"; - var items = new List - { - CreateProjectItem("/File.cshtml") - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(path, "File.cshtml"); - - // Assert - Assert.Empty(result); - } - - [Fact] - public void FindHierarchicalItems_IncludesNonExistentFiles() - { - // Arrange - var path = "/Areas/MyArea/Views/Home/Test.cshtml"; - var items = new List - { - CreateProjectItem("/Areas/MyArea/File.cshtml"), - CreateProjectItem("/File.cshtml") - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(path, "File.cshtml"); - - // Assert - Assert.Collection( - result, - item => - { - Assert.Equal("/Areas/MyArea/Views/Home/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }, - item => - { - Assert.Equal("/Areas/MyArea/Views/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }, - item => - { - Assert.Equal("/Areas/MyArea/File.cshtml", item.FilePath); - Assert.True(item.Exists); - }, - item => - { - Assert.Equal("/Areas/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }, - item => - { - Assert.Equal("/File.cshtml", item.FilePath); - Assert.True(item.Exists); - }); - } - - [Theory] - [InlineData("/Areas")] - [InlineData("/Areas/")] - public void FindHierarchicalItems_WithBasePath(string basePath) - { - // Arrange - var path = "/Areas/MyArea/Views/Home/Test.cshtml"; - var items = new List - { - CreateProjectItem("/Areas/MyArea/File.cshtml"), - CreateProjectItem("/File.cshtml") - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(basePath, path, "File.cshtml"); - - // Assert - Assert.Collection( - result, - item => - { - Assert.Equal("/Areas/MyArea/Views/Home/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }, - item => - { - Assert.Equal("/Areas/MyArea/Views/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }, - item => - { - Assert.Equal("/Areas/MyArea/File.cshtml", item.FilePath); - Assert.True(item.Exists); - }, - item => - { - Assert.Equal("/Areas/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }); - } - - [Theory] - [InlineData("/Areas/MyArea/Views")] - [InlineData("/Areas/MyArea/Views/")] - public void FindHierarchicalItems_WithNestedBasePath(string basePath) - { - // Arrange - var path = "/Areas/MyArea/Views/Home/Test.cshtml"; - var items = new List - { - CreateProjectItem("/Areas/MyArea/File.cshtml"), - CreateProjectItem("/File.cshtml") - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(basePath, path, "File.cshtml"); - - // Assert - Assert.Collection( - result, - item => - { - Assert.Equal("/Areas/MyArea/Views/Home/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }, - item => - { - Assert.Equal("/Areas/MyArea/Views/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }); - } - - [Theory] - [InlineData("/Areas/MyArea/Views/Home")] - [InlineData("/Areas/MyArea/Views/Home/")] - public void FindHierarchicalItems_WithFileAtBasePath(string basePath) - { - // Arrange - var path = "/Areas/MyArea/Views/Home/Test.cshtml"; - var items = new List - { - CreateProjectItem("/Areas/MyArea/File.cshtml"), - CreateProjectItem("/File.cshtml"), - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(basePath, path, "File.cshtml"); - - // Assert - Assert.Collection( - result, - item => - { - Assert.Equal("/Areas/MyArea/Views/Home/File.cshtml", item.FilePath); - Assert.False(item.Exists); - }); - } - - [Fact] - public void FindHierarchicalItems_ReturnsEmptySequenceIfPathIsNotASubPathOfBasePath() - { - // Arrange - var basePath = "/Pages"; - var path = "/Areas/MyArea/Views/Home/Test.cshtml"; - var items = new List - { - CreateProjectItem("/Areas/MyArea/File.cshtml"), - CreateProjectItem("/File.cshtml"), - }; - var project = new TestRazorProject(items); - - // Act - var result = project.FindHierarchicalItems(basePath, path, "File.cshtml"); - - // Assert - Assert.Empty(result); - } - - private RazorProjectItem CreateProjectItem(string path) - { - var projectItem = new Mock(); - projectItem.SetupGet(f => f.FilePath).Returns(path); - projectItem.SetupGet(f => f.Exists).Returns(true); - return projectItem.Object; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorSourceDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/RazorSourceDocumentTest.cs deleted file mode 100644 index 9c05f2851c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorSourceDocumentTest.cs +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Text; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class RazorSourceDocumentTest - { - [Fact] - public void ReadFrom() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(); - - // Act - var document = RazorSourceDocument.ReadFrom(content, "file.cshtml"); - - // Assert - Assert.IsType(document); - Assert.Equal("file.cshtml", document.FilePath); - Assert.Same(Encoding.UTF8, document.Encoding); - } - - [Fact] - public void ReadFrom_WithEncoding() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(encoding: Encoding.UTF32); - - // Act - var document = RazorSourceDocument.ReadFrom(content, "file.cshtml", Encoding.UTF32); - - // Assert - Assert.Equal("file.cshtml", document.FilePath); - Assert.Same(Encoding.UTF32, Assert.IsType(document).Encoding); - } - - [Fact] - public void ReadFrom_WithProperties() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(encoding: Encoding.UTF32); - var properties = new RazorSourceDocumentProperties("c:\\myapp\\filePath.cshtml", "filePath.cshtml"); - - // Act - var document = RazorSourceDocument.ReadFrom(content, Encoding.UTF32, properties); - - // Assert - Assert.Equal("c:\\myapp\\filePath.cshtml", document.FilePath); - Assert.Equal("filePath.cshtml", document.RelativePath); - Assert.Same(Encoding.UTF32, Assert.IsType(document).Encoding); - } - - [Fact] - public void ReadFrom_EmptyStream_WithEncoding() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(content: string.Empty, encoding: Encoding.UTF32); - - // Act - var document = RazorSourceDocument.ReadFrom(content, "file.cshtml", Encoding.UTF32); - - // Assert - Assert.Equal("file.cshtml", document.FilePath); - Assert.Same(Encoding.UTF32, Assert.IsType(document).Encoding); - } - - [Fact] - public void ReadFrom_ProjectItem() - { - // Arrange - var projectItem = new TestRazorProjectItem("filePath.cshtml", "c:\\myapp\\filePath.cshtml", "filePath.cshtml", "c:\\myapp\\"); - - // Act - var document = RazorSourceDocument.ReadFrom(projectItem); - - // Assert - Assert.Equal("c:\\myapp\\filePath.cshtml", document.FilePath); - Assert.Equal("filePath.cshtml", document.RelativePath); - Assert.Equal(projectItem.Content, ReadContent(document)); - } - - [Fact] - public void ReadFrom_ProjectItem_NoRelativePath() - { - // Arrange - var projectItem = new TestRazorProjectItem("filePath.cshtml", "c:\\myapp\\filePath.cshtml", basePath: "c:\\myapp\\"); - - // Act - var document = RazorSourceDocument.ReadFrom(projectItem); - - // Assert - Assert.Equal("c:\\myapp\\filePath.cshtml", document.FilePath); - Assert.Equal("filePath.cshtml", document.RelativePath); - Assert.Equal(projectItem.Content, ReadContent(document)); - } - - [Fact] - public void ReadFrom_ProjectItem_FallbackToRelativePath() - { - // Arrange - var projectItem = new TestRazorProjectItem("filePath.cshtml", relativePhysicalPath: "filePath.cshtml", basePath: "c:\\myapp\\"); - - // Act - var document = RazorSourceDocument.ReadFrom(projectItem); - - // Assert - Assert.Equal("filePath.cshtml", document.FilePath); - Assert.Equal("filePath.cshtml", document.RelativePath); - Assert.Equal(projectItem.Content, ReadContent(document)); - } - - [Fact] - public void ReadFrom_ProjectItem_FallbackToFileName() - { - // Arrange - var projectItem = new TestRazorProjectItem("filePath.cshtml", basePath: "c:\\myapp\\"); - - // Act - var document = RazorSourceDocument.ReadFrom(projectItem); - - // Assert - Assert.Equal("filePath.cshtml", document.FilePath); - Assert.Equal("filePath.cshtml", document.RelativePath); - Assert.Equal(projectItem.Content, ReadContent(document)); - } - - [Fact] - public void Create_WithoutEncoding() - { - // Arrange - var content = "Hello world"; - var fileName = "some-file-name"; - - // Act - var document = RazorSourceDocument.Create(content, fileName); - - // Assert - Assert.Equal(fileName, document.FilePath); - Assert.Equal(content, ReadContent(document)); - Assert.Same(Encoding.UTF8, document.Encoding); - } - - [Fact] - public void Create_WithEncoding() - { - // Arrange - var content = "Hello world"; - var fileName = "some-file-name"; - var encoding = Encoding.UTF32; - - // Act - var document = RazorSourceDocument.Create(content, fileName, encoding); - - // Assert - Assert.Equal(fileName, document.FilePath); - Assert.Equal(content, ReadContent(document)); - Assert.Same(encoding, document.Encoding); - } - - [Fact] - public void Create_WithProperties() - { - // Arrange - var content = "Hello world"; - var properties = new RazorSourceDocumentProperties("c:\\myapp\\filePath.cshtml", "filePath.cshtml"); - - // Act - var document = RazorSourceDocument.Create(content, Encoding.UTF32, properties); - - // Assert - Assert.Equal("c:\\myapp\\filePath.cshtml", document.FilePath); - Assert.Equal("filePath.cshtml", document.RelativePath); - Assert.Equal(content, ReadContent(document)); - Assert.Same(Encoding.UTF32, Assert.IsType(document).Encoding); - } - - [Fact] - public void ReadFrom_WithProjectItem_FallbackToFilePath_WhenRelativePhysicalPathIsNull() - { - // Arrange - var filePath = "filePath.cshtml"; - var projectItem = new TestRazorProjectItem(filePath, relativePhysicalPath: null); - - // Act - var document = RazorSourceDocument.ReadFrom(projectItem); - - // Assert - Assert.Equal(filePath, document.FilePath); - Assert.Equal(filePath, document.RelativePath); - } - - [Fact] - public void ReadFrom_WithProjectItem_UsesRelativePhysicalPath() - { - // Arrange - var filePath = "filePath.cshtml"; - var relativePhysicalPath = "relative-path.cshtml"; - var projectItem = new TestRazorProjectItem(filePath, relativePhysicalPath: relativePhysicalPath); - - // Act - var document = RazorSourceDocument.ReadFrom(projectItem); - - // Assert - Assert.Equal(relativePhysicalPath, document.FilePath); - Assert.Equal(relativePhysicalPath, document.RelativePath); - } - - private static string ReadContent(RazorSourceDocument razorSourceDocument) - { - var buffer = new char[razorSourceDocument.Length]; - razorSourceDocument.CopyTo(0, buffer, 0, buffer.Length); - - return new string(buffer); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/RazorSyntaxTreeTest.cs b/src/Razor/test/RazorLanguage.Test/RazorSyntaxTreeTest.cs deleted file mode 100644 index ed0bf3fb26b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/RazorSyntaxTreeTest.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language.Syntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language.Test -{ - public class RazorSyntaxTreeTest - { - [Fact] - public void Parse_CanParseEmptyDocument() - { - // Arrange - var source = TestRazorSourceDocument.Create(string.Empty); - - // Act - var syntaxTree = RazorSyntaxTree.Parse(source); - - // Assert - Assert.NotNull(syntaxTree); - Assert.Empty(syntaxTree.Diagnostics); - } - - [Fact] - public void Parse_NodesReturnCorrectFilePath() - { - // Arrange - var filePath = "test.cshtml"; - var source = TestRazorSourceDocument.Create("@if (true) { @if(false) {
        @something.
        } }", filePath: filePath); - - // Act - var syntaxTree = RazorSyntaxTree.Parse(source); - - // Assert - Assert.Empty(syntaxTree.Diagnostics); - Assert.NotNull(syntaxTree); - - var children = syntaxTree.Root.DescendantNodes(); - Assert.All(children, node => Assert.Equal(filePath, node.GetSourceLocation(source).FilePath)); - } - - [Fact] - public void Parse_UseDirectiveTokenizer_ParsesUntilFirstDirective() - { - // Arrange - var source = TestRazorSourceDocument.Create("\r\n \r\n @*SomeComment*@ \r\n @tagHelperPrefix \"SomePrefix\"\r\n\r\n@if (true) {\r\n @if(false) {
        @something.
        } \r\n}"); - var options = RazorParserOptions.Create(builder => builder.ParseLeadingDirectives = true); - - // Act - var syntaxTree = RazorSyntaxTree.Parse(source, options); - - // Assert - var root = syntaxTree.Root; - Assert.NotNull(syntaxTree); - Assert.Equal(61, root.EndPosition); - Assert.Single(root.DescendantNodes().Where(n => n is RazorDirectiveBodySyntax body && body.Keyword.GetContent() == "tagHelperPrefix")); - Assert.Empty(root.DescendantNodes().Where(n => n is MarkupElementSyntax)); - Assert.Empty(syntaxTree.Diagnostics); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/SourceChangeTest.cs b/src/Razor/test/RazorLanguage.Test/SourceChangeTest.cs deleted file mode 100644 index 2d829be3812..00000000000 --- a/src/Razor/test/RazorLanguage.Test/SourceChangeTest.cs +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class SourceChangeTest - { - [Fact] - public void SourceChange_ConstructorSetsDefaults_WhenNotProvided() - { - // Arrange & Act - var change = new SourceChange(15, 7, "Hello"); - - // Assert - Assert.Equal(15, change.Span.AbsoluteIndex); - Assert.Equal(-1, change.Span.CharacterIndex); - Assert.Null(change.Span.FilePath); - Assert.Equal(7, change.Span.Length); - Assert.Equal(-1, change.Span.LineIndex); - Assert.Equal("Hello", change.NewText); - } - - [Fact] - public void IsDelete_IsTrue_WhenOldLengthIsPositive_AndNewLengthIsZero() - { - // Arrange & Act - var change = new SourceChange(3, 5, string.Empty); - - // Assert - Assert.True(change.IsDelete); - } - - [Fact] - public void IsInsert_IsTrue_WhenOldLengthIsZero_AndNewLengthIsPositive() - { - // Arrange & Act - var change = new SourceChange(3, 0, "Hello"); - - // Assert - Assert.True(change.IsInsert); - } - - [Fact] - public void IsReplace_IsTrue_WhenOldLengthIsPositive_AndNewLengthIsPositive() - { - // Arrange & Act - var change = new SourceChange(3, 5, "Hello"); - - // Assert - Assert.True(change.IsReplace); - } - - [Fact] - public void GetEditedContent_ForDelete_ReturnsNewContent() - { - // Arrange - var text = "Hello, World"; - - var change = new SourceChange(2, 2, string.Empty); - - // Act - var result = change.GetEditedContent(text, 1); - - // Act - Assert.Equal("Hlo, World", result); - } - - [Fact] - public void GetEditedContent_ForInsert_ReturnsNewContent() - { - // Arrange - var text = "Hello, World"; - - var change = new SourceChange(2, 0, "heyo"); - - // Act - var result = change.GetEditedContent(text, 1); - - // Act - Assert.Equal("Hheyoello, World", result); - } - - [Fact] - public void GetEditedContent_ForReplace_ReturnsNewContent() - { - // Arrange - var text = "Hello, World"; - - var change = new SourceChange(2, 2, "heyo"); - - // Act - var result = change.GetEditedContent(text, 1); - - // Act - Assert.Equal("Hheyolo, World", result); - } - - [Fact] - public void GetEditedContent_SyntaxNode_ReturnsNewContent() - { - // Arrange - var builder = SyntaxListBuilder.Create(); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "Hello, ")); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "World")); - - var node = SyntaxFactory.MarkupTextLiteral(builder.ToList()).CreateRed(); - - var change = new SourceChange(2, 2, "heyo"); - - // Act - var result = change.GetEditedContent(node); - - // Act - Assert.Equal("Heheyoo, World", result); - } - - [Fact] - public void GetOffSet_SpanIsOwner_ReturnsOffset() - { - // Arrange - var builder = SyntaxListBuilder.Create(); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "Hello, ")); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "World")); - - var node = SyntaxFactory.MarkupTextLiteral(builder.ToList()).CreateRed(null, 13); - - var change = new SourceChange(15, 2, "heyo"); - - // Act - var result = change.GetOffset(node); - - // Act - Assert.Equal(2, result); - } - - [Fact] - public void GetOffSet_SpanIsNotOwnerOfChange_ThrowsException() - { - // Arrange - var builder = SyntaxListBuilder.Create(); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "Hello, ")); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "World")); - - var node = SyntaxFactory.MarkupTextLiteral(builder.ToList()).CreateRed(null, 13); - - var change = new SourceChange(12, 2, "heyo"); - - var expected = $"The node '{node}' is not the owner of change '{change}'."; - - // Act & Assert - var exception = Assert.Throws(() => { change.GetOffset(node); }); - Assert.Equal(expected, exception.Message); - } - - [Fact] - public void GetOrigninalText_SpanIsOwner_ReturnsContent() - { - // Arrange - var builder = SyntaxListBuilder.Create(); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "Hello, ")); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "World")); - - var node = SyntaxFactory.MarkupTextLiteral(builder.ToList()).CreateRed(null, 13); - - var change = new SourceChange(15, 2, "heyo"); - - // Act - var result = change.GetOriginalText(node); - - // Act - Assert.Equal("ll", result); - } - - [Fact] - public void GetOrigninalText_SpanIsOwner_ReturnsContent_ZeroLengthSpan() - { - // Arrange - var builder = SyntaxListBuilder.Create(); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "Hello, ")); - builder.Add(SyntaxFactory.Token(SyntaxKind.Marker, "World")); - - var node = SyntaxFactory.MarkupTextLiteral(builder.ToList()).CreateRed(null, 13); - - var change = new SourceChange(15, 0, "heyo"); - - // Act - var result = change.GetOriginalText(node); - - // Act - Assert.Equal(string.Empty, result); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/SourceLocationTest.cs b/src/Razor/test/RazorLanguage.Test/SourceLocationTest.cs deleted file mode 100644 index c2401c56b77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/SourceLocationTest.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Testing; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class SourceLocationTest - { - [Fact] - public void ConstructorWithLineAndCharacterIndexSetsAssociatedProperties() - { - // Act - var loc = new SourceLocation(0, 42, 24); - - // Assert - Assert.Null(loc.FilePath); - Assert.Equal(0, loc.AbsoluteIndex); - Assert.Equal(42, loc.LineIndex); - Assert.Equal(24, loc.CharacterIndex); - } - - [Fact] - public void Constructor_SetsFilePathAndIndexes() - { - // Arrange - var filePath = "some-file-path"; - var absoluteIndex = 133; - var lineIndex = 23; - var characterIndex = 12; - - // Act - var sourceLocation = new SourceLocation(filePath, absoluteIndex, lineIndex, characterIndex); - - // Assert - Assert.Equal(filePath, sourceLocation.FilePath); - Assert.Equal(absoluteIndex, sourceLocation.AbsoluteIndex); - Assert.Equal(lineIndex, sourceLocation.LineIndex); - Assert.Equal(characterIndex, sourceLocation.CharacterIndex); - } - - [Theory] - [InlineData(null)] - [InlineData("some-file")] - public void GetHashCode_ReturnsSameValue_WhenEqual(string path) - { - // Arrange - var sourceLocationA = new SourceLocation(path, 10, 3, 4); - var sourceLocationB = new SourceLocation(path, 10, 3, 4); - var sourceLocationC = new SourceLocation(path, 10, 45, 8754); - - // Act - var hashCodeA = sourceLocationA.GetHashCode(); - var hashCodeB = sourceLocationB.GetHashCode(); - var hashCodeC = sourceLocationC.GetHashCode(); - - // Assert - Assert.Equal(hashCodeA, hashCodeB); - Assert.Equal(hashCodeA, hashCodeC); - } - - [Fact] - public void Equals_ReturnsFalse_FilePathsNullAndAbsoluteIndicesMatch() - { - // Arrange - var sourceLocationA = new SourceLocation(10, 3, 4); - var sourceLocationB = new SourceLocation(10, 45, 8754); - - // Act - var result = sourceLocationA.Equals(sourceLocationB); - - // Assert - Assert.False(result); - } - - [Fact] - public void Equals_ReturnsFalse_IfFilePathIsDifferent() - { - // Arrange - var sourceLocationA = new SourceLocation(10, 3, 4); - var sourceLocationB = new SourceLocation("different-file", 10, 3, 4); - - // Act - var result = sourceLocationA.Equals(sourceLocationB); - - // Assert - Assert.False(result); - } - - [Theory] - [InlineData(null)] - [InlineData("some-file")] - public void Equals_ReturnsTrue_IfFilePathAndIndexesAreSame(string path) - { - // Arrange - var sourceLocationA = new SourceLocation(path, 10, 3, 4); - var sourceLocationB = new SourceLocation(path, 10, 3, 4); - var sourceLocationC = new SourceLocation("different-path", 10, 3, 4); - - // Act - var result1 = sourceLocationA.Equals(sourceLocationB); - var result2 = sourceLocationA.Equals(sourceLocationC); - - // Assert - Assert.True(result1); - Assert.False(result2); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/SourceSpanTest.cs b/src/Razor/test/RazorLanguage.Test/SourceSpanTest.cs deleted file mode 100644 index d59253c08a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/SourceSpanTest.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; -using Microsoft.AspNetCore.Razor.Language.Legacy; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class SourceSpanTest - { - [Fact] - public void GeneratedCodeMappingsAreEqualIfDataIsEqual() - { - // Arrange - var left = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 8)); - - var right = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 8)); - - // Assert - Assert.True(left.Equals(right)); - Assert.True(right.Equals(left)); - Assert.True(Equals(left, right)); - } - - [Fact] - public void GeneratedCodeMappingsAreNotEqualIfCodeLengthIsNotEqual() - { - // Arrange - var left = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 8)); - - var right = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 5), - new SourceSpan(new SourceLocation(5, 6, 7), 9)); - - // Assert - AssertNotEqual(left, right); - } - - [Fact] - public void GeneratedCodeMappingsAreNotEqualIfStartGeneratedColumnIsNotEqual() - { - // Arrange - var left = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 8)); - - var right = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 8), 8)); - - // Assert - AssertNotEqual(left, right); - } - - [Fact] - public void GeneratedCodeMappingsAreNotEqualIfStartColumnIsNotEqual() - { - // Arrange - var left = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 8), 8)); - - var right = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 8)); - - // Assert - AssertNotEqual(left, right); - } - - [Fact] - public void GeneratedCodeMappingsAreNotEqualIfStartLineIsNotEqual() - { - // Arrange - var left = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 5, 7), 8)); - - var right = new SourceMapping( - new SourceSpan(new SourceLocation(1, 1, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 8)); - - // Assert - AssertNotEqual(left, right); - } - - [Fact] - public void GeneratedCodeMappingsAreNotEqualIfAbsoluteIndexIsNotEqual() - { - // Arrange - var left = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(4, 6, 7), 8)); - - var right = new SourceMapping( - new SourceSpan(new SourceLocation(1, 2, 3), 4), - new SourceSpan(new SourceLocation(5, 6, 7), 9)); - - // Assert - AssertNotEqual(left, right); - } - - private void AssertNotEqual(SourceMapping left, SourceMapping right) - { - Assert.False(left == right); - Assert.False(left.Equals(right)); - Assert.False(right.Equals(left)); - Assert.False(Equals(left, right)); - } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/StreamSourceDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/StreamSourceDocumentTest.cs deleted file mode 100644 index f3774503209..00000000000 --- a/src/Razor/test/RazorLanguage.Test/StreamSourceDocumentTest.cs +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Text; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class StreamSourceDocumentTest - { - [Fact] - public void FilePath() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF8); - - // Act - var document = new StreamSourceDocument(stream, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: "file.cshtml", relativePath: null)); - - // Assert - Assert.Equal("file.cshtml", document.FilePath); - } - - [Fact] - public void FilePath_Null() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF8); - - // Act - var document = new StreamSourceDocument(stream, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: null)); - - // Assert - Assert.Null(document.FilePath); - } - - [Fact] - public void RelativePath() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF8); - - // Act - var document = new StreamSourceDocument(stream, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: "file.cshtml")); - - // Assert - Assert.Equal("file.cshtml", document.RelativePath); - } - - [Fact] - public void RelativePath_Null() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF8); - - // Act - var document = new StreamSourceDocument(stream, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: null)); - - // Assert - Assert.Null(document.RelativePath); - } - - [Fact] - public void GetChecksum_ReturnsCopiedChecksum() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF8); - var document = new StreamSourceDocument(stream, null, RazorSourceDocumentProperties.Default); - - // Act - var firstChecksum = document.GetChecksum(); - var secondChecksum = document.GetChecksum(); - - // Assert - Assert.Equal(firstChecksum, secondChecksum); - Assert.NotSame(firstChecksum, secondChecksum); - } - - [Fact] - public void GetChecksum_ComputesCorrectChecksum_UTF8() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF8); - var document = new StreamSourceDocument(stream, Encoding.UTF8, RazorSourceDocumentProperties.Default); - var expectedChecksum = new byte[] { 70, 180, 84, 105, 70, 79, 152, 31, 71, 157, 46, 159, 50, 83, 1, 243, 222, 48, 90, 18 }; - - // Act - var checksum = document.GetChecksum(); - - // Assert - Assert.Equal(expectedChecksum, checksum); - } - - [Fact] - public void GetChecksum_ComputesCorrectChecksum_UTF32AutoDetect() - { - // Arrange - var content = "Hello World!"; - var stream = CreateBOMStream(content, Encoding.UTF32); - var document = new StreamSourceDocument(stream, null, RazorSourceDocumentProperties.Default); - var expectedChecksum = new byte[] { 159, 154, 109, 89, 250, 163, 165, 108, 2, 112, 34, 4, 247, 161, 82, 168, 77, 213, 107, 71 }; - - // Act - var checksum = document.GetChecksum(); - - // Assert - Assert.Equal(expectedChecksum, checksum); - } - - [Fact] - public void ConstructedWithoutEncoding_DetectsEncoding() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(encoding: Encoding.UTF32); - - // Act - var document = new StreamSourceDocument(content, null, RazorSourceDocumentProperties.Default); - - // Assert - Assert.IsType(document); - Assert.Equal(Encoding.UTF32, document.Encoding); - } - - [Fact] - public void ConstructedWithoutEncoding_EmptyStream_DetectsEncoding() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(content: string.Empty, encoding: Encoding.UTF32); - - // Act - var document = new StreamSourceDocument(content, null, RazorSourceDocumentProperties.Default); - - // Assert - Assert.IsType(document); - Assert.Equal(Encoding.UTF32, document.Encoding); - } - - [Fact] - public void FailsOnMismatchedEncoding() - { - // Arrange - var content = TestRazorSourceDocument.CreateStreamContent(encoding: Encoding.UTF32); - var expectedMessage = Resources.FormatMismatchedContentEncoding(Encoding.UTF8.EncodingName, Encoding.UTF32.EncodingName); - - // Act & Assert - var exception = Assert.Throws( - () => new StreamSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default)); - Assert.Equal(expectedMessage, exception.Message); - } - - [Theory] - [InlineData(100000)] - [InlineData(RazorSourceDocument.LargeObjectHeapLimitInChars)] - [InlineData(RazorSourceDocument.LargeObjectHeapLimitInChars + 2)] - [InlineData(RazorSourceDocument.LargeObjectHeapLimitInChars * 2 - 1)] - [InlineData(RazorSourceDocument.LargeObjectHeapLimitInChars * 2)] - public void DetectsSizeOfStreamForLargeContent(int contentLength) - { - // Arrange - var content = new string('a', contentLength); - var stream = TestRazorSourceDocument.CreateStreamContent(content); - - // Act - var document = new StreamSourceDocument(stream, null, RazorSourceDocumentProperties.Default); - - // Assert - var streamDocument = Assert.IsType(document); - Assert.IsType(streamDocument._innerSourceDocument); - Assert.Same(Encoding.UTF8, document.Encoding); - Assert.Equal(content, ReadContent(document)); - } - - private static MemoryStream CreateBOMStream(string content, Encoding encoding) - { - var preamble = encoding.GetPreamble(); - var contentBytes = encoding.GetBytes(content); - var buffer = new byte[preamble.Length + contentBytes.Length]; - preamble.CopyTo(buffer, 0); - contentBytes.CopyTo(buffer, preamble.Length); - var stream = new MemoryStream(buffer); - return stream; - } - - private static string ReadContent(RazorSourceDocument razorSourceDocument) - { - var buffer = new char[razorSourceDocument.Length]; - razorSourceDocument.CopyTo(0, buffer, 0, buffer.Length); - - return new string(buffer); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/StringSourceDocumentTest.cs b/src/Razor/test/RazorLanguage.Test/StringSourceDocumentTest.cs deleted file mode 100644 index 8306d2bf808..00000000000 --- a/src/Razor/test/RazorLanguage.Test/StringSourceDocumentTest.cs +++ /dev/null @@ -1,516 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Text; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class StringSourceDocumentTest - { - [Fact] - public void GetChecksum_ReturnsCopiedChecksum() - { - // Arrange - var content = "Hello World!"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var firstChecksum = document.GetChecksum(); - var secondChecksum = document.GetChecksum(); - - // Assert - Assert.Equal(firstChecksum, secondChecksum); - Assert.NotSame(firstChecksum, secondChecksum); - } - - [Fact] - public void GetChecksum_ComputesCorrectChecksum_UTF8() - { - // Arrange - var content = "Hello World!"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - var expectedChecksum = new byte[] { 46, 247, 189, 230, 8, 206, 84, 4, 233, 125, 95, 4, 47, 149, 248, 159, 28, 35, 40, 113 }; - - // Act - var checksum = document.GetChecksum(); - - // Assert - Assert.Equal(expectedChecksum, checksum); - } - - [Fact] - public void GetChecksum_ComputesCorrectChecksum_UTF32() - { - // Arrange - var content = "Hello World!"; - var document = new StringSourceDocument(content, Encoding.UTF32, RazorSourceDocumentProperties.Default); - var expectedChecksum = new byte[] { 8, 149, 159, 15, 242, 255, 115, 227, 219, 78, 61, 53, 127, 239, 77, 239, 215, 140, 248, 44 }; - - // Act - var checksum = document.GetChecksum(); - - // Assert - Assert.Equal(expectedChecksum, checksum); - } - - [Fact] - public void Indexer_ProvidesCharacterAccessToContent() - { - // Arrange - var expectedContent = "Hello, World!"; - var indexerBuffer = new char[expectedContent.Length]; - var document = new StringSourceDocument(expectedContent, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - for (var i = 0; i < document.Length; i++) - { - indexerBuffer[i] = document[i]; - } - - // Assert - var output = new string(indexerBuffer); - Assert.Equal(expectedContent, output); - } - - [Fact] - public void Length() - { - // Arrange - var expectedContent = "Hello, World!"; - var document = new StringSourceDocument(expectedContent, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act & Assert - Assert.Equal(expectedContent.Length, document.Length); - } - - [Fact] - public void FilePath() - { - // Arrange - var content = "Hello, World!"; - - // Act - var document = new StringSourceDocument(content, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: "file.cshtml", relativePath: null)); - - // Assert - Assert.Equal("file.cshtml", document.FilePath); - } - - [Fact] - public void FilePath_Null() - { - // Arrange - var content = "Hello, World!"; - - // Act - var document = new StringSourceDocument(content, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: null)); - - // Assert - Assert.Null(document.FilePath); - } - - [Fact] - public void RelativePath() - { - // Arrange - var content = "Hello, World!"; - - // Act - var document = new StringSourceDocument(content, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: "file.cshtml")); - - // Assert - Assert.Equal("file.cshtml", document.RelativePath); - } - - [Fact] - public void RelativePath_Null() - { - // Arrange - var content = "Hello, World!"; - - // Act - var document = new StringSourceDocument(content, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: null, relativePath: null)); - - // Assert - Assert.Null(document.RelativePath); - } - - [Fact] - public void CopyTo_PartialCopyFromStart() - { - // Arrange - var content = "Hello, World!"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - var expectedContent = "Hello"; - var charBuffer = new char[expectedContent.Length]; - - // Act - document.CopyTo(0, charBuffer, 0, expectedContent.Length); - - // Assert - var copiedContent = new string(charBuffer); - Assert.Equal(expectedContent, copiedContent); - } - - [Fact] - public void CopyTo_PartialCopyDestinationOffset() - { - // Arrange - var content = "Hello, World!"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - var expectedContent = "$Hello"; - var charBuffer = new char[expectedContent.Length]; - charBuffer[0] = '$'; - - // Act - document.CopyTo(0, charBuffer, 1, "Hello".Length); - - // Assert - var copiedContent = new string(charBuffer); - Assert.Equal(expectedContent, copiedContent); - } - - [Fact] - public void CopyTo_PartialCopySourceOffset() - { - // Arrange - var content = "Hello, World!"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - var expectedContent = "World"; - var charBuffer = new char[expectedContent.Length]; - - // Act - document.CopyTo(7, charBuffer, 0, expectedContent.Length); - - // Assert - var copiedContent = new string(charBuffer); - Assert.Equal(expectedContent, copiedContent); - } - - [Fact] - public void CopyTo_CanCopyMultipleTimes() - { - // Arrange - var content = "Hi"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act & Assert - // - // (we should be able to do this twice to prove that the underlying data isn't disposed) - for (var i = 0; i < 2; i++) - { - var charBuffer = new char[2]; - document.CopyTo(0, charBuffer, 0, 2); - var copiedContent = new string(charBuffer); - Assert.Equal("Hi", copiedContent); - } - } - - [Fact] - public void Lines_Count_EmptyDocument() - { - // Arrange - var content = string.Empty; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.Count; - - // Assert - Assert.Equal(1, actual); - } - - [Fact] - public void Lines_GetLineLength_EmptyDocument() - { - // Arrange - var content = string.Empty; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLineLength(0); - - // Assert - Assert.Equal(0, actual); - } - - [Fact] - public void Lines_GetLineLength_TrailingNewlineDoesNotStartNewLine() - { - // Arrange - var content = "hello\n"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLineLength(0); - - // Assert - Assert.Equal(6, actual); - } - - [Fact] - public void Lines_GetLineLength_TrailingNewlineDoesNotStartNewLine_CRLF() - { - // Arrange - var content = "hello\r\n"; - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLineLength(0); - - // Assert - Assert.Equal(7, actual); - } - - [Fact] - public void Lines_Simple_Document() - { - // Arrange - var content = new StringBuilder() - .Append("The quick brown").Append('\n') - .Append("fox").Append("\r\n") - .Append("jumps over the lazy dog.") - .ToString(); - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 16, 5, 24 }, actual); - } - - [Fact] - public void Lines_CRLF_OnlyCountsAsASingleNewLine() - { - // Arrange - var content = "Hello\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 7, 6 }, actual); - } - - [Fact] - public void Lines_CR_IsNewLine() - { - // Arrange - var content = "Hello\rWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 6, 6 }, actual); - } - - // CR handling is stateful in the parser, making sure we properly reset the state. - [Fact] - public void Lines_CR_IsNewLine_MultipleCRs() - { - // Arrange - var content = "Hello\rBig\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 6, 5, 6 }, actual); - } - - [Fact] - public void Lines_LF_IsNewLine() - { - // Arrange - var content = "Hello\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 6, 6 }, actual); - } - - [Fact] - public void Lines_Unicode0085_IsNewLine() - { - // Arrange - var content = "Hello\u0085World!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 6, 6 }, actual); - } - - [Fact] - public void Lines_Unicode2028_IsNewLine() - { - // Arrange - var content = "Hello\u2028World!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 6, 6 }, actual); - } - - [Fact] - public void Lines_Unicode2029_IsNewLine() - { - // Arrange - var content = "Hello\u2029World!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = GetAllSourceMappings(document); - - // Assert - Assert.Equal(new int[] { 6, 6 }, actual); - } - - [Fact] - public void Lines_GetLocation_IncludesAbsoluteIndexAndDocument() - { - // Arrange - var content = "Hello, World!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: "Hi.cshtml", relativePath: null)); - - // Act - var actual = document.Lines.GetLocation(1); - - // Assert - Assert.Equal("Hi.cshtml", actual.FilePath); - Assert.Equal(1, actual.AbsoluteIndex); - } - - [Fact] - public void Lines_GetLocation_PrefersRelativePath() - { - // Arrange - var content = "Hello, World!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, new RazorSourceDocumentProperties(filePath: "Hi.cshtml", relativePath: "Bye.cshtml")); - - // Act - var actual = document.Lines.GetLocation(1); - - // Assert - Assert.Equal("Bye.cshtml", actual.FilePath); - Assert.Equal(1, actual.AbsoluteIndex); - } - - // Beginnings of lines are special because the BinarySearch in the implementation - // will succeed. It's a different code path. - [Fact] - public void Lines_GetLocation_FirstCharacter() - { - // Arrange - var content = "Hello\nBig\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLocation(0); - - // Assert - Assert.Equal(0, actual.LineIndex); - Assert.Equal(0, actual.CharacterIndex); - } - - [Fact] - public void Lines_GetLocation_EndOfFirstLine() - { - // Arrange - var content = "Hello\nBig\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLocation(5); - - // Assert - Assert.Equal(0, actual.LineIndex); - Assert.Equal(5, actual.CharacterIndex); - } - - [Fact] - public void Lines_GetLocation_InteriorLine() - { - // Arrange - var content = "Hello\nBig\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLocation(7); - - // Assert - Assert.Equal(1, actual.LineIndex); - Assert.Equal(1, actual.CharacterIndex); - } - - [Fact] - public void Lines_GetLocation_StartOfLastLine() - { - // Arrange - var content = "Hello\nBig\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLocation(11); - - // Assert - Assert.Equal(2, actual.LineIndex); - Assert.Equal(0, actual.CharacterIndex); - } - - [Fact] - public void Lines_GetLocation_EndOfLastLine() - { - // Arrange - var content = "Hello\nBig\r\nWorld!"; - - var document = new StringSourceDocument(content, Encoding.UTF8, RazorSourceDocumentProperties.Default); - - // Act - var actual = document.Lines.GetLocation(16); - - // Assert - Assert.Equal(2, actual.LineIndex); - Assert.Equal(5, actual.CharacterIndex); - } - - private static int[] GetAllSourceMappings(RazorSourceDocument source) - { - var lines = new int[source.Lines.Count]; - for (var i = 0; i < lines.Length; i++) - { - lines[i] = source.Lines.GetLineLength(i); - } - - return lines; - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/TagHelperBinderTest.cs b/src/Razor/test/RazorLanguage.Test/TagHelperBinderTest.cs deleted file mode 100644 index ab3439b2e99..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TagHelperBinderTest.cs +++ /dev/null @@ -1,656 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class TagHelperBinderTest - { - [Fact] - public void GetBinding_ReturnsBindingWithInformation() - { - // Arrange - var divTagHelper = TagHelperDescriptorBuilder.Create("DivTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(); - var expectedDescriptors = new[] { divTagHelper }; - var expectedAttributes = new[] - { - new KeyValuePair("class", "something") - }; - var tagHelperBinder = new TagHelperBinder("th:", expectedDescriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "th:div", - attributes: expectedAttributes, - parentTagName: "body", - parentIsTagHelper: false); - - // Assert - Assert.Equal(expectedDescriptors, bindingResult.Descriptors, TagHelperDescriptorComparer.Default); - Assert.Equal("th:div", bindingResult.TagName); - Assert.Equal("body", bindingResult.ParentTagName); - Assert.Equal(expectedAttributes, bindingResult.Attributes); - Assert.Equal("th:", bindingResult.TagHelperPrefix); - Assert.Equal(divTagHelper.TagMatchingRules, bindingResult.Mappings[divTagHelper], TagMatchingRuleDescriptorComparer.Default); - } - - public static TheoryData RequiredParentData - { - get - { - var strongPDivParent = TagHelperDescriptorBuilder.Create("StrongTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireParentTag("p")) - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("strong") - .RequireParentTag("div")) - .Build(); - var catchAllPParent = TagHelperDescriptorBuilder.Create("CatchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("*") - .RequireParentTag("p")) - .Build(); - - return new TheoryData< - string, // tagName - string, // parentTagName - IEnumerable, // availableDescriptors - IEnumerable> // expectedDescriptors - { - { - "strong", - "p", - new[] { strongPDivParent }, - new[] { strongPDivParent } - }, - { - "strong", - "div", - new[] { strongPDivParent, catchAllPParent }, - new[] { strongPDivParent } - }, - { - "strong", - "p", - new[] { strongPDivParent, catchAllPParent }, - new[] { strongPDivParent, catchAllPParent } - }, - { - "custom", - "p", - new[] { strongPDivParent, catchAllPParent }, - new[] { catchAllPParent } - }, - }; - } - } - - [Theory] - [MemberData(nameof(RequiredParentData))] - public void GetBinding_ReturnsBindingResultWithDescriptorsParentTags( - string tagName, - string parentTagName, - object availableDescriptors, - object expectedDescriptors) - { - // Arrange - var tagHelperBinder = new TagHelperBinder(null, (IEnumerable)availableDescriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName, - attributes: Array.Empty>(), - parentTagName: parentTagName, - parentIsTagHelper: false); - - // Assert - Assert.Equal((IEnumerable)expectedDescriptors, bindingResult.Descriptors, TagHelperDescriptorComparer.Default); - } - - public static TheoryData RequiredAttributeData - { - get - { - var divDescriptor = TagHelperDescriptorBuilder.Create("DivTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("div") - .RequireAttributeDescriptor(attribute => attribute.Name("style"))) - .Build(); - var inputDescriptor = TagHelperDescriptorBuilder.Create("InputTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style"))) - .Build(); - var inputWildcardPrefixDescriptor = TagHelperDescriptorBuilder.Create("InputWildCardAttribute", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => - attribute - .Name("nodashprefix") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch))) - .Build(); - var catchAllDescriptor = TagHelperDescriptorBuilder.Create("CatchAllTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .Build(); - var catchAllDescriptor2 = TagHelperDescriptorBuilder.Create("CatchAllTagHelper2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) - .RequireAttributeDescriptor(attribute => attribute.Name("custom")) - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .Build(); - var catchAllWildcardPrefixDescriptor = TagHelperDescriptorBuilder.Create("CatchAllWildCardAttribute", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => - rule - .RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) - .RequireAttributeDescriptor(attribute => - attribute - .Name("prefix-") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch))) - .Build(); - var defaultAvailableDescriptors = - new[] { divDescriptor, inputDescriptor, catchAllDescriptor, catchAllDescriptor2 }; - var defaultWildcardDescriptors = - new[] { inputWildcardPrefixDescriptor, catchAllWildcardPrefixDescriptor }; - Func> kvp = - (name) => new KeyValuePair(name, "test value"); - - return new TheoryData< - string, // tagName - IReadOnlyList>, // providedAttributes - IEnumerable, // availableDescriptors - IEnumerable> // expectedDescriptors - { - { - "div", - new[] { kvp("custom") }, - defaultAvailableDescriptors, - null - }, - { "div", new[] { kvp("style") }, defaultAvailableDescriptors, new[] { divDescriptor } }, - { "div", new[] { kvp("class") }, defaultAvailableDescriptors, new[] { catchAllDescriptor } }, - { - "div", - new[] { kvp("class"), kvp("style") }, - defaultAvailableDescriptors, - new[] { divDescriptor, catchAllDescriptor } - }, - { - "div", - new[] { kvp("class"), kvp("style"), kvp("custom") }, - defaultAvailableDescriptors, - new[] { divDescriptor, catchAllDescriptor, catchAllDescriptor2 } - }, - { - "input", - new[] { kvp("class"), kvp("style") }, - defaultAvailableDescriptors, - new[] { inputDescriptor, catchAllDescriptor } - }, - { - "input", - new[] { kvp("nodashprefixA") }, - defaultWildcardDescriptors, - new[] { inputWildcardPrefixDescriptor } - }, - { - "input", - new[] { kvp("nodashprefix-ABC-DEF"), kvp("random") }, - defaultWildcardDescriptors, - new[] { inputWildcardPrefixDescriptor } - }, - { - "input", - new[] { kvp("prefixABCnodashprefix") }, - defaultWildcardDescriptors, - null - }, - { - "input", - new[] { kvp("prefix-") }, - defaultWildcardDescriptors, - null - }, - { - "input", - new[] { kvp("nodashprefix") }, - defaultWildcardDescriptors, - null - }, - { - "input", - new[] { kvp("prefix-A") }, - defaultWildcardDescriptors, - new[] { catchAllWildcardPrefixDescriptor } - }, - { - "input", - new[] { kvp("prefix-ABC-DEF"), kvp("random") }, - defaultWildcardDescriptors, - new[] { catchAllWildcardPrefixDescriptor } - }, - { - "input", - new[] { kvp("prefix-abc"), kvp("nodashprefix-def") }, - defaultWildcardDescriptors, - new[] { inputWildcardPrefixDescriptor, catchAllWildcardPrefixDescriptor } - }, - { - "input", - new[] { kvp("class"), kvp("prefix-abc"), kvp("onclick"), kvp("nodashprefix-def"), kvp("style") }, - defaultWildcardDescriptors, - new[] { inputWildcardPrefixDescriptor, catchAllWildcardPrefixDescriptor } - }, - }; - } - } - - [Theory] - [MemberData(nameof(RequiredAttributeData))] - public void GetBinding_ReturnsBindingResultDescriptorsWithRequiredAttributes( - string tagName, - IReadOnlyList> providedAttributes, - object availableDescriptors, - object expectedDescriptors) - { - // Arrange - var tagHelperBinder = new TagHelperBinder(null, (IReadOnlyList)availableDescriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding(tagName, providedAttributes, parentTagName: "p", parentIsTagHelper: false); - - // Assert - Assert.Equal((IEnumerable)expectedDescriptors, bindingResult?.Descriptors, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void GetBinding_ReturnsNullBindingResultPrefixAsTagName() - { - // Arrange - var catchAllDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)) - .Build(); - var descriptors = new[] { catchAllDescriptor }; - var tagHelperBinder = new TagHelperBinder("th", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "th", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - Assert.Null(bindingResult); - } - - [Fact] - public void GetBinding_ReturnsBindingResultCatchAllDescriptorsForPrefixedTags() - { - // Arrange - var catchAllDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)) - .Build(); - var descriptors = new[] { catchAllDescriptor }; - var tagHelperBinder = new TagHelperBinder("th:", descriptors); - - // Act - var bindingResultDiv = tagHelperBinder.GetBinding( - tagName: "th:div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - var bindingResultSpan = tagHelperBinder.GetBinding( - tagName: "th:span", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - var descriptor = Assert.Single(bindingResultDiv.Descriptors); - Assert.Same(catchAllDescriptor, descriptor); - descriptor = Assert.Single(bindingResultSpan.Descriptors); - Assert.Same(catchAllDescriptor, descriptor); - } - - [Fact] - public void GetBinding_ReturnsBindingResultDescriptorsForPrefixedTags() - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(); - var descriptors = new[] { divDescriptor }; - var tagHelperBinder = new TagHelperBinder("th:", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "th:div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - var descriptor = Assert.Single(bindingResult.Descriptors); - Assert.Same(divDescriptor, descriptor); - } - - [Theory] - [InlineData("*")] - [InlineData("div")] - public void GetBinding_ReturnsNullForUnprefixedTags(string tagName) - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName(tagName)) - .Build(); - var descriptors = new[] { divDescriptor }; - var tagHelperBinder = new TagHelperBinder("th:", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - Assert.Null(bindingResult); - } - - [Fact] - public void GetDescriptors_ReturnsNothingForUnregisteredTags() - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(); - var spanDescriptor = TagHelperDescriptorBuilder.Create("foo2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("span")) - .Build(); - var descriptors = new TagHelperDescriptor[] { divDescriptor, spanDescriptor }; - var tagHelperBinder = new TagHelperBinder(null, descriptors); - - // Act - var tagHelperBinding = tagHelperBinder.GetBinding( - tagName: "foo", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - Assert.Null(tagHelperBinding); - } - - [Fact] - public void GetDescriptors_ReturnsCatchAllsWithEveryTagName() - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(); - var spanDescriptor = TagHelperDescriptorBuilder.Create("foo2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("span")) - .Build(); - var catchAllDescriptor = TagHelperDescriptorBuilder.Create("foo3", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)) - .Build(); - var descriptors = new TagHelperDescriptor[] { divDescriptor, spanDescriptor, catchAllDescriptor }; - var tagHelperBinder = new TagHelperBinder(null, descriptors); - - // Act - var divBinding = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - var spanBinding = tagHelperBinder.GetBinding( - tagName: "span", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - // For divs - Assert.Equal(2, divBinding.Descriptors.Count()); - Assert.Contains(divDescriptor, divBinding.Descriptors); - Assert.Contains(catchAllDescriptor, divBinding.Descriptors); - - // For spans - Assert.Equal(2, spanBinding.Descriptors.Count()); - Assert.Contains(spanDescriptor, spanBinding.Descriptors); - Assert.Contains(catchAllDescriptor, spanBinding.Descriptors); - } - - [Fact] - public void GetDescriptors_DuplicateDescriptorsAreNotPartOfTagHelperDescriptorPool() - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(); - var descriptors = new TagHelperDescriptor[] { divDescriptor, divDescriptor }; - var tagHelperBinder = new TagHelperBinder(null, descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - var descriptor = Assert.Single(bindingResult.Descriptors); - Assert.Same(divDescriptor, descriptor); - } - - [Fact] - public void GetBinding_DescriptorWithMultipleRules_CorrectlySelectsMatchingRules() - { - // Arrange - var multiRuleDescriptor = TagHelperDescriptorBuilder.Create("foo", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule - .RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) - .RequireParentTag("body")) - .TagMatchingRuleDescriptor(rule => rule - .RequireTagName("div")) - .TagMatchingRuleDescriptor(rule => rule - .RequireTagName("span")) - .Build(); - var descriptors = new TagHelperDescriptor[] { multiRuleDescriptor }; - var tagHelperBinder = new TagHelperBinder(null, descriptors); - - // Act - var binding = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - var boundDescriptor = Assert.Single(binding.Descriptors); - Assert.Same(multiRuleDescriptor, boundDescriptor); - var boundRules = binding.Mappings[boundDescriptor]; - var boundRule = Assert.Single(boundRules); - Assert.Equal("div", boundRule.TagName); - } - - [Fact] - public void GetBinding_PrefixedParent_ReturnsBinding() - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div").RequireParentTag("p")) - .Build(); - var pDescriptor = TagHelperDescriptorBuilder.Create("foo2", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("p")) - .Build(); - var descriptors = new[] { divDescriptor, pDescriptor }; - var tagHelperBinder = new TagHelperBinder("th:", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "th:div", - attributes: Array.Empty>(), - parentTagName: "th:p", - parentIsTagHelper: true); - - // Assert - var boundDescriptor = Assert.Single(bindingResult.Descriptors); - Assert.Same(divDescriptor, boundDescriptor); - var boundRules = bindingResult.Mappings[boundDescriptor]; - var boundRule = Assert.Single(boundRules); - Assert.Equal("div", boundRule.TagName); - Assert.Equal("p", boundRule.ParentTag); - } - - [Fact] - public void GetBinding_IsAttributeMatch_SingleAttributeMatch() - { - // Arrange - var divDescriptor = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .AddMetadata(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString) - .Build(); - - var descriptors = new[] { divDescriptor, }; - var tagHelperBinder = new TagHelperBinder("", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - Assert.True(bindingResult.IsAttributeMatch); - } - - [Fact] - public void GetBinding_IsAttributeMatch_MultipleAttributeMatches() - { - // Arrange - var divDescriptor1 = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .AddMetadata(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString) - .Build(); - - var divDescriptor2 = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .AddMetadata(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString) - .Build(); - - var descriptors = new[] { divDescriptor1, divDescriptor2, }; - var tagHelperBinder = new TagHelperBinder("", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - Assert.True(bindingResult.IsAttributeMatch); - } - - [Fact] - public void GetBinding_IsAttributeMatch_MixedAttributeMatches() - { - // Arrange - var divDescriptor1 = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .AddMetadata(TagHelperMetadata.Common.ClassifyAttributesOnly, bool.TrueString) - .Build(); - - var divDescriptor2 = TagHelperDescriptorBuilder.Create("foo1", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .Build(); - - var descriptors = new[] { divDescriptor1, divDescriptor2, }; - var tagHelperBinder = new TagHelperBinder("", descriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "div", - attributes: Array.Empty>(), - parentTagName: "p", - parentIsTagHelper: false); - - // Assert - Assert.False(bindingResult.IsAttributeMatch); - } - - [Fact] - public void GetBinding_CaseSensitiveRule_CaseMismatch_ReturnsNull() - { - // Arrange - var divTagHelper = TagHelperDescriptorBuilder.Create("DivTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule.RequireTagName("div")) - .SetCaseSensitive() - .Build(); - var expectedDescriptors = new[] { divTagHelper }; - var expectedAttributes = new[] - { - new KeyValuePair("class", "something") - }; - var tagHelperBinder = new TagHelperBinder("th:", expectedDescriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "th:Div", - attributes: expectedAttributes, - parentTagName: "body", - parentIsTagHelper: false); - - // Assert - Assert.Null(bindingResult); - } - - [Fact] - public void GetBinding_CaseSensitiveRequiredAttribute_CaseMismatch_ReturnsNull() - { - // Arrange - var divTagHelper = TagHelperDescriptorBuilder.Create("DivTagHelper", "SomeAssembly") - .TagMatchingRuleDescriptor(rule => rule - .RequireTagName("div") - .RequireAttributeDescriptor(attribute => attribute.Name("class"))) - .SetCaseSensitive() - .Build(); - var expectedDescriptors = new[] { divTagHelper }; - var expectedAttributes = new[] - { - new KeyValuePair("CLASS", "something") - }; - var tagHelperBinder = new TagHelperBinder(null, expectedDescriptors); - - // Act - var bindingResult = tagHelperBinder.GetBinding( - tagName: "div", - attributes: expectedAttributes, - parentTagName: "body", - parentIsTagHelper: false); - - // Assert - Assert.Null(bindingResult); - } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TagHelperDescriptorBuilderTest.cs b/src/Razor/test/RazorLanguage.Test/TagHelperDescriptorBuilderTest.cs deleted file mode 100644 index 37eef5fbfae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TagHelperDescriptorBuilderTest.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class TagHelperDescriptorBuilderTest - { - [Fact] - public void DisplayName_SetsDescriptorsDisplayName() - { - // Arrange - var expectedDisplayName = "ExpectedDisplayName"; - var builder = TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly"); - - // Act - var descriptor = builder.DisplayName(expectedDisplayName).Build(); - - // Assert - Assert.Equal(expectedDisplayName, descriptor.DisplayName); - } - - [Fact] - public void DisplayName_DefaultsToTypeName() - { - // Arrange - var expectedDisplayName = "TestTagHelper"; - var builder = TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly"); - - // Act - var descriptor = builder.Build(); - - // Assert - Assert.Equal(expectedDisplayName, descriptor.DisplayName); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/TagHelperDescriptorExtensionsTest.cs b/src/Razor/test/RazorLanguage.Test/TagHelperDescriptorExtensionsTest.cs deleted file mode 100644 index 09406610582..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TagHelperDescriptorExtensionsTest.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class TagHelperDescriptorExtensionsTest - { - [Fact] - public void GetTypeName_ReturnsTypeName() - { - // Arrange - var expectedTypeName = "TestTagHelper"; - var descriptor = TagHelperDescriptorBuilder.Create(expectedTypeName, "TestAssembly").TypeName(expectedTypeName).Build(); - - // Act - var typeName = descriptor.GetTypeName(); - - // Assert - Assert.Equal(expectedTypeName, typeName); - } - - [Fact] - public void GetTypeName_ReturnsNullIfNoTypeName() - { - // Arrange - var descriptor = TagHelperDescriptorBuilder.Create("Test", "TestAssembly").Build(); - - // Act - var typeName = descriptor.GetTypeName(); - - // Assert - Assert.Null(typeName); - } - - [Fact] - public void IsDefaultKind_ReturnsTrue_IfKindIsDefault() - { - // Arrange - var descriptor = TagHelperDescriptorBuilder.Create("TestTagHelper", "TestAssembly").Build(); - - // Act - var isDefault = descriptor.IsDefaultKind(); - - // Assert - Assert.True(isDefault); - } - - [Fact] - public void IsDefaultKind_ReturnsFalse_IfKindIsNotDefault() - { - // Arrange - var descriptor = TagHelperDescriptorBuilder.Create("other-kind", "TestTagHelper", "TestAssembly").Build(); - - // Act - var isDefault = descriptor.IsDefaultKind(); - - // Assert - Assert.False(isDefault); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/TagHelperMatchingConventionsTest.cs b/src/Razor/test/RazorLanguage.Test/TagHelperMatchingConventionsTest.cs deleted file mode 100644 index afda769414d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TagHelperMatchingConventionsTest.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class TagHelperMatchingConventionsTest - { - public static TheoryData RequiredAttributeDescriptorData - { - get - { - // requiredAttributeDescriptor, attributeName, attributeValue, expectedResult - return new TheoryData, string, string, bool> - { - { - builder => builder.Name("key"), - "KeY", - "value", - true - }, - { - builder => builder.Name("key"), - "keys", - "value", - false - }, - { - builder => builder - .Name("route-") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - "ROUTE-area", - "manage", - true - }, - { - builder => builder - .Name("route-") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - "routearea", - "manage", - false - }, - { - builder => builder - .Name("route-") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - "route-", - "manage", - false - }, - { - builder => builder - .Name("key") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch), - "KeY", - "value", - true - }, - { - builder => builder - .Name("key") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch), - "keys", - "value", - false - }, - { - builder => builder - .Name("key") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("value") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch), - "key", - "value", - true - }, - { - builder => builder - .Name("key") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("value") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch), - "key", - "Value", - false - }, - { - builder => builder - .Name("class") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("btn") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch), - "class", - "btn btn-success", - true - }, - { - builder => builder - .Name("class") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("btn") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch), - "class", - "BTN btn-success", - false - }, - { - builder => builder - .Name("href") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("#navigate") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.SuffixMatch), - "href", - "/home/index#navigate", - true - }, - { - builder => builder - .Name("href") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.FullMatch) - .Value("#navigate") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.SuffixMatch), - "href", - "/home/index#NAVigate", - false - }, - }; - } - } - - [Theory] - [MemberData(nameof(RequiredAttributeDescriptorData))] - public void Matches_ReturnsExpectedResult( - Action configure, - string attributeName, - string attributeValue, - bool expectedResult) - { - // Arrange - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - var tagMatchingRuleBuilder = new DefaultTagMatchingRuleDescriptorBuilder(tagHelperBuilder); - var builder = new DefaultRequiredAttributeDescriptorBuilder(tagMatchingRuleBuilder); - - configure(builder); - - var requiredAttibute = builder.Build(); - - // Act - var result = TagHelperMatchingConventions.SatisfiesRequiredAttribute(attributeName, attributeValue, requiredAttibute); - - // Assert - Assert.Equal(expectedResult, result); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Home.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Home.cshtml deleted file mode 100644 index 7c5b3ca2e32..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Home.cshtml +++ /dev/null @@ -1 +0,0 @@ -home-content \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/About/About.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/About/About.cshtml deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/About/About.cshtml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.cshtml deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.cshtml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.txt deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/Index.txt +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/_ViewImports.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/_ViewImports.cshtml deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/Home/_ViewImports.cshtml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/_ViewImports.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/_ViewImports.cshtml deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/Views/_ViewImports.cshtml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/_ViewImports.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/_ViewImports.cshtml deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/DefaultRazorProjectFileSystem/_ViewImports.cshtml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.cshtml deleted file mode 100644 index f347706f3d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.cshtml +++ /dev/null @@ -1 +0,0 @@ -@test \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt deleted file mode 100644 index 6142bc2eb11..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt +++ /dev/null @@ -1,6 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Razor - RazorSourceChecksumAttribute - - ClassDeclaration - - public - Template - - - MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.cshtml deleted file mode 100644 index 5f282702bb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.cshtml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt deleted file mode 100644 index 6142bc2eb11..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt +++ /dev/null @@ -1,6 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Razor - RazorSourceChecksumAttribute - - ClassDeclaration - - public - Template - - - MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.cshtml deleted file mode 100644 index 46953c45425..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.cshtml +++ /dev/null @@ -1 +0,0 @@ -Hello, World! \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt deleted file mode 100644 index 83409ed68cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt +++ /dev/null @@ -1,8 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Razor - RazorSourceChecksumAttribute - - ClassDeclaration - - public - Template - - - MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [13] HelloWorld.cshtml) - IntermediateToken - (0:0,0 [13] HelloWorld.cshtml) - Html - Hello, World! diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml deleted file mode 100644 index 10b53aaeaf7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml +++ /dev/null @@ -1 +0,0 @@ -@addTagHelper "*, TestAssembly" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs deleted file mode 100644 index 9f3704669fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html deleted file mode 100644 index 0da46f2152d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt deleted file mode 100644 index a3c0f0d9e52..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_DesignTime - - - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml) - IntermediateToken - (31:0,31 [2] AddTagHelperDirective.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt deleted file mode 100644 index 782c5c9d623..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml) -|"*, TestAssembly"| -Generated Location: (543:12,37 [17] ) -|"*, TestAssembly"| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml deleted file mode 100644 index 638e2215342..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml +++ /dev/null @@ -1,6 +0,0 @@ -@attribute [System.Runtime.InteropServices.DllImport("user32.dll")] -@attribute [assembly: AssemblyTitleAttribute("Some assembly")] -@attribute [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)] -@attribute [Conditional("DEBUG"), Conditional("TEST1")] - -Hello World \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.cs deleted file mode 100644 index a9a63af5169..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [System.Runtime.InteropServices.DllImport("user32.dll")] - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [assembly: AssemblyTitleAttribute("Some assembly")] - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)] - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [Conditional("DEBUG"), Conditional("TEST1")] - -#line default -#line hidden -#nullable disable - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html deleted file mode 100644 index fd82d198065..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - -Hello World \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.ir.txt deleted file mode 100644 index 143b2990512..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.ir.txt +++ /dev/null @@ -1,25 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - CSharpCode - (11:0,11 [56] AttributeDirective.cshtml) - IntermediateToken - (11:0,11 [56] AttributeDirective.cshtml) - CSharp - [System.Runtime.InteropServices.DllImport("user32.dll")] - CSharpCode - (80:1,11 [51] AttributeDirective.cshtml) - IntermediateToken - (80:1,11 [51] AttributeDirective.cshtml) - CSharp - [assembly: AssemblyTitleAttribute("Some assembly")] - CSharpCode - (144:2,11 [66] AttributeDirective.cshtml) - IntermediateToken - (144:2,11 [66] AttributeDirective.cshtml) - CSharp - [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)] - CSharpCode - (223:3,11 [44] AttributeDirective.cshtml) - IntermediateToken - (223:3,11 [44] AttributeDirective.cshtml) - CSharp - [Conditional("DEBUG"), Conditional("TEST1")] - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective_DesignTime - - - DesignTimeDirective - - DirectiveToken - (11:0,11 [56] AttributeDirective.cshtml) - [System.Runtime.InteropServices.DllImport("user32.dll")] - DirectiveToken - (80:1,11 [51] AttributeDirective.cshtml) - [assembly: AssemblyTitleAttribute("Some assembly")] - DirectiveToken - (144:2,11 [66] AttributeDirective.cshtml) - [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)] - DirectiveToken - (223:3,11 [44] AttributeDirective.cshtml) - [Conditional("DEBUG"), Conditional("TEST1")] - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (269:4,0 [13] AttributeDirective.cshtml) - IntermediateToken - (269:4,0 [13] AttributeDirective.cshtml) - Html - \nHello World diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.mappings.txt deleted file mode 100644 index c76e0fc08cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (11:0,11 [56] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml) -|[System.Runtime.InteropServices.DllImport("user32.dll")]| -Generated Location: (271:7,11 [56] ) -|[System.Runtime.InteropServices.DllImport("user32.dll")]| - -Source Location: (80:1,11 [51] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml) -|[assembly: AssemblyTitleAttribute("Some assembly")]| -Generated Location: (503:14,11 [51] ) -|[assembly: AssemblyTitleAttribute("Some assembly")]| - -Source Location: (144:2,11 [66] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml) -|[DllImport("user32.dll", SetLastError=false, ExactSpelling=false)]| -Generated Location: (730:21,11 [66] ) -|[DllImport("user32.dll", SetLastError=false, ExactSpelling=false)]| - -Source Location: (223:3,11 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml) -|[Conditional("DEBUG"), Conditional("TEST1")]| -Generated Location: (972:28,11 [44] ) -|[Conditional("DEBUG"), Conditional("TEST1")]| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.codegen.cs deleted file mode 100644 index ec883320ddf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.codegen.cs +++ /dev/null @@ -1,47 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "796e795e99f31ccb6c596e30f8540f5de179132a" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [System.Runtime.InteropServices.DllImport("user32.dll")] - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [assembly: AssemblyTitleAttribute("Some assembly")] - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)] - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml" - [Conditional("DEBUG"), Conditional("TEST1")] - -#line default -#line hidden -#nullable disable - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"796e795e99f31ccb6c596e30f8540f5de179132a", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\nHello World"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.ir.txt deleted file mode 100644 index 98f79e9671a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_Runtime.ir.txt +++ /dev/null @@ -1,16 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - CSharpCode - (11:0,11 [56] AttributeDirective.cshtml) - IntermediateToken - (11:0,11 [56] AttributeDirective.cshtml) - CSharp - [System.Runtime.InteropServices.DllImport("user32.dll")] - CSharpCode - (80:1,11 [51] AttributeDirective.cshtml) - IntermediateToken - (80:1,11 [51] AttributeDirective.cshtml) - CSharp - [assembly: AssemblyTitleAttribute("Some assembly")] - CSharpCode - (144:2,11 [66] AttributeDirective.cshtml) - IntermediateToken - (144:2,11 [66] AttributeDirective.cshtml) - CSharp - [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)] - CSharpCode - (223:3,11 [44] AttributeDirective.cshtml) - IntermediateToken - (223:3,11 [44] AttributeDirective.cshtml) - CSharp - [Conditional("DEBUG"), Conditional("TEST1")] - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (269:4,0 [13] AttributeDirective.cshtml) - IntermediateToken - (269:4,0 [13] AttributeDirective.cshtml) - Html - \nHello World diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml deleted file mode 100644 index 8610fe90aa6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@addTagHelper *, TestAssembly - -

        -

        HelloWorld

        - - - -

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 8548f916c2c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeTargetingTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "checkbox"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "checkbox"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt deleted file mode 100644 index db2f83bb78e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,85 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeTargetingTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] AttributeTargetingTagHelpers.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - Html - \n\n - TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (48:2,15 [9] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (48:2,15 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - IntermediateToken - (54:3,4 [2] AttributeTargetingTagHelpers.cshtml) - Html -

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

        - IntermediateToken - (119:3,69 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - IntermediateToken - (125:4,4 [6] AttributeTargetingTagHelpers.cshtml) - Html - - IntermediateToken - (149:4,28 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - TagHelper - (155:5,4 [40] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - TagHelper - (201:6,4 [54] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true - DefaultTagHelperHtmlAttribute - - catchAll - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (249:6,52 [2] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (249:6,52 [2] AttributeTargetingTagHelpers.cshtml) - Html - hi - DefaultTagHelperExecute - - HtmlContent - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (43:2,10 [3] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (43:2,10 [3] AttributeTargetingTagHelpers.cshtml) - Html - btn - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index daeee4d6ba2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml) -|*, TestAssembly| -Generated Location: (1310:21,38 [15] ) -|*, TestAssembly| - -Source Location: (187:5,36 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml) -|true| -Generated Location: (2403:44,42 [4] ) -|true| - -Source Location: (233:6,36 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml) -|true| -Generated Location: (3170:57,42 [4] ) -|true| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 0d6a110467b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,132 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2ceb35a784a30ab44eb8b621c9e61d2361841c63" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeTargetingTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2ceb35a784a30ab44eb8b621c9e61d2361841c63", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeTargetingTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("catchAll", new global::Microsoft.AspNetCore.Html.HtmlString("hi"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n

        "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("strong", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Hello"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("World

        \r\n \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt deleted file mode 100644 index dd411e5da21..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,68 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeTargetingTagHelpers_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - catchAll - hi - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_1 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - class - btn - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n - TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (48:2,15 [9] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (48:2,15 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - IntermediateToken - (54:3,4 [2] AttributeTargetingTagHelpers.cshtml) - Html -

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

        - IntermediateToken - (119:3,69 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - IntermediateToken - (125:4,4 [6] AttributeTargetingTagHelpers.cshtml) - Html - - IntermediateToken - (149:4,28 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - TagHelper - (155:5,4 [40] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - __tagHelperAttribute_1 - type - Type - PreallocatedTagHelperProperty - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - __tagHelperAttribute_1 - type - Type - DefaultTagHelperProperty - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - TagHelper - (201:6,4 [54] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperProperty - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - __tagHelperAttribute_1 - type - Type - PreallocatedTagHelperProperty - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - __tagHelperAttribute_1 - type - Type - DefaultTagHelperProperty - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperExecute - - HtmlContent - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - IntermediateToken - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml deleted file mode 100644 index 69b68e07c51..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml +++ /dev/null @@ -1,26 +0,0 @@ -@functions { - public async Task Foo() - { - return "Bar"; - } -} - -
        -

        Basic Asynchronous Expression Test

        -

        Basic Asynchronous Expression: @await Foo()

        -

        Basic Asynchronous Template: @(await Foo())

        -

        Basic Asynchronous Statement: @{ await Foo(); }

        -

        Basic Asynchronous Statement Nested: @{ @await Foo() }

        -

        Basic Incomplete Asynchronous Statement: @await

        -
        - -
        -

        Advanced Asynchronous Expression Test

        -

        Advanced Asynchronous Expression: @await Foo(1, 2)

        -

        Advanced Asynchronous Expression Extended: @await Foo.Bar(1, 2)

        -

        Advanced Asynchronous Template: @(await Foo("bob", true))

        -

        Advanced Asynchronous Statement: @{ await Foo(something, hello: "world"); }

        -

        Advanced Asynchronous Statement Extended: @{ await Foo.Bar(1, 2) }

        -

        Advanced Asynchronous Statement Nested: @{ @await Foo(boolValue: false) }

        -

        Advanced Incomplete Asynchronous Statement: @await ("wrrronggg")

        -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs deleted file mode 100644 index 850e7d6fae8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - await Foo(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo(1, 2); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo.Bar(1, 2); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo("bob", true); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - await Foo(something, hello: "world"); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - await Foo.Bar(1, 2) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await Foo(boolValue: false); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - __o = await ("wrrronggg"); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - - public async Task Foo() - { - return "Bar"; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html deleted file mode 100644 index 22593ca1ef4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
        -

        Basic Asynchronous Expression Test

        -

        Basic Asynchronous Expression:

        -

        Basic Asynchronous Template:

        -

        Basic Asynchronous Statement:

        -

        Basic Asynchronous Statement Nested:

        -

        Basic Incomplete Asynchronous Statement:

        -
        - -
        -

        Advanced Asynchronous Expression Test

        -

        Advanced Asynchronous Expression:

        -

        Advanced Asynchronous Expression Extended:

        -

        Advanced Asynchronous Template:

        -

        Advanced Asynchronous Statement:

        -

        Advanced Asynchronous Statement Extended:

        -

        Advanced Asynchronous Statement Nested:

        -

        Advanced Incomplete Asynchronous Statement:

        -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt deleted file mode 100644 index 0794ebc4bd1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt +++ /dev/null @@ -1,148 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (89:5,1 [102] Await.cshtml) - IntermediateToken - (89:5,1 [4] Await.cshtml) - Html - \n\n - IntermediateToken - (93:7,0 [8] Await.cshtml) - Html -
        - IntermediateToken - (102:7,9 [6] Await.cshtml) - Html - \n - IntermediateToken - (108:8,4 [3] Await.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (1080:24,75 [2] Await.cshtml) - Html - \n - IntermediateToken - (1082:25,0 [10] Await.cshtml) - Html -
        - CSharpCode - (12:0,12 [76] Await.cshtml) - IntermediateToken - (12:0,12 [76] Await.cshtml) - CSharp - \n public async Task Foo()\n {\n return "Bar";\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt deleted file mode 100644 index 8fd6a5044a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt +++ /dev/null @@ -1,95 +0,0 @@ -Source Location: (192:9,39 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo()| -Generated Location: (768:19,39 [11] ) -|await Foo()| - -Source Location: (247:10,38 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo()| -Generated Location: (971:26,38 [11] ) -|await Foo()| - -Source Location: (304:11,39 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| await Foo(); | -Generated Location: (1175:33,39 [14] ) -| await Foo(); | - -Source Location: (371:12,46 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| | -Generated Location: (1388:40,46 [1] ) -| | - -Source Location: (376:12,51 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo()| -Generated Location: (1593:47,51 [11] ) -|await Foo()| - -Source Location: (391:12,66 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| | -Generated Location: (1824:54,66 [1] ) -| | - -Source Location: (448:13,49 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await| -Generated Location: (2027:61,49 [5] ) -|await| - -Source Location: (578:18,42 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo(1, 2)| -Generated Location: (2228:68,42 [15] ) -|await Foo(1, 2)| - -Source Location: (650:19,51 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo.Bar(1, 2)| -Generated Location: (2448:75,51 [19] ) -|await Foo.Bar(1, 2)| - -Source Location: (716:20,41 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo("bob", true)| -Generated Location: (2662:82,41 [22] ) -|await Foo("bob", true)| - -Source Location: (787:21,42 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| await Foo(something, hello: "world"); | -Generated Location: (2880:89,42 [39] ) -| await Foo(something, hello: "world"); | - -Source Location: (884:22,51 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| await Foo.Bar(1, 2) | -Generated Location: (3123:96,51 [21] ) -| await Foo.Bar(1, 2) | - -Source Location: (961:23,49 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| | -Generated Location: (3346:103,49 [1] ) -| | - -Source Location: (966:23,54 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await Foo(boolValue: false)| -Generated Location: (3554:110,54 [27] ) -|await Foo(boolValue: false)| - -Source Location: (997:23,85 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| | -Generated Location: (3820:117,85 [1] ) -| | - -Source Location: (1057:24,52 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -|await ("wrrronggg")| -Generated Location: (4026:124,52 [19] ) -|await ("wrrronggg")| - -Source Location: (12:0,12 [76] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml) -| - public async Task Foo() - { - return "Bar"; - } -| -Generated Location: (4259:133,12 [76] ) -| - public async Task Foo() - { - return "Bar"; - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs deleted file mode 100644 index 7eb1804dc5d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs +++ /dev/null @@ -1,130 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5a02c3ec89081f6e0a8f4810e127eed40467c358" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"5a02c3ec89081f6e0a8f4810e127eed40467c358", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n
        \r\n

        Basic Asynchronous Expression Test

        \r\n

        Basic Asynchronous Expression: "); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo()); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Basic Asynchronous Template: "); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo()); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Basic Asynchronous Statement: "); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - await Foo(); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Basic Asynchronous Statement Nested: "); - WriteLiteral(" "); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo()); - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - WriteLiteral("

        \r\n

        Basic Incomplete Asynchronous Statement: "); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n
        \r\n\r\n
        \r\n

        Advanced Asynchronous Expression Test

        \r\n

        Advanced Asynchronous Expression: "); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo(1, 2)); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Advanced Asynchronous Expression Extended: "); -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo.Bar(1, 2)); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Advanced Asynchronous Template: "); -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo("bob", true)); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Advanced Asynchronous Statement: "); -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - await Foo(something, hello: "world"); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Advanced Asynchronous Statement Extended: "); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - await Foo.Bar(1, 2) - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n

        Advanced Asynchronous Statement Nested: "); - WriteLiteral(" "); -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await Foo(boolValue: false)); - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - WriteLiteral("

        \r\n

        Advanced Incomplete Asynchronous Statement: "); -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - Write(await ("wrrronggg")); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n
        "); - } - #pragma warning restore 1998 -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml" - - public async Task Foo() - { - return "Bar"; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt deleted file mode 100644 index 5b906426af5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt +++ /dev/null @@ -1,143 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (91:6,0 [100] Await.cshtml) - IntermediateToken - (91:6,0 [2] Await.cshtml) - Html - \n - IntermediateToken - (93:7,0 [8] Await.cshtml) - Html -
        - IntermediateToken - (102:7,9 [6] Await.cshtml) - Html - \n - IntermediateToken - (108:8,4 [3] Await.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (1080:24,75 [2] Await.cshtml) - Html - \n - IntermediateToken - (1082:25,0 [10] Await.cshtml) - Html -
        - CSharpCode - (12:0,12 [76] Await.cshtml) - IntermediateToken - (12:0,12 [76] Await.cshtml) - CSharp - \n public async Task Foo()\n {\n return "Bar";\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml deleted file mode 100644 index b58b6b44fff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml +++ /dev/null @@ -1,9 +0,0 @@ -@addTagHelper "*, TestAssembly" - -
        -

        -

        - - -

        -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 658cf271263..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml" - __o = ViewBag.DefaultInterval; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Type = "text"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "checkbox"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 38d793eaeb7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,84 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] BasicTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [73] BasicTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] BasicTagHelpers.cshtml) - Html - \n\n - IntermediateToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -
        - IntermediateToken - (98:2,63 [6] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (104:3,4 [216] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (145:3,45 [10] BasicTagHelpers.cshtml) - IntermediateToken - (145:3,45 [10] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (155:4,8 [25] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - data - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (164:4,17 [10] BasicTagHelpers.cshtml) - IntermediateToken - (164:4,17 [10] BasicTagHelpers.cshtml) - Html - -delay1000 - DefaultTagHelperExecute - - HtmlContent - (180:4,33 [10] BasicTagHelpers.cshtml) - IntermediateToken - (180:4,33 [10] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (190:5,8 [71] BasicTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperHtmlAttribute - - data-interval - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (212:5,30 [7] BasicTagHelpers.cshtml) - IntermediateToken - (212:5,30 [7] BasicTagHelpers.cshtml) - Html - 2000 + - CSharpExpression - (220:5,38 [23] BasicTagHelpers.cshtml) - IntermediateToken - (220:5,38 [23] BasicTagHelpers.cshtml) - CSharp - ViewBag.DefaultInterval - HtmlContent - (243:5,61 [4] BasicTagHelpers.cshtml) - IntermediateToken - (243:5,61 [4] BasicTagHelpers.cshtml) - Html - + 1 - DefaultTagHelperProperty - (255:5,73 [4] BasicTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (255:5,73 [4] BasicTagHelpers.cshtml) - IntermediateToken - (255:5,73 [4] BasicTagHelpers.cshtml) - Html - text - DefaultTagHelperProperty - (255:5,73 [4] BasicTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (255:5,73 [4] BasicTagHelpers.cshtml) - IntermediateToken - (255:5,73 [4] BasicTagHelpers.cshtml) - Html - text - DefaultTagHelperExecute - - HtmlContent - (261:5,79 [10] BasicTagHelpers.cshtml) - IntermediateToken - (261:5,79 [10] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (271:6,8 [39] BasicTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (284:6,21 [8] BasicTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (284:6,21 [8] BasicTagHelpers.cshtml) - IntermediateToken - (284:6,21 [8] BasicTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (284:6,21 [8] BasicTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (284:6,21 [8] BasicTagHelpers.cshtml) - IntermediateToken - (284:6,21 [8] BasicTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (303:6,40 [4] BasicTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (303:6,40 [4] BasicTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (310:6,47 [6] BasicTagHelpers.cshtml) - IntermediateToken - (310:6,47 [6] BasicTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (114:3,14 [11] BasicTagHelpers.cshtml) - IntermediateToken - (114:3,14 [11] BasicTagHelpers.cshtml) - Html - Hello World - DefaultTagHelperHtmlAttribute - - data-delay - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (139:3,39 [4] BasicTagHelpers.cshtml) - IntermediateToken - (139:3,39 [4] BasicTagHelpers.cshtml) - Html - 1000 - DefaultTagHelperExecute - - HtmlContent - (320:7,8 [8] BasicTagHelpers.cshtml) - IntermediateToken - (320:7,8 [2] BasicTagHelpers.cshtml) - Html - \n - IntermediateToken - (322:8,0 [6] BasicTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index a2450c46b66..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1191:20,37 [17] ) -|"*, TestAssembly"| - -Source Location: (220:5,38 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml) -|ViewBag.DefaultInterval| -Generated Location: (2102:41,38 [23] ) -|ViewBag.DefaultInterval| - -Source Location: (303:6,40 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml) -|true| -Generated Location: (2914:55,42 [4] ) -|true| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml deleted file mode 100644 index 089363600cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml +++ /dev/null @@ -1,10 +0,0 @@ -@tagHelperPrefix "THS" -@addTagHelper "*, TestAssembly" - - - -

        - - -
        -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs deleted file mode 100644 index 92e4fa5dc65..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Prefixed_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml" -global::System.Object __typeHelper = "THS"; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "checkbox"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml" - __TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt deleted file mode 100644 index 837de656c02..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt +++ /dev/null @@ -1,60 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Prefixed_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (17:0,17 [5] BasicTagHelpers_Prefixed.cshtml) - "THS" - DirectiveToken - (38:1,14 [17] BasicTagHelpers_Prefixed.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - HtmlContent - (55:1,31 [54] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (55:1,31 [4] BasicTagHelpers_Prefixed.cshtml) - Html - \n\n - IntermediateToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - - IntermediateToken - (103:3,44 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n - TagHelper - (109:4,4 [136] BasicTagHelpers_Prefixed.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (135:4,30 [56] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (135:4,30 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (145:5,8 [2] BasicTagHelpers_Prefixed.cshtml) - Html -

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

        - IntermediateToken - (152:5,15 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (162:6,8 [6] BasicTagHelpers_Prefixed.cshtml) - Html - - IntermediateToken - (181:6,27 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - TagHelper - (191:7,8 [41] BasicTagHelpers_Prefixed.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - Html - checkbox - DefaultTagHelperProperty - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - Html - checkbox - DefaultTagHelperProperty - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (122:4,17 [11] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (122:4,17 [11] BasicTagHelpers_Prefixed.cshtml) - Html - Hello World - DefaultTagHelperExecute - - HtmlContent - (245:8,11 [11] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (245:8,11 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (247:9,0 [9] BasicTagHelpers_Prefixed.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt deleted file mode 100644 index 63bd2edaff5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (17:0,17 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml) -|"THS"| -Generated Location: (1209:20,37 [5] ) -|"THS"| - -Source Location: (38:1,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml) -|"*, TestAssembly"| -Generated Location: (1483:30,37 [17] ) -|"*, TestAssembly"| - -Source Location: (226:7,43 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml) -|true| -Generated Location: (2389:51,43 [4] ) -|true| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs deleted file mode 100644 index 6d015f413df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs +++ /dev/null @@ -1,86 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b7372519d2a9b45537aba0e7d34309526d3014c3" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Prefixed_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b7372519d2a9b45537aba0e7d34309526d3014c3", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Prefixed_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n

        \r\n \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        "); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt deleted file mode 100644 index ce074408aeb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt +++ /dev/null @@ -1,47 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Prefixed_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (57:2,0 [52] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (57:2,0 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - - IntermediateToken - (103:3,44 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n - TagHelper - (109:4,4 [136] BasicTagHelpers_Prefixed.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (135:4,30 [56] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (135:4,30 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (145:5,8 [2] BasicTagHelpers_Prefixed.cshtml) - Html -

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

        - IntermediateToken - (152:5,15 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (162:6,8 [6] BasicTagHelpers_Prefixed.cshtml) - Html - - IntermediateToken - (181:6,27 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - TagHelper - (191:7,8 [41] BasicTagHelpers_Prefixed.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - __tagHelperAttribute_0 - type - Type - DefaultTagHelperProperty - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (245:8,11 [11] BasicTagHelpers_Prefixed.cshtml) - IntermediateToken - (245:8,11 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - IntermediateToken - (247:9,0 [9] BasicTagHelpers_Prefixed.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml deleted file mode 100644 index 56ac77231ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml +++ /dev/null @@ -1,10 +0,0 @@ -@addTagHelper "*, TestAssembly" -@removeTagHelper "doesntmatter, nice" - -
        -

        -

        - - -

        -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs deleted file mode 100644 index e31a729b2b9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs +++ /dev/null @@ -1,119 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2e30c5c6e01a148ccf4ed5dd4a81939641312a17" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_RemoveTagHelper_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2e30c5c6e01a148ccf4ed5dd4a81939641312a17", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_RemoveTagHelper_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n
        \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        "); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt deleted file mode 100644 index ef78c52e751..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt +++ /dev/null @@ -1,55 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_RemoveTagHelper_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - text - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_1 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (72:2,0 [49] BasicTagHelpers_RemoveTagHelper.cshtml) - IntermediateToken - (72:2,0 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - IntermediateToken - (74:3,0 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - Html -
        - IntermediateToken - (115:3,41 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - TagHelper - (121:4,4 [130] BasicTagHelpers_RemoveTagHelper.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (144:4,27 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - IntermediateToken - (144:4,27 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - TagHelper - (154:5,8 [7] BasicTagHelpers_RemoveTagHelper.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperExecute - - HtmlContent - (161:5,15 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - IntermediateToken - (161:5,15 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - TagHelper - (171:6,8 [21] BasicTagHelpers_RemoveTagHelper.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (184:6,21 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (184:6,21 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - __tagHelperAttribute_0 - type - Type - DefaultTagHelperExecute - - HtmlContent - (192:6,29 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - IntermediateToken - (192:6,29 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - TagHelper - (202:7,8 [39] BasicTagHelpers_RemoveTagHelper.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (215:7,21 [8] BasicTagHelpers_RemoveTagHelper.cshtml) - __tagHelperAttribute_1 - type - Type - PreallocatedTagHelperProperty - (215:7,21 [8] BasicTagHelpers_RemoveTagHelper.cshtml) - __tagHelperAttribute_1 - type - Type - DefaultTagHelperProperty - (234:7,40 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (234:7,40 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (241:7,47 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - IntermediateToken - (241:7,47 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - HtmlContent - (251:8,8 [8] BasicTagHelpers_RemoveTagHelper.cshtml) - IntermediateToken - (251:8,8 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - IntermediateToken - (253:9,0 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 48bed638964..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,135 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2775a5b97b6aa9fc7b162124fddb7400ec1e2472" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2775a5b97b6aa9fc7b162124fddb7400ec1e2472", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data", new global::Microsoft.AspNetCore.Html.HtmlString("-delay1000"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-delay", new global::Microsoft.AspNetCore.Html.HtmlString("1000"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n
        \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - BeginWriteTagHelperAttribute(); - WriteLiteral("2000 + "); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml" - Write(ViewBag.DefaultInterval); - -#line default -#line hidden -#nullable disable - WriteLiteral(" + 1"); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("data-interval", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_2.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_2.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        "); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt deleted file mode 100644 index ce7caef785b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,69 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - data - -delay1000 - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_1 - type - text - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_2 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_4 - data-delay - 1000 - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [71] BasicTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] BasicTagHelpers.cshtml) - Html - \n - IntermediateToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -
        - IntermediateToken - (98:2,63 [6] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (104:3,4 [216] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (145:3,45 [10] BasicTagHelpers.cshtml) - IntermediateToken - (145:3,45 [10] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (155:4,8 [25] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperExecute - - HtmlContent - (180:4,33 [10] BasicTagHelpers.cshtml) - IntermediateToken - (180:4,33 [10] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (190:5,8 [71] BasicTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperHtmlAttribute - - data-interval - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (212:5,30 [7] BasicTagHelpers.cshtml) - IntermediateToken - (212:5,30 [7] BasicTagHelpers.cshtml) - Html - 2000 + - CSharpExpression - (220:5,38 [23] BasicTagHelpers.cshtml) - IntermediateToken - (220:5,38 [23] BasicTagHelpers.cshtml) - CSharp - ViewBag.DefaultInterval - HtmlContent - (243:5,61 [4] BasicTagHelpers.cshtml) - IntermediateToken - (243:5,61 [4] BasicTagHelpers.cshtml) - Html - + 1 - PreallocatedTagHelperProperty - (255:5,73 [4] BasicTagHelpers.cshtml) - __tagHelperAttribute_1 - type - Type - PreallocatedTagHelperProperty - (255:5,73 [4] BasicTagHelpers.cshtml) - __tagHelperAttribute_1 - type - Type - DefaultTagHelperExecute - - HtmlContent - (261:5,79 [10] BasicTagHelpers.cshtml) - IntermediateToken - (261:5,79 [10] BasicTagHelpers.cshtml) - Html - \n - TagHelper - (271:6,8 [39] BasicTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (284:6,21 [8] BasicTagHelpers.cshtml) - __tagHelperAttribute_2 - type - Type - PreallocatedTagHelperProperty - (284:6,21 [8] BasicTagHelpers.cshtml) - __tagHelperAttribute_2 - type - Type - DefaultTagHelperProperty - (303:6,40 [4] BasicTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (303:6,40 [4] BasicTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (310:6,47 [6] BasicTagHelpers.cshtml) - IntermediateToken - (310:6,47 [6] BasicTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_4 - DefaultTagHelperExecute - - HtmlContent - (320:7,8 [8] BasicTagHelpers.cshtml) - IntermediateToken - (320:7,8 [2] BasicTagHelpers.cshtml) - Html - \n - IntermediateToken - (322:8,0 [6] BasicTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml deleted file mode 100644 index 8d27de89cce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml +++ /dev/null @@ -1,37 +0,0 @@ -@{ - int i = 1; -} - -@while(i <= 10) { -

        Hello from C#, #@(i)

        - i += 1; -} - -@if(i == 11) { -

        We wrote 10 lines!

        -} - -@switch(i) { - case 11: -

        No really, we wrote 10 lines!

        - break; - default: -

        Actually, we didn't...

        - break; -} - -@for(int j = 1; j <= 10; j += 2) { -

        Hello again from C#, #@(j)

        -} - -@try { -

        That time, we wrote 5 lines!

        -} catch(Exception ex) { -

        Oh no! An error occurred: @(ex.Message)

        -} - -

        i is now @i

        - -@lock(new object()) { -

        This block is locked, for your security!

        -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs deleted file mode 100644 index e4fa8fb5e6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs +++ /dev/null @@ -1,176 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - - int i = 1; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - while(i <= 10) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - - i += 1; -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - if(i == 11) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - switch(i) { - case 11: - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - - break; - default: - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - - break; -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - for(int j = 1; j <= 10; j += 2) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - __o = j; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - try { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - -} catch(Exception ex) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - __o = ex.Message; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - lock(new object()) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html deleted file mode 100644 index dc08c79219d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - -

        Hello from C#, #

        - - - - -

        We wrote 10 lines!

        - - - - -

        No really, we wrote 10 lines!

        - - -

        Actually, we didn't...

        - - - - -

        Hello again from C#, #

        - - - -

        That time, we wrote 5 lines!

        - -

        Oh no! An error occurred:

        - - -

        i is now

        - - -

        This block is locked, for your security!

        - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt deleted file mode 100644 index d7ad6ccc2c0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt +++ /dev/null @@ -1,110 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [18] Blocks.cshtml) - IntermediateToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n - HtmlContent - (23:3,0 [2] Blocks.cshtml) - IntermediateToken - (23:3,0 [2] Blocks.cshtml) - Html - \n - CSharpCode - (26:4,1 [22] Blocks.cshtml) - IntermediateToken - (26:4,1 [22] Blocks.cshtml) - CSharp - while(i <= 10) {\n - HtmlContent - (48:5,4 [19] Blocks.cshtml) - IntermediateToken - (48:5,4 [2] Blocks.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - CSharpCode - (618:35,51 [3] Blocks.cshtml) - IntermediateToken - (618:35,51 [3] Blocks.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt deleted file mode 100644 index 111f6a27e61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt +++ /dev/null @@ -1,139 +0,0 @@ -Source Location: (2:0,2 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| - int i = 1; -| -Generated Location: (732:19,2 [18] ) -| - int i = 1; -| - -Source Location: (26:4,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|while(i <= 10) { - | -Generated Location: (902:27,1 [22] ) -|while(i <= 10) { - | - -Source Location: (69:5,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|i| -Generated Location: (1102:35,25 [1] ) -|i| - -Source Location: (75:5,31 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| - i += 1; -}| -Generated Location: (1288:42,31 [16] ) -| - i += 1; -}| - -Source Location: (96:9,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|if(i == 11) { - | -Generated Location: (1459:51,1 [19] ) -|if(i == 11) { - | - -Source Location: (140:10,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| -}| -Generated Location: (1661:59,29 [3] ) -| -}| - -Source Location: (148:13,1 [35] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|switch(i) { - case 11: - | -Generated Location: (1819:67,1 [35] ) -|switch(i) { - case 11: - | - -Source Location: (219:15,44 [40] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| - break; - default: - | -Generated Location: (2052:76,44 [40] ) -| - break; - default: - | - -Source Location: (288:18,37 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| - break; -}| -Generated Location: (2283:86,37 [19] ) -| - break; -}| - -Source Location: (312:22,1 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|for(int j = 1; j <= 10; j += 2) { - | -Generated Location: (2457:95,1 [39] ) -|for(int j = 1; j <= 10; j += 2) { - | - -Source Location: (378:23,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|j| -Generated Location: (2681:103,31 [1] ) -|j| - -Source Location: (384:23,37 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| -}| -Generated Location: (2874:110,37 [3] ) -| -}| - -Source Location: (392:26,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|try { - | -Generated Location: (3032:118,1 [11] ) -|try { - | - -Source Location: (438:27,39 [31] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| -} catch(Exception ex) { - | -Generated Location: (3236:126,39 [31] ) -| -} catch(Exception ex) { - | - -Source Location: (500:29,35 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|ex.Message| -Generated Location: (3456:135,35 [10] ) -|ex.Message| - -Source Location: (515:29,50 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| -}| -Generated Location: (3671:142,50 [3] ) -| -}| - -Source Location: (535:32,13 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|i| -Generated Location: (3841:150,13 [1] ) -|i| - -Source Location: (545:34,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -|lock(new object()) { - | -Generated Location: (3998:157,1 [26] ) -|lock(new object()) { - | - -Source Location: (618:35,51 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml) -| -}| -Generated Location: (4229:165,51 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs deleted file mode 100644 index ce6adeb982b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs +++ /dev/null @@ -1,174 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "ed55fda2b7b0b96b044fc45da658dc062479924f" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"ed55fda2b7b0b96b044fc45da658dc062479924f", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - - int i = 1; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - while(i <= 10) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello from C#, #"); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - i += 1; -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - if(i == 11) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        We wrote 10 lines!

        \r\n"); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - switch(i) { - case 11: - -#line default -#line hidden -#nullable disable - WriteLiteral("

        No really, we wrote 10 lines!

        \r\n"); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - break; - default: - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Actually, we didn\'t...

        \r\n"); -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - break; -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - for(int j = 1; j <= 10; j += 2) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello again from C#, #"); -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - Write(j); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - try { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        That time, we wrote 5 lines!

        \r\n"); -#nullable restore -#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" -} catch(Exception ex) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Oh no! An error occurred: "); -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - Write(ex.Message); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n

        i is now "); -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n\r\n"); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" - lock(new object()) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        This block is locked, for your security!

        \r\n"); -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt deleted file mode 100644 index 36e2a8f3c33..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt +++ /dev/null @@ -1,121 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [18] Blocks.cshtml) - IntermediateToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n - HtmlContent - (23:3,0 [2] Blocks.cshtml) - IntermediateToken - (23:3,0 [2] Blocks.cshtml) - Html - \n - CSharpCode - (26:4,1 [18] Blocks.cshtml) - IntermediateToken - (26:4,1 [18] Blocks.cshtml) - CSharp - while(i <= 10) {\n - HtmlContent - (44:5,0 [23] Blocks.cshtml) - IntermediateToken - (44:5,0 [4] Blocks.cshtml) - Html - - IntermediateToken - (48:5,4 [2] Blocks.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (618:35,51 [2] Blocks.cshtml) - Html - \n - CSharpCode - (620:36,0 [1] Blocks.cshtml) - IntermediateToken - (620:36,0 [1] Blocks.cshtml) - CSharp - } diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml deleted file mode 100644 index e2c134767ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml +++ /dev/null @@ -1,43 +0,0 @@ - - @{ - var nameLookup = new Dictionary() - { - ["John Doe"] = ("John", "Doe", true) - }; - - @* This is all C# 7 bits that should work. *@ - - int Sixteen = 0b0001_0000; - long BillionsAndBillions = 100_000_000_000; - double AvogadroConstant = 6.022_140_857_747_474e23; - decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M; - } - - @if (nameLookup.TryGetValue("John Doe", out var entry)) - { - if (entry.Extra is bool alive) - { - // Do Something - } - } -

        - Here's a very unique number: @(1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M) -

        - -
        - @((First: "John", Last: "Doe").First) @* Value Tuples *@ -
        - - @switch (entry.Extra) - { - case int age: - // Do something - break; - case IEnumerable childrenNames: - // Do more something - break; - case null: - // Do even more of something - break; - } - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs deleted file mode 100644 index d72f3f599f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - - var nameLookup = new Dictionary() - { - ["John Doe"] = ("John", "Doe", true) - }; - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - - - int Sixteen = 0b0001_0000; - long BillionsAndBillions = 100_000_000_000; - double AvogadroConstant = 6.022_140_857_747_474e23; - decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - if (nameLookup.TryGetValue("John Doe", out var entry)) - { - if (entry.Extra is bool alive) - { - // Do Something - } - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - __o = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - __o = (First: "John", Last: "Doe").First; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - switch (entry.Extra) - { - case int age: - // Do something - break; - case IEnumerable childrenNames: - // Do more something - break; - case null: - // Do even more of something - break; - } - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html deleted file mode 100644 index a2aad32abe9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -

        - Here's a very unique number: -

        - -
        - -
        - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt deleted file mode 100644 index 88f3ed74c48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt +++ /dev/null @@ -1,50 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [12] CSharp7.cshtml) - IntermediateToken - (0:0,0 [5] CSharp7.cshtml) - Html - - IntermediateToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n - CSharpCode - (14:1,6 [187] CSharp7.cshtml) - IntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n - CSharpCode - (246:7,53 [253] CSharp7.cshtml) - IntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n - HtmlContent - (502:14,0 [6] CSharp7.cshtml) - IntermediateToken - (502:14,0 [6] CSharp7.cshtml) - Html - \n - CSharpCode - (509:15,5 [159] CSharp7.cshtml) - IntermediateToken - (509:15,5 [159] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n } - HtmlContent - (668:21,5 [48] CSharp7.cshtml) - IntermediateToken - (668:21,5 [6] CSharp7.cshtml) - Html - \n - IntermediateToken - (674:22,4 [2] CSharp7.cshtml) - Html -

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

        - IntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n - IntermediateToken - (799:26,4 [4] CSharp7.cshtml) - Html -
        - IntermediateToken - (804:26,9 [10] CSharp7.cshtml) - Html - \n - CSharpExpression - (816:27,10 [34] CSharp7.cshtml) - IntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First - HtmlContent - (851:27,45 [1] CSharp7.cshtml) - IntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html - - HtmlContent - (870:27,64 [20] CSharp7.cshtml) - IntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n - IntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html -
        - IntermediateToken - (882:28,10 [8] CSharp7.cshtml) - Html - \n\n - CSharpCode - (891:30,5 [291] CSharp7.cshtml) - IntermediateToken - (891:30,5 [291] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n } - HtmlContent - (1182:41,5 [9] CSharp7.cshtml) - IntermediateToken - (1182:41,5 [2] CSharp7.cshtml) - Html - \n - IntermediateToken - (1184:42,0 [7] CSharp7.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt deleted file mode 100644 index ad00d2d80d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt +++ /dev/null @@ -1,88 +0,0 @@ -Source Location: (14:1,6 [187] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml) -| - var nameLookup = new Dictionary() - { - ["John Doe"] = ("John", "Doe", true) - }; - - | -Generated Location: (738:19,6 [187] ) -| - var nameLookup = new Dictionary() - { - ["John Doe"] = ("John", "Doe", true) - }; - - | - -Source Location: (246:7,53 [253] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml) -| - - int Sixteen = 0b0001_0000; - long BillionsAndBillions = 100_000_000_000; - double AvogadroConstant = 6.022_140_857_747_474e23; - decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M; - | -Generated Location: (1132:32,53 [253] ) -| - - int Sixteen = 0b0001_0000; - long BillionsAndBillions = 100_000_000_000; - double AvogadroConstant = 6.022_140_857_747_474e23; - decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M; - | - -Source Location: (509:15,5 [159] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml) -|if (nameLookup.TryGetValue("John Doe", out var entry)) - { - if (entry.Extra is bool alive) - { - // Do Something - } - }| -Generated Location: (1545:45,5 [159] ) -|if (nameLookup.TryGetValue("John Doe", out var entry)) - { - if (entry.Extra is bool alive) - { - // Do Something - } - }| - -Source Location: (718:23,39 [62] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml) -|1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M| -Generated Location: (1898:58,39 [62] ) -|1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M| - -Source Location: (816:27,10 [34] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml) -|(First: "John", Last: "Doe").First| -Generated Location: (2126:65,10 [34] ) -|(First: "John", Last: "Doe").First| - -Source Location: (891:30,5 [291] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml) -|switch (entry.Extra) - { - case int age: - // Do something - break; - case IEnumerable childrenNames: - // Do more something - break; - case null: - // Do even more of something - break; - }| -Generated Location: (2321:72,5 [291] ) -|switch (entry.Extra) - { - case int age: - // Do something - break; - case IEnumerable childrenNames: - // Do more something - break; - case null: - // Do even more of something - break; - }| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs deleted file mode 100644 index cf2fd1a3bd4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs +++ /dev/null @@ -1,96 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "69466b91f73ea9f94ccef045495a0da11bb763c6" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"69466b91f73ea9f94ccef045495a0da11bb763c6", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - - var nameLookup = new Dictionary() - { - ["John Doe"] = ("John", "Doe", true) - }; - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - - - int Sixteen = 0b0001_0000; - long BillionsAndBillions = 100_000_000_000; - double AvogadroConstant = 6.022_140_857_747_474e23; - decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M; - - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - if (nameLookup.TryGetValue("John Doe", out var entry)) - { - if (entry.Extra is bool alive) - { - // Do Something - } - } - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n Here\'s a very unique number: "); -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - Write(1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n

        \r\n\r\n
        \r\n "); -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - Write((First: "John", Last: "Doe").First); - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - WriteLiteral("\r\n
        \r\n\r\n"); -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml" - switch (entry.Extra) - { - case int age: - // Do something - break; - case IEnumerable childrenNames: - // Do more something - break; - case null: - // Do even more of something - break; - } - -#line default -#line hidden -#nullable disable - WriteLiteral(""); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt deleted file mode 100644 index b6cb7face8c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt +++ /dev/null @@ -1,51 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [8] CSharp7.cshtml) - IntermediateToken - (0:0,0 [5] CSharp7.cshtml) - Html - - IntermediateToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n - CSharpCode - (8:1,0 [4] CSharp7.cshtml) - IntermediateToken - (8:1,0 [4] CSharp7.cshtml) - CSharp - - CSharpCode - (14:1,6 [187] CSharp7.cshtml) - IntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n - CSharpCode - (246:7,53 [253] CSharp7.cshtml) - IntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n - HtmlContent - (502:14,0 [2] CSharp7.cshtml) - IntermediateToken - (502:14,0 [2] CSharp7.cshtml) - Html - \n - CSharpCode - (504:15,0 [4] CSharp7.cshtml) - IntermediateToken - (504:15,0 [4] CSharp7.cshtml) - CSharp - - CSharpCode - (509:15,5 [161] CSharp7.cshtml) - IntermediateToken - (509:15,5 [161] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }\n - HtmlContent - (670:22,0 [46] CSharp7.cshtml) - IntermediateToken - (670:22,0 [4] CSharp7.cshtml) - Html - - IntermediateToken - (674:22,4 [2] CSharp7.cshtml) - Html -

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

        - IntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n - IntermediateToken - (799:26,4 [4] CSharp7.cshtml) - Html -
        - IntermediateToken - (804:26,9 [2] CSharp7.cshtml) - Html - \n - IntermediateToken - (806:27,0 [8] CSharp7.cshtml) - Html - - CSharpExpression - (816:27,10 [34] CSharp7.cshtml) - IntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First - HtmlContent - (851:27,45 [1] CSharp7.cshtml) - IntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html - - HtmlContent - (870:27,64 [16] CSharp7.cshtml) - IntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n - IntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html -
        - IntermediateToken - (882:28,10 [4] CSharp7.cshtml) - Html - \n\n - CSharpCode - (886:30,0 [4] CSharp7.cshtml) - IntermediateToken - (886:30,0 [4] CSharp7.cshtml) - CSharp - - CSharpCode - (891:30,5 [293] CSharp7.cshtml) - IntermediateToken - (891:30,5 [293] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }\n - HtmlContent - (1184:42,0 [7] CSharp7.cshtml) - IntermediateToken - (1184:42,0 [7] CSharp7.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml deleted file mode 100644 index 83b95d44587..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml +++ /dev/null @@ -1,67 +0,0 @@ -@using System.Collections.Generic - -@{ - IAsyncEnumerable GetAsyncEnumerable() - { - return null; - } - - await foreach (var val in GetAsyncEnumerable()) - { - - } - - Range range = 1..5; - using var disposable = GetLastDisposableInRange(range); - - var words = Array.Empty(); - var testEnum = GetEnum(); - static TestEnum GetEnum() - { - return TestEnum.First; - } -} - -@words[1..2] -@(words[^2..^0]) - -@(testEnum switch -{ - TestEnum.First => "The First!", - TestEnum.Second => "The Second!", - _ => "The others", -}) - -@await foreach (var val in GetAsyncEnumerable()) -{ - @val -} - -@Person!.Name -@People![0]!.Name![1] -@DoSomething!(Person!) - -@functions { - enum TestEnum - { - First, - Second - } - - IDisposable GetLastDisposableInRange(Range range) - { - var disposables = (IDisposable[])ViewData["disposables"]; - return disposables[range][^1]; - } - - private Human? Person { get; set; } - - private Human?[]? People { get; set; } - - private Func? DoSomething { get; set; } - - private class Human - { - public string? Name { get; set; } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs deleted file mode 100644 index 10595167789..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -using System.Collections.Generic; - -#line default -#line hidden -#nullable disable - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - - IAsyncEnumerable GetAsyncEnumerable() - { - return null; - } - - await foreach (var val in GetAsyncEnumerable()) - { - - } - - Range range = 1..5; - using var disposable = GetLastDisposableInRange(range); - - var words = Array.Empty(); - var testEnum = GetEnum(); - static TestEnum GetEnum() - { - return TestEnum.First; - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = words[1..2]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = words[^2..^0]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = testEnum switch -{ - TestEnum.First => "The First!", - TestEnum.Second => "The Second!", - _ => "The others", -}; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - await foreach (var val in GetAsyncEnumerable()) -{ - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = val; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 40 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = Person!.Name; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 41 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = People![0]!.Name![1]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 42 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -__o = DoSomething!(Person!); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 44 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - - enum TestEnum - { - First, - Second - } - - IDisposable GetLastDisposableInRange(Range range) - { - var disposables = (IDisposable[])ViewData["disposables"]; - return disposables[range][^1]; - } - - private Human? Person { get; set; } - - private Human?[]? People { get; set; } - - private Func? DoSomething { get; set; } - - private class Human - { - public string? Name { get; set; } - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html deleted file mode 100644 index 2e0ee4dc6eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.ir.txt deleted file mode 100644 index e91175b9617..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.ir.txt +++ /dev/null @@ -1,52 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - UsingDirective - (1:0,1 [32] CSharp8.cshtml) - System.Collections.Generic - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:0,33 [4] CSharp8.cshtml) - IntermediateToken - (33:0,33 [4] CSharp8.cshtml) - Html - \n\n - CSharpCode - (39:2,2 [396] CSharp8.cshtml) - IntermediateToken - (39:2,2 [396] CSharp8.cshtml) - CSharp - \n IAsyncEnumerable GetAsyncEnumerable()\n {\n return null;\n }\n\n await foreach (var val in GetAsyncEnumerable())\n {\n\n }\n\n Range range = 1..5;\n using var disposable = GetLastDisposableInRange(range);\n\n var words = Array.Empty();\n var testEnum = GetEnum();\n static TestEnum GetEnum()\n {\n return TestEnum.First;\n }\n - HtmlContent - (438:23,0 [2] CSharp8.cshtml) - IntermediateToken - (438:23,0 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (441:24,1 [11] CSharp8.cshtml) - IntermediateToken - (441:24,1 [11] CSharp8.cshtml) - CSharp - words[1..2] - HtmlContent - (452:24,12 [2] CSharp8.cshtml) - IntermediateToken - (452:24,12 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (456:25,2 [13] CSharp8.cshtml) - IntermediateToken - (456:25,2 [13] CSharp8.cshtml) - CSharp - words[^2..^0] - HtmlContent - (470:25,16 [4] CSharp8.cshtml) - IntermediateToken - (470:25,16 [4] CSharp8.cshtml) - Html - \n\n - CSharpExpression - (476:27,2 [121] CSharp8.cshtml) - IntermediateToken - (476:27,2 [121] CSharp8.cshtml) - CSharp - testEnum switch\n{\n TestEnum.First => "The First!",\n TestEnum.Second => "The Second!",\n _ => "The others",\n} - HtmlContent - (598:32,2 [4] CSharp8.cshtml) - IntermediateToken - (598:32,2 [4] CSharp8.cshtml) - Html - \n\n - CSharpCode - (603:34,1 [56] CSharp8.cshtml) - IntermediateToken - (603:34,1 [56] CSharp8.cshtml) - CSharp - await foreach (var val in GetAsyncEnumerable())\n{\n - CSharpExpression - (660:36,5 [3] CSharp8.cshtml) - IntermediateToken - (660:36,5 [3] CSharp8.cshtml) - CSharp - val - CSharpCode - (663:36,8 [3] CSharp8.cshtml) - IntermediateToken - (663:36,8 [3] CSharp8.cshtml) - CSharp - \n} - HtmlContent - (666:37,1 [4] CSharp8.cshtml) - IntermediateToken - (666:37,1 [4] CSharp8.cshtml) - Html - \n\n - CSharpExpression - (671:39,1 [12] CSharp8.cshtml) - IntermediateToken - (671:39,1 [12] CSharp8.cshtml) - CSharp - Person!.Name - HtmlContent - (683:39,13 [2] CSharp8.cshtml) - IntermediateToken - (683:39,13 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (686:40,1 [20] CSharp8.cshtml) - IntermediateToken - (686:40,1 [20] CSharp8.cshtml) - CSharp - People![0]!.Name![1] - HtmlContent - (706:40,21 [2] CSharp8.cshtml) - IntermediateToken - (706:40,21 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (709:41,1 [21] CSharp8.cshtml) - IntermediateToken - (709:41,1 [21] CSharp8.cshtml) - CSharp - DoSomething!(Person!) - HtmlContent - (730:41,22 [4] CSharp8.cshtml) - IntermediateToken - (730:41,22 [4] CSharp8.cshtml) - Html - \n\n - CSharpCode - (746:43,12 [480] CSharp8.cshtml) - IntermediateToken - (746:43,12 [480] CSharp8.cshtml) - CSharp - \n enum TestEnum\n {\n First,\n Second\n }\n\n IDisposable GetLastDisposableInRange(Range range)\n {\n var disposables = (IDisposable[])ViewData["disposables"];\n return disposables[range][^1];\n }\n\n private Human? Person { get; set; }\n\n private Human?[]? People { get; set; }\n\n private Func? DoSomething { get; set; }\n\n private class Human\n {\n public string? Name { get; set; }\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt deleted file mode 100644 index a573b6fdbbc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt +++ /dev/null @@ -1,162 +0,0 @@ -Source Location: (1:0,1 [32] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|using System.Collections.Generic| -Generated Location: (249:7,0 [32] ) -|using System.Collections.Generic| - -Source Location: (39:2,2 [396] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -| - IAsyncEnumerable GetAsyncEnumerable() - { - return null; - } - - await foreach (var val in GetAsyncEnumerable()) - { - - } - - Range range = 1..5; - using var disposable = GetLastDisposableInRange(range); - - var words = Array.Empty(); - var testEnum = GetEnum(); - static TestEnum GetEnum() - { - return TestEnum.First; - } -| -Generated Location: (921:26,2 [396] ) -| - IAsyncEnumerable GetAsyncEnumerable() - { - return null; - } - - await foreach (var val in GetAsyncEnumerable()) - { - - } - - Range range = 1..5; - using var disposable = GetLastDisposableInRange(range); - - var words = Array.Empty(); - var testEnum = GetEnum(); - static TestEnum GetEnum() - { - return TestEnum.First; - } -| - -Source Location: (441:24,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|words[1..2]| -Generated Location: (1476:52,6 [11] ) -|words[1..2]| - -Source Location: (456:25,2 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|words[^2..^0]| -Generated Location: (1649:59,6 [13] ) -|words[^2..^0]| - -Source Location: (476:27,2 [121] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|testEnum switch -{ - TestEnum.First => "The First!", - TestEnum.Second => "The Second!", - _ => "The others", -}| -Generated Location: (1824:66,6 [121] ) -|testEnum switch -{ - TestEnum.First => "The First!", - TestEnum.Second => "The Second!", - _ => "The others", -}| - -Source Location: (603:34,1 [56] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|await foreach (var val in GetAsyncEnumerable()) -{ - | -Generated Location: (2102:78,1 [56] ) -|await foreach (var val in GetAsyncEnumerable()) -{ - | - -Source Location: (660:36,5 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|val| -Generated Location: (2319:87,6 [3] ) -|val| - -Source Location: (663:36,8 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -| -}| -Generated Location: (2486:94,8 [3] ) -| -}| - -Source Location: (671:39,1 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|Person!.Name| -Generated Location: (2650:102,6 [12] ) -|Person!.Name| - -Source Location: (686:40,1 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|People![0]!.Name![1]| -Generated Location: (2824:109,6 [20] ) -|People![0]!.Name![1]| - -Source Location: (709:41,1 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -|DoSomething!(Person!)| -Generated Location: (3006:116,6 [21] ) -|DoSomething!(Person!)| - -Source Location: (746:43,12 [480] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml) -| - enum TestEnum - { - First, - Second - } - - IDisposable GetLastDisposableInRange(Range range) - { - var disposables = (IDisposable[])ViewData["disposables"]; - return disposables[range][^1]; - } - - private Human? Person { get; set; } - - private Human?[]? People { get; set; } - - private Func? DoSomething { get; set; } - - private class Human - { - public string? Name { get; set; } - } -| -Generated Location: (3244:125,12 [480] ) -| - enum TestEnum - { - First, - Second - } - - IDisposable GetLastDisposableInRange(Range range) - { - var disposables = (IDisposable[])ViewData["disposables"]; - return disposables[range][^1]; - } - - private Human? Person { get; set; } - - private Human?[]? People { get; set; } - - private Func? DoSomething { get; set; } - - private class Human - { - public string? Name { get; set; } - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs deleted file mode 100644 index d535be6fbec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs +++ /dev/null @@ -1,160 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f830678e508a850354b4240a5821a1d75347fa64" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -using System.Collections.Generic; - -#line default -#line hidden -#nullable disable - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f830678e508a850354b4240a5821a1d75347fa64", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - - IAsyncEnumerable GetAsyncEnumerable() - { - return null; - } - - await foreach (var val in GetAsyncEnumerable()) - { - - } - - Range range = 1..5; - using var disposable = GetLastDisposableInRange(range); - - var words = Array.Empty(); - var testEnum = GetEnum(); - static TestEnum GetEnum() - { - return TestEnum.First; - } - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(words[1..2]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(words[^2..^0]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n\r\n"); -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(testEnum switch -{ - TestEnum.First => "The First!", - TestEnum.Second => "The Second!", - _ => "The others", -}); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n\r\n"); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - await foreach (var val in GetAsyncEnumerable()) -{ - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(val); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 40 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(Person!.Name); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 41 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(People![0]!.Name![1]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 42 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" -Write(DoSomething!(Person!)); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n\r\n"); - } - #pragma warning restore 1998 -#nullable restore -#line 44 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml" - - enum TestEnum - { - First, - Second - } - - IDisposable GetLastDisposableInRange(Range range) - { - var disposables = (IDisposable[])ViewData["disposables"]; - return disposables[range][^1]; - } - - private Human? Person { get; set; } - - private Human?[]? People { get; set; } - - private Func? DoSomething { get; set; } - - private class Human - { - public string? Name { get; set; } - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.ir.txt deleted file mode 100644 index db92e0b6bdb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.ir.txt +++ /dev/null @@ -1,47 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - UsingDirective - (1:0,1 [34] CSharp8.cshtml) - System.Collections.Generic - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (35:1,0 [2] CSharp8.cshtml) - IntermediateToken - (35:1,0 [2] CSharp8.cshtml) - Html - \n - CSharpCode - (39:2,2 [396] CSharp8.cshtml) - IntermediateToken - (39:2,2 [396] CSharp8.cshtml) - CSharp - \n IAsyncEnumerable GetAsyncEnumerable()\n {\n return null;\n }\n\n await foreach (var val in GetAsyncEnumerable())\n {\n\n }\n\n Range range = 1..5;\n using var disposable = GetLastDisposableInRange(range);\n\n var words = Array.Empty();\n var testEnum = GetEnum();\n static TestEnum GetEnum()\n {\n return TestEnum.First;\n }\n - HtmlContent - (438:23,0 [2] CSharp8.cshtml) - IntermediateToken - (438:23,0 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (441:24,1 [11] CSharp8.cshtml) - IntermediateToken - (441:24,1 [11] CSharp8.cshtml) - CSharp - words[1..2] - HtmlContent - (452:24,12 [2] CSharp8.cshtml) - IntermediateToken - (452:24,12 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (456:25,2 [13] CSharp8.cshtml) - IntermediateToken - (456:25,2 [13] CSharp8.cshtml) - CSharp - words[^2..^0] - HtmlContent - (470:25,16 [4] CSharp8.cshtml) - IntermediateToken - (470:25,16 [4] CSharp8.cshtml) - Html - \n\n - CSharpExpression - (476:27,2 [121] CSharp8.cshtml) - IntermediateToken - (476:27,2 [121] CSharp8.cshtml) - CSharp - testEnum switch\n{\n TestEnum.First => "The First!",\n TestEnum.Second => "The Second!",\n _ => "The others",\n} - HtmlContent - (598:32,2 [4] CSharp8.cshtml) - IntermediateToken - (598:32,2 [4] CSharp8.cshtml) - Html - \n\n - CSharpCode - (603:34,1 [56] CSharp8.cshtml) - IntermediateToken - (603:34,1 [56] CSharp8.cshtml) - CSharp - await foreach (var val in GetAsyncEnumerable())\n{\n - CSharpExpression - (660:36,5 [3] CSharp8.cshtml) - IntermediateToken - (660:36,5 [3] CSharp8.cshtml) - CSharp - val - CSharpCode - (663:36,8 [5] CSharp8.cshtml) - IntermediateToken - (663:36,8 [5] CSharp8.cshtml) - CSharp - \n}\n - HtmlContent - (668:38,0 [2] CSharp8.cshtml) - IntermediateToken - (668:38,0 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (671:39,1 [12] CSharp8.cshtml) - IntermediateToken - (671:39,1 [12] CSharp8.cshtml) - CSharp - Person!.Name - HtmlContent - (683:39,13 [2] CSharp8.cshtml) - IntermediateToken - (683:39,13 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (686:40,1 [20] CSharp8.cshtml) - IntermediateToken - (686:40,1 [20] CSharp8.cshtml) - CSharp - People![0]!.Name![1] - HtmlContent - (706:40,21 [2] CSharp8.cshtml) - IntermediateToken - (706:40,21 [2] CSharp8.cshtml) - Html - \n - CSharpExpression - (709:41,1 [21] CSharp8.cshtml) - IntermediateToken - (709:41,1 [21] CSharp8.cshtml) - CSharp - DoSomething!(Person!) - HtmlContent - (730:41,22 [4] CSharp8.cshtml) - IntermediateToken - (730:41,22 [4] CSharp8.cshtml) - Html - \n\n - CSharpCode - (746:43,12 [480] CSharp8.cshtml) - IntermediateToken - (746:43,12 [480] CSharp8.cshtml) - CSharp - \n enum TestEnum\n {\n First,\n Second\n }\n\n IDisposable GetLastDisposableInRange(Range range)\n {\n var disposables = (IDisposable[])ViewData["disposables"];\n return disposables[range][^1];\n }\n\n private Human? Person { get; set; }\n\n private Human?[]? People { get; set; }\n\n private Func? DoSomething { get; set; }\n\n private class Human\n {\n public string? Name { get; set; }\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml deleted file mode 100644 index 1c78883a10a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@{ - for(int i = 1; i <= 10; i++) { - Output.Write("

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

        "); - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml deleted file mode 100644 index 38417d481cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml +++ /dev/null @@ -1 +0,0 @@ -@{ \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs deleted file mode 100644 index 3c1f46fb0e2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html deleted file mode 100644 index 136d06384a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.diagnostics.txt deleted file mode 100644 index c3072c6248a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt deleted file mode 100644 index 764d204441a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt +++ /dev/null @@ -1,13 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [0] CodeBlockAtEOF.cshtml) - IntermediateToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt deleted file mode 100644 index 8500fe260a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (2:0,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml) -|| -Generated Location: (748:19,2 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.codegen.cs deleted file mode 100644 index 95ce16e337c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.codegen.cs +++ /dev/null @@ -1,18 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b4fbc3b07404cc5be74ae0ba920a16e9cf39a378" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b4fbc3b07404cc5be74ae0ba920a16e9cf39a378", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.diagnostics.txt deleted file mode 100644 index c3072c6248a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt deleted file mode 100644 index daf26922045..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt +++ /dev/null @@ -1,8 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [0] CodeBlockAtEOF.cshtml) - IntermediateToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml deleted file mode 100644 index 9c34a940ebf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@{ - var a = 1; foo - var b = 1; bar @(a+b) -} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs deleted file mode 100644 index b887486ba18..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - - var a = 1; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - - var b = 1; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - __o = a+b; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html deleted file mode 100644 index a6e01f1a0e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html +++ /dev/null @@ -1,4 +0,0 @@ - - foo - bar - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt deleted file mode 100644 index 8a220afc951..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - IntermediateToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; - HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - IntermediateToken - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - Html - foo - CSharpCode - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - IntermediateToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; - HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - IntermediateToken - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - Html - bar - CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - IntermediateToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b - CSharpCode - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - IntermediateToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt deleted file mode 100644 index 37054161693..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt +++ /dev/null @@ -1,26 +0,0 @@ -Source Location: (2:0,2 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml) -| - var a = 1; | -Generated Location: (768:19,2 [17] ) -| - var a = 1; | - -Source Location: (35:1,31 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml) -| - var b = 1; | -Generated Location: (987:27,31 [22] ) -| - var b = 1; | - -Source Location: (69:2,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml) -|a+b| -Generated Location: (1218:35,38 [3] ) -|a+b| - -Source Location: (80:2,40 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml) -| -| -Generated Location: (1442:42,49 [2] ) -| -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs deleted file mode 100644 index 59764e37723..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b794c71d64ba4731b2802f7d0dae1f863a9f9dd9" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"b794c71d64ba4731b2802f7d0dae1f863a9f9dd9", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - - var a = 1; - -#line default -#line hidden -#nullable disable - WriteLiteral("foo"); -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - - var b = 1; - -#line default -#line hidden -#nullable disable - WriteLiteral("bar "); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml" - Write(a+b); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt deleted file mode 100644 index 0c163f3a41d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - IntermediateToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; - HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - IntermediateToken - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - Html - foo - CSharpCode - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - IntermediateToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; - HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - IntermediateToken - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - Html - bar - CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - IntermediateToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b - CSharpCode - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - IntermediateToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs deleted file mode 100644 index 49483b617e2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml" - - for(int i = 1; i <= 10; i++) { - Output.Write("

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

        "); - } - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html deleted file mode 100644 index f857199dcf1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt deleted file mode 100644 index 2dadb8d1fae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt +++ /dev/null @@ -1,13 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [115] CodeBlock.cshtml) - IntermediateToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("

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

        ");\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt deleted file mode 100644 index 6d4378fb88d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (2:0,2 [115] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml) -| - for(int i = 1; i <= 10; i++) { - Output.Write("

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

        "); - } -| -Generated Location: (738:19,2 [115] ) -| - for(int i = 1; i <= 10; i++) { - Output.Write("

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

        "); - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs deleted file mode 100644 index d3255c7b036..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs +++ /dev/null @@ -1,28 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d570564dcb19afbfb9fcd1b8a7e339d22c0d0c97" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d570564dcb19afbfb9fcd1b8a7e339d22c0d0c97", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml" - - for(int i = 1; i <= 10; i++) { - Output.Write("

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

        "); - } - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt deleted file mode 100644 index f700c270327..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt +++ /dev/null @@ -1,8 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [115] CodeBlock.cshtml) - IntermediateToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("

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

        ");\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml deleted file mode 100644 index 546906282c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml +++ /dev/null @@ -1,38 +0,0 @@ -@addTagHelper "*, TestAssembly" - -@if (true) -{ - var checkbox = "checkbox"; - -
        -

        -

        -

        Set Time:

        - @if (false) - { -

        New Time:

        - } - else - { -

        Current Time:

        - - - } -

        -

        - @{ var @object = false;} - -

        -

        - -

        -

        - -

        -

        - -

        - @someMethod(@

        ) -

        -
        -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 8f32099009b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,307 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - if (true) -{ - var checkbox = "checkbox"; - - - -#line default -#line hidden -#nullable disable - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = @@(1+2); - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - if (false) - { - - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "text"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - - } - else - { - - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __o = checkbox; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Type = string.Empty; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - - - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __o = true ? "checkbox" : "anything"; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Type = string.Empty; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - - - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - if(true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Type = string.Empty; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - - } - -#line default -#line hidden -#nullable disable - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - var @object = false; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = (@object); - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __TestNamespace_InputTagHelper2.Checked = (DateTimeOffset.Now.Year > 2014); - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = -1970 + @DateTimeOffset.Now.Year; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = DateTimeOffset.Now.Year > 2014; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = @( DateTimeOffset.Now.Year ) > 2014 ; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = ("My age is this long.".Length); - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __o = someMethod(item => new Template(async(__razor_template_writer) => { - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - __TestNamespace_InputTagHelper2.Checked = checked; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = 123; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -} -)); - -#line default -#line hidden -#nullable disable - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = ; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.diagnostics.txt deleted file mode 100644 index fe2b80c9e0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml(36,17): Error RZ2006: Code blocks (e.g. @{var variable = 23;}) must not appear in non-string tag helper attribute values. - Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 30f540a77dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,308 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] ComplexTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] ComplexTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] ComplexTagHelpers.cshtml) - Html - \n\n - CSharpCode - (36:2,1 [52] ComplexTagHelpers.cshtml) - IntermediateToken - (36:2,1 [52] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n - HtmlContent - (88:6,4 [51] ComplexTagHelpers.cshtml) - IntermediateToken - (88:6,4 [4] ComplexTagHelpers.cshtml) - Html -
        - IntermediateToken - (129:6,45 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (139:7,8 [39] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (147:7,16 [8] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (147:7,16 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (149:7,18 [0] ComplexTagHelpers.cshtml) - CSharp - - CSharpExpression - (149:7,18 [6] ComplexTagHelpers.cshtml) - IntermediateToken - (149:7,18 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (150:7,19 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (151:7,20 [3] ComplexTagHelpers.cshtml) - CSharp - 1+2 - IntermediateToken - (154:7,23 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (164:7,33 [1] ComplexTagHelpers.cshtml) - IntermediateToken - (164:7,33 [1] ComplexTagHelpers.cshtml) - Html - @ - HtmlContent - (166:7,35 [6] ComplexTagHelpers.cshtml) - IntermediateToken - (166:7,35 [6] ComplexTagHelpers.cshtml) - Html - string - DefaultTagHelperExecute - - HtmlContent - (178:7,47 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (178:7,47 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (188:8,8 [531] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (226:8,46 [46] ComplexTagHelpers.cshtml) - IntermediateToken - (226:8,46 [14] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (240:9,12 [3] ComplexTagHelpers.cshtml) - Html -

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

        - IntermediateToken - (258:9,30 [14] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (273:10,13 [43] ComplexTagHelpers.cshtml) - IntermediateToken - (273:10,13 [43] ComplexTagHelpers.cshtml) - CSharp - if (false)\n {\n - TagHelper - (316:12,16 [83] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (319:12,19 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (319:12,19 [10] ComplexTagHelpers.cshtml) - Html - New Time: - TagHelper - (329:12,29 [66] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (342:12,42 [4] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (342:12,42 [4] ComplexTagHelpers.cshtml) - IntermediateToken - (342:12,42 [4] ComplexTagHelpers.cshtml) - Html - text - DefaultTagHelperProperty - (342:12,42 [4] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (342:12,42 [4] ComplexTagHelpers.cshtml) - IntermediateToken - (342:12,42 [4] ComplexTagHelpers.cshtml) - Html - text - DefaultTagHelperHtmlAttribute - - value - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (355:12,55 [0] ComplexTagHelpers.cshtml) - IntermediateToken - (355:12,55 [0] ComplexTagHelpers.cshtml) - Html - - DefaultTagHelperHtmlAttribute - - placeholder - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (370:12,70 [22] ComplexTagHelpers.cshtml) - IntermediateToken - (370:12,70 [22] ComplexTagHelpers.cshtml) - Html - Enter in a new time... - DefaultTagHelperExecute - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperExecute - - CSharpCode - (399:12,99 [66] ComplexTagHelpers.cshtml) - IntermediateToken - (399:12,99 [66] ComplexTagHelpers.cshtml) - CSharp - \n }\n else\n {\n - TagHelper - (465:16,16 [58] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (468:16,19 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (468:16,19 [14] ComplexTagHelpers.cshtml) - Html - Current Time: - TagHelper - (482:16,33 [37] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox - DefaultTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox - DefaultTagHelperProperty - (512:16,63 [4] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (512:16,63 [4] ComplexTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperExecute - - CSharpCode - (523:16,74 [18] ComplexTagHelpers.cshtml) - IntermediateToken - (523:16,74 [18] ComplexTagHelpers.cshtml) - CSharp - \n - TagHelper - (541:17,16 [50] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" - DefaultTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" - DefaultTagHelperExecute - - CSharpCode - (591:17,66 [18] ComplexTagHelpers.cshtml) - IntermediateToken - (591:17,66 [18] ComplexTagHelpers.cshtml) - CSharp - \n - TagHelper - (609:18,16 [81] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { - HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox - CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { - HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything - CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } - DefaultTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { - HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox - CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { - HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything - CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } - DefaultTagHelperExecute - - CSharpCode - (690:18,97 [15] ComplexTagHelpers.cshtml) - IntermediateToken - (690:18,97 [15] ComplexTagHelpers.cshtml) - CSharp - \n } - HtmlContent - (705:19,13 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (705:19,13 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - time - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (197:8,17 [7] ComplexTagHelpers.cshtml) - - IntermediateToken - (197:8,17 [7] ComplexTagHelpers.cshtml) - Html - Current - HtmlAttributeValue - (204:8,24 [6] ComplexTagHelpers.cshtml) - - IntermediateToken - (205:8,25 [5] ComplexTagHelpers.cshtml) - Html - Time: - CSharpExpressionAttributeValue - (210:8,30 [14] ComplexTagHelpers.cshtml) - - IntermediateToken - (212:8,32 [12] ComplexTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperExecute - - HtmlContent - (719:20,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (719:20,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (729:21,8 [181] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (816:21,95 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (816:21,95 [14] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (832:22,14 [21] ComplexTagHelpers.cshtml) - IntermediateToken - (832:22,14 [21] ComplexTagHelpers.cshtml) - CSharp - var @object = false; - HtmlContent - (856:23,0 [12] ComplexTagHelpers.cshtml) - IntermediateToken - (856:23,0 [12] ComplexTagHelpers.cshtml) - Html - - TagHelper - (868:23,12 [28] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (884:23,28 [10] ComplexTagHelpers.cshtml) - ChecKED - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (885:23,29 [9] ComplexTagHelpers.cshtml) - IntermediateToken - (885:23,29 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (886:23,30 [7] ComplexTagHelpers.cshtml) - CSharp - @object - IntermediateToken - (893:23,37 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperExecute - - HtmlContent - (896:23,40 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (896:23,40 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (741:21,20 [11] ComplexTagHelpers.cshtml) - IntermediateToken - (741:21,20 [11] ComplexTagHelpers.cshtml) - Html - first value - DefaultTagHelperProperty - (759:21,38 [31] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (760:21,39 [23] ComplexTagHelpers.cshtml) - IntermediateToken - (760:21,39 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - IntermediateToken - (783:21,62 [2] ComplexTagHelpers.cshtml) - CSharp - - - IntermediateToken - (785:21,64 [5] ComplexTagHelpers.cshtml) - CSharp - 1970 - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (801:21,80 [12] ComplexTagHelpers.cshtml) - IntermediateToken - (801:21,80 [12] ComplexTagHelpers.cshtml) - Html - second value - DefaultTagHelperExecute - - HtmlContent - (910:24,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (910:24,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (920:25,8 [155] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (962:25,50 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (962:25,50 [14] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (976:26,12 [85] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (992:26,28 [5] ComplexTagHelpers.cshtml) - IntermediateToken - (992:26,28 [5] ComplexTagHelpers.cshtml) - Html - hello - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (1008:26,44 [5] ComplexTagHelpers.cshtml) - IntermediateToken - (1008:26,44 [5] ComplexTagHelpers.cshtml) - Html - world - DefaultTagHelperProperty - (1024:26,60 [33] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (1025:26,61 [32] ComplexTagHelpers.cshtml) - IntermediateToken - (1025:26,61 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (1026:26,62 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 - IntermediateToken - (1056:26,92 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperExecute - - HtmlContent - (1061:26,97 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1061:26,97 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (928:25,16 [32] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (928:25,16 [5] ComplexTagHelpers.cshtml) - CSharp - -1970 - IntermediateToken - (933:25,21 [2] ComplexTagHelpers.cshtml) - CSharp - + - IntermediateToken - (935:25,23 [1] ComplexTagHelpers.cshtml) - CSharp - - CSharpExpression - (936:25,24 [24] ComplexTagHelpers.cshtml) - IntermediateToken - (936:25,24 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (937:25,25 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - DefaultTagHelperExecute - - HtmlContent - (1075:27,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1075:27,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1085:28,8 [116] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (1125:28,48 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (1125:28,48 [14] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1139:29,12 [48] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (1155:29,28 [30] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1155:29,28 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 - DefaultTagHelperExecute - - HtmlContent - (1187:29,60 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1187:29,60 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1093:28,16 [30] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1093:28,16 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year\-1970 - DefaultTagHelperExecute - - HtmlContent - (1201:30,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1201:30,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1211:31,8 [133] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (1253:31,50 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (1253:31,50 [14] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1267:32,12 [63] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (1283:32,28 [43] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1283:32,28 [3] ComplexTagHelpers.cshtml) - CSharp - - CSharpExpression - (1286:32,31 [30] ComplexTagHelpers.cshtml) - IntermediateToken - (1286:32,31 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (1287:32,32 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (1288:32,33 [27] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - IntermediateToken - (1315:32,60 [1] ComplexTagHelpers.cshtml) - CSharp - ) - IntermediateToken - (1316:32,61 [2] ComplexTagHelpers.cshtml) - CSharp - > - IntermediateToken - (1318:32,63 [5] ComplexTagHelpers.cshtml) - CSharp - 2014 - IntermediateToken - (1323:32,68 [3] ComplexTagHelpers.cshtml) - CSharp - - DefaultTagHelperExecute - - HtmlContent - (1330:32,75 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1330:32,75 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1219:31,16 [32] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (1220:31,17 [31] ComplexTagHelpers.cshtml) - IntermediateToken - (1220:31,17 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (1221:31,18 [29] ComplexTagHelpers.cshtml) - CSharp - "My age is this long.".Length - IntermediateToken - (1250:31,47 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperExecute - - HtmlContent - (1344:33,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1344:33,12 [10] ComplexTagHelpers.cshtml) - Html - \n - CSharpExpression - (1355:34,9 [69] ComplexTagHelpers.cshtml) - IntermediateToken - (1355:34,9 [11] ComplexTagHelpers.cshtml) - CSharp - someMethod( - Template - (1367:34,21 [57] ComplexTagHelpers.cshtml) - TagHelper - (1367:34,21 [57] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - TagHelper - (1394:34,48 [26] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (1409:34,63 [8] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (1410:34,64 [7] ComplexTagHelpers.cshtml) - IntermediateToken - (1410:34,64 [7] ComplexTagHelpers.cshtml) - CSharp - checked - DefaultTagHelperExecute - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1375:34,29 [3] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1375:34,29 [3] ComplexTagHelpers.cshtml) - CSharp - 123 - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (1387:34,41 [5] ComplexTagHelpers.cshtml) - IntermediateToken - (1387:34,41 [5] ComplexTagHelpers.cshtml) - Html - hello - DefaultTagHelperExecute - - IntermediateToken - (1424:34,78 [1] ComplexTagHelpers.cshtml) - CSharp - ) - HtmlContent - (1425:34,79 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1425:34,79 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1435:35,8 [22] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1443:35,16 [8] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - CSharpCode - (1445:35,18 [5] ComplexTagHelpers.cshtml) - IntermediateToken - (1445:35,18 [5] ComplexTagHelpers.cshtml) - CSharp - 1 + 2 - DefaultTagHelperExecute - - HtmlContent - (1457:35,30 [12] ComplexTagHelpers.cshtml) - IntermediateToken - (1457:35,30 [6] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (1463:36,4 [6] ComplexTagHelpers.cshtml) - Html -
        - CSharpCode - (1469:36,10 [3] ComplexTagHelpers.cshtml) - IntermediateToken - (1469:36,10 [3] ComplexTagHelpers.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index f3b69d6fd2e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,293 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1195:20,37 [17] ) -|"*, TestAssembly"| - -Source Location: (36:2,1 [52] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|if (true) -{ - var checkbox = "checkbox"; - - | -Generated Location: (1692:37,1 [52] ) -|if (true) -{ - var checkbox = "checkbox"; - - | - -Source Location: (147:7,16 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|@| -Generated Location: (2036:49,33 [1] ) -|@| - -Source Location: (149:7,18 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|| -Generated Location: (2037:49,34 [0] ) -|| - -Source Location: (149:7,18 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|@| -Generated Location: (2037:49,34 [1] ) -|@| - -Source Location: (150:7,19 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|(| -Generated Location: (2038:49,35 [1] ) -|(| - -Source Location: (151:7,20 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|1+2| -Generated Location: (2039:49,36 [3] ) -|1+2| - -Source Location: (154:7,23 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|)| -Generated Location: (2042:49,39 [1] ) -|)| - -Source Location: (273:10,13 [43] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|if (false) - { - | -Generated Location: (2298:57,13 [43] ) -|if (false) - { - | - -Source Location: (399:12,99 [66] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| - } - else - { - | -Generated Location: (3208:73,99 [66] ) -| - } - else - { - | - -Source Location: (495:16,46 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|checkbox| -Generated Location: (3693:86,46 [8] ) -|checkbox| - -Source Location: (512:16,63 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|true| -Generated Location: (4084:95,63 [4] ) -|true| - -Source Location: (523:16,74 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| - | -Generated Location: (4575:105,74 [18] ) -| - | - -Source Location: (556:17,31 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|true ? "checkbox" : "anything"| -Generated Location: (4997:115,31 [30] ) -|true ? "checkbox" : "anything"| - -Source Location: (591:17,66 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| - | -Generated Location: (5489:125,66 [18] ) -| - | - -Source Location: (623:18,30 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|if(true) { | -Generated Location: (5910:135,30 [11] ) -|if(true) { | - -Source Location: (655:18,62 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| } else { | -Generated Location: (6148:142,62 [10] ) -| } else { | - -Source Location: (686:18,93 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| }| -Generated Location: (6416:149,93 [2] ) -| }| - -Source Location: (690:18,97 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| - }| -Generated Location: (6910:159,97 [15] ) -| - }| - -Source Location: (212:8,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (7216:168,32 [12] ) -|DateTime.Now| - -Source Location: (832:22,14 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| var @object = false;| -Generated Location: (7484:176,14 [21] ) -| var @object = false;| - -Source Location: (885:23,29 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|(| -Generated Location: (7920:185,42 [1] ) -|(| - -Source Location: (886:23,30 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|@object| -Generated Location: (7921:185,43 [7] ) -|@object| - -Source Location: (893:23,37 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|)| -Generated Location: (7928:185,50 [1] ) -|)| - -Source Location: (760:21,39 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|DateTimeOffset.Now.Year| -Generated Location: (8304:194,38 [23] ) -|DateTimeOffset.Now.Year| - -Source Location: (783:21,62 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| -| -Generated Location: (8327:194,61 [2] ) -| -| - -Source Location: (785:21,64 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| 1970| -Generated Location: (8329:194,63 [5] ) -| 1970| - -Source Location: (1025:26,61 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|(| -Generated Location: (8844:204,60 [1] ) -|(| - -Source Location: (1026:26,62 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|DateTimeOffset.Now.Year > 2014| -Generated Location: (8845:204,61 [30] ) -|DateTimeOffset.Now.Year > 2014| - -Source Location: (1056:26,92 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|)| -Generated Location: (8875:204,91 [1] ) -|)| - -Source Location: (928:25,16 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|-1970| -Generated Location: (9246:213,33 [5] ) -|-1970| - -Source Location: (933:25,21 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| +| -Generated Location: (9251:213,38 [2] ) -| +| - -Source Location: (935:25,23 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| | -Generated Location: (9253:213,40 [1] ) -| | - -Source Location: (936:25,24 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|@| -Generated Location: (9254:213,41 [1] ) -|@| - -Source Location: (937:25,25 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|DateTimeOffset.Now.Year| -Generated Location: (9255:213,42 [23] ) -|DateTimeOffset.Now.Year| - -Source Location: (1155:29,28 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|DateTimeOffset.Now.Year > 2014| -Generated Location: (9770:223,42 [30] ) -|DateTimeOffset.Now.Year > 2014| - -Source Location: (1093:28,16 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|DateTimeOffset.Now.Year - 1970| -Generated Location: (10170:232,33 [30] ) -|DateTimeOffset.Now.Year - 1970| - -Source Location: (1283:32,28 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| | -Generated Location: (10692:242,42 [3] ) -| | - -Source Location: (1286:32,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|@| -Generated Location: (10695:242,45 [1] ) -|@| - -Source Location: (1287:32,32 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|(| -Generated Location: (10696:242,46 [1] ) -|(| - -Source Location: (1288:32,33 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| DateTimeOffset.Now.Year | -Generated Location: (10697:242,47 [27] ) -| DateTimeOffset.Now.Year | - -Source Location: (1315:32,60 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|)| -Generated Location: (10724:242,74 [1] ) -|)| - -Source Location: (1316:32,61 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| >| -Generated Location: (10725:242,75 [2] ) -| >| - -Source Location: (1318:32,63 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| 2014| -Generated Location: (10727:242,77 [5] ) -| 2014| - -Source Location: (1323:32,68 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| | -Generated Location: (10732:242,82 [3] ) -| | - -Source Location: (1220:31,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|(| -Generated Location: (11105:251,33 [1] ) -|(| - -Source Location: (1221:31,18 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|"My age is this long.".Length| -Generated Location: (11106:251,34 [29] ) -|"My age is this long.".Length| - -Source Location: (1250:31,47 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|)| -Generated Location: (11135:251,63 [1] ) -|)| - -Source Location: (1355:34,9 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|someMethod(| -Generated Location: (11387:259,9 [11] ) -|someMethod(| - -Source Location: (1410:34,64 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|checked| -Generated Location: (11824:264,63 [7] ) -|checked| - -Source Location: (1375:34,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|123| -Generated Location: (12185:273,33 [3] ) -|123| - -Source Location: (1424:34,78 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -|)| -Generated Location: (12313:280,1 [1] ) -|)| - -Source Location: (1469:36,10 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml) -| -}| -Generated Location: (12860:296,10 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs deleted file mode 100644 index e0c1d6acf6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,566 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "ab167e80e48e48d9984ecd76158a2d87f90f3460" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"ab167e80e48e48d9984ecd76158a2d87f90f3460", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", new global::Microsoft.AspNetCore.Html.HtmlString(""), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("placeholder", new global::Microsoft.AspNetCore.Html.HtmlString("Enter in a new time..."), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("unbound", new global::Microsoft.AspNetCore.Html.HtmlString("first value"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("unbound", new global::Microsoft.AspNetCore.Html.HtmlString("second value"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("unbound", new global::Microsoft.AspNetCore.Html.HtmlString("hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("unbound", new global::Microsoft.AspNetCore.Html.HtmlString("world"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - if (true) -{ - var checkbox = "checkbox"; - - -#line default -#line hidden -#nullable disable - WriteLiteral("
        \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = @@(1+2); - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - BeginWriteTagHelperAttribute(); - WriteLiteral("@"); - WriteLiteral("string"); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("class", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n

        Set Time:

        \r\n"); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - if (false) - { - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("New Time: "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - } - else - { - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Current Time: "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - WriteLiteral(checkbox); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - WriteLiteral(true ? "checkbox" : "anything"); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("tYPe", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - if(true) { - -#line default -#line hidden -#nullable disable - WriteLiteral("checkbox"); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable - WriteLiteral("anything"); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "time", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 197, "Current", 197, 7, true); - AddHtmlAttributeValue(" ", 204, "Time:", 205, 6, true); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -AddHtmlAttributeValue(" ", 210, DateTime.Now, 211, 13, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n"); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - var @object = false; - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = (@object); - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("ChecKED", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6); -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = (DateTimeOffset.Now.Year > 2014); - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = -1970 + @DateTimeOffset.Now.Year; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = DateTimeOffset.Now.Year > 2014; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = @( DateTimeOffset.Now.Year ) > 2014 ; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = ("My age is this long.".Length); - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" - Write(someMethod(item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = checked; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = 123; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - PopWriter(); -} -))); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = ; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        \r\n"); -#nullable restore -#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml" -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.diagnostics.txt deleted file mode 100644 index fe2b80c9e0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml(36,17): Error RZ2006: Code blocks (e.g. @{var variable = 23;}) must not appear in non-string tag helper attribute values. - Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt deleted file mode 100644 index 79168e02adf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,309 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTagHelpers_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - text - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - value - - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - placeholder - Enter in a new time... - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - unbound - first value - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_4 - unbound - second value - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_5 - unbound - hello - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_6 - unbound - world - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_7 - class - hello - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (36:2,1 [48] ComplexTagHelpers.cshtml) - IntermediateToken - (36:2,1 [48] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n - HtmlContent - (84:6,0 [55] ComplexTagHelpers.cshtml) - IntermediateToken - (84:6,0 [4] ComplexTagHelpers.cshtml) - Html - - IntermediateToken - (88:6,4 [4] ComplexTagHelpers.cshtml) - Html -
        - IntermediateToken - (129:6,45 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (139:7,8 [39] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (147:7,16 [8] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (147:7,16 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (149:7,18 [0] ComplexTagHelpers.cshtml) - CSharp - - CSharpExpression - (149:7,18 [6] ComplexTagHelpers.cshtml) - IntermediateToken - (149:7,18 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (150:7,19 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (151:7,20 [3] ComplexTagHelpers.cshtml) - CSharp - 1+2 - IntermediateToken - (154:7,23 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (164:7,33 [1] ComplexTagHelpers.cshtml) - IntermediateToken - (164:7,33 [1] ComplexTagHelpers.cshtml) - Html - @ - HtmlContent - (166:7,35 [6] ComplexTagHelpers.cshtml) - IntermediateToken - (166:7,35 [6] ComplexTagHelpers.cshtml) - Html - string - DefaultTagHelperExecute - - HtmlContent - (178:7,47 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (178:7,47 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (188:8,8 [531] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (226:8,46 [34] ComplexTagHelpers.cshtml) - IntermediateToken - (226:8,46 [14] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (240:9,12 [3] ComplexTagHelpers.cshtml) - Html -

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

        - IntermediateToken - (258:9,30 [2] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (260:10,0 [12] ComplexTagHelpers.cshtml) - IntermediateToken - (260:10,0 [12] ComplexTagHelpers.cshtml) - CSharp - - CSharpCode - (273:10,13 [27] ComplexTagHelpers.cshtml) - IntermediateToken - (273:10,13 [27] ComplexTagHelpers.cshtml) - CSharp - if (false)\n {\n - HtmlContent - (300:12,0 [16] ComplexTagHelpers.cshtml) - IntermediateToken - (300:12,0 [16] ComplexTagHelpers.cshtml) - Html - - TagHelper - (316:12,16 [83] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (319:12,19 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (319:12,19 [10] ComplexTagHelpers.cshtml) - Html - New Time: - TagHelper - (329:12,29 [66] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (342:12,42 [4] ComplexTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (342:12,42 [4] ComplexTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperExecute - - HtmlContent - (399:12,99 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (399:12,99 [2] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (401:13,0 [48] ComplexTagHelpers.cshtml) - IntermediateToken - (401:13,0 [48] ComplexTagHelpers.cshtml) - CSharp - }\n else\n {\n - HtmlContent - (449:16,0 [16] ComplexTagHelpers.cshtml) - IntermediateToken - (449:16,0 [16] ComplexTagHelpers.cshtml) - Html - - TagHelper - (465:16,16 [58] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (468:16,19 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (468:16,19 [14] ComplexTagHelpers.cshtml) - Html - Current Time: - TagHelper - (482:16,33 [37] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox - DefaultTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox - DefaultTagHelperProperty - (512:16,63 [4] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (512:16,63 [4] ComplexTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperExecute - - HtmlContent - (523:16,74 [18] ComplexTagHelpers.cshtml) - IntermediateToken - (523:16,74 [2] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (525:17,0 [16] ComplexTagHelpers.cshtml) - Html - - TagHelper - (541:17,16 [50] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" - DefaultTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" - DefaultTagHelperExecute - - HtmlContent - (591:17,66 [18] ComplexTagHelpers.cshtml) - IntermediateToken - (591:17,66 [2] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (593:18,0 [16] ComplexTagHelpers.cshtml) - Html - - TagHelper - (609:18,16 [81] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { - HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox - CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { - HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything - CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } - DefaultTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.SingleQuotes - CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { - HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox - CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { - HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything - CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } - DefaultTagHelperExecute - - HtmlContent - (690:18,97 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (690:18,97 [2] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (692:19,0 [15] ComplexTagHelpers.cshtml) - IntermediateToken - (692:19,0 [15] ComplexTagHelpers.cshtml) - CSharp - }\n - HtmlContent - (707:20,0 [8] ComplexTagHelpers.cshtml) - IntermediateToken - (707:20,0 [8] ComplexTagHelpers.cshtml) - Html - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - time - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (197:8,17 [7] ComplexTagHelpers.cshtml) - - IntermediateToken - (197:8,17 [7] ComplexTagHelpers.cshtml) - Html - Current - HtmlAttributeValue - (204:8,24 [6] ComplexTagHelpers.cshtml) - - IntermediateToken - (205:8,25 [5] ComplexTagHelpers.cshtml) - Html - Time: - CSharpExpressionAttributeValue - (210:8,30 [14] ComplexTagHelpers.cshtml) - - IntermediateToken - (212:8,32 [12] ComplexTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperExecute - - HtmlContent - (719:20,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (719:20,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (729:21,8 [181] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (816:21,95 [2] ComplexTagHelpers.cshtml) - IntermediateToken - (816:21,95 [2] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (818:22,0 [12] ComplexTagHelpers.cshtml) - IntermediateToken - (818:22,0 [12] ComplexTagHelpers.cshtml) - CSharp - - CSharpCode - (832:22,14 [21] ComplexTagHelpers.cshtml) - IntermediateToken - (832:22,14 [21] ComplexTagHelpers.cshtml) - CSharp - var @object = false; - HtmlContent - (856:23,0 [12] ComplexTagHelpers.cshtml) - IntermediateToken - (856:23,0 [12] ComplexTagHelpers.cshtml) - Html - - TagHelper - (868:23,12 [28] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (884:23,28 [10] ComplexTagHelpers.cshtml) - ChecKED - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (885:23,29 [9] ComplexTagHelpers.cshtml) - IntermediateToken - (885:23,29 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (886:23,30 [7] ComplexTagHelpers.cshtml) - CSharp - @object - IntermediateToken - (893:23,37 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperExecute - - HtmlContent - (896:23,40 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (896:23,40 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - DefaultTagHelperProperty - (759:21,38 [31] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (760:21,39 [23] ComplexTagHelpers.cshtml) - IntermediateToken - (760:21,39 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - IntermediateToken - (783:21,62 [2] ComplexTagHelpers.cshtml) - CSharp - - - IntermediateToken - (785:21,64 [5] ComplexTagHelpers.cshtml) - CSharp - 1970 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_4 - DefaultTagHelperExecute - - HtmlContent - (910:24,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (910:24,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (920:25,8 [155] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (962:25,50 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (962:25,50 [14] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (976:26,12 [85] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 - DefaultTagHelperProperty - (1024:26,60 [33] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (1025:26,61 [32] ComplexTagHelpers.cshtml) - IntermediateToken - (1025:26,61 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (1026:26,62 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 - IntermediateToken - (1056:26,92 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperExecute - - HtmlContent - (1061:26,97 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1061:26,97 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (928:25,16 [32] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (928:25,16 [5] ComplexTagHelpers.cshtml) - CSharp - -1970 - IntermediateToken - (933:25,21 [2] ComplexTagHelpers.cshtml) - CSharp - + - IntermediateToken - (935:25,23 [1] ComplexTagHelpers.cshtml) - CSharp - - CSharpExpression - (936:25,24 [24] ComplexTagHelpers.cshtml) - IntermediateToken - (936:25,24 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (937:25,25 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - DefaultTagHelperExecute - - HtmlContent - (1075:27,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1075:27,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1085:28,8 [116] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (1125:28,48 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (1125:28,48 [14] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1139:29,12 [48] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (1155:29,28 [30] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1155:29,28 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 - DefaultTagHelperExecute - - HtmlContent - (1187:29,60 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1187:29,60 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1093:28,16 [30] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1093:28,16 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year\-1970 - DefaultTagHelperExecute - - HtmlContent - (1201:30,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1201:30,12 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1211:31,8 [133] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (1253:31,50 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (1253:31,50 [14] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1267:32,12 [63] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (1283:32,28 [43] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1283:32,28 [3] ComplexTagHelpers.cshtml) - CSharp - - CSharpExpression - (1286:32,31 [30] ComplexTagHelpers.cshtml) - IntermediateToken - (1286:32,31 [1] ComplexTagHelpers.cshtml) - CSharp - @ - IntermediateToken - (1287:32,32 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (1288:32,33 [27] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - IntermediateToken - (1315:32,60 [1] ComplexTagHelpers.cshtml) - CSharp - ) - IntermediateToken - (1316:32,61 [2] ComplexTagHelpers.cshtml) - CSharp - > - IntermediateToken - (1318:32,63 [5] ComplexTagHelpers.cshtml) - CSharp - 2014 - IntermediateToken - (1323:32,68 [3] ComplexTagHelpers.cshtml) - CSharp - - DefaultTagHelperExecute - - HtmlContent - (1330:32,75 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1330:32,75 [10] ComplexTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1219:31,16 [32] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (1220:31,17 [31] ComplexTagHelpers.cshtml) - IntermediateToken - (1220:31,17 [1] ComplexTagHelpers.cshtml) - CSharp - ( - IntermediateToken - (1221:31,18 [29] ComplexTagHelpers.cshtml) - CSharp - "My age is this long.".Length - IntermediateToken - (1250:31,47 [1] ComplexTagHelpers.cshtml) - CSharp - ) - DefaultTagHelperExecute - - HtmlContent - (1344:33,12 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1344:33,12 [2] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (1346:34,0 [8] ComplexTagHelpers.cshtml) - Html - - CSharpExpression - (1355:34,9 [69] ComplexTagHelpers.cshtml) - IntermediateToken - (1355:34,9 [11] ComplexTagHelpers.cshtml) - CSharp - someMethod( - Template - (1367:34,21 [57] ComplexTagHelpers.cshtml) - TagHelper - (1367:34,21 [57] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - TagHelper - (1394:34,48 [26] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (1409:34,63 [8] ComplexTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (1410:34,64 [7] ComplexTagHelpers.cshtml) - IntermediateToken - (1410:34,64 [7] ComplexTagHelpers.cshtml) - CSharp - checked - DefaultTagHelperExecute - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1375:34,29 [3] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (1375:34,29 [3] ComplexTagHelpers.cshtml) - CSharp - 123 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - DefaultTagHelperExecute - - IntermediateToken - (1424:34,78 [1] ComplexTagHelpers.cshtml) - CSharp - ) - HtmlContent - (1425:34,79 [10] ComplexTagHelpers.cshtml) - IntermediateToken - (1425:34,79 [10] ComplexTagHelpers.cshtml) - Html - \n - TagHelper - (1435:35,8 [22] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (1443:35,16 [8] ComplexTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - CSharpCode - (1445:35,18 [5] ComplexTagHelpers.cshtml) - IntermediateToken - (1445:35,18 [5] ComplexTagHelpers.cshtml) - CSharp - 1 + 2 - DefaultTagHelperExecute - - HtmlContent - (1457:35,30 [14] ComplexTagHelpers.cshtml) - IntermediateToken - (1457:35,30 [6] ComplexTagHelpers.cshtml) - Html - \n - IntermediateToken - (1463:36,4 [6] ComplexTagHelpers.cshtml) - Html -
        - IntermediateToken - (1469:36,10 [2] ComplexTagHelpers.cshtml) - Html - \n - CSharpCode - (1471:37,0 [1] ComplexTagHelpers.cshtml) - IntermediateToken - (1471:37,0 [1] ComplexTagHelpers.cshtml) - CSharp - } diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml deleted file mode 100644 index be1a9c20797..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@{ - var ch = true; - var cls = "bar"; -
        -

        -

        -

        - - -

        - - - - -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs deleted file mode 100644 index d34404fec1b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs +++ /dev/null @@ -1,189 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - var ch = true; - var cls = "bar"; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = cls; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = cls; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = cls; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = ch; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = ch; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - if(cls != null) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = cls; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = Url.Content("~/Scripts/jquery-1.6.2.min.js"); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - __o = Url.Content("~/Scripts/modernizr-2.0.6-development-only.js"); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html deleted file mode 100644 index 46a4402680b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - -

        -

        -

        - - -

        - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt deleted file mode 100644 index 64a68478909..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt +++ /dev/null @@ -1,128 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [48] ConditionalAttributes.cshtml) - IntermediateToken - (2:0,2 [48] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n - HtmlContent - (50:3,4 [16] ConditionalAttributes.cshtml) - IntermediateToken - (50:3,4 [2] ConditionalAttributes.cshtml) - Html - - CSharpCode - (66:3,20 [6] ConditionalAttributes.cshtml) - IntermediateToken - (66:3,20 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (72:4,4 [2] ConditionalAttributes.cshtml) - IntermediateToken - (72:4,4 [2] ConditionalAttributes.cshtml) - Html -

        - CSharpCode - (90:4,22 [6] ConditionalAttributes.cshtml) - IntermediateToken - (90:4,22 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (96:5,4 [2] ConditionalAttributes.cshtml) - IntermediateToken - (96:5,4 [2] ConditionalAttributes.cshtml) - Html -

        - CSharpCode - (118:5,26 [6] ConditionalAttributes.cshtml) - IntermediateToken - (118:5,26 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (124:6,4 [2] ConditionalAttributes.cshtml) - IntermediateToken - (124:6,4 [2] ConditionalAttributes.cshtml) - Html -

        - CSharpCode - (146:6,26 [6] ConditionalAttributes.cshtml) - IntermediateToken - (146:6,26 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (152:7,4 [22] ConditionalAttributes.cshtml) - IntermediateToken - (152:7,4 [6] ConditionalAttributes.cshtml) - Html - - CSharpCode - (191:7,43 [6] ConditionalAttributes.cshtml) - IntermediateToken - (191:7,43 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (197:8,4 [22] ConditionalAttributes.cshtml) - IntermediateToken - (197:8,4 [6] ConditionalAttributes.cshtml) - Html - - CSharpCode - (240:8,47 [6] ConditionalAttributes.cshtml) - IntermediateToken - (240:8,47 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (246:9,4 [2] ConditionalAttributes.cshtml) - IntermediateToken - (246:9,4 [2] ConditionalAttributes.cshtml) - Html -

        - CSharpCode - (285:9,43 [6] ConditionalAttributes.cshtml) - IntermediateToken - (285:9,43 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (291:10,4 [18] ConditionalAttributes.cshtml) - IntermediateToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - - CSharpCode - (309:10,22 [6] ConditionalAttributes.cshtml) - IntermediateToken - (309:10,22 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (315:11,4 [7] ConditionalAttributes.cshtml) - IntermediateToken - (315:11,4 [7] ConditionalAttributes.cshtml) - Html - - CSharpCode - (407:11,96 [6] ConditionalAttributes.cshtml) - IntermediateToken - (407:11,96 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (413:12,4 [7] ConditionalAttributes.cshtml) - IntermediateToken - (413:12,4 [7] ConditionalAttributes.cshtml) - Html - - CSharpCode - (521:12,112 [6] ConditionalAttributes.cshtml) - IntermediateToken - (521:12,112 [6] ConditionalAttributes.cshtml) - CSharp - \n - HtmlContent - (527:13,4 [111] ConditionalAttributes.cshtml) - IntermediateToken - (527:13,4 [7] ConditionalAttributes.cshtml) - Html - - CSharpCode - (638:13,115 [2] ConditionalAttributes.cshtml) - IntermediateToken - (638:13,115 [2] ConditionalAttributes.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt deleted file mode 100644 index 688c94ed168..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt +++ /dev/null @@ -1,138 +0,0 @@ -Source Location: (2:0,2 [48] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - var ch = true; - var cls = "bar"; - | -Generated Location: (762:19,2 [48] ) -| - var ch = true; - var cls = "bar"; - | - -Source Location: (66:3,20 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (998:29,20 [6] ) -| - | - -Source Location: (83:4,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|cls| -Generated Location: (1187:37,15 [3] ) -|cls| - -Source Location: (90:4,22 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (1381:44,22 [6] ) -| - | - -Source Location: (111:5,19 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|cls| -Generated Location: (1574:52,19 [3] ) -|cls| - -Source Location: (118:5,26 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (1772:59,26 [6] ) -| - | - -Source Location: (135:6,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|cls| -Generated Location: (1961:67,15 [3] ) -|cls| - -Source Location: (146:6,26 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (2159:74,26 [6] ) -| - | - -Source Location: (185:7,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|ch| -Generated Location: (2370:82,37 [2] ) -|ch| - -Source Location: (191:7,43 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (2584:89,43 [6] ) -| - | - -Source Location: (234:8,41 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|ch| -Generated Location: (2799:97,41 [2] ) -|ch| - -Source Location: (240:8,47 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (3017:104,47 [6] ) -| - | - -Source Location: (257:9,15 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|if(cls != null) { | -Generated Location: (3207:112,15 [18] ) -|if(cls != null) { | - -Source Location: (276:9,34 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|cls| -Generated Location: (3428:119,34 [3] ) -|cls| - -Source Location: (279:9,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| }| -Generated Location: (3638:126,37 [2] ) -| }| - -Source Location: (285:9,43 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (3852:133,43 [6] ) -| - | - -Source Location: (309:10,22 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (4049:141,22 [6] ) -| - | - -Source Location: (329:11,18 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|Url.Content("~/Scripts/jquery-1.6.2.min.js")| -Generated Location: (4242:149,18 [44] ) -|Url.Content("~/Scripts/jquery-1.6.2.min.js")| - -Source Location: (407:11,96 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (4552:156,96 [6] ) -| - | - -Source Location: (427:12,18 [60] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -|Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")| -Generated Location: (4745:164,18 [60] ) -|Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")| - -Source Location: (521:12,112 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| - | -Generated Location: (5087:171,112 [6] ) -| - | - -Source Location: (638:13,115 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml) -| -| -Generated Location: (5377:179,115 [2] ) -| -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs deleted file mode 100644 index af91e920b0a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,130 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f0a97e23ecfbaaaa77b528650156cb123ebdbe60" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f0a97e23ecfbaaaa77b528650156cb123ebdbe60", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml" - - var ch = true; - var cls = "bar"; - -#line default -#line hidden -#nullable disable - WriteLiteral(" \r\n \r\n - IntermediateToken - (66:3,20 [2] ConditionalAttributes.cshtml) - Html - \n - IntermediateToken - (68:4,0 [4] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (72:4,4 [2] ConditionalAttributes.cshtml) - Html -

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

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

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

        - IntermediateToken - (285:9,43 [2] ConditionalAttributes.cshtml) - Html - \n - IntermediateToken - (287:10,0 [4] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (309:10,22 [2] ConditionalAttributes.cshtml) - Html - \n - IntermediateToken - (311:11,0 [4] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (315:11,4 [7] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (407:11,96 [2] ConditionalAttributes.cshtml) - Html - \n - IntermediateToken - (409:12,0 [4] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (413:12,4 [7] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (521:12,112 [2] ConditionalAttributes.cshtml) - Html - \n - IntermediateToken - (523:13,0 [4] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (527:13,4 [7] ConditionalAttributes.cshtml) - Html - - IntermediateToken - (638:13,115 [2] ConditionalAttributes.cshtml) - Html - \n - CSharpCode - (640:14,0 [0] ConditionalAttributes.cshtml) - IntermediateToken - (640:14,0 [0] ConditionalAttributes.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml deleted file mode 100644 index c71c637b144..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml +++ /dev/null @@ -1,13 +0,0 @@ -@addTagHelper "*, TestAssembly" - -2 TagHelpers. -1 TagHelper. -2 TagHelpers -2 TagHelpers -0 TagHelpers. -1 TagHelper -1 TagHelper -1 TagHelper - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs deleted file mode 100644 index 9b80cf81132..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,250 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "385650281a1d9679c38ffc205756c3c26f6927e7" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CssSelectorTagHelperAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"385650281a1d9679c38ffc205756c3c26f6927e7", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CssSelectorTagHelperAttributes_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/?hello=world"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/?hello=world@false"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", new global::Microsoft.AspNetCore.Html.HtmlString("3 TagHelpers"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "texty", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", new global::Microsoft.AspNetCore.Html.HtmlString("2 TagHelper"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.ATagHelper __TestNamespace_ATagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - private global::TestNamespace.ATagHelperMultipleSelectors __TestNamespace_ATagHelperMultipleSelectors; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - private global::TestNamespace.CatchAllTagHelper2 __TestNamespace_CatchAllTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("2 TagHelpers."); - } - ); - __TestNamespace_ATagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_ATagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("1 TagHelper."); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("2 TagHelpers"); - } - ); - __TestNamespace_ATagHelperMultipleSelectors = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_ATagHelperMultipleSelectors); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("2 TagHelpers"); - } - ); - __TestNamespace_ATagHelperMultipleSelectors = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_ATagHelperMultipleSelectors); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 153, "~/", 153, 2, true); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml" -AddHtmlAttributeValue("", 155, false, 155, 6, false); - -#line default -#line hidden -#nullable disable - AddHtmlAttributeValue("", 161, "?hello=world", 161, 12, true); - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n0 TagHelpers.\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("1 TagHelper"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 234, "~/", 234, 2, true); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml" -AddHtmlAttributeValue("", 236, false, 236, 6, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("1 TagHelper"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("1 TagHelper"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - AddHtmlAttributeValue("", 317, "~/?hello=world", 317, 14, true); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml" -AddHtmlAttributeValue(" ", 331, false, 332, 6, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_CatchAllTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_CatchAllTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper2); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_6.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_CatchAllTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper2); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_7.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt deleted file mode 100644 index ef34c24d711..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt +++ /dev/null @@ -1,137 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CssSelectorTagHelperAttributes_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - href - ~/ - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - href - ~/hello - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - href - ~/?hello=world - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - href - ~/?hello=world@false - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_4 - type - text - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_5 - value - 3 TagHelpers - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_6 - type - texty - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_7 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_8 - value - 2 TagHelper - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.ATagHelper - __TestNamespace_ATagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - FieldDeclaration - - private - global::TestNamespace.ATagHelperMultipleSelectors - __TestNamespace_ATagHelperMultipleSelectors - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper2 - __TestNamespace_CatchAllTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (35:2,0 [30] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (48:2,13 [13] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (48:2,13 [13] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers. - DefaultTagHelperCreate - - TestNamespace.ATagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperExecute - - HtmlContent - (65:2,30 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (65:2,30 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (67:3,0 [32] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (83:3,16 [12] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (83:3,16 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper. - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (99:3,32 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (99:3,32 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (101:4,0 [41] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (126:4,25 [12] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (126:4,25 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers - DefaultTagHelperCreate - - TestNamespace.ATagHelperMultipleSelectors - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - HtmlContent - (142:4,41 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (142:4,41 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (144:5,0 [47] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (175:5,31 [12] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (175:5,31 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers - DefaultTagHelperCreate - - TestNamespace.ATagHelperMultipleSelectors - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (153:5,9 [2] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (153:5,9 [2] CssSelectorTagHelperAttributes.cshtml) - Html - ~/ - CSharpExpressionAttributeValue - (155:5,11 [6] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (156:5,12 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false - HtmlAttributeValue - (161:5,17 [12] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (161:5,17 [12] CssSelectorTagHelperAttributes.cshtml) - Html - ?hello=world - DefaultTagHelperExecute - - HtmlContent - (191:5,47 [35] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (191:5,47 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - IntermediateToken - (193:6,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - - IntermediateToken - (207:6,14 [13] CssSelectorTagHelperAttributes.cshtml) - Html - 0 TagHelpers. - IntermediateToken - (220:6,27 [4] CssSelectorTagHelperAttributes.cshtml) - Html - - IntermediateToken - (224:6,31 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (226:7,0 [32] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (243:7,17 [11] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (243:7,17 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (234:7,8 [2] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (234:7,8 [2] CssSelectorTagHelperAttributes.cshtml) - Html - ~/ - CSharpExpressionAttributeValue - (236:7,10 [6] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (237:7,11 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false - DefaultTagHelperExecute - - HtmlContent - (258:7,32 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (258:7,32 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (260:8,0 [46] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (291:8,31 [11] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (291:8,31 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - DefaultTagHelperExecute - - HtmlContent - (306:8,46 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (306:8,46 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (308:9,0 [47] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (340:9,32 [11] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (340:9,32 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.SingleQuotes - HtmlAttributeValue - (317:9,9 [14] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (317:9,9 [14] CssSelectorTagHelperAttributes.cshtml) - Html - ~/?hello=world - CSharpExpressionAttributeValue - (331:9,23 [7] CssSelectorTagHelperAttributes.cshtml) - - IntermediateToken - (333:9,25 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false - DefaultTagHelperExecute - - HtmlContent - (355:9,47 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (355:9,47 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (357:10,0 [42] CssSelectorTagHelperAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper2 - PreallocatedTagHelperProperty - (370:10,13 [4] CssSelectorTagHelperAttributes.cshtml) - __tagHelperAttribute_4 - type - Type - PreallocatedTagHelperProperty - (370:10,13 [4] CssSelectorTagHelperAttributes.cshtml) - __tagHelperAttribute_4 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - DefaultTagHelperExecute - - HtmlContent - (399:10,42 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (399:10,42 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (401:11,0 [43] CssSelectorTagHelperAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper2 - PreallocatedTagHelperProperty - (414:11,13 [5] CssSelectorTagHelperAttributes.cshtml) - __tagHelperAttribute_6 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - DefaultTagHelperExecute - - HtmlContent - (444:11,43 [2] CssSelectorTagHelperAttributes.cshtml) - IntermediateToken - (444:11,43 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - TagHelper - (446:12,0 [45] CssSelectorTagHelperAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper2 - PreallocatedTagHelperProperty - (459:12,13 [8] CssSelectorTagHelperAttributes.cshtml) - __tagHelperAttribute_7 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml deleted file mode 100644 index 5dcaeebdbfe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -

        - @for(int i = 1; i <= 10; i++) { -

        This is item #@i

        - } -
        - -

        -@(Foo(Bar.Baz)) -@Foo(@

        Bar @baz Biz

        ) -

        - -@section Footer { -

        Foo

        - @bar -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.cs deleted file mode 100644 index a3ebc4a8ac1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DesignTime_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" -global::System.Object Footer = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" - for(int i = 1; i <= 10; i++) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" - - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" -__o = Foo(Bar.Baz); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" -__o = Foo(item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" - __o = baz; - -#line default -#line hidden -#nullable disable -} -)); - -#line default -#line hidden -#nullable disable - DefineSection("Footer", async(__razor_section_writer) => { -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml" -__o = bar; - -#line default -#line hidden -#nullable disable - } - ); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html deleted file mode 100644 index be5ba4979a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html +++ /dev/null @@ -1,15 +0,0 @@ -
        - -

        This is item #

        - -
        - -

        - -

        Bar Biz

        -

        - - -

        Foo

        - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt deleted file mode 100644 index 0b8f1e8e9b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt +++ /dev/null @@ -1,68 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DesignTime_DesignTime - - - DesignTimeDirective - - DirectiveToken - (173:11,9 [6] DesignTime.cshtml) - Footer - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [19] DesignTime.cshtml) - IntermediateToken - (0:0,0 [4] DesignTime.cshtml) - Html -
        - IntermediateToken - (5:0,5 [14] DesignTime.cshtml) - Html - \n - CSharpCode - (20:1,13 [36] DesignTime.cshtml) - IntermediateToken - (20:1,13 [36] DesignTime.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n - HtmlContent - (56:2,4 [17] DesignTime.cshtml) - IntermediateToken - (56:2,4 [2] DesignTime.cshtml) - Html -

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

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

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

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

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

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

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

        - IntermediateToken - (197:12,14 [6] DesignTime.cshtml) - Html - \n - CSharpExpression - (204:13,5 [3] DesignTime.cshtml) - IntermediateToken - (204:13,5 [3] DesignTime.cshtml) - CSharp - bar - HtmlContent - (207:13,8 [2] DesignTime.cshtml) - IntermediateToken - (207:13,8 [2] DesignTime.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.mappings.txt deleted file mode 100644 index eab4e829b5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.mappings.txt +++ /dev/null @@ -1,49 +0,0 @@ -Source Location: (173:11,9 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|Footer| -Generated Location: (507:12,22 [6] ) -|Footer| - -Source Location: (20:1,13 [36] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|for(int i = 1; i <= 10; i++) { - | -Generated Location: (1006:29,13 [36] ) -|for(int i = 1; i <= 10; i++) { - | - -Source Location: (74:2,22 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|i| -Generated Location: (1221:37,22 [1] ) -|i| - -Source Location: (79:2,27 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -| - }| -Generated Location: (1407:44,27 [15] ) -| - }| - -Source Location: (113:7,2 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|Foo(Bar.Baz)| -Generated Location: (1585:52,6 [12] ) -|Foo(Bar.Baz)| - -Source Location: (129:8,1 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|Foo(| -Generated Location: (1761:59,6 [4] ) -|Foo(| - -Source Location: (142:8,14 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|baz| -Generated Location: (1942:62,14 [3] ) -|baz| - -Source Location: (153:8,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|)| -Generated Location: (2002:68,1 [1] ) -|)| - -Source Location: (204:13,5 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime.cshtml) -|bar| -Generated Location: (2240:76,6 [3] ) -|bar| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml deleted file mode 100644 index 369558994eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@addTagHelper "*, TestAssembly" - -

        - - - -

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 2075afda99d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateAttributeTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "button"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "button"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "button"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = 3; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 63264fc10de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,96 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateAttributeTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] DuplicateAttributeTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (71:3,4 [39] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button - DefaultTagHelperProperty - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button - DefaultTagHelperHtmlAttribute - - TYPE - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (98:3,31 [8] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (98:3,31 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperExecute - - HtmlContent - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (116:4,4 [70] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button - DefaultTagHelperProperty - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button - DefaultTagHelperProperty - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (158:4,46 [8] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (158:4,46 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (177:4,65 [5] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (177:4,65 [5] DuplicateAttributeTagHelpers.cshtml) - Html - false - DefaultTagHelperExecute - - HtmlContent - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (192:5,4 [96] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button - DefaultTagHelperProperty - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button - DefaultTagHelperProperty - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (233:5,45 [8] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (233:5,45 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (251:5,63 [4] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (251:5,63 [4] DuplicateAttributeTagHelpers.cshtml) - Html - true - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (263:5,75 [8] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (263:5,75 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (281:5,93 [4] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (281:5,93 [4] DuplicateAttributeTagHelpers.cshtml) - Html - true - DefaultTagHelperExecute - - HtmlContent - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - CSharp - 3 - DefaultTagHelperHtmlAttribute - - AGE - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (51:2,16 [2] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (51:2,16 [2] DuplicateAttributeTagHelpers.cshtml) - Html - 40 - DefaultTagHelperHtmlAttribute - - Age - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (60:2,25 [3] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (60:2,25 [3] DuplicateAttributeTagHelpers.cshtml) - Html - 500 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index f59f79018f0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1217:20,37 [17] ) -|"*, TestAssembly"| - -Source Location: (146:4,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml) -|true| -Generated Location: (2558:46,42 [4] ) -|true| - -Source Location: (222:5,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml) -|true| -Generated Location: (3214:58,42 [4] ) -|true| - -Source Location: (43:2,8 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml) -|3| -Generated Location: (3598:67,33 [1] ) -|3| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs deleted file mode 100644 index d15f5b0ca3e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,154 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4dc2ea6fc4bd045c34a90867a6a72183a3d01323" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateAttributeTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4dc2ea6fc4bd045c34a90867a6a72183a3d01323", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateAttributeTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "button", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("TYPE", new global::Microsoft.AspNetCore.Html.HtmlString("checkbox"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("checkbox"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("checked", new global::Microsoft.AspNetCore.Html.HtmlString("false"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "button", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("checked", new global::Microsoft.AspNetCore.Html.HtmlString("true"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("checked", new global::Microsoft.AspNetCore.Html.HtmlString("true"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("AGE", new global::Microsoft.AspNetCore.Html.HtmlString("40"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("Age", new global::Microsoft.AspNetCore.Html.HtmlString("500"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = 3; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt deleted file mode 100644 index f2e84ead91b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,69 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateAttributeTagHelpers_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - button - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - TYPE - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - checked - false - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_4 - type - button - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_5 - checked - true - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_6 - checked - true - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_7 - AGE - 40 - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_8 - Age - 500 - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (71:3,4 [39] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (116:4,4 [70] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - DefaultTagHelperProperty - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - DefaultTagHelperExecute - - HtmlContent - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (192:5,4 [96] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - __tagHelperAttribute_4 - type - Type - PreallocatedTagHelperProperty - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - __tagHelperAttribute_4 - type - Type - DefaultTagHelperProperty - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 - DefaultTagHelperExecute - - HtmlContent - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - IntermediateToken - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - CSharp - 3 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml deleted file mode 100644 index 9963a14d5e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@addTagHelper "*, TestAssembly" - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs deleted file mode 100644 index 976fa497d2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateTargetTagHelper_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "checkbox"; - __TestNamespace_CatchAllTagHelper.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml" -__TestNamespace_InputTagHelper.Checked = true; - -#line default -#line hidden -#nullable disable - __TestNamespace_CatchAllTagHelper.Checked = __TestNamespace_InputTagHelper.Checked; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt deleted file mode 100644 index 2ea133100ce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateTargetTagHelper_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] DuplicateTargetTagHelper.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) - IntermediateToken - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) - Html - \n\n - TagHelper - (35:2,0 [40] DuplicateTargetTagHelper.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - IntermediateToken - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - Html - checkbox - DefaultTagHelperProperty - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - type - string TestNamespace.CatchAllTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - IntermediateToken - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - Html - checkbox - DefaultTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - bool TestNamespace.InputTagHelper.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true - DefaultTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - bool TestNamespace.CatchAllTagHelper.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt deleted file mode 100644 index b4d7ec361dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml) -|"*, TestAssembly"| -Generated Location: (1135:19,37 [17] ) -|"*, TestAssembly"| - -Source Location: (67:2,32 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml) -|true| -Generated Location: (2045:40,41 [4] ) -|true| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs deleted file mode 100644 index 85a97f8875d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs +++ /dev/null @@ -1,69 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "97a60a6d99646ce1d67aab46447cc8f582f6f03a" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateTargetTagHelper_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"97a60a6d99646ce1d67aab46447cc8f582f6f03a", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateTargetTagHelper_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_CatchAllTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml" -__TestNamespace_InputTagHelper.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_CatchAllTagHelper.Checked = __TestNamespace_InputTagHelper.Checked; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt deleted file mode 100644 index d86a4d2b8c1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateTargetTagHelper_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) - IntermediateToken - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) - Html - \n - TagHelper - (35:2,0 [40] DuplicateTargetTagHelper.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperProperty - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - __tagHelperAttribute_0 - type - Type - DefaultTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - bool TestNamespace.InputTagHelper.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true - DefaultTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - bool TestNamespace.CatchAllTagHelper.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml deleted file mode 100644 index 5e69ed1d81b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml +++ /dev/null @@ -1,14 +0,0 @@ -@addTagHelper "*, TestAssembly" - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 0d54c019c95..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,262 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_InputTagHelper = CreateTagHelper(); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = string.Empty; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = false; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Bound = string.Empty; -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = long.MinValue; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = string.Empty; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = false; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = int.MaxValue; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Bound = string.Empty; -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = long.MinValue; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = string.Empty; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = false; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = int.MaxValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = long.MinValue; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = int.MaxValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = string.Empty; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - __o = false; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 76f7d9c9169..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,133 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] DynamicAttributeTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - CSharpExpressionAttributeValue - (57:2,22 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (59:2,24 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperExecute - - HtmlContent - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (79:4,0 [71] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpCodeAttributeValue - (95:4,16 [44] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - IntermediateToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - IntermediateToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - HtmlAttributeValue - (139:4,60 [7] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (140:4,61 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix - DefaultTagHelperExecute - - HtmlContent - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (154:6,0 [83] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperProperty - (168:6,14 [27] DynamicAttributeTagHelpers.cshtml) - bound - string TestNamespace.InputTagHelper.Bound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (168:6,14 [7] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (168:6,14 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - IntermediateToken - (174:6,20 [1] DynamicAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlContent - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - Html - suffix - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - CSharpExpressionAttributeValue - (212:6,58 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (214:6,60 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlAttributeValue - (226:6,72 [7] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (227:6,73 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix - DefaultTagHelperExecute - - HtmlContent - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (241:8,0 [183] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperProperty - (255:8,14 [73] DynamicAttributeTagHelpers.cshtml) - bound - string TestNamespace.InputTagHelper.Bound - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue - HtmlContent - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - Html - - CSharpCode - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpCode - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpCode - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - HtmlContent - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpressionAttributeValue - (347:9,16 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue - CSharpCodeAttributeValue - (361:9,30 [45] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - IntermediateToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - IntermediateToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - CSharpExpressionAttributeValue - (406:9,75 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue - DefaultTagHelperExecute - - HtmlContent - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (428:11,0 [80] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpressionAttributeValue - (444:11,16 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (445:11,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue - CSharpExpressionAttributeValue - (458:11,30 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (460:11,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlAttributeValue - (472:11,44 [7] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (473:11,45 [6] DynamicAttributeTagHelpers.cshtml) - Html - static - HtmlAttributeValue - (479:11,51 [11] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (483:11,55 [7] DynamicAttributeTagHelpers.cshtml) - Html - content - CSharpExpressionAttributeValue - (490:11,62 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (492:11,64 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue - DefaultTagHelperExecute - - HtmlContent - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (512:13,0 [64] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpCodeAttributeValue - (528:13,16 [44] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - IntermediateToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - IntermediateToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index 27ed6fbeb7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,155 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1047:18,37 [17] ) -|"*, TestAssembly"| - -Source Location: (59:2,24 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (1679:36,24 [12] ) -|DateTime.Now| - -Source Location: (96:4,17 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|if (true) { | -Generated Location: (2061:45,17 [12] ) -|if (true) { | - -Source Location: (109:4,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|string.Empty| -Generated Location: (2276:52,30 [12] ) -|string.Empty| - -Source Location: (121:4,42 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| } else { | -Generated Location: (2504:59,42 [10] ) -| } else { | - -Source Location: (132:4,53 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|false| -Generated Location: (2740:66,53 [5] ) -|false| - -Source Location: (137:4,58 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| }| -Generated Location: (2977:73,58 [2] ) -| }| - -Source Location: (176:6,22 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (3353:82,22 [12] ) -|DateTime.Now| - -Source Location: (214:6,60 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (3665:90,60 [12] ) -|DateTime.Now| - -Source Location: (256:8,15 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|long.MinValue| -Generated Location: (4045:99,15 [13] ) -|long.MinValue| - -Source Location: (271:8,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|if (true) { | -Generated Location: (4262:106,30 [12] ) -|if (true) { | - -Source Location: (284:8,43 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|string.Empty| -Generated Location: (4490:113,43 [12] ) -|string.Empty| - -Source Location: (296:8,55 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| } else { | -Generated Location: (4731:120,55 [10] ) -| } else { | - -Source Location: (307:8,66 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|false| -Generated Location: (4980:127,66 [5] ) -|false| - -Source Location: (312:8,71 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| }| -Generated Location: (5230:134,71 [2] ) -| }| - -Source Location: (316:8,75 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|int.MaxValue| -Generated Location: (5480:141,75 [12] ) -|int.MaxValue| - -Source Location: (348:9,17 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|long.MinValue| -Generated Location: (5750:149,17 [13] ) -|long.MinValue| - -Source Location: (363:9,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|if (true) { | -Generated Location: (5970:156,32 [12] ) -|if (true) { | - -Source Location: (376:9,45 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|string.Empty| -Generated Location: (6201:163,45 [12] ) -|string.Empty| - -Source Location: (388:9,57 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| } else { | -Generated Location: (6445:170,57 [10] ) -| } else { | - -Source Location: (399:9,68 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|false| -Generated Location: (6697:177,68 [5] ) -|false| - -Source Location: (404:9,73 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| }| -Generated Location: (6950:184,73 [2] ) -| }| - -Source Location: (408:9,77 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|int.MaxValue| -Generated Location: (7203:191,77 [12] ) -|int.MaxValue| - -Source Location: (445:11,17 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|long.MinValue| -Generated Location: (7586:200,17 [13] ) -|long.MinValue| - -Source Location: (460:11,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (7806:207,32 [12] ) -|DateTime.Now| - -Source Location: (492:11,64 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|int.MaxValue| -Generated Location: (8057:214,64 [12] ) -|int.MaxValue| - -Source Location: (529:13,17 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|if (true) { | -Generated Location: (8440:223,17 [12] ) -|if (true) { | - -Source Location: (542:13,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|string.Empty| -Generated Location: (8656:230,30 [12] ) -|string.Empty| - -Source Location: (554:13,42 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| } else { | -Generated Location: (8885:237,42 [10] ) -| } else { | - -Source Location: (565:13,53 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -|false| -Generated Location: (9122:244,53 [5] ) -|false| - -Source Location: (570:13,58 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml) -| }| -Generated Location: (9360:251,58 [2] ) -| }| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs deleted file mode 100644 index ddf57bb8cc4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,372 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "42f11f2c52ff2e658e61f6c5caace4347c07ca48" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"42f11f2c52ff2e658e61f6c5caace4347c07ca48", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_Runtime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 51, "prefix", 51, 6, true); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue(" ", 57, DateTime.Now, 58, 13, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 95, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => { - PushWriter(__razor_attribute_value_writer); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - Write(string.Empty); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - Write(false); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - PopWriter(); - } - ), 95, 44, false); - AddHtmlAttributeValue(" ", 139, "suffix", 140, 7, true); - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - BeginWriteTagHelperAttribute(); - WriteLiteral("prefix "); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - WriteLiteral(DateTime.Now); - -#line default -#line hidden -#nullable disable - WriteLiteral(" suffix"); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper.Bound = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("bound", __TestNamespace_InputTagHelper.Bound, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 206, "prefix", 206, 6, true); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue(" ", 212, DateTime.Now, 213, 13, false); - -#line default -#line hidden -#nullable disable - AddHtmlAttributeValue(" ", 226, "suffix", 227, 7, true); - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - WriteLiteral(long.MinValue); - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - WriteLiteral(string.Empty); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - WriteLiteral(false); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - WriteLiteral(int.MaxValue); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper.Bound = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("bound", __TestNamespace_InputTagHelper.Bound, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue("", 347, long.MinValue, 347, 14, false); - -#line default -#line hidden -#nullable disable - AddHtmlAttributeValue(" ", 361, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => { - PushWriter(__razor_attribute_value_writer); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - Write(string.Empty); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - Write(false); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - PopWriter(); - } - ), 362, 44, false); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue(" ", 406, int.MaxValue, 407, 13, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 5, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue("", 444, long.MinValue, 444, 14, false); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue(" ", 458, DateTime.Now, 459, 13, false); - -#line default -#line hidden -#nullable disable - AddHtmlAttributeValue(" ", 472, "static", 473, 7, true); - AddHtmlAttributeValue(" ", 479, "content", 483, 11, true); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" -AddHtmlAttributeValue(" ", 490, int.MaxValue, 491, 13, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 528, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => { - PushWriter(__razor_attribute_value_writer); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - Write(string.Empty); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } else { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - Write(false); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - PopWriter(); - } - ), 528, 44, false); - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt deleted file mode 100644 index 72a08326706..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,127 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_Runtime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - CSharpExpressionAttributeValue - (57:2,22 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (59:2,24 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperExecute - - HtmlContent - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (79:4,0 [71] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpCodeAttributeValue - (95:4,16 [44] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - IntermediateToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - IntermediateToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - HtmlAttributeValue - (139:4,60 [7] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (140:4,61 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix - DefaultTagHelperExecute - - HtmlContent - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (154:6,0 [83] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperProperty - (168:6,14 [27] DynamicAttributeTagHelpers.cshtml) - bound - string TestNamespace.InputTagHelper.Bound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (168:6,14 [7] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (168:6,14 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - IntermediateToken - (174:6,20 [1] DynamicAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlContent - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - Html - suffix - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - CSharpExpressionAttributeValue - (212:6,58 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (214:6,60 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlAttributeValue - (226:6,72 [7] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (227:6,73 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix - DefaultTagHelperExecute - - HtmlContent - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (241:8,0 [183] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperProperty - (255:8,14 [73] DynamicAttributeTagHelpers.cshtml) - bound - string TestNamespace.InputTagHelper.Bound - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue - HtmlContent - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - Html - - CSharpCode - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpCode - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpCode - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - HtmlContent - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpressionAttributeValue - (347:9,16 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue - CSharpCodeAttributeValue - (361:9,30 [45] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - IntermediateToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - IntermediateToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - CSharpExpressionAttributeValue - (406:9,75 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue - DefaultTagHelperExecute - - HtmlContent - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (428:11,0 [80] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpressionAttributeValue - (444:11,16 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (445:11,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue - CSharpExpressionAttributeValue - (458:11,30 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (460:11,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlAttributeValue - (472:11,44 [7] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (473:11,45 [6] DynamicAttributeTagHelpers.cshtml) - Html - static - HtmlAttributeValue - (479:11,51 [11] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (483:11,55 [7] DynamicAttributeTagHelpers.cshtml) - Html - content - CSharpExpressionAttributeValue - (490:11,62 [14] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (492:11,64 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue - DefaultTagHelperExecute - - HtmlContent - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n - TagHelper - (512:13,0 [64] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - CSharpCodeAttributeValue - (528:13,16 [44] DynamicAttributeTagHelpers.cshtml) - - IntermediateToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { - CSharpExpression - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - IntermediateToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { - CSharpExpression - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - IntermediateToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - IntermediateToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml deleted file mode 100644 index d68f666f72f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@addTagHelper *, TestAssembly - -
        - -

        - -

        -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 5b039be6634..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttributeTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = ""; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = ; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = ""; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = ; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = ; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.diagnostics.txt deleted file mode 100644 index 0b20997aff7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.diagnostics.txt +++ /dev/null @@ -1,3 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml(4,18): Error RZ2008: Attribute 'checked' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml(5,8): Error RZ2008: Attribute 'age' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml(6,23): Error RZ2008: Attribute 'checked' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 2f02db5b877..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,68 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttributeTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] EmptyAttributeTagHelpers.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [15] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (29:0,29 [4] EmptyAttributeTagHelpers.cshtml) - Html - \n\n - IntermediateToken - (33:2,0 [4] EmptyAttributeTagHelpers.cshtml) - Html -
        - IntermediateToken - (38:2,5 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (44:3,4 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - Html - - DefaultTagHelperProperty - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - Html - - DefaultTagHelperProperty - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (74:3,34 [0] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (74:3,34 [0] EmptyAttributeTagHelpers.cshtml) - Html - - DefaultTagHelperExecute - - HtmlContent - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (84:4,4 [64] EmptyAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (104:5,8 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - Html - - DefaultTagHelperProperty - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - Html - - DefaultTagHelperProperty - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (134:5,38 [0] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (134:5,38 [0] EmptyAttributeTagHelpers.cshtml) - Html - - DefaultTagHelperExecute - - HtmlContent - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.SingleQuotes - IntermediateToken - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - - DefaultTagHelperExecute - - HtmlContent - (148:6,8 [8] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (148:6,8 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (150:7,0 [6] EmptyAttributeTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index cc280e4a936..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml) -|*, TestAssembly| -Generated Location: (1210:20,38 [15] ) -|*, TestAssembly| - -Source Location: (66:3,26 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml) -|| -Generated Location: (2106:41,42 [0] ) -|| - -Source Location: (126:5,30 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml) -|| -Generated Location: (2748:53,42 [0] ) -|| - -Source Location: (92:4,12 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml) -|| -Generated Location: (3124:62,33 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 96c6a32b455..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,122 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9c86b0d6e2a590a85271afa26a21f39597a68e3f" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttributeTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"9c86b0d6e2a590a85271afa26a21f39597a68e3f", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttributeTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString(""), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n
        \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = ; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = ; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml" -__TestNamespace_PTagHelper.Age = ; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        "); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.diagnostics.txt deleted file mode 100644 index 0b20997aff7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.diagnostics.txt +++ /dev/null @@ -1,3 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml(4,18): Error RZ2008: Attribute 'checked' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml(5,8): Error RZ2008: Attribute 'age' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml(6,23): Error RZ2008: Attribute 'checked' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt deleted file mode 100644 index 19769026c06..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,52 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttributeTagHelpers_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - class - - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:1,0 [13] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (31:1,0 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (33:2,0 [4] EmptyAttributeTagHelpers.cshtml) - Html -
        - IntermediateToken - (38:2,5 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (44:3,4 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - DefaultTagHelperProperty - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (84:4,4 [64] EmptyAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (104:5,8 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - PreallocatedTagHelperProperty - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - __tagHelperAttribute_0 - type - Type - DefaultTagHelperProperty - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.SingleQuotes - IntermediateToken - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - - DefaultTagHelperExecute - - HtmlContent - (148:6,8 [8] EmptyAttributeTagHelpers.cshtml) - IntermediateToken - (148:6,8 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (150:7,0 [6] EmptyAttributeTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml deleted file mode 100644 index 0366199cd58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - -@{} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs deleted file mode 100644 index 147fb7b23a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html deleted file mode 100644 index 9ebe0e3a782..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt deleted file mode 100644 index 1da8246eee9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) - IntermediateToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n - CSharpCode - (20:2,2 [0] EmptyCodeBlock.cshtml) - IntermediateToken - (20:2,2 [0] EmptyCodeBlock.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt deleted file mode 100644 index c2efdcaf76b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (20:2,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml) -|| -Generated Location: (748:19,2 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.codegen.cs deleted file mode 100644 index d7513d80232..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.codegen.cs +++ /dev/null @@ -1,19 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fdc98942fed24e572b86269f89a808b0c606cef1" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"fdc98942fed24e572b86269f89a808b0c606cef1", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("This is markup\r\n\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt deleted file mode 100644 index 75e7307e0f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) - IntermediateToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n - CSharpCode - (20:2,2 [0] EmptyCodeBlock.cshtml) - IntermediateToken - (20:2,2 [0] EmptyCodeBlock.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml deleted file mode 100644 index 6790c7eba2f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - -@() \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs deleted file mode 100644 index a4e69564773..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml" -__o = ; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html deleted file mode 100644 index 9ebe0e3a782..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt deleted file mode 100644 index cca09001e8a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) - IntermediateToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n - CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml) - IntermediateToken - (20:2,2 [0] EmptyExplicitExpression.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt deleted file mode 100644 index 3f7d10ade39..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (20:2,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml) -|| -Generated Location: (770:19,6 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs deleted file mode 100644 index 60274099a97..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs +++ /dev/null @@ -1,26 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "25dc9cf13110b5af9a1ca31a8f02abdc45a37244" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"25dc9cf13110b5af9a1ca31a8f02abdc45a37244", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("This is markup\r\n\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml" -Write(); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt deleted file mode 100644 index c3daa8feb5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) - IntermediateToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n - CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml) - IntermediateToken - (20:2,2 [0] EmptyExplicitExpression.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml deleted file mode 100644 index 021306da6bb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - -@! \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml deleted file mode 100644 index a1db8cd602a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - @ -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs deleted file mode 100644 index eaaeed80bcb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml" -__o = ; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html deleted file mode 100644 index 1568f6aa34f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.diagnostics.txt deleted file mode 100644 index 84ac278f6de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml(2,6): Error RZ1003: A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt deleted file mode 100644 index d167e2f6b94..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - IntermediateToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n - CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - IntermediateToken - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - CSharp - - CSharpCode - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - IntermediateToken - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt deleted file mode 100644 index 9ba6343fc12..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml) -| - | -Generated Location: (778:19,2 [6] ) -| - | - -Source Location: (9:1,5 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml) -|| -Generated Location: (966:27,6 [0] ) -|| - -Source Location: (9:1,5 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml) -| -| -Generated Location: (1148:34,5 [2] ) -| -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs deleted file mode 100644 index fb302c26768..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs +++ /dev/null @@ -1,25 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "bf754c5b319ea54f6c9636bd2815d4b47d11886d" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"bf754c5b319ea54f6c9636bd2815d4b47d11886d", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml" -Write(); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.diagnostics.txt deleted file mode 100644 index 84ac278f6de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml(2,6): Error RZ1003: A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt deleted file mode 100644 index b910f3841ce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - IntermediateToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n - CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - IntermediateToken - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - CSharp - - CSharpCode - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - IntermediateToken - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs deleted file mode 100644 index cccfe56121f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml" -__o = ; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html deleted file mode 100644 index 76ee36910b4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - - ! \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.diagnostics.txt deleted file mode 100644 index 5524460d0cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml(3,2): Error RZ1005: "!" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt deleted file mode 100644 index 60189098dc2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) - IntermediateToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n - CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml) - IntermediateToken - (19:2,1 [0] EmptyImplicitExpression.cshtml) - CSharp - - HtmlContent - (19:2,1 [1] EmptyImplicitExpression.cshtml) - IntermediateToken - (19:2,1 [1] EmptyImplicitExpression.cshtml) - Html - ! diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt deleted file mode 100644 index d3539655ec8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (19:2,1 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml) -|| -Generated Location: (770:19,6 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs deleted file mode 100644 index 9506f47a3ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4c215c8ff3e726be334183020106682e47cf8ace" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4c215c8ff3e726be334183020106682e47cf8ace", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("This is markup\r\n\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml" -Write(); - -#line default -#line hidden -#nullable disable - WriteLiteral("!"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.diagnostics.txt deleted file mode 100644 index 5524460d0cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml(3,2): Error RZ1005: "!" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt deleted file mode 100644 index e4187049bb1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) - IntermediateToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n - CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml) - IntermediateToken - (19:2,1 [0] EmptyImplicitExpression.cshtml) - CSharp - - HtmlContent - (19:2,1 [1] EmptyImplicitExpression.cshtml) - IntermediateToken - (19:2,1 [1] EmptyImplicitExpression.cshtml) - Html - ! diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml deleted file mode 100644 index d9496821568..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml +++ /dev/null @@ -1,11 +0,0 @@ -@addTagHelper "*, TestAssembly" - -@{ - var enumValue = MyEnum.MyValue; -} - - - - - - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 87e16e675ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" - - var enumValue = MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" - __o = MyEnum.MySecondValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MySecondValue; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_CatchAllTagHelper.CatchAll = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = enumValue; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_CatchAllTagHelper.CatchAll = enumValue; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 2418da2ba7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,74 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] EnumTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] EnumTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] EnumTagHelpers.cshtml) - Html - \n\n - CSharpCode - (37:2,2 [39] EnumTagHelpers.cshtml) - IntermediateToken - (37:2,2 [39] EnumTagHelpers.cshtml) - CSharp - \n var enumValue = MyEnum.MyValue;\n - HtmlContent - (79:5,0 [2] EnumTagHelpers.cshtml) - IntermediateToken - (79:5,0 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (81:6,0 [33] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (95:6,14 [15] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (96:6,15 [14] EnumTagHelpers.cshtml) - IntermediateToken - (96:6,15 [14] EnumTagHelpers.cshtml) - CSharp - MyEnum.MyValue - DefaultTagHelperExecute - - HtmlContent - (114:6,33 [2] EnumTagHelpers.cshtml) - IntermediateToken - (114:6,33 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (116:7,0 [39] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpressionAttributeValue - (130:7,14 [21] EnumTagHelpers.cshtml) - - IntermediateToken - (131:7,15 [20] EnumTagHelpers.cshtml) - CSharp - MyEnum.MySecondValue - DefaultTagHelperExecute - - HtmlContent - (155:7,39 [2] EnumTagHelpers.cshtml) - IntermediateToken - (155:7,39 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (157:8,0 [25] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (171:8,14 [7] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (171:8,14 [7] EnumTagHelpers.cshtml) - CSharp - MyValue - DefaultTagHelperExecute - - HtmlContent - (182:8,25 [2] EnumTagHelpers.cshtml) - IntermediateToken - (182:8,25 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (184:9,0 [50] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (198:9,14 [13] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (198:9,14 [13] EnumTagHelpers.cshtml) - CSharp - MySecondValue - DefaultTagHelperProperty - (224:9,40 [7] EnumTagHelpers.cshtml) - catch-all - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.CatchAllTagHelper.CatchAll - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (224:9,40 [7] EnumTagHelpers.cshtml) - CSharp - MyValue - DefaultTagHelperExecute - - HtmlContent - (234:9,50 [2] EnumTagHelpers.cshtml) - IntermediateToken - (234:9,50 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (236:10,0 [51] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (250:10,14 [10] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (251:10,15 [9] EnumTagHelpers.cshtml) - IntermediateToken - (251:10,15 [9] EnumTagHelpers.cshtml) - CSharp - enumValue - DefaultTagHelperProperty - (273:10,37 [10] EnumTagHelpers.cshtml) - catch-all - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.CatchAllTagHelper.CatchAll - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (274:10,38 [9] EnumTagHelpers.cshtml) - IntermediateToken - (274:10,38 [9] EnumTagHelpers.cshtml) - CSharp - enumValue - DefaultTagHelperExecute - - HtmlContent - (287:10,51 [2] EnumTagHelpers.cshtml) - IntermediateToken - (287:10,51 [2] EnumTagHelpers.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index e35a09a9a22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,49 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1115:19,37 [17] ) -|"*, TestAssembly"| - -Source Location: (37:2,2 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -| - var enumValue = MyEnum.MyValue; -| -Generated Location: (1610:36,2 [39] ) -| - var enumValue = MyEnum.MyValue; -| - -Source Location: (96:6,15 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|MyEnum.MyValue| -Generated Location: (2059:46,39 [14] ) -|MyEnum.MyValue| - -Source Location: (131:7,15 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|MyEnum.MySecondValue| -Generated Location: (2538:56,15 [20] ) -|MyEnum.MySecondValue| - -Source Location: (171:8,14 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|MyValue| -Generated Location: (3140:66,132 [7] ) -|MyValue| - -Source Location: (198:9,14 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|MySecondValue| -Generated Location: (3730:76,132 [13] ) -|MySecondValue| - -Source Location: (224:9,40 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|MyValue| -Generated Location: (4044:83,138 [7] ) -|MyValue| - -Source Location: (251:10,15 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|enumValue| -Generated Location: (4541:93,39 [9] ) -|enumValue| - -Source Location: (274:10,38 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml) -|enumValue| -Generated Location: (4758:100,45 [9] ) -|enumValue| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 729513c20d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,182 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a605351a30b7fef3db7e3f61a70a62e29a6badf8" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a605351a30b7fef3db7e3f61a70a62e29a6badf8", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_Runtime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" - - var enumValue = MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "class", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -AddHtmlAttributeValue("", 130, MyEnum.MySecondValue, 130, 21, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MySecondValue; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_CatchAllTagHelper.CatchAll = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("catch-all", __TestNamespace_CatchAllTagHelper.CatchAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_InputTagHelper.Value = enumValue; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml" -__TestNamespace_CatchAllTagHelper.CatchAll = enumValue; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("catch-all", __TestNamespace_CatchAllTagHelper.CatchAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt deleted file mode 100644 index e38db1bbaae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,68 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_Runtime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] EnumTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] EnumTagHelpers.cshtml) - Html - \n - CSharpCode - (37:2,2 [39] EnumTagHelpers.cshtml) - IntermediateToken - (37:2,2 [39] EnumTagHelpers.cshtml) - CSharp - \n var enumValue = MyEnum.MyValue;\n - HtmlContent - (79:5,0 [2] EnumTagHelpers.cshtml) - IntermediateToken - (79:5,0 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (81:6,0 [33] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (95:6,14 [15] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (96:6,15 [14] EnumTagHelpers.cshtml) - IntermediateToken - (96:6,15 [14] EnumTagHelpers.cshtml) - CSharp - MyEnum.MyValue - DefaultTagHelperExecute - - HtmlContent - (114:6,33 [2] EnumTagHelpers.cshtml) - IntermediateToken - (114:6,33 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (116:7,0 [39] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpressionAttributeValue - (130:7,14 [21] EnumTagHelpers.cshtml) - - IntermediateToken - (131:7,15 [20] EnumTagHelpers.cshtml) - CSharp - MyEnum.MySecondValue - DefaultTagHelperExecute - - HtmlContent - (155:7,39 [2] EnumTagHelpers.cshtml) - IntermediateToken - (155:7,39 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (157:8,0 [25] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (171:8,14 [7] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (171:8,14 [7] EnumTagHelpers.cshtml) - CSharp - MyValue - DefaultTagHelperExecute - - HtmlContent - (182:8,25 [2] EnumTagHelpers.cshtml) - IntermediateToken - (182:8,25 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (184:9,0 [50] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (198:9,14 [13] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (198:9,14 [13] EnumTagHelpers.cshtml) - CSharp - MySecondValue - DefaultTagHelperProperty - (224:9,40 [7] EnumTagHelpers.cshtml) - catch-all - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.CatchAllTagHelper.CatchAll - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (224:9,40 [7] EnumTagHelpers.cshtml) - CSharp - MyValue - DefaultTagHelperExecute - - HtmlContent - (234:9,50 [2] EnumTagHelpers.cshtml) - IntermediateToken - (234:9,50 [2] EnumTagHelpers.cshtml) - Html - \n - TagHelper - (236:10,0 [51] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperProperty - (250:10,14 [10] EnumTagHelpers.cshtml) - value - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.InputTagHelper.Value - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (251:10,15 [9] EnumTagHelpers.cshtml) - IntermediateToken - (251:10,15 [9] EnumTagHelpers.cshtml) - CSharp - enumValue - DefaultTagHelperProperty - (273:10,37 [10] EnumTagHelpers.cshtml) - catch-all - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum TestNamespace.CatchAllTagHelper.CatchAll - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (274:10,38 [9] EnumTagHelpers.cshtml) - IntermediateToken - (274:10,38 [9] EnumTagHelpers.cshtml) - CSharp - enumValue - DefaultTagHelperExecute - - HtmlContent - (287:10,51 [2] EnumTagHelpers.cshtml) - IntermediateToken - (287:10,51 [2] EnumTagHelpers.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml deleted file mode 100644 index a7bc49af113..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@addTagHelper *, TestAssembly - - - - - Not a TagHelper: - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index c946206dea1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Type = string.Empty; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" - __TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt deleted file mode 100644 index da8f57f1850..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,71 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] EscapedTagHelpers.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [5] EscapedTagHelpers.cshtml) - IntermediateToken - (29:0,29 [4] EscapedTagHelpers.cshtml) - Html - \n\n - IntermediateToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (35:2,2 [47] EscapedTagHelpers.cshtml) - IntermediateToken - (35:2,2 [3] EscapedTagHelpers.cshtml) - Html - div - IntermediateToken - (38:2,5 [36] EscapedTagHelpers.cshtml) - Html - class="randomNonTagHelperAttribute" - IntermediateToken - (74:2,41 [1] EscapedTagHelpers.cshtml) - Html - > - IntermediateToken - (75:2,42 [6] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (81:3,4 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (83:3,6 [22] EscapedTagHelpers.cshtml) - IntermediateToken - (83:3,6 [1] EscapedTagHelpers.cshtml) - Html - p - IntermediateToken - (84:3,7 [20] EscapedTagHelpers.cshtml) - Html - class="Hello World" - IntermediateToken - (104:3,27 [1] EscapedTagHelpers.cshtml) - Html - - CSharpExpression - (106:3,29 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (106:3,29 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlContent - (118:3,41 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (118:3,41 [1] EscapedTagHelpers.cshtml) - Html - > - IntermediateToken - (119:3,42 [10] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (129:4,8 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (131:4,10 [31] EscapedTagHelpers.cshtml) - IntermediateToken - (131:4,10 [5] EscapedTagHelpers.cshtml) - Html - input - IntermediateToken - (136:4,15 [12] EscapedTagHelpers.cshtml) - Html - type="text" - IntermediateToken - (148:4,27 [1] EscapedTagHelpers.cshtml) - Html - - IntermediateToken - (149:4,28 [2] EscapedTagHelpers.cshtml) - Html - /> - IntermediateToken - (151:4,30 [10] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (161:5,8 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (163:5,10 [22] EscapedTagHelpers.cshtml) - IntermediateToken - (163:5,10 [2] EscapedTagHelpers.cshtml) - Html - em - IntermediateToken - (165:5,12 [1] EscapedTagHelpers.cshtml) - Html - > - IntermediateToken - (166:5,13 [17] EscapedTagHelpers.cshtml) - Html - Not a TagHelper: - IntermediateToken - (183:5,30 [2] EscapedTagHelpers.cshtml) - Html - - IntermediateToken - (189:5,36 [1] EscapedTagHelpers.cshtml) - Html - - TagHelper - (190:5,37 [45] EscapedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperProperty - (227:5,74 [4] EscapedTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (227:5,74 [4] EscapedTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (235:5,82 [8] EscapedTagHelpers.cshtml) - IntermediateToken - (235:5,82 [6] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (241:6,4 [2] EscapedTagHelpers.cshtml) - Html - - IntermediateToken - (246:6,9 [2] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (248:7,0 [2] EscapedTagHelpers.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index cf674d229b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml) -|*, TestAssembly| -Generated Location: (1118:19,38 [15] ) -|*, TestAssembly| - -Source Location: (106:3,29 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (1642:36,29 [12] ) -|DateTime.Now| - -Source Location: (204:5,51 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml) -|DateTime.Now| -Generated Location: (2078:45,51 [12] ) -|DateTime.Now| - -Source Location: (227:5,74 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml) -|true| -Generated Location: (2483:54,74 [4] ) -|true| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 792e0d3fc78..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,91 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c1489e9dd98dc3e29bfbfd9a3f271ddec5134446" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c1489e9dd98dc3e29bfbfd9a3f271ddec5134446", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_Runtime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n<"); - WriteLiteral("div class=\"randomNonTagHelperAttribute\">\r\n <"); - WriteLiteral("p class=\"Hello World\" "); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" - Write(DateTime.Now); - -#line default -#line hidden -#nullable disable - WriteLiteral(">\r\n <"); - WriteLiteral("input type=\"text\" />\r\n <"); - WriteLiteral("em>Not a TagHelper: "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" - WriteLiteral(DateTime.Now); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml" -__TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n \r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt deleted file mode 100644 index 10ad7acf394..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,65 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_Runtime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:1,0 [3] EscapedTagHelpers.cshtml) - IntermediateToken - (31:1,0 [2] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (35:2,2 [47] EscapedTagHelpers.cshtml) - IntermediateToken - (35:2,2 [3] EscapedTagHelpers.cshtml) - Html - div - IntermediateToken - (38:2,5 [36] EscapedTagHelpers.cshtml) - Html - class="randomNonTagHelperAttribute" - IntermediateToken - (74:2,41 [1] EscapedTagHelpers.cshtml) - Html - > - IntermediateToken - (75:2,42 [6] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (81:3,4 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (83:3,6 [22] EscapedTagHelpers.cshtml) - IntermediateToken - (83:3,6 [1] EscapedTagHelpers.cshtml) - Html - p - IntermediateToken - (84:3,7 [20] EscapedTagHelpers.cshtml) - Html - class="Hello World" - IntermediateToken - (104:3,27 [1] EscapedTagHelpers.cshtml) - Html - - CSharpExpression - (106:3,29 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (106:3,29 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now - HtmlContent - (118:3,41 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (118:3,41 [1] EscapedTagHelpers.cshtml) - Html - > - IntermediateToken - (119:3,42 [10] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (129:4,8 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (131:4,10 [31] EscapedTagHelpers.cshtml) - IntermediateToken - (131:4,10 [5] EscapedTagHelpers.cshtml) - Html - input - IntermediateToken - (136:4,15 [12] EscapedTagHelpers.cshtml) - Html - type="text" - IntermediateToken - (148:4,27 [1] EscapedTagHelpers.cshtml) - Html - - IntermediateToken - (149:4,28 [2] EscapedTagHelpers.cshtml) - Html - /> - IntermediateToken - (151:4,30 [10] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (161:5,8 [1] EscapedTagHelpers.cshtml) - Html - < - HtmlContent - (163:5,10 [22] EscapedTagHelpers.cshtml) - IntermediateToken - (163:5,10 [2] EscapedTagHelpers.cshtml) - Html - em - IntermediateToken - (165:5,12 [1] EscapedTagHelpers.cshtml) - Html - > - IntermediateToken - (166:5,13 [17] EscapedTagHelpers.cshtml) - Html - Not a TagHelper: - IntermediateToken - (183:5,30 [2] EscapedTagHelpers.cshtml) - Html - - IntermediateToken - (189:5,36 [1] EscapedTagHelpers.cshtml) - Html - - TagHelper - (190:5,37 [45] EscapedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now - DefaultTagHelperProperty - (227:5,74 [4] EscapedTagHelpers.cshtml) - checked - bool TestNamespace.InputTagHelper2.Checked - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (227:5,74 [4] EscapedTagHelpers.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (235:5,82 [8] EscapedTagHelpers.cshtml) - IntermediateToken - (235:5,82 [6] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (241:6,4 [2] EscapedTagHelpers.cshtml) - Html - - IntermediateToken - (246:6,9 [2] EscapedTagHelpers.cshtml) - Html - \n - IntermediateToken - (248:7,0 [2] EscapedTagHelpers.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml deleted file mode 100644 index 10730f1114b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml +++ /dev/null @@ -1 +0,0 @@ -1 + 1 = @(1+1) \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml deleted file mode 100644 index a0fdfc9a210..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - -@( \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs deleted file mode 100644 index 07bdbbe86b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml" -__o = ; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html deleted file mode 100644 index 6eaf3f7aa0b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.diagnostics.txt deleted file mode 100644 index 4e0bfb131d9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml(3,2): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt deleted file mode 100644 index 947b28d7270..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - IntermediateToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n - CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - IntermediateToken - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt deleted file mode 100644 index a4208a7ee25..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (20:2,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml) -|| -Generated Location: (770:19,6 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs deleted file mode 100644 index d3d9989be53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs +++ /dev/null @@ -1,26 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e8e095026beaca454b3a8d02b1548fa001d08214" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e8e095026beaca454b3a8d02b1548fa001d08214", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("This is markup\r\n\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml" -Write(); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.diagnostics.txt deleted file mode 100644 index 4e0bfb131d9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml(3,2): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt deleted file mode 100644 index 5f459014c86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - IntermediateToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n - CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - IntermediateToken - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml deleted file mode 100644 index 70d8cefd957..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml +++ /dev/null @@ -1 +0,0 @@ -
        @(@
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs deleted file mode 100644 index 2cc76e8ce52..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml" - __o = item => new Template(async(__razor_template_writer) => { -} -); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html deleted file mode 100644 index fc593178498..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html +++ /dev/null @@ -1 +0,0 @@ -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.diagnostics.txt deleted file mode 100644 index 04d0a395264..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml(1,7): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml(1,11): Error RZ1026: Encountered end tag "div" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt deleted file mode 100644 index b38906f2499..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - IntermediateToken - (0:0,0 [4] ExplicitExpressionWithMarkup.cshtml) - Html -
        - CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Template - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - HtmlContent - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - IntermediateToken - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Html -
        - IntermediateToken - (14:0,14 [0] ExplicitExpressionWithMarkup.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt deleted file mode 100644 index 62cc1306279..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml) -|| -Generated Location: (844:21,1 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs deleted file mode 100644 index fcdf711df53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs +++ /dev/null @@ -1,31 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "47d858755c07db489bd8824b7eaee760bb858bcb" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"47d858755c07db489bd8824b7eaee760bb858bcb", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("
        "); -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml" - Write(item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - WriteLiteral("
        "); - PopWriter(); -} -)); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.diagnostics.txt deleted file mode 100644 index 04d0a395264..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml(1,7): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml(1,11): Error RZ1026: Encountered end tag "div" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt deleted file mode 100644 index 8764a82186a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - IntermediateToken - (0:0,0 [4] ExplicitExpressionWithMarkup.cshtml) - Html -
        - CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Template - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - HtmlContent - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - IntermediateToken - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Html -
        - IntermediateToken - (14:0,14 [0] ExplicitExpressionWithMarkup.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs deleted file mode 100644 index 7b344876fdb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml" - __o = 1+1; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html deleted file mode 100644 index 33b749a2f93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html +++ /dev/null @@ -1 +0,0 @@ -1 + 1 = \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt deleted file mode 100644 index b2f22a261b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) - IntermediateToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = - CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml) - IntermediateToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt deleted file mode 100644 index e4720d06609..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (10:0,10 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml) -|1+1| -Generated Location: (764:19,10 [3] ) -|1+1| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs deleted file mode 100644 index 8f6c52477ef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs +++ /dev/null @@ -1,26 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0fa6894c606c7426da1d8cacfbacf8be971c777f" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"0fa6894c606c7426da1d8cacfbacf8be971c777f", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("1 + 1 = "); -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml" - Write(1+1); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt deleted file mode 100644 index c1867efbb61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) - IntermediateToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = - CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml) - IntermediateToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml deleted file mode 100644 index a4d4caa007c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml +++ /dev/null @@ -1,16 +0,0 @@ -@{ - object foo = null; - string bar = "Foo"; -} - -@if(foo != null) { - @foo -} else { -

        Foo is Null!

        -} - -

        -@if(!String.IsNullOrEmpty(bar)) { - @(bar.Replace("F", "B")) -} -

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs deleted file mode 100644 index d0cd34cc747..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - - object foo = null; - string bar = "Foo"; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - if(foo != null) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" -__o = foo; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - -} else { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - if(!String.IsNullOrEmpty(bar)) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" -__o = bar.Replace("F", "B"); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html deleted file mode 100644 index de86958addf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - -

        Foo is Null!

        - - -

        - - - -

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt deleted file mode 100644 index 358e6bc7880..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt +++ /dev/null @@ -1,42 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [51] ExpressionsInCode.cshtml) - IntermediateToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n - HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - IntermediateToken - (56:4,0 [2] ExpressionsInCode.cshtml) - Html - \n - CSharpCode - (59:5,1 [23] ExpressionsInCode.cshtml) - IntermediateToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n - CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml) - IntermediateToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo - CSharpCode - (86:6,8 [16] ExpressionsInCode.cshtml) - IntermediateToken - (86:6,8 [16] ExpressionsInCode.cshtml) - CSharp - \n} else {\n - HtmlContent - (102:8,4 [19] ExpressionsInCode.cshtml) - IntermediateToken - (102:8,4 [2] ExpressionsInCode.cshtml) - Html -

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

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

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

        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt deleted file mode 100644 index 0db37968267..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt +++ /dev/null @@ -1,58 +0,0 @@ -Source Location: (2:0,2 [51] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -| - object foo = null; - string bar = "Foo"; -| -Generated Location: (754:19,2 [51] ) -| - object foo = null; - string bar = "Foo"; -| - -Source Location: (59:5,1 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -|if(foo != null) { - | -Generated Location: (968:28,1 [23] ) -|if(foo != null) { - | - -Source Location: (83:6,5 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -|foo| -Generated Location: (1161:36,6 [3] ) -|foo| - -Source Location: (86:6,8 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -| -} else { - | -Generated Location: (1337:43,8 [16] ) -| -} else { - | - -Source Location: (121:8,23 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -| -}| -Generated Location: (1540:52,23 [3] ) -| -}| - -Source Location: (134:12,1 [38] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -|if(!String.IsNullOrEmpty(bar)) { - | -Generated Location: (1709:60,1 [38] ) -|if(!String.IsNullOrEmpty(bar)) { - | - -Source Location: (174:13,6 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -|bar.Replace("F", "B")| -Generated Location: (1918:68,6 [21] ) -|bar.Replace("F", "B")| - -Source Location: (196:13,28 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml) -| -}| -Generated Location: (2133:75,28 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs deleted file mode 100644 index f5c181ecb92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs +++ /dev/null @@ -1,84 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3ccb5b16f61b84dd82d7402e4a17870a39d09ca9" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3ccb5b16f61b84dd82d7402e4a17870a39d09ca9", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - - object foo = null; - string bar = "Foo"; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - if(foo != null) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" -Write(foo); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - -} else { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Foo is Null!

        \r\n"); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n

        \r\n"); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - if(!String.IsNullOrEmpty(bar)) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" -Write(bar.Replace("F", "B")); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" - -} - -#line default -#line hidden -#nullable disable - WriteLiteral("

        "); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt deleted file mode 100644 index 57aeaa556b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt +++ /dev/null @@ -1,38 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [51] ExpressionsInCode.cshtml) - IntermediateToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n - HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - IntermediateToken - (56:4,0 [2] ExpressionsInCode.cshtml) - Html - \n - CSharpCode - (59:5,1 [23] ExpressionsInCode.cshtml) - IntermediateToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n - CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml) - IntermediateToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo - CSharpCode - (86:6,8 [12] ExpressionsInCode.cshtml) - IntermediateToken - (86:6,8 [12] ExpressionsInCode.cshtml) - CSharp - \n} else {\n - HtmlContent - (98:8,0 [25] ExpressionsInCode.cshtml) - IntermediateToken - (98:8,0 [4] ExpressionsInCode.cshtml) - Html - - IntermediateToken - (102:8,4 [2] ExpressionsInCode.cshtml) - Html -

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

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

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

        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml deleted file mode 100644 index 5d06b37224d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml +++ /dev/null @@ -1,12 +0,0 @@ -@functions { - -} - -@functions { - Random _rand = new Random(); - private int RandomInt() { - return _rand.Next(); - } -} - -Here's a random number: @RandomInt() \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml deleted file mode 100644 index 6b3de50b2cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml +++ /dev/null @@ -1,7 +0,0 @@ - - - @functions{ -string foo(string input) { - return input + "!"; -} -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs deleted file mode 100644 index 6447c907bb9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml" - -string foo(string input) { - return input + "!"; -} - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html deleted file mode 100644 index 6393f9703b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt deleted file mode 100644 index f460329dab3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - IntermediateToken - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - Html - \n\n - CSharpCode - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - IntermediateToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt deleted file mode 100644 index e09fcdf23ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (16:2,12 [55] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml) -| -string foo(string input) { - return input + "!"; -} -| -Generated Location: (824:21,15 [55] ) -| -string foo(string input) { - return input + "!"; -} -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs deleted file mode 100644 index 9dd9ba4e533..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5ba3477b8f10b5207bb9f610499189ac0d50aaa0" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"5ba3477b8f10b5207bb9f610499189ac0d50aaa0", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n\r\n"); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml" - -string foo(string input) { - return input + "!"; -} - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt deleted file mode 100644 index 5efffb27062..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - IntermediateToken - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - Html - \n\n - CSharpCode - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - IntermediateToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs deleted file mode 100644 index 762e0b2a010..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml" - __o = RandomInt(); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml" - - Random _rand = new Random(); - private int RandomInt() { - return _rand.Next(); - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html deleted file mode 100644 index 46d84b460b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - -Here's a random number: \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt deleted file mode 100644 index e71b8ed6a92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (17:2,1 [4] FunctionsBlock.cshtml) - IntermediateToken - (17:2,1 [4] FunctionsBlock.cshtml) - Html - \n\n - HtmlContent - (138:9,1 [28] FunctionsBlock.cshtml) - IntermediateToken - (138:9,1 [28] FunctionsBlock.cshtml) - Html - \n\nHere's a random number: - CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml) - IntermediateToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() - CSharpCode - (12:0,12 [4] FunctionsBlock.cshtml) - IntermediateToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n - CSharpCode - (33:4,12 [104] FunctionsBlock.cshtml) - IntermediateToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt deleted file mode 100644 index d2d85221635..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (167:11,25 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml) -|RandomInt()| -Generated Location: (772:19,25 [11] ) -|RandomInt()| - -Source Location: (12:0,12 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml) -| - -| -Generated Location: (1006:28,12 [4] ) -| - -| - -Source Location: (33:4,12 [104] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml) -| - Random _rand = new Random(); - private int RandomInt() { - return _rand.Next(); - } -| -Generated Location: (1181:36,12 [104] ) -| - Random _rand = new Random(); - private int RandomInt() { - return _rand.Next(); - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs deleted file mode 100644 index f005acdd93a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs +++ /dev/null @@ -1,38 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e6a053bfeb65ba3e17885a8ae1523f28a3483258" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e6a053bfeb65ba3e17885a8ae1523f28a3483258", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - WriteLiteral("\r\nHere\'s a random number: "); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml" - Write(RandomInt()); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml" - - Random _rand = new Random(); - private int RandomInt() { - return _rand.Next(); - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt deleted file mode 100644 index 4b05dbcc3de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt +++ /dev/null @@ -1,16 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (19:3,0 [2] FunctionsBlock.cshtml) - IntermediateToken - (19:3,0 [2] FunctionsBlock.cshtml) - Html - \n - HtmlContent - (140:10,0 [26] FunctionsBlock.cshtml) - IntermediateToken - (140:10,0 [26] FunctionsBlock.cshtml) - Html - \nHere's a random number: - CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml) - IntermediateToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() - CSharpCode - (12:0,12 [4] FunctionsBlock.cshtml) - IntermediateToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n - CSharpCode - (33:4,12 [104] FunctionsBlock.cshtml) - IntermediateToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml deleted file mode 100644 index a6addbe97cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - @@Da -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs deleted file mode 100644 index 7e2f26e97e7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml" - @Da - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html deleted file mode 100644 index 13484a1b456..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt deleted file mode 100644 index 6c3f2a9d41b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] HiddenSpansInCode.cshtml) - IntermediateToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n - CSharpCode - (9:1,5 [5] HiddenSpansInCode.cshtml) - IntermediateToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt deleted file mode 100644 index b073a2350b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml) -| - | -Generated Location: (754:19,2 [6] ) -| - | - -Source Location: (9:1,5 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml) -|@Da -| -Generated Location: (929:27,5 [5] ) -|@Da -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs deleted file mode 100644 index a39b51584d0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs +++ /dev/null @@ -1,25 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9bc7458ab052e80d9c977bfce0f0c7e8aef0d80f" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"9bc7458ab052e80d9c977bfce0f0c7e8aef0d80f", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml" - @Da - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt deleted file mode 100644 index 92fc13fef7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] HiddenSpansInCode.cshtml) - IntermediateToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n - CSharpCode - (9:1,5 [5] HiddenSpansInCode.cshtml) - IntermediateToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml deleted file mode 100644 index 6a99437910d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.cs deleted file mode 100644 index 6add10d801b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.html deleted file mode 100644 index 21fdc4d3167..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.codegen.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt deleted file mode 100644 index 4d1b62bfcc1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - IntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - - IntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Double.cshtml) - Html - \n - IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.mappings.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.codegen.cs deleted file mode 100644 index fb924e6327a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.codegen.cs +++ /dev/null @@ -1,19 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "520aebbcdbdb163b131356be8f3aef0eb0809c47" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"520aebbcdbdb163b131356be8f3aef0eb0809c47", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt deleted file mode 100644 index 4408836bd2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - IntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - - IntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Double.cshtml) - Html - \n - IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml deleted file mode 100644 index dc1b21a5468..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.cs deleted file mode 100644 index e20af5e1ca7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.html deleted file mode 100644 index 1c32421c7e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.codegen.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt deleted file mode 100644 index 4445841a713..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - IntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - - IntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Single.cshtml) - Html - \n - IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.mappings.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.codegen.cs deleted file mode 100644 index 1bce0936db8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.codegen.cs +++ /dev/null @@ -1,19 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2080c7f4c5de3e5e7f309c11a6be5c5e8d86e75a" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2080c7f4c5de3e5e7f309c11a6be5c5e8d86e75a", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt deleted file mode 100644 index 406418bcaf4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - IntermediateToken - (0:0,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - - IntermediateToken - (10:0,10 [2] HtmlCommentWithQuote_Single.cshtml) - Html - \n - IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml deleted file mode 100644 index cc52b3487f1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@implements IDisposable - -@functions { - void IDisposable.Dispose() { } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs deleted file mode 100644 index 94eba1f89dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Implements_DesignTime : IDisposable - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml" -IDisposable __typeHelper = default!; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml" - - void IDisposable.Dispose() { } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html deleted file mode 100644 index d0776340e1a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.ir.txt deleted file mode 100644 index cf982456f4d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.ir.txt +++ /dev/null @@ -1,16 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Implements_DesignTime - - IDisposable - DesignTimeDirective - - DirectiveToken - (12:0,12 [11] Implements.cshtml) - IDisposable - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (25:1,0 [2] Implements.cshtml) - IntermediateToken - (25:1,0 [2] Implements.cshtml) - Html - \n - CSharpCode - (39:2,12 [38] Implements.cshtml) - IntermediateToken - (39:2,12 [38] Implements.cshtml) - CSharp - \n void IDisposable.Dispose() { }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt deleted file mode 100644 index f9010a682e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (12:0,12 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml) -|IDisposable| -Generated Location: (498:12,0 [11] ) -|IDisposable| - -Source Location: (39:2,12 [38] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml) -| - void IDisposable.Dispose() { } -| -Generated Location: (1066:31,12 [38] ) -| - void IDisposable.Dispose() { } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs deleted file mode 100644 index 0cab554528e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "46e30222edb02ded9cda34df5c2593e760643d53" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Implements_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"46e30222edb02ded9cda34df5c2593e760643d53", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Implements_Runtime : IDisposable - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml" - - void IDisposable.Dispose() { } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.ir.txt deleted file mode 100644 index 1ee182d674d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Implements_Runtime - - IDisposable - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (25:1,0 [2] Implements.cshtml) - IntermediateToken - (25:1,0 [2] Implements.cshtml) - Html - \n - CSharpCode - (39:2,12 [38] Implements.cshtml) - IntermediateToken - (39:2,12 [38] Implements.cshtml) - CSharp - \n void IDisposable.Dispose() { }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml deleted file mode 100644 index dcce7fa5723..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@for(int i = 1; i <= 10; i++) { -

        This is item #@i

        -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml deleted file mode 100644 index 365d20e003b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - -@ \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs deleted file mode 100644 index 24e93434523..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml" -__o = ; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html deleted file mode 100644 index f1c2edafa22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ -This is markup - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.diagnostics.txt deleted file mode 100644 index e2a8c290951..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml(3,2): Error RZ1004: End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt deleted file mode 100644 index 19598b5d7e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt +++ /dev/null @@ -1,15 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - IntermediateToken - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n - CSharpExpression - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - IntermediateToken - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt deleted file mode 100644 index 2fb787f40e7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (19:2,1 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml) -|| -Generated Location: (770:19,6 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs deleted file mode 100644 index 09e806ccbc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs +++ /dev/null @@ -1,26 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "94cd2b5a8281fc76002fc745485949cf3952a058" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"94cd2b5a8281fc76002fc745485949cf3952a058", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("This is markup\r\n\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml" -Write(); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.diagnostics.txt deleted file mode 100644 index e2a8c290951..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml(3,2): Error RZ1004: End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt deleted file mode 100644 index b2ac3e35208..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt +++ /dev/null @@ -1,10 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - IntermediateToken - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n - CSharpExpression - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - IntermediateToken - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs deleted file mode 100644 index 2f981797ebb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" - for(int i = 1; i <= 10; i++) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html deleted file mode 100644 index c3ca733a2bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html +++ /dev/null @@ -1,3 +0,0 @@ - -

        This is item #

        - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt deleted file mode 100644 index f082ae44b63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (1:0,1 [36] ImplicitExpression.cshtml) - IntermediateToken - (1:0,1 [36] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n - HtmlContent - (37:1,4 [17] ImplicitExpression.cshtml) - IntermediateToken - (37:1,4 [2] ImplicitExpression.cshtml) - Html -

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

        - CSharpCode - (60:1,27 [3] ImplicitExpression.cshtml) - IntermediateToken - (60:1,27 [3] ImplicitExpression.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt deleted file mode 100644 index b0b0d935f5d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (1:0,1 [36] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml) -|for(int i = 1; i <= 10; i++) { - | -Generated Location: (755:19,1 [36] ) -|for(int i = 1; i <= 10; i++) { - | - -Source Location: (55:1,22 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml) -|i| -Generated Location: (978:27,22 [1] ) -|i| - -Source Location: (60:1,27 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml) -| -}| -Generated Location: (1172:34,27 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs deleted file mode 100644 index 1cc29a9c8c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "68460c577f1cb90794f25535a35a82ff2aa4c193" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"68460c577f1cb90794f25535a35a82ff2aa4c193", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" - for(int i = 1; i <= 10; i++) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        This is item #"); -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt deleted file mode 100644 index 3804c925f8f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (1:0,1 [32] ImplicitExpression.cshtml) - IntermediateToken - (1:0,1 [32] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n - HtmlContent - (33:1,0 [21] ImplicitExpression.cshtml) - IntermediateToken - (33:1,0 [4] ImplicitExpression.cshtml) - Html - - IntermediateToken - (37:1,4 [2] ImplicitExpression.cshtml) - Html -

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

        - IntermediateToken - (60:1,27 [2] ImplicitExpression.cshtml) - Html - \n - CSharpCode - (62:2,0 [1] ImplicitExpression.cshtml) - IntermediateToken - (62:2,0 [1] ImplicitExpression.cshtml) - CSharp - } diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml deleted file mode 100644 index 3b56f0b173e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml +++ /dev/null @@ -1,25 +0,0 @@ -@* These test files validate that end-to-end, incomplete directives don't throw. *@ - -@addTagHelper -@addTagHelper -@addTagHelper " - -@removeTagHelper -@removeTagHelper -@removeTagHelper " - -@tagHelperPrefix -@tagHelperPrefix -@tagHelperPrefix " - -@inherits -@inherits - -@functions -@functions - -@section -@section - -@section { -@functions { \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs deleted file mode 100644 index 3b83a11a6d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = ""; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = ""; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = "; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = ""; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = ""; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = "; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = ""; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = ""; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" -global::System.Object __typeHelper = "; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" - - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" - - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html deleted file mode 100644 index b7d08f38561..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - { - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt deleted file mode 100644 index c7d8d88528b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.diagnostics.txt +++ /dev/null @@ -1,27 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(3,2): Error RZ1018: Directive 'addTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(3,14): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(4,2): Error RZ1018: Directive 'addTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(4,15): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(5,15): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(5,15): Error RZ1036: Invalid tag helper directive look up text '"'. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(7,2): Error RZ1018: Directive 'removeTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(7,17): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(8,2): Error RZ1018: Directive 'removeTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(8,18): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(9,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(9,18): Error RZ1036: Invalid tag helper directive look up text '"'. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(11,2): Error RZ1018: Directive 'tagHelperPrefix' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(12,1): Error RZ2001: The 'tagHelperPrefix' directive may only occur once per document. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(12,2): Error RZ1018: Directive 'tagHelperPrefix' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(13,1): Error RZ2001: The 'tagHelperPrefix' directive may only occur once per document. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(13,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(13,18): Error RZ1020: Invalid tag helper directive 'tagHelperPrefix' value. '"' is not allowed in prefix '"'. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(15,10): Error RZ1013: The 'inherits' directive expects a type name. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(16,1): Error RZ2001: The 'inherits' directive may only occur once per document. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(16,11): Error RZ1013: The 'inherits' directive expects a type name. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(19,1): Error RZ1017: Unexpected literal following the 'functions' directive. Expected '{'. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(21,1): Error RZ1017: Unexpected literal following the 'functions' directive. Expected '{'. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(21,9): Error RZ1015: The 'section' directive expects an identifier. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(22,10): Error RZ1015: The 'section' directive expects an identifier. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(24,10): Error RZ1015: The 'section' directive expects an identifier. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(25,12): Error RZ1006: The functions block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt deleted file mode 100644 index f31a5b77ea5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt +++ /dev/null @@ -1,82 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_DesignTime - - - DesignTimeDirective - - DirectiveToken - (100:2,13 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (116:3,14 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (132:4,14 [1] IncompleteDirectives.cshtml) - " - DirectiveToken - (153:6,16 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (172:7,17 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (191:8,17 [1] IncompleteDirectives.cshtml) - " - DirectiveToken - (212:10,16 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (231:11,17 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (250:12,17 [1] IncompleteDirectives.cshtml) - " - DirectiveToken - (276:15,10 [0] IncompleteDirectives.cshtml) - - DirectiveToken - (326:21,9 [0] IncompleteDirectives.cshtml) - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (85:1,0 [2] IncompleteDirectives.cshtml) - IntermediateToken - (85:1,0 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (100:2,13 [0] IncompleteDirectives.cshtml) - addTagHelper - DirectiveToken - (100:2,13 [0] IncompleteDirectives.cshtml) - - HtmlContent - (100:2,13 [2] IncompleteDirectives.cshtml) - IntermediateToken - (100:2,13 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (116:3,14 [0] IncompleteDirectives.cshtml) - addTagHelper - DirectiveToken - (116:3,14 [0] IncompleteDirectives.cshtml) - - HtmlContent - (116:3,14 [2] IncompleteDirectives.cshtml) - IntermediateToken - (116:3,14 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (132:4,14 [1] IncompleteDirectives.cshtml) - addTagHelper - DirectiveToken - (132:4,14 [1] IncompleteDirectives.cshtml) - " - HtmlContent - (133:4,15 [4] IncompleteDirectives.cshtml) - IntermediateToken - (133:4,15 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (153:6,16 [0] IncompleteDirectives.cshtml) - removeTagHelper - DirectiveToken - (153:6,16 [0] IncompleteDirectives.cshtml) - - HtmlContent - (153:6,16 [2] IncompleteDirectives.cshtml) - IntermediateToken - (153:6,16 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (172:7,17 [0] IncompleteDirectives.cshtml) - removeTagHelper - DirectiveToken - (172:7,17 [0] IncompleteDirectives.cshtml) - - HtmlContent - (172:7,17 [2] IncompleteDirectives.cshtml) - IntermediateToken - (172:7,17 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (191:8,17 [1] IncompleteDirectives.cshtml) - removeTagHelper - DirectiveToken - (191:8,17 [1] IncompleteDirectives.cshtml) - " - HtmlContent - (192:8,18 [4] IncompleteDirectives.cshtml) - IntermediateToken - (192:8,18 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (212:10,16 [0] IncompleteDirectives.cshtml) - tagHelperPrefix - DirectiveToken - (212:10,16 [0] IncompleteDirectives.cshtml) - - HtmlContent - (212:10,16 [2] IncompleteDirectives.cshtml) - IntermediateToken - (212:10,16 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (231:11,17 [0] IncompleteDirectives.cshtml) - tagHelperPrefix - DirectiveToken - (231:11,17 [0] IncompleteDirectives.cshtml) - - HtmlContent - (231:11,17 [2] IncompleteDirectives.cshtml) - IntermediateToken - (231:11,17 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (250:12,17 [1] IncompleteDirectives.cshtml) - tagHelperPrefix - DirectiveToken - (250:12,17 [1] IncompleteDirectives.cshtml) - " - HtmlContent - (251:12,18 [4] IncompleteDirectives.cshtml) - IntermediateToken - (251:12,18 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (255:14,0 [9] IncompleteDirectives.cshtml) - inherits - HtmlContent - (264:14,9 [2] IncompleteDirectives.cshtml) - IntermediateToken - (264:14,9 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (266:15,0 [10] IncompleteDirectives.cshtml) - inherits - DirectiveToken - (276:15,10 [0] IncompleteDirectives.cshtml) - - HtmlContent - (276:15,10 [4] IncompleteDirectives.cshtml) - IntermediateToken - (276:15,10 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (280:17,0 [12] IncompleteDirectives.cshtml) - functions - MalformedDirective - (292:18,0 [15] IncompleteDirectives.cshtml) - functions - MalformedDirective - (307:20,0 [8] IncompleteDirectives.cshtml) - section - HtmlContent - (315:20,8 [2] IncompleteDirectives.cshtml) - IntermediateToken - (315:20,8 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (317:21,0 [9] IncompleteDirectives.cshtml) - section - DirectiveToken - (326:21,9 [0] IncompleteDirectives.cshtml) - - HtmlContent - (326:21,9 [4] IncompleteDirectives.cshtml) - IntermediateToken - (326:21,9 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (330:23,0 [9] IncompleteDirectives.cshtml) - section - HtmlContent - (339:23,9 [3] IncompleteDirectives.cshtml) - IntermediateToken - (339:23,9 [3] IncompleteDirectives.cshtml) - Html - {\n - MalformedDirective - (342:24,0 [12] IncompleteDirectives.cshtml) - functions - CSharpCode - (354:24,12 [0] IncompleteDirectives.cshtml) - IntermediateToken - (354:24,12 [0] IncompleteDirectives.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt deleted file mode 100644 index bc88dd7adfa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt +++ /dev/null @@ -1,60 +0,0 @@ -Source Location: (100:2,13 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (542:12,38 [0] ) -|| - -Source Location: (116:3,14 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (809:22,38 [0] ) -|| - -Source Location: (132:4,14 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|"| -Generated Location: (1075:32,37 [1] ) -|"| - -Source Location: (153:6,16 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (1342:42,38 [0] ) -|| - -Source Location: (172:7,17 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (1609:52,38 [0] ) -|| - -Source Location: (191:8,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|"| -Generated Location: (1875:62,37 [1] ) -|"| - -Source Location: (212:10,16 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (2143:72,38 [0] ) -|| - -Source Location: (231:11,17 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (2411:82,38 [0] ) -|| - -Source Location: (250:12,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|"| -Generated Location: (2678:92,37 [1] ) -|"| - -Source Location: (276:15,10 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (2908:102,0 [0] ) -|| - -Source Location: (326:21,9 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (3137:112,0 [0] ) -|| - -Source Location: (354:24,12 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml) -|| -Generated Location: (3632:129,12 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs deleted file mode 100644 index c3973b444bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "41721dbbbcb64df19057144a2095a3e1f7466401" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"41721dbbbcb64df19057144a2095a3e1f7466401", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - WriteLiteral("\r\n"); - WriteLiteral("\r\n"); - WriteLiteral("\r\n"); - WriteLiteral("\r\n"); - WriteLiteral("\r\n\r\n"); - WriteLiteral("\r\n"); - WriteLiteral("\r\n\r\n"); - WriteLiteral("{\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt deleted file mode 100644 index c7d8d88528b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.diagnostics.txt +++ /dev/null @@ -1,27 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(3,2): Error RZ1018: Directive 'addTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(3,14): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(4,2): Error RZ1018: Directive 'addTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(4,15): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(5,15): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(5,15): Error RZ1036: Invalid tag helper directive look up text '"'. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(7,2): Error RZ1018: Directive 'removeTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(7,17): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(8,2): Error RZ1018: Directive 'removeTagHelper' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(8,18): Error RZ1036: Invalid tag helper directive look up text ''. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(9,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(9,18): Error RZ1036: Invalid tag helper directive look up text '"'. The correct look up text format is: "name, assemblyName". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(11,2): Error RZ1018: Directive 'tagHelperPrefix' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(12,1): Error RZ2001: The 'tagHelperPrefix' directive may only occur once per document. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(12,2): Error RZ1018: Directive 'tagHelperPrefix' must have a value. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(13,1): Error RZ2001: The 'tagHelperPrefix' directive may only occur once per document. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(13,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(13,18): Error RZ1020: Invalid tag helper directive 'tagHelperPrefix' value. '"' is not allowed in prefix '"'. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(15,10): Error RZ1013: The 'inherits' directive expects a type name. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(16,1): Error RZ2001: The 'inherits' directive may only occur once per document. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(16,11): Error RZ1013: The 'inherits' directive expects a type name. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(19,1): Error RZ1017: Unexpected literal following the 'functions' directive. Expected '{'. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(21,1): Error RZ1017: Unexpected literal following the 'functions' directive. Expected '{'. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(21,9): Error RZ1015: The 'section' directive expects an identifier. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(22,10): Error RZ1015: The 'section' directive expects an identifier. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(24,10): Error RZ1015: The 'section' directive expects an identifier. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml(25,12): Error RZ1006: The functions block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt deleted file mode 100644 index a9b01efba57..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt +++ /dev/null @@ -1,54 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (85:1,0 [2] IncompleteDirectives.cshtml) - IntermediateToken - (85:1,0 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (100:2,13 [2] IncompleteDirectives.cshtml) - addTagHelper - DirectiveToken - (100:2,13 [2] IncompleteDirectives.cshtml) - - MalformedDirective - (116:3,14 [2] IncompleteDirectives.cshtml) - addTagHelper - DirectiveToken - (116:3,14 [2] IncompleteDirectives.cshtml) - - MalformedDirective - (132:4,14 [3] IncompleteDirectives.cshtml) - addTagHelper - DirectiveToken - (132:4,14 [3] IncompleteDirectives.cshtml) - " - HtmlContent - (135:5,0 [2] IncompleteDirectives.cshtml) - IntermediateToken - (135:5,0 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (153:6,16 [2] IncompleteDirectives.cshtml) - removeTagHelper - DirectiveToken - (153:6,16 [2] IncompleteDirectives.cshtml) - - MalformedDirective - (172:7,17 [2] IncompleteDirectives.cshtml) - removeTagHelper - DirectiveToken - (172:7,17 [2] IncompleteDirectives.cshtml) - - MalformedDirective - (191:8,17 [3] IncompleteDirectives.cshtml) - removeTagHelper - DirectiveToken - (191:8,17 [3] IncompleteDirectives.cshtml) - " - HtmlContent - (194:9,0 [2] IncompleteDirectives.cshtml) - IntermediateToken - (194:9,0 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (212:10,16 [2] IncompleteDirectives.cshtml) - tagHelperPrefix - DirectiveToken - (212:10,16 [2] IncompleteDirectives.cshtml) - - MalformedDirective - (231:11,17 [2] IncompleteDirectives.cshtml) - tagHelperPrefix - DirectiveToken - (231:11,17 [2] IncompleteDirectives.cshtml) - - MalformedDirective - (250:12,17 [3] IncompleteDirectives.cshtml) - tagHelperPrefix - DirectiveToken - (250:12,17 [3] IncompleteDirectives.cshtml) - " - HtmlContent - (253:13,0 [2] IncompleteDirectives.cshtml) - IntermediateToken - (253:13,0 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (255:14,0 [9] IncompleteDirectives.cshtml) - inherits - HtmlContent - (264:14,9 [2] IncompleteDirectives.cshtml) - IntermediateToken - (264:14,9 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (266:15,0 [10] IncompleteDirectives.cshtml) - inherits - DirectiveToken - (276:15,10 [0] IncompleteDirectives.cshtml) - - HtmlContent - (276:15,10 [4] IncompleteDirectives.cshtml) - IntermediateToken - (276:15,10 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (280:17,0 [12] IncompleteDirectives.cshtml) - functions - MalformedDirective - (292:18,0 [15] IncompleteDirectives.cshtml) - functions - MalformedDirective - (307:20,0 [8] IncompleteDirectives.cshtml) - section - HtmlContent - (315:20,8 [2] IncompleteDirectives.cshtml) - IntermediateToken - (315:20,8 [2] IncompleteDirectives.cshtml) - Html - \n - MalformedDirective - (317:21,0 [9] IncompleteDirectives.cshtml) - section - DirectiveToken - (326:21,9 [0] IncompleteDirectives.cshtml) - - HtmlContent - (326:21,9 [4] IncompleteDirectives.cshtml) - IntermediateToken - (326:21,9 [4] IncompleteDirectives.cshtml) - Html - \n\n - MalformedDirective - (330:23,0 [9] IncompleteDirectives.cshtml) - section - HtmlContent - (339:23,9 [3] IncompleteDirectives.cshtml) - IntermediateToken - (339:23,9 [3] IncompleteDirectives.cshtml) - Html - {\n - MalformedDirective - (342:24,0 [12] IncompleteDirectives.cshtml) - functions - CSharpCode - (354:24,12 [0] IncompleteDirectives.cshtml) - IntermediateToken - (354:24,12 [0] IncompleteDirectives.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml deleted file mode 100644 index 022784f4266..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@addTagHelper "*, TestAssembly" - -

        Bar

        ; - @:Hello, World -

        Hello, World

        -} - -@while(i <= 10) { -

        Hello from C#, #@(i)

        - i += 1; -} - -@if(i == 11) { -

        We wrote 10 lines!

        -} - -@switch(i) { - case 11: -

        No really, we wrote 10 lines!

        - break; - default: -

        Actually, we didn't...

        - break; -} - -@for(int j = 1; j <= 10; j += 2) { -

        Hello again from C#, #@(j)

        -} - -@try { -

        That time, we wrote 5 lines!

        -} catch(Exception ex) { -

        Oh no! An error occurred: @(ex.Message)

        -} - -@lock(new object()) { -

        This block is locked, for your security!

        -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs deleted file mode 100644 index 554c75fbc5d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs +++ /dev/null @@ -1,195 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - int i = 1; - var foo = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { - } - ) -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - ; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - while(i <= 10) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - i += 1; -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - if(i == 11) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - switch(i) { - case 11: - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - break; - default: - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - break; -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - for(int j = 1; j <= 10; j += 2) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - __o = j; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - try { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - -} catch(Exception ex) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - __o = ex.Message; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - lock(new object()) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html deleted file mode 100644 index 111d1f7474c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html +++ /dev/null @@ -1,38 +0,0 @@ - - -

        Bar

        - Hello, World -

        Hello, World

        - - - -

        Hello from C#, #

        - - - - -

        We wrote 10 lines!

        - - - - -

        No really, we wrote 10 lines!

        - - -

        Actually, we didn't...

        - - - - -

        Hello again from C#, #

        - - - -

        That time, we wrote 5 lines!

        - -

        Oh no! An error occurred:

        - - - -

        This block is locked, for your security!

        - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt deleted file mode 100644 index a20621c6309..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt +++ /dev/null @@ -1,121 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [32] Instrumented.cshtml) - IntermediateToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = - Template - (35:2,15 [10] Instrumented.cshtml) - HtmlContent - (35:2,15 [10] Instrumented.cshtml) - IntermediateToken - (35:2,15 [2] Instrumented.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - CSharpCode - (669:36,51 [3] Instrumented.cshtml) - IntermediateToken - (669:36,51 [3] Instrumented.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt deleted file mode 100644 index 250678a2689..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt +++ /dev/null @@ -1,153 +0,0 @@ -Source Location: (2:0,2 [32] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| - int i = 1; - var foo = | -Generated Location: (744:19,2 [32] ) -| - int i = 1; - var foo = | - -Source Location: (45:2,25 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|; - | -Generated Location: (1060:31,25 [7] ) -|; - | - -Source Location: (68:4,0 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| | -Generated Location: (1226:39,0 [4] ) -| | - -Source Location: (91:4,23 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| -| -Generated Location: (1412:46,23 [2] ) -| -| - -Source Location: (99:7,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|while(i <= 10) { - | -Generated Location: (1572:53,1 [22] ) -|while(i <= 10) { - | - -Source Location: (142:8,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|i| -Generated Location: (1778:61,25 [1] ) -|i| - -Source Location: (148:8,31 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| - i += 1; -}| -Generated Location: (1970:68,31 [16] ) -| - i += 1; -}| - -Source Location: (169:12,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|if(i == 11) { - | -Generated Location: (2147:77,1 [19] ) -|if(i == 11) { - | - -Source Location: (213:13,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| -}| -Generated Location: (2355:85,29 [3] ) -| -}| - -Source Location: (221:16,1 [35] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|switch(i) { - case 11: - | -Generated Location: (2519:93,1 [35] ) -|switch(i) { - case 11: - | - -Source Location: (292:18,44 [40] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| - break; - default: - | -Generated Location: (2758:102,44 [40] ) -| - break; - default: - | - -Source Location: (361:21,37 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| - break; -}| -Generated Location: (2995:112,37 [19] ) -| - break; -}| - -Source Location: (385:25,1 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|for(int j = 1; j <= 10; j += 2) { - | -Generated Location: (3175:121,1 [39] ) -|for(int j = 1; j <= 10; j += 2) { - | - -Source Location: (451:26,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|j| -Generated Location: (3405:129,31 [1] ) -|j| - -Source Location: (457:26,37 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| -}| -Generated Location: (3604:136,37 [3] ) -| -}| - -Source Location: (465:29,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|try { - | -Generated Location: (3768:144,1 [11] ) -|try { - | - -Source Location: (511:30,39 [31] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| -} catch(Exception ex) { - | -Generated Location: (3978:152,39 [31] ) -| -} catch(Exception ex) { - | - -Source Location: (573:32,35 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|ex.Message| -Generated Location: (4204:161,35 [10] ) -|ex.Message| - -Source Location: (588:32,50 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| -}| -Generated Location: (4425:168,50 [3] ) -| -}| - -Source Location: (596:35,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -|lock(new object()) { - | -Generated Location: (4589:176,1 [26] ) -|lock(new object()) { - | - -Source Location: (669:36,51 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml) -| -}| -Generated Location: (4826:184,51 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs deleted file mode 100644 index 4ece1be3bd6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs +++ /dev/null @@ -1,182 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3d0d9c94b62eeccf0a2a106b257a1ea1e22412a9" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3d0d9c94b62eeccf0a2a106b257a1ea1e22412a9", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - - int i = 1; - var foo = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - WriteLiteral("

        Bar

        "); - PopWriter(); - } - ) -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - ; - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - WriteLiteral("Hello, World\r\n

        Hello, World

        \r\n"); - WriteLiteral("\r\n"); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - while(i <= 10) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello from C#, #"); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - i += 1; -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - if(i == 11) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        We wrote 10 lines!

        \r\n"); -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - switch(i) { - case 11: - -#line default -#line hidden -#nullable disable - WriteLiteral("

        No really, we wrote 10 lines!

        \r\n"); -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - break; - default: - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Actually, we didn\'t...

        \r\n"); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - break; -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - for(int j = 1; j <= 10; j += 2) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello again from C#, #"); -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - Write(j); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - try { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        That time, we wrote 5 lines!

        \r\n"); -#nullable restore -#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" -} catch(Exception ex) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Oh no! An error occurred: "); -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - Write(ex.Message); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" - lock(new object()) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        This block is locked, for your security!

        \r\n"); -#nullable restore -#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt deleted file mode 100644 index ac485414f42..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt +++ /dev/null @@ -1,133 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [32] Instrumented.cshtml) - IntermediateToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = - Template - (35:2,15 [10] Instrumented.cshtml) - HtmlContent - (35:2,15 [10] Instrumented.cshtml) - IntermediateToken - (35:2,15 [2] Instrumented.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (669:36,51 [2] Instrumented.cshtml) - Html - \n - CSharpCode - (671:37,0 [1] Instrumented.cshtml) - IntermediateToken - (671:37,0 [1] Instrumented.cshtml) - CSharp - } diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml deleted file mode 100644 index 712ef428483..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@{ - for(int i = 1; i <= 10; i++) { -

        Hello from C#, #@(i.ToString())

        - } -} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs deleted file mode 100644 index cdf9ba33346..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" - - for(int i = 1; i <= 10; i++) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" - __o = i.ToString(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" - - } - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html deleted file mode 100644 index 9148ce73237..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html +++ /dev/null @@ -1,5 +0,0 @@ - - -

        Hello from C#, #

        - - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt deleted file mode 100644 index 1c5e460f3c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [46] MarkupInCodeBlock.cshtml) - IntermediateToken - (2:0,2 [46] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n - HtmlContent - (48:2,8 [19] MarkupInCodeBlock.cshtml) - IntermediateToken - (48:2,8 [2] MarkupInCodeBlock.cshtml) - Html -

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

        - CSharpCode - (86:2,46 [9] MarkupInCodeBlock.cshtml) - IntermediateToken - (86:2,46 [9] MarkupInCodeBlock.cshtml) - CSharp - \n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt deleted file mode 100644 index f88beb53f44..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt +++ /dev/null @@ -1,23 +0,0 @@ -Source Location: (2:0,2 [46] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml) -| - for(int i = 1; i <= 10; i++) { - | -Generated Location: (754:19,2 [46] ) -| - for(int i = 1; i <= 10; i++) { - | - -Source Location: (69:2,29 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml) -|i.ToString()| -Generated Location: (993:28,29 [12] ) -|i.ToString()| - -Source Location: (86:2,46 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml) -| - } -| -Generated Location: (1216:35,46 [9] ) -| - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs deleted file mode 100644 index a578762a041..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "539d5763b7091d29df375085f623b9086e7f8ad6" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"539d5763b7091d29df375085f623b9086e7f8ad6", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" - - for(int i = 1; i <= 10; i++) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello from C#, #"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" - Write(i.ToString()); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" - } - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt deleted file mode 100644 index d517c6d4ad1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [38] MarkupInCodeBlock.cshtml) - IntermediateToken - (2:0,2 [38] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n - HtmlContent - (40:2,0 [27] MarkupInCodeBlock.cshtml) - IntermediateToken - (40:2,0 [8] MarkupInCodeBlock.cshtml) - Html - - IntermediateToken - (48:2,8 [2] MarkupInCodeBlock.cshtml) - Html -

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

        - IntermediateToken - (86:2,46 [2] MarkupInCodeBlock.cshtml) - Html - \n - CSharpCode - (88:3,0 [7] MarkupInCodeBlock.cshtml) - IntermediateToken - (88:3,0 [7] MarkupInCodeBlock.cshtml) - CSharp - }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml deleted file mode 100644 index efc9795e718..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml +++ /dev/null @@ -1,45 +0,0 @@ - -@{ - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, } - }; - - void PrintName(Person person) - { -
        @person.Name
        - } -} - -@{ PrintName(people[0]) } -@{ AnnounceBirthday(people[0]); } - -@functions { - void AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; -
        -

        Happy birthday @(formatted)!

        -
        - -
          - @for (var i = 0; i < person.Age / 10; i++) - { -
        • @(i) Happy birthday!
        • - } -
        - - if (person.Age < 20) - { - return; - } - -

        Secret message

        - } - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml deleted file mode 100644 index f294f341621..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml +++ /dev/null @@ -1,47 +0,0 @@ -@addTagHelper "*, TestAssembly" -@{ - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, }, - }; - - void PrintName(Person person) - { -
        @person.Name
        - } -} - -@{ PrintName(people[0]); } -@{ await AnnounceBirthday(people[0]); } - -@functions { - Task AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; -
        -

        Happy birthday @(formatted)!

        -
        - -
          - @for (var i = 0; i < person.Age / 10; i++) - { -
        • @(i) Happy birthday!
        • - } -
        - - if (person.Age < 20) - { - return Task.CompletedTask; - } - -

        Secret message

        - return Task.CompletedTask; - } - - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs deleted file mode 100644 index ed77c73e5bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs +++ /dev/null @@ -1,167 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocksWithTagHelper_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::DivTagHelper __DivTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, }, - }; - - void PrintName(Person person) - { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - __o = person.Name; - -#line default -#line hidden -#nullable disable - __DivTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - PrintName(people[0]); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - await AnnounceBirthday(people[0]); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - Task AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - __o = formatted; - -#line default -#line hidden -#nullable disable - __DivTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - for (var i = 0; i < person.Age / 10; i++) - { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - - if (person.Age < 20) - { - return Task.CompletedTask; - } - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - return Task.CompletedTask; - } - - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.ir.txt deleted file mode 100644 index 37532809ce2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.ir.txt +++ /dev/null @@ -1,81 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocksWithTagHelper_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] Markup_InCodeBlocksWithTagHelper.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (31:0,31 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (35:1,2 [154] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (35:1,2 [154] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n var people = new Person[]\n {\n new Person() { Name = "Taylor", Age = 95, },\n };\n\n void PrintName(Person person)\n {\n - TagHelper - (189:9,8 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - CSharpExpression - (195:9,14 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (195:9,14 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - person.Name - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - CSharpCode - (212:9,31 [9] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (212:9,31 [9] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n }\n - HtmlContent - (224:12,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (224:12,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (228:13,2 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (228:13,2 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - PrintName(people[0]); - CSharpCode - (256:14,2 [36] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (256:14,2 [36] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - await AnnounceBirthday(people[0]); - HtmlContent - (295:15,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (295:15,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (309:16,12 [106] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (309:16,12 [106] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n Task AnnounceBirthday(Person person)\n {\n var formatted = $"Mr. {person.Name}";\n - TagHelper - (415:20,8 [72] Markup_InCodeBlocksWithTagHelper.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (420:20,13 [33] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (420:20,13 [14] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - IntermediateToken - (434:21,12 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (438:21,16 [15] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - Happy birthday - CSharpExpression - (455:21,33 [9] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (455:21,33 [9] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - formatted - HtmlContent - (465:21,43 [16] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (465:21,43 [1] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - ! - IntermediateToken - (466:21,44 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (471:21,49 [10] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - CSharpCode - (487:22,14 [12] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (487:22,14 [12] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n\n - HtmlContent - (499:24,8 [14] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (499:24,8 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
          - IntermediateToken - (503:24,12 [10] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (514:25,9 [66] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (514:25,9 [66] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - for (var i = 0; i < person.Age / 10; i++)\n {\n - HtmlContent - (580:27,12 [4] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (580:27,12 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
        • - CSharpExpression - (586:27,18 [1] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (586:27,18 [1] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - i - HtmlContent - (588:27,20 [21] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (588:27,20 [16] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - Happy birthday! - IntermediateToken - (604:27,36 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
        • - CSharpCode - (609:27,41 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (609:27,41 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n } - HtmlContent - (620:28,9 [15] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (620:28,9 [10] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - IntermediateToken - (630:29,8 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
        - CSharpCode - (635:29,13 [106] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (635:29,13 [106] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n\n if (person.Age < 20)\n {\n return Task.CompletedTask;\n }\n\n - HtmlContent - (741:36,8 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (741:36,8 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (745:36,12 [14] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - Secret message - IntermediateToken - (759:36,26 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - CSharpCode - (764:36,31 [161] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (764:36,31 [161] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n return Task.CompletedTask;\n }\n\n\n class Person\n {\n public string Name { get; set; }\n public int Age { get; set; }\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt deleted file mode 100644 index d5b99f4dfae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt +++ /dev/null @@ -1,142 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -|"*, TestAssembly"| -Generated Location: (1027:18,37 [17] ) -|"*, TestAssembly"| - -Source Location: (35:1,2 [154] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, }, - }; - - void PrintName(Person person) - { - | -Generated Location: (1540:35,2 [154] ) -| - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, }, - }; - - void PrintName(Person person) - { - | - -Source Location: (195:9,14 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -|person.Name| -Generated Location: (1888:50,14 [11] ) -|person.Name| - -Source Location: (212:9,31 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - } -| -Generated Location: (2258:59,31 [9] ) -| - } -| - -Source Location: (228:13,2 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| PrintName(people[0]); | -Generated Location: (2447:67,2 [23] ) -| PrintName(people[0]); | - -Source Location: (256:14,2 [36] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| await AnnounceBirthday(people[0]); | -Generated Location: (2652:74,2 [36] ) -| await AnnounceBirthday(people[0]); | - -Source Location: (309:16,12 [106] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - Task AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - | -Generated Location: (2929:83,12 [106] ) -| - Task AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - | - -Source Location: (455:21,33 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -|formatted| -Generated Location: (3248:94,33 [9] ) -|formatted| - -Source Location: (487:22,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - - | -Generated Location: (3591:103,14 [12] ) -| - - | - -Source Location: (514:25,9 [66] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -|for (var i = 0; i < person.Age / 10; i++) - { - | -Generated Location: (3792:112,9 [66] ) -|for (var i = 0; i < person.Age / 10; i++) - { - | - -Source Location: (586:27,18 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -|i| -Generated Location: (4056:121,18 [1] ) -|i| - -Source Location: (609:27,41 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - }| -Generated Location: (4279:128,41 [11] ) -| - }| - -Source Location: (635:29,13 [106] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - - if (person.Age < 20) - { - return Task.CompletedTask; - } - - | -Generated Location: (4483:136,13 [106] ) -| - - if (person.Age < 20) - { - return Task.CompletedTask; - } - - | - -Source Location: (764:36,31 [161] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml) -| - return Task.CompletedTask; - } - - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } -| -Generated Location: (4800:150,31 [161] ) -| - return Task.CompletedTask; - } - - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs deleted file mode 100644 index 6f01cf5fcb1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs +++ /dev/null @@ -1,184 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "ffae7582d6e0ce50a5fa046a92205df5abc84d6e" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocksWithTagHelper_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"ffae7582d6e0ce50a5fa046a92205df5abc84d6e", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocksWithTagHelper_Runtime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::DivTagHelper __DivTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, }, - }; - - void PrintName(Person person) - { - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - Write(person.Name); - -#line default -#line hidden -#nullable disable - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - PrintName(people[0]); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - await AnnounceBirthday(people[0]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - Task AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - -#line default -#line hidden -#nullable disable - WriteLiteral(" "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n

        Happy birthday "); -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - Write(formatted); - -#line default -#line hidden -#nullable disable - WriteLiteral("!

        \r\n "); - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - WriteLiteral("
          \r\n"); -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - for (var i = 0; i < person.Age / 10; i++) - { - -#line default -#line hidden -#nullable disable - WriteLiteral("
        • "); -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral(" Happy birthday!
        • \r\n"); -#nullable restore -#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral("
        \r\n"); -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - - if (person.Age < 20) - { - return Task.CompletedTask; - } - - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Secret message

        \r\n"); -#nullable restore -#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml" - return Task.CompletedTask; - } - - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.ir.txt deleted file mode 100644 index 4263327a2e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.ir.txt +++ /dev/null @@ -1,89 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocksWithTagHelper_Runtime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (35:1,2 [146] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (35:1,2 [146] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n var people = new Person[]\n {\n new Person() { Name = "Taylor", Age = 95, },\n };\n\n void PrintName(Person person)\n {\n - HtmlContent - (181:9,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (181:9,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - - TagHelper - (189:9,8 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - CSharpExpression - (195:9,14 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (195:9,14 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - person.Name - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - HtmlContent - (212:9,31 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (212:9,31 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (214:10,0 [7] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (214:10,0 [7] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - }\n - HtmlContent - (224:12,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (224:12,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (228:13,2 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (228:13,2 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - PrintName(people[0]); - CSharpCode - (256:14,2 [36] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (256:14,2 [36] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - await AnnounceBirthday(people[0]); - HtmlContent - (295:15,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (295:15,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (309:16,12 [98] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (309:16,12 [98] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n Task AnnounceBirthday(Person person)\n {\n var formatted = $"Mr. {person.Name}";\n - HtmlContent - (407:20,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (407:20,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - - TagHelper - (415:20,8 [72] Markup_InCodeBlocksWithTagHelper.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (420:20,13 [33] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (420:20,13 [14] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - IntermediateToken - (434:21,12 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (438:21,16 [15] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - Happy birthday - CSharpExpression - (455:21,33 [9] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (455:21,33 [9] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - formatted - HtmlContent - (465:21,43 [16] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (465:21,43 [1] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - ! - IntermediateToken - (466:21,44 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (471:21,49 [10] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - HtmlContent - (487:22,14 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (487:22,14 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (489:23,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (489:23,0 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n - HtmlContent - (491:24,0 [14] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (491:24,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - - IntermediateToken - (499:24,8 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
          - IntermediateToken - (503:24,12 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (505:25,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (505:25,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - - CSharpCode - (514:25,9 [54] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (514:25,9 [54] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - for (var i = 0; i < person.Age / 10; i++)\n {\n - HtmlContent - (568:27,0 [16] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (568:27,0 [12] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - - IntermediateToken - (580:27,12 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
        • - CSharpExpression - (586:27,18 [1] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (586:27,18 [1] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - i - HtmlContent - (588:27,20 [23] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (588:27,20 [16] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - Happy birthday! - IntermediateToken - (604:27,36 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
        • - IntermediateToken - (609:27,41 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (611:28,0 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (611:28,0 [11] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - }\n - HtmlContent - (622:29,0 [15] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (622:29,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - - IntermediateToken - (630:29,8 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -
        - IntermediateToken - (635:29,13 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (637:30,0 [96] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (637:30,0 [96] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - \n if (person.Age < 20)\n {\n return Task.CompletedTask;\n }\n\n - HtmlContent - (733:36,0 [33] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (733:36,0 [8] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - - IntermediateToken - (741:36,8 [3] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (745:36,12 [14] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - Secret message - IntermediateToken - (759:36,26 [5] Markup_InCodeBlocksWithTagHelper.cshtml) - Html -

        - IntermediateToken - (764:36,31 [2] Markup_InCodeBlocksWithTagHelper.cshtml) - Html - \n - CSharpCode - (766:37,0 [159] Markup_InCodeBlocksWithTagHelper.cshtml) - IntermediateToken - (766:37,0 [159] Markup_InCodeBlocksWithTagHelper.cshtml) - CSharp - return Task.CompletedTask;\n }\n\n\n class Person\n {\n public string Name { get; set; }\n public int Age { get; set; }\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs deleted file mode 100644 index 1c7c4784f63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocks_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, } - }; - - void PrintName(Person person) - { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - __o = person.Name; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - PrintName(people[0]) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - AnnounceBirthday(people[0]); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - void AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - __o = formatted; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - for (var i = 0; i < person.Age / 10; i++) - { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - - if (person.Age < 20) - { - return; - } - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - } - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html deleted file mode 100644 index 4b346c914a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - -
        - - - - - - - - - - -
        -

        Happy birthday !

        -
        - -
          - - -
        • Happy birthday!
        • - -
        - - - - - - -

        Secret message

        - - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.ir.txt deleted file mode 100644 index 5307e83bb54..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.ir.txt +++ /dev/null @@ -1,78 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocks_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (0:0,0 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (4:1,2 [153] Markup_InCodeBlocks.cshtml) - IntermediateToken - (4:1,2 [153] Markup_InCodeBlocks.cshtml) - CSharp - \n var people = new Person[]\n {\n new Person() { Name = "Taylor", Age = 95, }\n };\n\n void PrintName(Person person)\n {\n - HtmlContent - (157:9,8 [5] Markup_InCodeBlocks.cshtml) - IntermediateToken - (157:9,8 [4] Markup_InCodeBlocks.cshtml) - Html -
        - CSharpExpression - (163:9,14 [11] Markup_InCodeBlocks.cshtml) - IntermediateToken - (163:9,14 [11] Markup_InCodeBlocks.cshtml) - CSharp - person.Name - HtmlContent - (174:9,25 [6] Markup_InCodeBlocks.cshtml) - IntermediateToken - (174:9,25 [6] Markup_InCodeBlocks.cshtml) - Html -
        - CSharpCode - (180:9,31 [9] Markup_InCodeBlocks.cshtml) - IntermediateToken - (180:9,31 [9] Markup_InCodeBlocks.cshtml) - CSharp - \n }\n - HtmlContent - (192:12,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (192:12,0 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (196:13,2 [22] Markup_InCodeBlocks.cshtml) - IntermediateToken - (196:13,2 [22] Markup_InCodeBlocks.cshtml) - CSharp - PrintName(people[0]) - CSharpCode - (223:14,2 [30] Markup_InCodeBlocks.cshtml) - IntermediateToken - (223:14,2 [30] Markup_InCodeBlocks.cshtml) - CSharp - AnnounceBirthday(people[0]); - HtmlContent - (256:15,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (256:15,0 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (270:16,12 [106] Markup_InCodeBlocks.cshtml) - IntermediateToken - (270:16,12 [106] Markup_InCodeBlocks.cshtml) - CSharp - \n void AnnounceBirthday(Person person)\n {\n var formatted = $"Mr. {person.Name}";\n - HtmlContent - (376:20,8 [38] Markup_InCodeBlocks.cshtml) - IntermediateToken - (376:20,8 [4] Markup_InCodeBlocks.cshtml) - Html -
        - IntermediateToken - (381:20,13 [14] Markup_InCodeBlocks.cshtml) - Html - \n - IntermediateToken - (395:21,12 [3] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (399:21,16 [15] Markup_InCodeBlocks.cshtml) - Html - Happy birthday - CSharpExpression - (416:21,33 [9] Markup_InCodeBlocks.cshtml) - IntermediateToken - (416:21,33 [9] Markup_InCodeBlocks.cshtml) - CSharp - formatted - HtmlContent - (426:21,43 [22] Markup_InCodeBlocks.cshtml) - IntermediateToken - (426:21,43 [1] Markup_InCodeBlocks.cshtml) - Html - ! - IntermediateToken - (427:21,44 [5] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (432:21,49 [10] Markup_InCodeBlocks.cshtml) - Html - \n - IntermediateToken - (442:22,8 [6] Markup_InCodeBlocks.cshtml) - Html -
        - CSharpCode - (448:22,14 [12] Markup_InCodeBlocks.cshtml) - IntermediateToken - (448:22,14 [12] Markup_InCodeBlocks.cshtml) - CSharp - \n\n - HtmlContent - (460:24,8 [14] Markup_InCodeBlocks.cshtml) - IntermediateToken - (460:24,8 [3] Markup_InCodeBlocks.cshtml) - Html -
          - IntermediateToken - (464:24,12 [10] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (475:25,9 [66] Markup_InCodeBlocks.cshtml) - IntermediateToken - (475:25,9 [66] Markup_InCodeBlocks.cshtml) - CSharp - for (var i = 0; i < person.Age / 10; i++)\n {\n - HtmlContent - (541:27,12 [4] Markup_InCodeBlocks.cshtml) - IntermediateToken - (541:27,12 [3] Markup_InCodeBlocks.cshtml) - Html -
        • - CSharpExpression - (547:27,18 [1] Markup_InCodeBlocks.cshtml) - IntermediateToken - (547:27,18 [1] Markup_InCodeBlocks.cshtml) - CSharp - i - HtmlContent - (549:27,20 [21] Markup_InCodeBlocks.cshtml) - IntermediateToken - (549:27,20 [16] Markup_InCodeBlocks.cshtml) - Html - Happy birthday! - IntermediateToken - (565:27,36 [5] Markup_InCodeBlocks.cshtml) - Html -
        • - CSharpCode - (570:27,41 [11] Markup_InCodeBlocks.cshtml) - IntermediateToken - (570:27,41 [11] Markup_InCodeBlocks.cshtml) - CSharp - \n } - HtmlContent - (581:28,9 [15] Markup_InCodeBlocks.cshtml) - IntermediateToken - (581:28,9 [10] Markup_InCodeBlocks.cshtml) - Html - \n - IntermediateToken - (591:29,8 [5] Markup_InCodeBlocks.cshtml) - Html -
        - CSharpCode - (596:29,13 [87] Markup_InCodeBlocks.cshtml) - IntermediateToken - (596:29,13 [87] Markup_InCodeBlocks.cshtml) - CSharp - \n\n if (person.Age < 20)\n {\n return;\n }\n\n - HtmlContent - (683:36,8 [23] Markup_InCodeBlocks.cshtml) - IntermediateToken - (683:36,8 [3] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (687:36,12 [14] Markup_InCodeBlocks.cshtml) - Html - Secret message - IntermediateToken - (701:36,26 [5] Markup_InCodeBlocks.cshtml) - Html -

        - CSharpCode - (706:36,31 [123] Markup_InCodeBlocks.cshtml) - IntermediateToken - (706:36,31 [123] Markup_InCodeBlocks.cshtml) - CSharp - \n }\n\n class Person\n {\n public string Name { get; set; }\n public int Age { get; set; }\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt deleted file mode 100644 index de5fb0e1d3d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt +++ /dev/null @@ -1,133 +0,0 @@ -Source Location: (4:1,2 [153] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, } - }; - - void PrintName(Person person) - { - | -Generated Location: (758:19,2 [153] ) -| - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, } - }; - - void PrintName(Person person) - { - | - -Source Location: (163:9,14 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -|person.Name| -Generated Location: (1092:34,14 [11] ) -|person.Name| - -Source Location: (180:9,31 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - } -| -Generated Location: (1302:41,31 [9] ) -| - } -| - -Source Location: (196:13,2 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| PrintName(people[0]) | -Generated Location: (1478:49,2 [22] ) -| PrintName(people[0]) | - -Source Location: (223:14,2 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| AnnounceBirthday(people[0]); | -Generated Location: (1669:56,2 [30] ) -| AnnounceBirthday(people[0]); | - -Source Location: (270:16,12 [106] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - void AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - | -Generated Location: (1927:65,12 [106] ) -| - void AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - | - -Source Location: (416:21,33 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -|formatted| -Generated Location: (2233:76,33 [9] ) -|formatted| - -Source Location: (448:22,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - - | -Generated Location: (2424:83,14 [12] ) -| - - | - -Source Location: (475:25,9 [66] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -|for (var i = 0; i < person.Age / 10; i++) - { - | -Generated Location: (2612:92,9 [66] ) -|for (var i = 0; i < person.Age / 10; i++) - { - | - -Source Location: (547:27,18 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -|i| -Generated Location: (2863:101,18 [1] ) -|i| - -Source Location: (570:27,41 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - }| -Generated Location: (3073:108,41 [11] ) -| - }| - -Source Location: (596:29,13 [87] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - - if (person.Age < 20) - { - return; - } - - | -Generated Location: (3264:116,13 [87] ) -| - - if (person.Age < 20) - { - return; - } - - | - -Source Location: (706:36,31 [123] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml) -| - } - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } -| -Generated Location: (3549:130,31 [123] ) -| - } - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs deleted file mode 100644 index bf58bbc6f8b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs +++ /dev/null @@ -1,136 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2320e63391918e8389308263bcd1e9ae3cc8cc46" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocks_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2320e63391918e8389308263bcd1e9ae3cc8cc46", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocks_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - var people = new Person[] - { - new Person() { Name = "Taylor", Age = 95, } - }; - - void PrintName(Person person) - { - -#line default -#line hidden -#nullable disable - WriteLiteral("
        "); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - Write(person.Name); - -#line default -#line hidden -#nullable disable - WriteLiteral("
        \r\n"); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - PrintName(people[0]) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - AnnounceBirthday(people[0]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - void AnnounceBirthday(Person person) - { - var formatted = $"Mr. {person.Name}"; - -#line default -#line hidden -#nullable disable - WriteLiteral("
        \r\n

        Happy birthday "); -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - Write(formatted); - -#line default -#line hidden -#nullable disable - WriteLiteral("!

        \r\n
        \r\n"); - WriteLiteral("
          \r\n"); -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - for (var i = 0; i < person.Age / 10; i++) - { - -#line default -#line hidden -#nullable disable - WriteLiteral("
        • "); -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral(" Happy birthday!
        • \r\n"); -#nullable restore -#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral("
        \r\n"); -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - - if (person.Age < 20) - { - return; - } - - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Secret message

        \r\n"); -#nullable restore -#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml" - } - - class Person - { - public string Name { get; set; } - public int Age { get; set; } - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.ir.txt deleted file mode 100644 index 841e57a19a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.ir.txt +++ /dev/null @@ -1,85 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InCodeBlocks_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (0:0,0 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (4:1,2 [145] Markup_InCodeBlocks.cshtml) - IntermediateToken - (4:1,2 [145] Markup_InCodeBlocks.cshtml) - CSharp - \n var people = new Person[]\n {\n new Person() { Name = "Taylor", Age = 95, }\n };\n\n void PrintName(Person person)\n {\n - HtmlContent - (149:9,0 [13] Markup_InCodeBlocks.cshtml) - IntermediateToken - (149:9,0 [8] Markup_InCodeBlocks.cshtml) - Html - - IntermediateToken - (157:9,8 [4] Markup_InCodeBlocks.cshtml) - Html -
        - CSharpExpression - (163:9,14 [11] Markup_InCodeBlocks.cshtml) - IntermediateToken - (163:9,14 [11] Markup_InCodeBlocks.cshtml) - CSharp - person.Name - HtmlContent - (174:9,25 [8] Markup_InCodeBlocks.cshtml) - IntermediateToken - (174:9,25 [6] Markup_InCodeBlocks.cshtml) - Html -
        - IntermediateToken - (180:9,31 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (182:10,0 [7] Markup_InCodeBlocks.cshtml) - IntermediateToken - (182:10,0 [7] Markup_InCodeBlocks.cshtml) - CSharp - }\n - HtmlContent - (192:12,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (192:12,0 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (196:13,2 [22] Markup_InCodeBlocks.cshtml) - IntermediateToken - (196:13,2 [22] Markup_InCodeBlocks.cshtml) - CSharp - PrintName(people[0]) - CSharpCode - (223:14,2 [30] Markup_InCodeBlocks.cshtml) - IntermediateToken - (223:14,2 [30] Markup_InCodeBlocks.cshtml) - CSharp - AnnounceBirthday(people[0]); - HtmlContent - (256:15,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (256:15,0 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (270:16,12 [98] Markup_InCodeBlocks.cshtml) - IntermediateToken - (270:16,12 [98] Markup_InCodeBlocks.cshtml) - CSharp - \n void AnnounceBirthday(Person person)\n {\n var formatted = $"Mr. {person.Name}";\n - HtmlContent - (368:20,0 [46] Markup_InCodeBlocks.cshtml) - IntermediateToken - (368:20,0 [8] Markup_InCodeBlocks.cshtml) - Html - - IntermediateToken - (376:20,8 [4] Markup_InCodeBlocks.cshtml) - Html -
        - IntermediateToken - (381:20,13 [14] Markup_InCodeBlocks.cshtml) - Html - \n - IntermediateToken - (395:21,12 [3] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (399:21,16 [15] Markup_InCodeBlocks.cshtml) - Html - Happy birthday - CSharpExpression - (416:21,33 [9] Markup_InCodeBlocks.cshtml) - IntermediateToken - (416:21,33 [9] Markup_InCodeBlocks.cshtml) - CSharp - formatted - HtmlContent - (426:21,43 [24] Markup_InCodeBlocks.cshtml) - IntermediateToken - (426:21,43 [1] Markup_InCodeBlocks.cshtml) - Html - ! - IntermediateToken - (427:21,44 [5] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (432:21,49 [10] Markup_InCodeBlocks.cshtml) - Html - \n - IntermediateToken - (442:22,8 [6] Markup_InCodeBlocks.cshtml) - Html -
        - IntermediateToken - (448:22,14 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (450:23,0 [2] Markup_InCodeBlocks.cshtml) - IntermediateToken - (450:23,0 [2] Markup_InCodeBlocks.cshtml) - CSharp - \n - HtmlContent - (452:24,0 [14] Markup_InCodeBlocks.cshtml) - IntermediateToken - (452:24,0 [8] Markup_InCodeBlocks.cshtml) - Html - - IntermediateToken - (460:24,8 [3] Markup_InCodeBlocks.cshtml) - Html -
          - IntermediateToken - (464:24,12 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (466:25,0 [8] Markup_InCodeBlocks.cshtml) - IntermediateToken - (466:25,0 [8] Markup_InCodeBlocks.cshtml) - CSharp - - CSharpCode - (475:25,9 [54] Markup_InCodeBlocks.cshtml) - IntermediateToken - (475:25,9 [54] Markup_InCodeBlocks.cshtml) - CSharp - for (var i = 0; i < person.Age / 10; i++)\n {\n - HtmlContent - (529:27,0 [16] Markup_InCodeBlocks.cshtml) - IntermediateToken - (529:27,0 [12] Markup_InCodeBlocks.cshtml) - Html - - IntermediateToken - (541:27,12 [3] Markup_InCodeBlocks.cshtml) - Html -
        • - CSharpExpression - (547:27,18 [1] Markup_InCodeBlocks.cshtml) - IntermediateToken - (547:27,18 [1] Markup_InCodeBlocks.cshtml) - CSharp - i - HtmlContent - (549:27,20 [23] Markup_InCodeBlocks.cshtml) - IntermediateToken - (549:27,20 [16] Markup_InCodeBlocks.cshtml) - Html - Happy birthday! - IntermediateToken - (565:27,36 [5] Markup_InCodeBlocks.cshtml) - Html -
        • - IntermediateToken - (570:27,41 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (572:28,0 [11] Markup_InCodeBlocks.cshtml) - IntermediateToken - (572:28,0 [11] Markup_InCodeBlocks.cshtml) - CSharp - }\n - HtmlContent - (583:29,0 [15] Markup_InCodeBlocks.cshtml) - IntermediateToken - (583:29,0 [8] Markup_InCodeBlocks.cshtml) - Html - - IntermediateToken - (591:29,8 [5] Markup_InCodeBlocks.cshtml) - Html -
        - IntermediateToken - (596:29,13 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (598:30,0 [77] Markup_InCodeBlocks.cshtml) - IntermediateToken - (598:30,0 [77] Markup_InCodeBlocks.cshtml) - CSharp - \n if (person.Age < 20)\n {\n return;\n }\n\n - HtmlContent - (675:36,0 [33] Markup_InCodeBlocks.cshtml) - IntermediateToken - (675:36,0 [8] Markup_InCodeBlocks.cshtml) - Html - - IntermediateToken - (683:36,8 [3] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (687:36,12 [14] Markup_InCodeBlocks.cshtml) - Html - Secret message - IntermediateToken - (701:36,26 [5] Markup_InCodeBlocks.cshtml) - Html -

        - IntermediateToken - (706:36,31 [2] Markup_InCodeBlocks.cshtml) - Html - \n - CSharpCode - (708:37,0 [121] Markup_InCodeBlocks.cshtml) - IntermediateToken - (708:37,0 [121] Markup_InCodeBlocks.cshtml) - CSharp - }\n\n class Person\n {\n public string Name { get; set; }\n public int Age { get; set; }\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml deleted file mode 100644 index c001d4945da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml +++ /dev/null @@ -1,20 +0,0 @@ -@addTagHelper "*, TestAssembly" - -

        - - - - - -

        -
        Tag helper with unmatched bound boolean attributes.
        -

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index c2534fd226d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::DivTagHelper __DivTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper.BoundRequiredString = "hello"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper.BoundRequiredString = "world"; - __TestNamespace_InputTagHelper.BoundRequiredString = "hello2"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper.BoundRequiredString = "world"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __DivTagHelper = CreateTagHelper(); - __DivTagHelper.BoundBoolProp = true; - __DivTagHelper.BoolDictProp["key"] = true; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __DivTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 38941da8af7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,109 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] MinimizedTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] MinimizedTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] MinimizedTagHelpers.cshtml) - Html - \n\n - TagHelper - (35:2,0 [762] MinimizedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (64:2,29 [34] MinimizedTagHelpers.cshtml) - IntermediateToken - (64:2,29 [6] MinimizedTagHelpers.cshtml) - Html - \n - IntermediateToken - (70:3,4 [6] MinimizedTagHelpers.cshtml) - Html - - IntermediateToken - (92:3,26 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (98:4,4 [59] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (112:4,18 [3] MinimizedTagHelpers.cshtml) - IntermediateToken - (112:4,18 [3] MinimizedTagHelpers.cshtml) - Html - btn - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (157:5,39 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (157:5,39 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (163:6,4 [119] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (190:7,18 [3] MinimizedTagHelpers.cshtml) - IntermediateToken - (190:7,18 [3] MinimizedTagHelpers.cshtml) - Html - btn - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (273:7,101 [5] MinimizedTagHelpers.cshtml) - input-bound-required-string - string TestNamespace.InputTagHelper.BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (273:7,101 [5] MinimizedTagHelpers.cshtml) - IntermediateToken - (273:7,101 [5] MinimizedTagHelpers.cshtml) - Html - hello - DefaultTagHelperExecute - - HtmlContent - (282:7,110 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (282:7,110 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (288:8,4 [176] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (315:9,18 [3] MinimizedTagHelpers.cshtml) - IntermediateToken - (315:9,18 [3] MinimizedTagHelpers.cshtml) - Html - btn - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (418:11,57 [5] MinimizedTagHelpers.cshtml) - catchall-bound-string - string TestNamespace.CatchAllTagHelper.BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (418:11,57 [5] MinimizedTagHelpers.cshtml) - IntermediateToken - (418:11,57 [5] MinimizedTagHelpers.cshtml) - Html - world - DefaultTagHelperProperty - (454:11,93 [6] MinimizedTagHelpers.cshtml) - input-bound-required-string - string TestNamespace.InputTagHelper.BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (454:11,93 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (454:11,93 [6] MinimizedTagHelpers.cshtml) - Html - hello2 - DefaultTagHelperExecute - - HtmlContent - (464:11,103 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (464:11,103 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (470:12,4 [206] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (484:12,18 [3] MinimizedTagHelpers.cshtml) - IntermediateToken - (484:12,18 [3] MinimizedTagHelpers.cshtml) - Html - btn - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (529:13,38 [5] MinimizedTagHelpers.cshtml) - IntermediateToken - (529:13,38 [5] MinimizedTagHelpers.cshtml) - Html - hello - DefaultTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (578:14,40 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (578:14,40 [6] MinimizedTagHelpers.cshtml) - Html - hello2 - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (667:16,40 [5] MinimizedTagHelpers.cshtml) - input-bound-required-string - string TestNamespace.InputTagHelper.BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (667:16,40 [5] MinimizedTagHelpers.cshtml) - IntermediateToken - (667:16,40 [5] MinimizedTagHelpers.cshtml) - Html - world - DefaultTagHelperExecute - - HtmlContent - (676:16,49 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (676:16,49 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (682:17,4 [41] MinimizedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperProperty - - boundbool - bool DivTagHelper.BoundBoolProp - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - - booldict-prefix-key - System.Collections.Generic.IDictionary DivTagHelper.BoolDictProp - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (723:17,45 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (723:17,45 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (729:18,4 [62] MinimizedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (734:18,9 [51] MinimizedTagHelpers.cshtml) - IntermediateToken - (734:18,9 [51] MinimizedTagHelpers.cshtml) - Html - Tag helper with unmatched bound boolean attributes. - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - HtmlContent - (791:18,66 [2] MinimizedTagHelpers.cshtml) - IntermediateToken - (791:18,66 [2] MinimizedTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index 42530b4c608..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1179:20,37 [17] ) -|"*, TestAssembly"| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 22d33b83e06..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,190 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "29c9ea0bc587afb2f919c7ed7192d6687b534753" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"29c9ea0bc587afb2f919c7ed7192d6687b534753", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-bound-required-string", "hello", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("catchall-bound-string", "world", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-bound-required-string", "hello2", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("catchall-unbound-required", new global::Microsoft.AspNetCore.Html.HtmlString("hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-unbound-required", new global::Microsoft.AspNetCore.Html.HtmlString("hello2"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-bound-required-string", "world", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::DivTagHelper __DivTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("input-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - __TestNamespace_InputTagHelper.BoundRequiredString = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("input-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - __TestNamespace_CatchAllTagHelper.BoundRequiredString = (string)__tagHelperAttribute_2.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); - __TestNamespace_InputTagHelper.BoundRequiredString = (string)__tagHelperAttribute_3.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - __TestNamespace_InputTagHelper.BoundRequiredString = (string)__tagHelperAttribute_6.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - __DivTagHelper.BoundBoolProp = true; - __tagHelperExecutionContext.AddTagHelperAttribute("boundbool", __DivTagHelper.BoundBoolProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - if (__DivTagHelper.BoolDictProp == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("booldict-prefix-key", "DivTagHelper", "BoolDictProp")); - } - __DivTagHelper.BoolDictProp["key"] = true; - __tagHelperExecutionContext.AddTagHelperAttribute("booldict-prefix-key", __DivTagHelper.BoolDictProp["key"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Tag helper with unmatched bound boolean attributes."); - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt deleted file mode 100644 index 0f51578f510..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,90 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - class - btn - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_1 - input-bound-required-string - hello - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_2 - catchall-bound-string - world - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_3 - input-bound-required-string - hello2 - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_4 - catchall-unbound-required - hello - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_5 - input-unbound-required - hello2 - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_6 - input-bound-required-string - world - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] MinimizedTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (35:2,0 [762] MinimizedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (64:2,29 [34] MinimizedTagHelpers.cshtml) - IntermediateToken - (64:2,29 [6] MinimizedTagHelpers.cshtml) - Html - \n - IntermediateToken - (70:3,4 [6] MinimizedTagHelpers.cshtml) - Html - - IntermediateToken - (92:3,26 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (98:4,4 [59] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (157:5,39 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (157:5,39 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (163:6,4 [119] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized - PreallocatedTagHelperProperty - (273:7,101 [5] MinimizedTagHelpers.cshtml) - __tagHelperAttribute_1 - input-bound-required-string - BoundRequiredString - DefaultTagHelperExecute - - HtmlContent - (282:7,110 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (282:7,110 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (288:8,4 [176] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized - PreallocatedTagHelperProperty - (418:11,57 [5] MinimizedTagHelpers.cshtml) - __tagHelperAttribute_2 - catchall-bound-string - BoundRequiredString - PreallocatedTagHelperProperty - (454:11,93 [6] MinimizedTagHelpers.cshtml) - __tagHelperAttribute_3 - input-bound-required-string - BoundRequiredString - DefaultTagHelperExecute - - HtmlContent - (464:11,103 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (464:11,103 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (470:12,4 [206] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_4 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - PreallocatedTagHelperProperty - (667:16,40 [5] MinimizedTagHelpers.cshtml) - __tagHelperAttribute_6 - input-bound-required-string - BoundRequiredString - DefaultTagHelperExecute - - HtmlContent - (676:16,49 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (676:16,49 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (682:17,4 [41] MinimizedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperProperty - - boundbool - bool DivTagHelper.BoundBoolProp - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - - booldict-prefix-key - System.Collections.Generic.IDictionary DivTagHelper.BoolDictProp - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (723:17,45 [6] MinimizedTagHelpers.cshtml) - IntermediateToken - (723:17,45 [6] MinimizedTagHelpers.cshtml) - Html - \n - TagHelper - (729:18,4 [62] MinimizedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (734:18,9 [51] MinimizedTagHelpers.cshtml) - IntermediateToken - (734:18,9 [51] MinimizedTagHelpers.cshtml) - Html - Tag helper with unmatched bound boolean attributes. - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - HtmlContent - (791:18,66 [2] MinimizedTagHelpers.cshtml) - IntermediateToken - (791:18,66 [2] MinimizedTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml deleted file mode 100644 index 8387e8a28a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@{ - @foreach (var result in (dynamic)Url) - { -
        - @result.SomeValue. -
        - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs deleted file mode 100644 index 1b08e1e505a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - foreach (var result in (dynamic)Url) - { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - __o = result.SomeValue; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html deleted file mode 100644 index c1b9240ee07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html +++ /dev/null @@ -1,8 +0,0 @@ - - - -
        - . -
        - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt deleted file mode 100644 index 46440243528..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] NestedCSharp.cshtml) - IntermediateToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n - CSharpCode - (9:1,5 [53] NestedCSharp.cshtml) - IntermediateToken - (9:1,5 [53] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n - HtmlContent - (62:3,8 [19] NestedCSharp.cshtml) - IntermediateToken - (62:3,8 [4] NestedCSharp.cshtml) - Html -
        - IntermediateToken - (67:3,13 [14] NestedCSharp.cshtml) - Html - \n - CSharpExpression - (82:4,13 [16] NestedCSharp.cshtml) - IntermediateToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue - HtmlContent - (98:4,29 [17] NestedCSharp.cshtml) - IntermediateToken - (98:4,29 [11] NestedCSharp.cshtml) - Html - .\n - IntermediateToken - (109:5,8 [6] NestedCSharp.cshtml) - Html -
        - CSharpCode - (115:5,14 [7] NestedCSharp.cshtml) - IntermediateToken - (115:5,14 [7] NestedCSharp.cshtml) - CSharp - \n } - CSharpCode - (122:6,5 [2] NestedCSharp.cshtml) - IntermediateToken - (122:6,5 [2] NestedCSharp.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt deleted file mode 100644 index b58d527b046..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt +++ /dev/null @@ -1,35 +0,0 @@ -Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml) -| - | -Generated Location: (744:19,2 [6] ) -| - | - -Source Location: (9:1,5 [53] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml) -|foreach (var result in (dynamic)Url) - { - | -Generated Location: (914:27,5 [53] ) -|foreach (var result in (dynamic)Url) - { - | - -Source Location: (82:4,13 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml) -|result.SomeValue| -Generated Location: (1139:36,13 [16] ) -|result.SomeValue| - -Source Location: (115:5,14 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml) -| - }| -Generated Location: (1329:43,14 [7] ) -| - }| - -Source Location: (122:6,5 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml) -| -| -Generated Location: (1500:51,5 [2] ) -| -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs deleted file mode 100644 index 26ba12432c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6be69a1b80bfb35325fef427f0709232182e96a8" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6be69a1b80bfb35325fef427f0709232182e96a8", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - foreach (var result in (dynamic)Url) - { - -#line default -#line hidden -#nullable disable - WriteLiteral("
        \r\n "); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - Write(result.SomeValue); - -#line default -#line hidden -#nullable disable - WriteLiteral(".\r\n
        \r\n"); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml" - } - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt deleted file mode 100644 index 79a60d3403d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt +++ /dev/null @@ -1,26 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] NestedCSharp.cshtml) - IntermediateToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n - CSharpCode - (9:1,5 [45] NestedCSharp.cshtml) - IntermediateToken - (9:1,5 [45] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n - HtmlContent - (54:3,0 [27] NestedCSharp.cshtml) - IntermediateToken - (54:3,0 [8] NestedCSharp.cshtml) - Html - - IntermediateToken - (62:3,8 [4] NestedCSharp.cshtml) - Html -
        - IntermediateToken - (67:3,13 [2] NestedCSharp.cshtml) - Html - \n - IntermediateToken - (69:4,0 [12] NestedCSharp.cshtml) - Html - - CSharpExpression - (82:4,13 [16] NestedCSharp.cshtml) - IntermediateToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue - HtmlContent - (98:4,29 [19] NestedCSharp.cshtml) - IntermediateToken - (98:4,29 [11] NestedCSharp.cshtml) - Html - .\n - IntermediateToken - (109:5,8 [6] NestedCSharp.cshtml) - Html -
        - IntermediateToken - (115:5,14 [2] NestedCSharp.cshtml) - Html - \n - CSharpCode - (117:6,0 [5] NestedCSharp.cshtml) - IntermediateToken - (117:6,0 [5] NestedCSharp.cshtml) - CSharp - } - CSharpCode - (122:6,5 [2] NestedCSharp.cshtml) - IntermediateToken - (122:6,5 [2] NestedCSharp.cshtml) - CSharp - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml deleted file mode 100644 index 070875f5fa3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@if(foo) { - @if(bar) { - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs deleted file mode 100644 index 59b64e36823..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" - if(foo) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" - if(bar) { - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html deleted file mode 100644 index c56380dfcb9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt deleted file mode 100644 index 7522731b780..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt +++ /dev/null @@ -1,17 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (1:0,1 [15] NestedCodeBlocks.cshtml) - IntermediateToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n - CSharpCode - (17:1,5 [16] NestedCodeBlocks.cshtml) - IntermediateToken - (17:1,5 [16] NestedCodeBlocks.cshtml) - CSharp - if(bar) {\n } - CSharpCode - (33:2,5 [3] NestedCodeBlocks.cshtml) - IntermediateToken - (33:2,5 [3] NestedCodeBlocks.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt deleted file mode 100644 index 55d683f4e59..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt +++ /dev/null @@ -1,21 +0,0 @@ -Source Location: (1:0,1 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml) -|if(foo) { - | -Generated Location: (751:19,1 [15] ) -|if(foo) { - | - -Source Location: (17:1,5 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml) -|if(bar) { - }| -Generated Location: (934:27,5 [16] ) -|if(bar) { - }| - -Source Location: (33:2,5 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml) -| -}| -Generated Location: (1118:35,5 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs deleted file mode 100644 index af6d6d502b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d83923f86f1c84f081916ef7308513ab80a65675" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d83923f86f1c84f081916ef7308513ab80a65675", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" - if(foo) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" - if(bar) { - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt deleted file mode 100644 index 2c0030ec657..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (1:0,1 [15] NestedCodeBlocks.cshtml) - IntermediateToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n - CSharpCode - (17:1,5 [16] NestedCodeBlocks.cshtml) - IntermediateToken - (17:1,5 [16] NestedCodeBlocks.cshtml) - CSharp - if(bar) {\n } - CSharpCode - (33:2,5 [3] NestedCodeBlocks.cshtml) - IntermediateToken - (33:2,5 [3] NestedCodeBlocks.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml deleted file mode 100644 index b5fac5a5029..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml +++ /dev/null @@ -1,16 +0,0 @@ -@addTagHelper "*, TestAssembly" - - - } - -

        -
        - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index b59604d45f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedScriptTagTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" - for(var i = 0; i < 5; i++) { - - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" - __o = ViewBag.DefaultInterval; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper.Type = "text"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" - __TestNamespace_InputTagHelper2.Checked = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" - - } - -#line default -#line hidden -#nullable disable - __TestNamespace_PTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt deleted file mode 100644 index cf49fba2670..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,87 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedScriptTagTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] NestedScriptTagTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [108] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] NestedScriptTagTagHelpers.cshtml) - Html - \n\n - IntermediateToken - (35:2,0 [7] NestedScriptTagTagHelpers.cshtml) - Html - - CSharpCode - (422:8,25 [15] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (422:8,25 [15] NestedScriptTagTagHelpers.cshtml) - CSharp - \n } - HtmlContent - (437:9,13 [131] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (437:9,13 [14] NestedScriptTagTagHelpers.cshtml) - Html - \n - IntermediateToken - (451:10,12 [7] NestedScriptTagTagHelpers.cshtml) - Html - - IntermediateToken - (558:12,21 [10] NestedScriptTagTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (149:4,18 [11] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (149:4,18 [11] NestedScriptTagTagHelpers.cshtml) - Html - Hello World - DefaultTagHelperHtmlAttribute - - data-delay - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (174:4,43 [4] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (174:4,43 [4] NestedScriptTagTagHelpers.cshtml) - Html - 1000 - DefaultTagHelperExecute - - HtmlContent - (572:13,12 [23] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (572:13,12 [6] NestedScriptTagTagHelpers.cshtml) - Html - \n - IntermediateToken - (578:14,4 [6] NestedScriptTagTagHelpers.cshtml) - Html -
        - IntermediateToken - (584:14,10 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - IntermediateToken - (586:15,0 [9] NestedScriptTagTagHelpers.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index aa830015795..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1211:20,37 [17] ) -|"*, TestAssembly"| - -Source Location: (195:5,13 [46] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml) -|for(var i = 0; i < 5; i++) { - | -Generated Location: (1728:37,13 [46] ) -|for(var i = 0; i < 5; i++) { - | - -Source Location: (339:7,50 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml) -|ViewBag.DefaultInterval| -Generated Location: (2204:47,50 [23] ) -|ViewBag.DefaultInterval| - -Source Location: (389:7,100 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml) -|true| -Generated Location: (2648:56,100 [4] ) -|true| - -Source Location: (422:8,25 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml) -| - }| -Generated Location: (2926:64,25 [15] ) -| - }| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 6080615b188..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,116 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "958c6fc042a8f49499906b46c11bf4b15446c89d" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedScriptTagTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"958c6fc042a8f49499906b46c11bf4b15446c89d", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedScriptTagTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-delay", new global::Microsoft.AspNetCore.Html.HtmlString("1000"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n\r\n"); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml" - } - -#line default -#line hidden -#nullable disable - WriteLiteral(" \r\n "); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        \r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt deleted file mode 100644 index 7041d3c6fc8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,80 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedScriptTagTagHelpers_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - type - text - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - data-delay - 1000 - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [106] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - IntermediateToken - (35:2,0 [7] NestedScriptTagTagHelpers.cshtml) - Html - - IntermediateToken - (422:8,25 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - CSharpCode - (424:9,0 [15] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (424:9,0 [15] NestedScriptTagTagHelpers.cshtml) - CSharp - }\n - HtmlContent - (439:10,0 [129] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (439:10,0 [12] NestedScriptTagTagHelpers.cshtml) - Html - - IntermediateToken - (451:10,12 [7] NestedScriptTagTagHelpers.cshtml) - Html - - IntermediateToken - (558:12,21 [10] NestedScriptTagTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - HtmlContent - (572:13,12 [23] NestedScriptTagTagHelpers.cshtml) - IntermediateToken - (572:13,12 [6] NestedScriptTagTagHelpers.cshtml) - Html - \n - IntermediateToken - (578:14,4 [6] NestedScriptTagTagHelpers.cshtml) - Html -
        - IntermediateToken - (584:14,10 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - IntermediateToken - (586:15,0 [9] NestedScriptTagTagHelpers.cshtml) - Html - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml deleted file mode 100644 index e6637b03fa9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@addTagHelper *, TestAssembly -Hola -
        - -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index bb5e8332286..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::SpanTagHelper __SpanTagHelper; - private global::DivTagHelper __DivTagHelper; - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __SpanTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __InputTagHelper = CreateTagHelper(); - __InputTagHelper.FooProp = "Hello"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __DivTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 4a4b5e257d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,48 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::SpanTagHelper - __SpanTagHelper - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] NestedTagHelpers.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [2] NestedTagHelpers.cshtml) - IntermediateToken - (29:0,29 [2] NestedTagHelpers.cshtml) - Html - \n - TagHelper - (31:1,0 [26] NestedTagHelpers.cshtml) - span - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (46:1,15 [4] NestedTagHelpers.cshtml) - IntermediateToken - (46:1,15 [4] NestedTagHelpers.cshtml) - Html - Hola - DefaultTagHelperCreate - - SpanTagHelper - DefaultTagHelperHtmlAttribute - - someattr - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (57:1,26 [2] NestedTagHelpers.cshtml) - IntermediateToken - (57:1,26 [2] NestedTagHelpers.cshtml) - Html - \n - TagHelper - (59:2,0 [66] NestedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (78:2,19 [6] NestedTagHelpers.cshtml) - IntermediateToken - (78:2,19 [6] NestedTagHelpers.cshtml) - Html - \n - TagHelper - (84:3,4 [33] NestedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (97:3,17 [5] NestedTagHelpers.cshtml) - value - string InputTagHelper.FooProp - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (97:3,17 [5] NestedTagHelpers.cshtml) - IntermediateToken - (97:3,17 [5] NestedTagHelpers.cshtml) - Html - Hello - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (109:3,29 [4] NestedTagHelpers.cshtml) - IntermediateToken - (109:3,29 [4] NestedTagHelpers.cshtml) - Html - text - DefaultTagHelperExecute - - HtmlContent - (117:3,37 [2] NestedTagHelpers.cshtml) - IntermediateToken - (117:3,37 [2] NestedTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (73:2,14 [3] NestedTagHelpers.cshtml) - IntermediateToken - (73:2,14 [3] NestedTagHelpers.cshtml) - Html - foo - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index 2d0933aae50..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml) -|*, TestAssembly| -Generated Location: (1110:20,38 [15] ) -|*, TestAssembly| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 5022ab7a5b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,91 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5e63d5fe37100e65dfcf39dd1c542eb697b624db" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"5e63d5fe37100e65dfcf39dd1c542eb697b624db", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", "Hello", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("text"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("unbound", new global::Microsoft.AspNetCore.Html.HtmlString("foo"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::SpanTagHelper __SpanTagHelper; - private global::DivTagHelper __DivTagHelper; - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Hola"); - } - ); - __SpanTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__SpanTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("someattr", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__InputTagHelper); - __InputTagHelper.FooProp = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt deleted file mode 100644 index f4c6001b80c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,37 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedTagHelpers_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - value - Hello - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - type - text - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - unbound - foo - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::SpanTagHelper - __SpanTagHelper - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - TagHelper - (31:1,0 [26] NestedTagHelpers.cshtml) - span - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (46:1,15 [4] NestedTagHelpers.cshtml) - IntermediateToken - (46:1,15 [4] NestedTagHelpers.cshtml) - Html - Hola - DefaultTagHelperCreate - - SpanTagHelper - DefaultTagHelperHtmlAttribute - - someattr - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (57:1,26 [2] NestedTagHelpers.cshtml) - IntermediateToken - (57:1,26 [2] NestedTagHelpers.cshtml) - Html - \n - TagHelper - (59:2,0 [66] NestedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (78:2,19 [6] NestedTagHelpers.cshtml) - IntermediateToken - (78:2,19 [6] NestedTagHelpers.cshtml) - Html - \n - TagHelper - (84:3,4 [33] NestedTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - PreallocatedTagHelperProperty - (97:3,17 [5] NestedTagHelpers.cshtml) - __tagHelperAttribute_0 - value - FooProp - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (117:3,37 [2] NestedTagHelpers.cshtml) - IntermediateToken - (117:3,37 [2] NestedTagHelpers.cshtml) - Html - \n - DefaultTagHelperCreate - - DivTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml deleted file mode 100644 index 36e96c46b91..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml +++ /dev/null @@ -1,38 +0,0 @@ -@{ - int i = 1; -} - -@while(i <= 10) { -

        Hello from C#, #@(i)

        - i += 1; -} - -@if(i == 11) { -

        We wrote 10 lines!

        -} - -@switch(i) { - case 11: -

        No really, we wrote 10 lines!

        - break; - default: -

        Actually, we didn't...

        - break; -} - -@for(int j = 1; j <= 10; j += 2) { -

        Hello again from C#, #@(j)

        -} - -@try { -

        That time, we wrote 5 lines!

        -} catch(Exception ex) { -

        Oh no! An error occurred: @(ex.Message)

        -} - -@* With has no equivalent in C# *@ -

        i is now @i

        - -@lock(new object()) { -

        This block is locked, for your security!

        -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs deleted file mode 100644 index b1d0ce40749..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs +++ /dev/null @@ -1,184 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - - int i = 1; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - while(i <= 10) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - - i += 1; -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - if(i == 11) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - switch(i) { - case 11: - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - - break; - default: - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - - break; -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - for(int j = 1; j <= 10; j += 2) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - __o = j; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - -} - -#line default -#line hidden -#nullable disable -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - try { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - -} catch(Exception ex) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - __o = ex.Message; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - -} - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - __o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - lock(new object()) { - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html deleted file mode 100644 index b7c02278c1d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - -

        Hello from C#, #

        - - - - -

        We wrote 10 lines!

        - - - - -

        No really, we wrote 10 lines!

        - - -

        Actually, we didn't...

        - - - - -

        Hello again from C#, #

        - - - -

        That time, we wrote 5 lines!

        - -

        Oh no! An error occurred:

        - - - -

        i is now

        - - -

        This block is locked, for your security!

        - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt deleted file mode 100644 index c5215cb1432..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt +++ /dev/null @@ -1,112 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [18] NoLinePragmas.cshtml) - IntermediateToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n - HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - IntermediateToken - (23:3,0 [2] NoLinePragmas.cshtml) - Html - \n - CSharpCode - (26:4,1 [22] NoLinePragmas.cshtml) - IntermediateToken - (26:4,1 [22] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n - HtmlContent - (48:5,4 [19] NoLinePragmas.cshtml) - IntermediateToken - (48:5,4 [2] NoLinePragmas.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - CSharpCode - (654:36,51 [3] NoLinePragmas.cshtml) - IntermediateToken - (654:36,51 [3] NoLinePragmas.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt deleted file mode 100644 index 1ba876db626..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt +++ /dev/null @@ -1,148 +0,0 @@ -Source Location: (2:0,2 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| - int i = 1; -| -Generated Location: (746:19,2 [18] ) -| - int i = 1; -| - -Source Location: (26:4,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|while(i <= 10) { - | -Generated Location: (923:27,1 [22] ) -|while(i <= 10) { - | - -Source Location: (69:5,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|i| -Generated Location: (1130:35,25 [1] ) -|i| - -Source Location: (75:5,31 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| - i += 1; -}| -Generated Location: (1323:42,31 [16] ) -| - i += 1; -}| - -Source Location: (96:9,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|if(i == 11) { - | -Generated Location: (1501:51,1 [19] ) -|if(i == 11) { - | - -Source Location: (140:10,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| -}| -Generated Location: (1710:59,29 [3] ) -| -}| - -Source Location: (148:13,1 [35] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|switch(i) { - case 11: - | -Generated Location: (1875:67,1 [35] ) -|switch(i) { - case 11: - | - -Source Location: (219:15,44 [40] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| - break; - default: - | -Generated Location: (2115:76,44 [40] ) -| - break; - default: - | - -Source Location: (288:18,37 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| - break; -}| -Generated Location: (2353:86,37 [19] ) -| - break; -}| - -Source Location: (312:22,1 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|for(int j = 1; j <= 10; j += 2) { - | -Generated Location: (2534:95,1 [39] ) -|for(int j = 1; j <= 10; j += 2) { - | - -Source Location: (378:23,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|j| -Generated Location: (2765:103,31 [1] ) -|j| - -Source Location: (384:23,37 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| -}| -Generated Location: (2965:110,37 [3] ) -| -}| - -Source Location: (392:26,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|try { - | -Generated Location: (3130:118,1 [11] ) -|try { - | - -Source Location: (438:27,39 [31] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| -} catch(Exception ex) { - | -Generated Location: (3341:126,39 [31] ) -| -} catch(Exception ex) { - | - -Source Location: (500:29,35 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|ex.Message| -Generated Location: (3568:135,35 [10] ) -|ex.Message| - -Source Location: (515:29,50 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| -} - -| -Generated Location: (3790:142,50 [7] ) -| -} - -| - -Source Location: (556:32,34 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|| -Generated Location: (3990:151,34 [0] ) -|| - -Source Location: (571:33,13 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|i| -Generated Location: (4164:158,13 [1] ) -|i| - -Source Location: (581:35,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -|lock(new object()) { - | -Generated Location: (4328:165,1 [26] ) -|lock(new object()) { - | - -Source Location: (654:36,51 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml) -| -}| -Generated Location: (4566:173,51 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs deleted file mode 100644 index c923c0ece84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs +++ /dev/null @@ -1,175 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c6fa3992fa56644768995c97941d682d90f6d8ec" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c6fa3992fa56644768995c97941d682d90f6d8ec", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - - int i = 1; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - while(i <= 10) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello from C#, #"); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - i += 1; -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - if(i == 11) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        We wrote 10 lines!

        \r\n"); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - switch(i) { - case 11: - -#line default -#line hidden -#nullable disable - WriteLiteral("

        No really, we wrote 10 lines!

        \r\n"); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - break; - default: - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Actually, we didn\'t...

        \r\n"); -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - break; -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - for(int j = 1; j <= 10; j += 2) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello again from C#, #"); -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - Write(j); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" -} - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - try { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        That time, we wrote 5 lines!

        \r\n"); -#nullable restore -#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" -} catch(Exception ex) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Oh no! An error occurred: "); -#nullable restore -#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - Write(ex.Message); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" -} - - -#line default -#line hidden -#nullable disable - WriteLiteral("

        i is now "); -#nullable restore -#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n\r\n"); -#nullable restore -#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" - lock(new object()) { - -#line default -#line hidden -#nullable disable - WriteLiteral("

        This block is locked, for your security!

        \r\n"); -#nullable restore -#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt deleted file mode 100644 index 1b8d2a8073e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt +++ /dev/null @@ -1,122 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [18] NoLinePragmas.cshtml) - IntermediateToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n - HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - IntermediateToken - (23:3,0 [2] NoLinePragmas.cshtml) - Html - \n - CSharpCode - (26:4,1 [18] NoLinePragmas.cshtml) - IntermediateToken - (26:4,1 [18] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n - HtmlContent - (44:5,0 [23] NoLinePragmas.cshtml) - IntermediateToken - (44:5,0 [4] NoLinePragmas.cshtml) - Html - - IntermediateToken - (48:5,4 [2] NoLinePragmas.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (654:36,51 [2] NoLinePragmas.cshtml) - Html - \n - CSharpCode - (656:37,0 [1] NoLinePragmas.cshtml) - IntermediateToken - (656:37,0 [1] NoLinePragmas.cshtml) - CSharp - } diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml deleted file mode 100644 index fa87620317a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml +++ /dev/null @@ -1,11 +0,0 @@ -@{ - @ViewBag?.Data - @ViewBag.IntIndexer?[0] - @ViewBag.StrIndexer?["key"] - @ViewBag?.Method(Value?[23]?.More)?["key"] -} - -@ViewBag?.Data -@ViewBag.IntIndexer?[0] -@ViewBag.StrIndexer?["key"] -@ViewBag?.Method(Value?[23]?.More)?["key"] \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs deleted file mode 100644 index d12445b4652..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag?.Data; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag.IntIndexer?[0]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag.StrIndexer?["key"]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag?.Method(Value?[23]?.More)?["key"]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag?.Data; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag.IntIndexer?[0]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag.StrIndexer?["key"]; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -__o = ViewBag?.Method(Value?[23]?.More)?["key"]; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html deleted file mode 100644 index 7ad423b1f29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt deleted file mode 100644 index 58e35883eea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt +++ /dev/null @@ -1,45 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml) - IntermediateToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data - CSharpCode - (22:1,18 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml) - IntermediateToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] - CSharpCode - (51:2,27 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml) - IntermediateToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] - CSharpCode - (84:3,31 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml) - IntermediateToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] - CSharpCode - (132:4,46 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n - HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (137:6,0 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml) - IntermediateToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data - HtmlContent - (153:7,14 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (153:7,14 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (156:8,1 [22] NullConditionalExpressions.cshtml) - IntermediateToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] - HtmlContent - (178:8,23 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (178:8,23 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (181:9,1 [26] NullConditionalExpressions.cshtml) - IntermediateToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] - HtmlContent - (207:9,27 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (207:9,27 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (210:10,1 [41] NullConditionalExpressions.cshtml) - IntermediateToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt deleted file mode 100644 index c71bc3fa1ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt +++ /dev/null @@ -1,75 +0,0 @@ -Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -| - | -Generated Location: (772:19,2 [6] ) -| - | - -Source Location: (9:1,5 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag?.Data| -Generated Location: (957:27,6 [13] ) -|ViewBag?.Data| - -Source Location: (22:1,18 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -| - | -Generated Location: (1162:34,18 [6] ) -| - | - -Source Location: (29:2,5 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag.IntIndexer?[0]| -Generated Location: (1347:42,6 [22] ) -|ViewBag.IntIndexer?[0]| - -Source Location: (51:2,27 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -| - | -Generated Location: (1570:49,27 [6] ) -| - | - -Source Location: (58:3,5 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag.StrIndexer?["key"]| -Generated Location: (1755:57,6 [26] ) -|ViewBag.StrIndexer?["key"]| - -Source Location: (84:3,31 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -| - | -Generated Location: (1986:64,31 [6] ) -| - | - -Source Location: (91:4,5 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag?.Method(Value?[23]?.More)?["key"]| -Generated Location: (2171:72,6 [41] ) -|ViewBag?.Method(Value?[23]?.More)?["key"]| - -Source Location: (132:4,46 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -| -| -Generated Location: (2432:79,46 [2] ) -| -| - -Source Location: (140:7,1 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag?.Data| -Generated Location: (2611:86,6 [13] ) -|ViewBag?.Data| - -Source Location: (156:8,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag.IntIndexer?[0]| -Generated Location: (2804:93,6 [22] ) -|ViewBag.IntIndexer?[0]| - -Source Location: (181:9,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag.StrIndexer?["key"]| -Generated Location: (3007:100,6 [26] ) -|ViewBag.StrIndexer?["key"]| - -Source Location: (210:10,1 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml) -|ViewBag?.Method(Value?[23]?.More)?["key"]| -Generated Location: (3214:107,6 [41] ) -|ViewBag?.Method(Value?[23]?.More)?["key"]| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs deleted file mode 100644 index 5ed8813cb21..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs +++ /dev/null @@ -1,78 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c76f9ddb44b2830babd64c0afeaa96aba6a6ae27" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c76f9ddb44b2830babd64c0afeaa96aba6a6ae27", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag?.Data); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag.IntIndexer?[0]); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag.StrIndexer?["key"]); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag?.Method(Value?[23]?.More)?["key"]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag?.Data); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag.IntIndexer?[0]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag.StrIndexer?["key"]); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml" -Write(ViewBag?.Method(Value?[23]?.More)?["key"]); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt deleted file mode 100644 index 8fd7d3dc265..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt +++ /dev/null @@ -1,40 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml) - IntermediateToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data - CSharpCode - (22:1,18 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml) - IntermediateToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] - CSharpCode - (51:2,27 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml) - IntermediateToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] - CSharpCode - (84:3,31 [6] NullConditionalExpressions.cshtml) - IntermediateToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n - CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml) - IntermediateToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] - CSharpCode - (132:4,46 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n - HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (137:6,0 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml) - IntermediateToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data - HtmlContent - (153:7,14 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (153:7,14 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (156:8,1 [22] NullConditionalExpressions.cshtml) - IntermediateToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] - HtmlContent - (178:8,23 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (178:8,23 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (181:9,1 [26] NullConditionalExpressions.cshtml) - IntermediateToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] - HtmlContent - (207:9,27 [2] NullConditionalExpressions.cshtml) - IntermediateToken - (207:9,27 [2] NullConditionalExpressions.cshtml) - Html - \n - CSharpExpression - (210:10,1 [41] NullConditionalExpressions.cshtml) - IntermediateToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml deleted file mode 100644 index 33162eb90b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml +++ /dev/null @@ -1,5 +0,0 @@ - - -@if (true) { - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs deleted file mode 100644 index 90493863864..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html deleted file mode 100644 index 1675f643837..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.diagnostics.txt deleted file mode 100644 index 681454769b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.diagnostics.txt +++ /dev/null @@ -1,3 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(3,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(4,3): Error RZ1026: Encountered end tag "body" with no matching start tag. Are your start/end tags properly balanced? -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(5,3): Error RZ1026: Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt deleted file mode 100644 index 16ff60d4df8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - IntermediateToken - (0:0,0 [5] OpenedIf.cshtml) - Html - - IntermediateToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n - IntermediateToken - (8:1,0 [5] OpenedIf.cshtml) - Html - - IntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n - CSharpCode - (17:2,1 [14] OpenedIf.cshtml) - IntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n - HtmlContent - (31:3,0 [7] OpenedIf.cshtml) - IntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - - CSharpCode - (38:3,7 [2] OpenedIf.cshtml) - IntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - CSharp - \n - HtmlContent - (40:4,0 [7] OpenedIf.cshtml) - IntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - - CSharpCode - (47:4,7 [0] OpenedIf.cshtml) - IntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt deleted file mode 100644 index bf39975d37a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (17:2,1 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml) -|if (true) { -| -Generated Location: (735:19,1 [14] ) -|if (true) { -| - -Source Location: (38:3,7 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml) -| -| -Generated Location: (909:26,7 [2] ) -| -| - -Source Location: (47:4,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml) -|| -Generated Location: (1071:33,7 [0] ) -|| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs deleted file mode 100644 index 5b6c2d401df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs +++ /dev/null @@ -1,27 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "afefc9ccf10183402eae0b9e4175393b3797a27b" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"afefc9ccf10183402eae0b9e4175393b3797a27b", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml" - if (true) { - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.diagnostics.txt deleted file mode 100644 index 681454769b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.diagnostics.txt +++ /dev/null @@ -1,3 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(3,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(4,3): Error RZ1026: Encountered end tag "body" with no matching start tag. Are your start/end tags properly balanced? -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml(5,3): Error RZ1026: Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt deleted file mode 100644 index 4aa0558ca05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - IntermediateToken - (0:0,0 [5] OpenedIf.cshtml) - Html - - IntermediateToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n - IntermediateToken - (8:1,0 [5] OpenedIf.cshtml) - Html - - IntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n - CSharpCode - (17:2,1 [14] OpenedIf.cshtml) - IntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n - HtmlContent - (31:3,0 [16] OpenedIf.cshtml) - IntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - - IntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - Html - \n - IntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - - CSharpCode - (47:4,7 [0] OpenedIf.cshtml) - IntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml deleted file mode 100644 index ab30e853fd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@{ -/* -int i =10; -int j =20; -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs deleted file mode 100644 index e6b9eddd159..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml" - -/* -int i =10; -int j =20; -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html deleted file mode 100644 index d0076463280..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.diagnostics.txt deleted file mode 100644 index 23ff3e26b10..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml(2,1): Error RZ1001: End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt deleted file mode 100644 index 42fae7cec79..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt +++ /dev/null @@ -1,13 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [31] ParserError.cshtml) - IntermediateToken - (2:0,2 [31] ParserError.cshtml) - CSharp - \n/*\nint i =10;\nint j =20;\n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt deleted file mode 100644 index c3a898b88ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (2:0,2 [31] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml) -| -/* -int i =10; -int j =20; -}| -Generated Location: (742:19,2 [31] ) -| -/* -int i =10; -int j =20; -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs deleted file mode 100644 index 27528c0e76c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs +++ /dev/null @@ -1,29 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a94df714867cbb0e2369fe24157b5d04e2e7a9cf" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a94df714867cbb0e2369fe24157b5d04e2e7a9cf", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml" - -/* -int i =10; -int j =20; -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.diagnostics.txt deleted file mode 100644 index 23ff3e26b10..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml(2,1): Error RZ1001: End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt deleted file mode 100644 index 8f60e461b49..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt +++ /dev/null @@ -1,8 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [31] ParserError.cshtml) - IntermediateToken - (2:0,2 [31] ParserError.cshtml) - CSharp - \n/*\nint i =10;\nint j =20;\n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml deleted file mode 100644 index 797a828688a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml +++ /dev/null @@ -1,23 +0,0 @@ -@addTagHelper "*, TestAssembly" - -@{ - var literate = "or illiterate"; - var intDictionary = new Dictionary - { - { "three", 3 }, - }; - var stringDictionary = new SortedDictionary - { - { "name", "value" }, - }; -} - -
        - - - - -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 18c7aff3ddf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAttributeTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.InputTagHelper1 __TestNamespace_InputTagHelper1; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - - var literate = "or illiterate"; - var intDictionary = new Dictionary - { - { "three", 3 }, - }; - var stringDictionary = new SortedDictionary - { - { "name", "value" }, - }; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty; -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - __TestNamespace_InputTagHelper1.StringDictionaryProperty = stringDictionary; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.StringDictionaryProperty = __TestNamespace_InputTagHelper1.StringDictionaryProperty; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty; -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"] = 37; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty["garlic"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"]; -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - __TestNamespace_InputTagHelper1.IntProperty = 42; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntProperty = 42; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty; -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"] = 37; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty["salt"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"]; -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"] = 98; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty["pepper"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"]; - __TestNamespace_InputTagHelper1.StringProperty = "string"; - __TestNamespace_InputTagHelper2.StringDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.StringProperty; - __TestNamespace_InputTagHelper1.StringDictionaryProperty["paprika"] = "another string"; - __TestNamespace_InputTagHelper2.StringDictionaryProperty["paprika"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["paprika"]; -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - __o = literate; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"] = string.Empty; - __TestNamespace_InputTagHelper2.StringDictionaryProperty["cumin"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"]; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty["value"] = 37; - -#line default -#line hidden -#nullable disable - __TestNamespace_InputTagHelper2.IntDictionaryProperty["value"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"]; - __TestNamespace_InputTagHelper1.StringDictionaryProperty["thyme"] = "string"; - __TestNamespace_InputTagHelper2.StringDictionaryProperty["thyme"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["thyme"]; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt deleted file mode 100644 index add0db7eff7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,136 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAttributeTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper1 - __TestNamespace_InputTagHelper1 - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] PrefixedAttributeTagHelpers.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (31:0,31 [4] PrefixedAttributeTagHelpers.cshtml) - Html - \n\n - CSharpCode - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - CSharp - \n var literate = "or illiterate";\n var intDictionary = new Dictionary\n {\n { "three", 3 },\n };\n var stringDictionary = new SortedDictionary\n {\n { "name", "value" },\n };\n - HtmlContent - (282:13,0 [49] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (282:13,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (284:14,0 [4] PrefixedAttributeTagHelpers.cshtml) - Html -
        - IntermediateToken - (325:14,41 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (331:15,4 [92] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (344:15,17 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (344:15,17 [8] PrefixedAttributeTagHelpers.cshtml) - Html - checkbox - DefaultTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper1.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary - DefaultTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary - DefaultTagHelperExecute - - HtmlContent - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (429:16,4 [103] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (442:16,17 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (442:16,17 [8] PrefixedAttributeTagHelpers.cshtml) - Html - password - DefaultTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper1.IntProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperExecute - - HtmlContent - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (538:17,4 [257] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (551:17,17 [5] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (551:17,17 [5] PrefixedAttributeTagHelpers.cshtml) - Html - radio - DefaultTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper1.IntProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 - DefaultTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 - DefaultTagHelperHtmlAttribute - - int-prefix-salt - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (655:18,96 [1] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (655:18,96 [1] PrefixedAttributeTagHelpers.cshtml) - Html - 8 - DefaultTagHelperProperty - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-grabber - string TestNamespace.InputTagHelper1.StringProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string - DefaultTagHelperProperty - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-grabber - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string - DefaultTagHelperProperty - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - string-prefix-paprika - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper1.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - Html - another string - DefaultTagHelperProperty - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - string-prefix-paprika - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - Html - another string - DefaultTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper1.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate - HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? - DefaultTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate - HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? - DefaultTagHelperExecute - - HtmlContent - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (801:21,4 [60] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-thyme - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper1.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string - DefaultTagHelperProperty - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-thyme - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string - DefaultTagHelperExecute - - HtmlContent - (861:21,64 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (861:21,64 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (863:22,0 [6] PrefixedAttributeTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index ca03f845811..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,80 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|"*, TestAssembly"| -Generated Location: (1139:19,37 [17] ) -|"*, TestAssembly"| - -Source Location: (37:2,2 [242] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -| - var literate = "or illiterate"; - var intDictionary = new Dictionary - { - { "three", 3 }, - }; - var stringDictionary = new SortedDictionary - { - { "name", "value" }, - }; -| -Generated Location: (1647:36,2 [242] ) -| - var literate = "or illiterate"; - var intDictionary = new Dictionary - { - { "three", 3 }, - }; - var stringDictionary = new SortedDictionary - { - { "name", "value" }, - }; -| - -Source Location: (370:15,43 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|intDictionary| -Generated Location: (2328:54,56 [13] ) -|intDictionary| - -Source Location: (404:15,77 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|stringDictionary| -Generated Location: (2718:62,77 [16] ) -|stringDictionary| - -Source Location: (468:16,43 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|intDictionary| -Generated Location: (3382:73,56 [13] ) -|intDictionary| - -Source Location: (502:16,77 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|37| -Generated Location: (3772:81,77 [2] ) -|37| - -Source Location: (526:16,101 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|42| -Generated Location: (4195:89,101 [2] ) -|42| - -Source Location: (590:18,31 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|42| -Generated Location: (4830:100,46 [2] ) -|42| - -Source Location: (611:18,52 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|37| -Generated Location: (5197:108,64 [2] ) -|37| - -Source Location: (634:18,75 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|98| -Generated Location: (5590:116,75 [2] ) -|98| - -Source Location: (783:20,42 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|literate| -Generated Location: (6410:128,42 [8] ) -|literate| - -Source Location: (826:21,29 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml) -|37| -Generated Location: (7188:140,65 [2] ) -|37| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs deleted file mode 100644 index c89db0cc655..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,284 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fc1a85ca24bc6ae7170b67e2d8371cede965879e" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAttributeTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"fc1a85ca24bc6ae7170b67e2d8371cede965879e", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAttributeTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("checkbox"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("password"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("radio"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("int-prefix-salt", new global::Microsoft.AspNetCore.Html.HtmlString("8"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("string-prefix-grabber", "string", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("string-prefix-paprika", "another string", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("string-prefix-thyme", "string", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.InputTagHelper1 __TestNamespace_InputTagHelper1; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - - var literate = "or illiterate"; - var intDictionary = new Dictionary - { - { "three", 3 }, - }; - var stringDictionary = new SortedDictionary - { - { "name", "value" }, - }; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n
        \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper1); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-dictionary", __TestNamespace_InputTagHelper1.IntDictionaryProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty; -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.StringDictionaryProperty = stringDictionary; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("string-dictionary", __TestNamespace_InputTagHelper1.StringDictionaryProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.StringDictionaryProperty = __TestNamespace_InputTagHelper1.StringDictionaryProperty; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper1); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-dictionary", __TestNamespace_InputTagHelper1.IntDictionaryProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty; - if (__TestNamespace_InputTagHelper1.IntDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); - } -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"] = 37; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-garlic", __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper2", "IntDictionaryProperty")); - } - __TestNamespace_InputTagHelper2.IntDictionaryProperty["garlic"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"]; -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntProperty = 42; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-grabber", __TestNamespace_InputTagHelper1.IntProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper1); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntProperty = 42; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-grabber", __TestNamespace_InputTagHelper1.IntProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-grabber", "TestNamespace.InputTagHelper2", "IntDictionaryProperty")); - } - __TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty; - if (__TestNamespace_InputTagHelper1.IntDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-salt", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); - } -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"] = 37; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-salt", __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.IntDictionaryProperty["salt"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"]; -#nullable restore -#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"] = 98; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-pepper", __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __TestNamespace_InputTagHelper2.IntDictionaryProperty["pepper"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"]; - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - __TestNamespace_InputTagHelper1.StringProperty = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - if (__TestNamespace_InputTagHelper2.StringDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-grabber", "TestNamespace.InputTagHelper2", "StringDictionaryProperty")); - } - __TestNamespace_InputTagHelper2.StringDictionaryProperty["grabber"] = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - if (__TestNamespace_InputTagHelper1.StringDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-paprika", "TestNamespace.InputTagHelper1", "StringDictionaryProperty")); - } - __TestNamespace_InputTagHelper1.StringDictionaryProperty["paprika"] = (string)__tagHelperAttribute_5.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); - __TestNamespace_InputTagHelper2.StringDictionaryProperty["paprika"] = (string)__tagHelperAttribute_5.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); - if (__TestNamespace_InputTagHelper1.StringDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-cumin", "TestNamespace.InputTagHelper1", "StringDictionaryProperty")); - } - BeginWriteTagHelperAttribute(); - WriteLiteral("literate "); -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" - WriteLiteral(literate); - -#line default -#line hidden -#nullable disable - WriteLiteral("?"); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"] = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("string-prefix-cumin", __TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - if (__TestNamespace_InputTagHelper2.StringDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-cumin", "TestNamespace.InputTagHelper2", "StringDictionaryProperty")); - } - __TestNamespace_InputTagHelper2.StringDictionaryProperty["cumin"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"]; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper1 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper1); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - if (__TestNamespace_InputTagHelper1.IntDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); - } -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" -__TestNamespace_InputTagHelper1.IntDictionaryProperty["value"] = 37; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-value", __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper2", "IntDictionaryProperty")); - } - __TestNamespace_InputTagHelper2.IntDictionaryProperty["value"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"]; - if (__TestNamespace_InputTagHelper1.StringDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-thyme", "TestNamespace.InputTagHelper1", "StringDictionaryProperty")); - } - __TestNamespace_InputTagHelper1.StringDictionaryProperty["thyme"] = (string)__tagHelperAttribute_6.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); - if (__TestNamespace_InputTagHelper2.StringDictionaryProperty == null) - { - throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-thyme", "TestNamespace.InputTagHelper2", "StringDictionaryProperty")); - } - __TestNamespace_InputTagHelper2.StringDictionaryProperty["thyme"] = (string)__tagHelperAttribute_6.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
        "); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt deleted file mode 100644 index 892245a292a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,117 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAttributeTagHelpers_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - type - password - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - type - radio - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - int-prefix-salt - 8 - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_4 - string-prefix-grabber - string - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_5 - string-prefix-paprika - another string - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_6 - string-prefix-thyme - string - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.InputTagHelper1 - __TestNamespace_InputTagHelper1 - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (33:1,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - CSharpCode - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - CSharp - \n var literate = "or illiterate";\n var intDictionary = new Dictionary\n {\n { "three", 3 },\n };\n var stringDictionary = new SortedDictionary\n {\n { "name", "value" },\n };\n - HtmlContent - (282:13,0 [49] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (282:13,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (284:14,0 [4] PrefixedAttributeTagHelpers.cshtml) - Html -
        - IntermediateToken - (325:14,41 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (331:15,4 [92] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper1.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary - DefaultTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary - DefaultTagHelperExecute - - HtmlContent - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (429:16,4 [103] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary - DefaultTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper1.IntProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperExecute - - HtmlContent - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (538:17,4 [257] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper1.IntProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 - DefaultTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 - DefaultTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - PreallocatedTagHelperProperty - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - __tagHelperAttribute_4 - string-prefix-grabber - StringProperty - PreallocatedTagHelperProperty - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - __tagHelperAttribute_4 - string-prefix-grabber - StringDictionaryProperty - PreallocatedTagHelperProperty - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - __tagHelperAttribute_5 - string-prefix-paprika - StringDictionaryProperty - PreallocatedTagHelperProperty - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - __tagHelperAttribute_5 - string-prefix-paprika - StringDictionaryProperty - DefaultTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper1.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate - HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? - DefaultTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - Namespace.DictionaryWithoutParameterlessConstructor TestNamespace.InputTagHelper2.StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate - HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? - DefaultTagHelperExecute - - HtmlContent - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n - TagHelper - (801:21,4 [60] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper1 - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - System.Collections.Generic.IDictionary TestNamespace.InputTagHelper1.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - DefaultTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - int TestNamespace.InputTagHelper2.IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 - PreallocatedTagHelperProperty - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - __tagHelperAttribute_6 - string-prefix-thyme - StringDictionaryProperty - PreallocatedTagHelperProperty - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - __tagHelperAttribute_6 - string-prefix-thyme - StringDictionaryProperty - DefaultTagHelperExecute - - HtmlContent - (861:21,64 [8] PrefixedAttributeTagHelpers.cshtml) - IntermediateToken - (861:21,64 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - IntermediateToken - (863:22,0 [6] PrefixedAttributeTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml deleted file mode 100644 index 1edd2fcc496..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml +++ /dev/null @@ -1,18 +0,0 @@ -@*This is not going to be rendered*@ -

        This should @* not *@ be shown

        - -@{ - @* throw new Exception("Oh no!") *@ - Exception foo = @* new Exception("Oh no!") *@ null; - if(foo != null) { - throw foo; - } -} - -@{ var bar = "@* bar *@"; } -

        But this should show the comment syntax: @bar

        - -@(a@**@b) - - - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs deleted file mode 100644 index d4fb4049abb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - - Exception foo = - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - null; - if(foo != null) { - throw foo; - } - -#line default -#line hidden -#nullable disable -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - var bar = "@* bar *@"; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - __o = bar; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" -__o = ab; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html deleted file mode 100644 index f851e2e5977..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html +++ /dev/null @@ -1,18 +0,0 @@ - -

        This should be shown

        - - - - - - - - - - -

        But this should show the comment syntax:

        - - - - - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt deleted file mode 100644 index 20961d3dc28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt +++ /dev/null @@ -1,55 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (38:1,0 [15] RazorComments.cshtml) - IntermediateToken - (38:1,0 [2] RazorComments.cshtml) - Html -

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

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

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

        - IntermediateToken - (317:12,52 [4] RazorComments.cshtml) - Html - \n\n - CSharpExpression - (323:14,2 [2] RazorComments.cshtml) - IntermediateToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a - IntermediateToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b - HtmlContent - (330:14,9 [85] RazorComments.cshtml) - IntermediateToken - (330:14,9 [4] RazorComments.cshtml) - Html - \n\n - IntermediateToken - (334:16,0 [6] RazorComments.cshtml) - Html - - IntermediateToken - (406:16,72 [2] RazorComments.cshtml) - Html - \n - IntermediateToken - (408:17,0 [6] RazorComments.cshtml) - Html - - IntermediateToken - (473:17,65 [2] RazorComments.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt deleted file mode 100644 index 3ad7eb8bbd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt +++ /dev/null @@ -1,47 +0,0 @@ -Source Location: (81:3,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -| - | -Generated Location: (746:19,2 [6] ) -| - | - -Source Location: (122:4,39 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -| - Exception foo = | -Generated Location: (951:27,39 [22] ) -| - Exception foo = | - -Source Location: (173:5,49 [58] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -| null; - if(foo != null) { - throw foo; - } -| -Generated Location: (1182:35,49 [58] ) -| null; - if(foo != null) { - throw foo; - } -| - -Source Location: (238:11,2 [24] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -| var bar = "@* bar *@"; | -Generated Location: (1401:45,2 [24] ) -| var bar = "@* bar *@"; | - -Source Location: (310:12,45 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -|bar| -Generated Location: (1631:52,45 [3] ) -|bar| - -Source Location: (323:14,2 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -|a| -Generated Location: (1802:59,6 [1] ) -|a| - -Source Location: (328:14,7 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml) -|b| -Generated Location: (1803:59,7 [1] ) -|b| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs deleted file mode 100644 index b833277cf41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs +++ /dev/null @@ -1,64 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4d553281e07fafc67ca0139b27ee95724a37f162" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4d553281e07fafc67ca0139b27ee95724a37f162", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("

        This should "); - WriteLiteral(" be shown

        \r\n\r\n"); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - - Exception foo = - -#line default -#line hidden -#nullable disable -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - null; - if(foo != null) { - throw foo; - } - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - var bar = "@* bar *@"; - -#line default -#line hidden -#nullable disable - WriteLiteral("

        But this should show the comment syntax: "); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" - Write(bar); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n\r\n"); -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml" -Write(ab); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n\r\n\r\n\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt deleted file mode 100644 index 1229ef836fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt +++ /dev/null @@ -1,50 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (38:1,0 [15] RazorComments.cshtml) - IntermediateToken - (38:1,0 [2] RazorComments.cshtml) - Html -

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

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

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

        - IntermediateToken - (317:12,52 [4] RazorComments.cshtml) - Html - \n\n - CSharpExpression - (323:14,2 [2] RazorComments.cshtml) - IntermediateToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a - IntermediateToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b - HtmlContent - (330:14,9 [85] RazorComments.cshtml) - IntermediateToken - (330:14,9 [4] RazorComments.cshtml) - Html - \n\n - IntermediateToken - (334:16,0 [6] RazorComments.cshtml) - Html - - IntermediateToken - (406:16,72 [2] RazorComments.cshtml) - Html - \n - IntermediateToken - (408:17,0 [6] RazorComments.cshtml) - Html - - IntermediateToken - (473:17,65 [2] RazorComments.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml deleted file mode 100644 index a8cd525a3d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml +++ /dev/null @@ -1 +0,0 @@ -@removeTagHelper *, TestAssembly diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs deleted file mode 100644 index 8a96ffc8404..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RemoveTagHelperDirective_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html deleted file mode 100644 index 77def406f5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt deleted file mode 100644 index 8a37436277c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RemoveTagHelperDirective_DesignTime - - - DesignTimeDirective - - DirectiveToken - (17:0,17 [15] RemoveTagHelperDirective.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (32:0,32 [2] RemoveTagHelperDirective.cshtml) - IntermediateToken - (32:0,32 [2] RemoveTagHelperDirective.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt deleted file mode 100644 index a607226eb22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (17:0,17 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml) -|*, TestAssembly| -Generated Location: (550:12,38 [15] ) -|*, TestAssembly| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml deleted file mode 100644 index 952461002f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@{ - Layout = "_SectionTestLayout.cshtml" -} - -
        This is in the Body> - -@section Section2 { -
        This is in Section 2
        -} - -@section Section1 { -
        This is in Section 1
        -} - -@section NestedDelegates { - @{ Func f = @@item; } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs deleted file mode 100644 index 2817001c876..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" -global::System.Object Section2 = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" -global::System.Object Section1 = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" -global::System.Object NestedDelegates = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - - Layout = "_SectionTestLayout.cshtml" - -#line default -#line hidden -#nullable disable - DefineSection("Section2", async(__razor_section_writer) => { -#nullable restore -#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - __o = thing; - -#line default -#line hidden -#nullable disable - } - ); - DefineSection("Section1", async(__razor_section_writer) => { - } - ); - DefineSection("NestedDelegates", async(__razor_section_writer) => { -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - Func f = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable - } - ) -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - ; - -#line default -#line hidden -#nullable disable - } - ); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html deleted file mode 100644 index 72ff37f26cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - -
        This is in the Body> - - -
        This is in Section 2
        - - - -
        This is in Section 1
        - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt deleted file mode 100644 index 13ef74e9ff8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt +++ /dev/null @@ -1,62 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_DesignTime - - - DesignTimeDirective - - DirectiveToken - (89:6,9 [8] Sections.cshtml) - Section2 - DirectiveToken - (172:10,9 [8] Sections.cshtml) - Section1 - DirectiveToken - (235:14,9 [15] Sections.cshtml) - NestedDelegates - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [44] Sections.cshtml) - IntermediateToken - (2:0,2 [44] Sections.cshtml) - CSharp - \n Layout = "_SectionTestLayout.cshtml"\n - HtmlContent - (49:3,0 [31] Sections.cshtml) - IntermediateToken - (49:3,0 [2] Sections.cshtml) - Html - \n - IntermediateToken - (51:4,0 [4] Sections.cshtml) - Html -
        - IntermediateToken - (56:4,5 [24] Sections.cshtml) - Html - This is in the Body>\n\n - Section - - Section2 - HtmlContent - (99:6,19 [10] Sections.cshtml) - IntermediateToken - (99:6,19 [6] Sections.cshtml) - Html - \n - IntermediateToken - (105:7,4 [4] Sections.cshtml) - Html -
        - IntermediateToken - (130:7,29 [20] Sections.cshtml) - Html - This is in Section 2 - IntermediateToken - (150:7,49 [6] Sections.cshtml) - Html -
        - IntermediateToken - (156:7,55 [2] Sections.cshtml) - Html - \n - HtmlContent - (159:8,1 [4] Sections.cshtml) - IntermediateToken - (159:8,1 [4] Sections.cshtml) - Html - \n\n - Section - - Section1 - HtmlContent - (182:10,19 [39] Sections.cshtml) - IntermediateToken - (182:10,19 [6] Sections.cshtml) - Html - \n - IntermediateToken - (188:11,4 [4] Sections.cshtml) - Html -
        - IntermediateToken - (193:11,9 [20] Sections.cshtml) - Html - This is in Section 1 - IntermediateToken - (213:11,29 [6] Sections.cshtml) - Html -
        - IntermediateToken - (219:11,35 [2] Sections.cshtml) - Html - \n - HtmlContent - (222:12,1 [4] Sections.cshtml) - IntermediateToken - (222:12,1 [4] Sections.cshtml) - Html - \n\n - Section - - NestedDelegates - HtmlContent - (252:14,26 [6] Sections.cshtml) - IntermediateToken - (252:14,26 [6] Sections.cshtml) - Html - \n - CSharpCode - (260:15,6 [27] Sections.cshtml) - IntermediateToken - (260:15,6 [27] Sections.cshtml) - CSharp - Func f = - Template - (288:15,34 [17] Sections.cshtml) - HtmlContent - (288:15,34 [6] Sections.cshtml) - IntermediateToken - (288:15,34 [5] Sections.cshtml) - Html - - CSharpExpression - (295:15,41 [4] Sections.cshtml) - IntermediateToken - (295:15,41 [4] Sections.cshtml) - CSharp - item - HtmlContent - (299:15,45 [7] Sections.cshtml) - IntermediateToken - (299:15,45 [7] Sections.cshtml) - Html - - CSharpCode - (306:15,52 [2] Sections.cshtml) - IntermediateToken - (306:15,52 [2] Sections.cshtml) - CSharp - ; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt deleted file mode 100644 index 863fba22d3c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt +++ /dev/null @@ -1,44 +0,0 @@ -Source Location: (89:6,9 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -|Section2| -Generated Location: (502:12,22 [8] ) -|Section2| - -Source Location: (172:10,9 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -|Section1| -Generated Location: (757:22,22 [8] ) -|Section1| - -Source Location: (235:14,9 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -|NestedDelegates| -Generated Location: (1012:32,22 [15] ) -|NestedDelegates| - -Source Location: (2:0,2 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -| - Layout = "_SectionTestLayout.cshtml" -| -Generated Location: (1507:49,2 [44] ) -| - Layout = "_SectionTestLayout.cshtml" -| - -Source Location: (123:7,22 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -|thing| -Generated Location: (1800:58,22 [5] ) -|thing| - -Source Location: (260:15,6 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -| Func f = | -Generated Location: (2185:71,6 [27] ) -| Func f = | - -Source Location: (295:15,41 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -|item| -Generated Location: (2483:79,41 [4] ) -|item| - -Source Location: (306:15,52 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml) -|; | -Generated Location: (2734:88,52 [2] ) -|; | - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs deleted file mode 100644 index f73b2141c16..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs +++ /dev/null @@ -1,80 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2c1cd9bdf77c65fcccd7f5b86be5746c1381be0e" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2c1cd9bdf77c65fcccd7f5b86be5746c1381be0e", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - - Layout = "_SectionTestLayout.cshtml" - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n
        This is in the Body>\r\n\r\n"); - DefineSection("Section2", async() => { - WriteLiteral("\r\n
        \r\n"); - } - ); - WriteLiteral("\r\n"); - DefineSection("Section1", async() => { - WriteLiteral("\r\n
        This is in Section 1
        \r\n"); - } - ); - WriteLiteral("\r\n"); - DefineSection("NestedDelegates", async() => { - WriteLiteral("\r\n"); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - Func f = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - WriteLiteral(""); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - Write(item); - -#line default -#line hidden -#nullable disable - WriteLiteral(""); - PopWriter(); - } - ) -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml" - ; - -#line default -#line hidden -#nullable disable - } - ); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt deleted file mode 100644 index 94f5bec0b3d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt +++ /dev/null @@ -1,56 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [44] Sections.cshtml) - IntermediateToken - (2:0,2 [44] Sections.cshtml) - CSharp - \n Layout = "_SectionTestLayout.cshtml"\n - HtmlContent - (49:3,0 [31] Sections.cshtml) - IntermediateToken - (49:3,0 [2] Sections.cshtml) - Html - \n - IntermediateToken - (51:4,0 [4] Sections.cshtml) - Html -
        - IntermediateToken - (56:4,5 [24] Sections.cshtml) - Html - This is in the Body>\n\n - Section - - Section2 - HtmlContent - (99:6,19 [10] Sections.cshtml) - IntermediateToken - (99:6,19 [6] Sections.cshtml) - Html - \n - IntermediateToken - (105:7,4 [4] Sections.cshtml) - Html -
        - IntermediateToken - (130:7,29 [20] Sections.cshtml) - Html - This is in Section 2 - IntermediateToken - (150:7,49 [6] Sections.cshtml) - Html -
        - IntermediateToken - (156:7,55 [2] Sections.cshtml) - Html - \n - HtmlContent - (161:9,0 [2] Sections.cshtml) - IntermediateToken - (161:9,0 [2] Sections.cshtml) - Html - \n - Section - - Section1 - HtmlContent - (182:10,19 [39] Sections.cshtml) - IntermediateToken - (182:10,19 [6] Sections.cshtml) - Html - \n - IntermediateToken - (188:11,4 [4] Sections.cshtml) - Html -
        - IntermediateToken - (193:11,9 [20] Sections.cshtml) - Html - This is in Section 1 - IntermediateToken - (213:11,29 [6] Sections.cshtml) - Html -
        - IntermediateToken - (219:11,35 [2] Sections.cshtml) - Html - \n - HtmlContent - (224:13,0 [2] Sections.cshtml) - IntermediateToken - (224:13,0 [2] Sections.cshtml) - Html - \n - Section - - NestedDelegates - HtmlContent - (252:14,26 [2] Sections.cshtml) - IntermediateToken - (252:14,26 [2] Sections.cshtml) - Html - \n - CSharpCode - (254:15,0 [4] Sections.cshtml) - IntermediateToken - (254:15,0 [4] Sections.cshtml) - CSharp - - CSharpCode - (260:15,6 [27] Sections.cshtml) - IntermediateToken - (260:15,6 [27] Sections.cshtml) - CSharp - Func f = - Template - (288:15,34 [17] Sections.cshtml) - HtmlContent - (288:15,34 [6] Sections.cshtml) - IntermediateToken - (288:15,34 [5] Sections.cshtml) - Html - - CSharpExpression - (295:15,41 [4] Sections.cshtml) - IntermediateToken - (295:15,41 [4] Sections.cshtml) - CSharp - item - HtmlContent - (299:15,45 [7] Sections.cshtml) - IntermediateToken - (299:15,45 [7] Sections.cshtml) - Html - - CSharpCode - (306:15,52 [2] Sections.cshtml) - IntermediateToken - (306:15,52 [2] Sections.cshtml) - CSharp - ; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml deleted file mode 100644 index bd4ce8107ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@addTagHelper *, TestAssembly -

        Hola

        -
        - -
        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs deleted file mode 100644 index 87b3afd5e8f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleTagHelpers_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __InputTagHelper = CreateTagHelper(); - __InputTagHelper.FooProp = "Hello"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt deleted file mode 100644 index 061f7507f93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt +++ /dev/null @@ -1,37 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleTagHelpers_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] SimpleTagHelpers.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [27] SimpleTagHelpers.cshtml) - IntermediateToken - (29:0,29 [2] SimpleTagHelpers.cshtml) - Html - \n - IntermediateToken - (31:1,0 [2] SimpleTagHelpers.cshtml) - Html -

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

        - IntermediateToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n - IntermediateToken - (44:2,0 [5] SimpleTagHelpers.cshtml) - Html -
        - IntermediateToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n - TagHelper - (56:3,4 [35] SimpleTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (70:3,18 [5] SimpleTagHelpers.cshtml) - value - string InputTagHelper.FooProp - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (70:3,18 [5] SimpleTagHelpers.cshtml) - IntermediateToken - (70:3,18 [5] SimpleTagHelpers.cshtml) - Html - Hello - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (83:3,31 [4] SimpleTagHelpers.cshtml) - IntermediateToken - (83:3,31 [4] SimpleTagHelpers.cshtml) - Html - text - DefaultTagHelperExecute - - HtmlContent - (91:3,39 [9] SimpleTagHelpers.cshtml) - IntermediateToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n - IntermediateToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt deleted file mode 100644 index 7e793d4e745..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt +++ /dev/null @@ -1,5 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml) -|*, TestAssembly| -Generated Location: (1000:18,38 [15] ) -|*, TestAssembly| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.codegen.cs deleted file mode 100644 index 19acd28d617..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.codegen.cs +++ /dev/null @@ -1,58 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "e2cfd373c979f0844c2fd0ff78d289027202a932" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleTagHelpers_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e2cfd373c979f0844c2fd0ff78d289027202a932", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleTagHelpers_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", "Hello", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("text"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("

        Hola

        \r\n
        \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__InputTagHelper); - __InputTagHelper.FooProp = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt deleted file mode 100644 index ac2e930b2c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt +++ /dev/null @@ -1,28 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleTagHelpers_Runtime - - - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_0 - value - Hello - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - type - text - HtmlAttributeValueStyle.SingleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:1,0 [25] SimpleTagHelpers.cshtml) - IntermediateToken - (31:1,0 [2] SimpleTagHelpers.cshtml) - Html -

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

        - IntermediateToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n - IntermediateToken - (44:2,0 [5] SimpleTagHelpers.cshtml) - Html -
        - IntermediateToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n - TagHelper - (56:3,4 [35] SimpleTagHelpers.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - PreallocatedTagHelperProperty - (70:3,18 [5] SimpleTagHelpers.cshtml) - __tagHelperAttribute_0 - value - FooProp - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (91:3,39 [9] SimpleTagHelpers.cshtml) - IntermediateToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n - IntermediateToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html -
        diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml deleted file mode 100644 index 27f2750eb2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@if (true) -{ -
        -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs deleted file mode 100644 index 6f0947cdd62..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml" - if (true) -{ - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml" - -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html deleted file mode 100644 index 11a63ced54c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html +++ /dev/null @@ -1,4 +0,0 @@ - - -
        - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt deleted file mode 100644 index 597e0809e0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt +++ /dev/null @@ -1,19 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (1:0,1 [15] SimpleUnspacedIf.cshtml) - IntermediateToken - (1:0,1 [15] SimpleUnspacedIf.cshtml) - CSharp - if (true)\n{\n - HtmlContent - (16:2,1 [11] SimpleUnspacedIf.cshtml) - IntermediateToken - (16:2,1 [4] SimpleUnspacedIf.cshtml) - Html -
        - IntermediateToken - (21:2,6 [6] SimpleUnspacedIf.cshtml) - Html -
        - CSharpCode - (27:2,12 [3] SimpleUnspacedIf.cshtml) - IntermediateToken - (27:2,12 [3] SimpleUnspacedIf.cshtml) - CSharp - \n} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt deleted file mode 100644 index b49f243de1e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt +++ /dev/null @@ -1,16 +0,0 @@ -Source Location: (1:0,1 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml) -|if (true) -{ - | -Generated Location: (751:19,1 [15] ) -|if (true) -{ - | - -Source Location: (27:2,12 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml) -| -}| -Generated Location: (944:28,15 [3] ) -| -}| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs deleted file mode 100644 index d9a41093550..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs +++ /dev/null @@ -1,34 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "57877348e222dad68a66bed082fa64c96f925772" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"57877348e222dad68a66bed082fa64c96f925772", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml" - if (true) -{ - -#line default -#line hidden -#nullable disable - WriteLiteral("\t
        \r\n"); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml" -} - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt deleted file mode 100644 index ad4a3255779..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt +++ /dev/null @@ -1,16 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (1:0,1 [14] SimpleUnspacedIf.cshtml) - IntermediateToken - (1:0,1 [14] SimpleUnspacedIf.cshtml) - CSharp - if (true)\n{\n - HtmlContent - (15:2,0 [14] SimpleUnspacedIf.cshtml) - IntermediateToken - (15:2,0 [1] SimpleUnspacedIf.cshtml) - Html - - IntermediateToken - (16:2,1 [4] SimpleUnspacedIf.cshtml) - Html -
        - IntermediateToken - (21:2,6 [6] SimpleUnspacedIf.cshtml) - Html -
        - IntermediateToken - (27:2,12 [2] SimpleUnspacedIf.cshtml) - Html - \n - CSharpCode - (29:3,0 [1] SimpleUnspacedIf.cshtml) - IntermediateToken - (29:3,0 [1] SimpleUnspacedIf.cshtml) - CSharp - } diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml deleted file mode 100644 index 9d6ae22f9d1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml +++ /dev/null @@ -1,102 +0,0 @@ -

        Before Text

        - -@{ - if (DateTime.Now.ToBinary() % 2 == 0) @("Current time is divisible by 2") else @DateTime.Now - - object Bar() - { - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else if (DateTime.Now.ToBinary() % 3 == 0) - return "Current time is divisible by 3"; - else - return DateTime.Now; - } - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - @foreach (var item in new[] {"hello"}) - @item - - do - @currentCount - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - @reader.ReadToEnd() - - @lock (this) - currentCount++; -} - -@functions { - public string Foo() - { - var x = ""; - - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else - return "It isn't divisible by two"; - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - foreach (var item in new[] {"hello"}) - @item - - do - @currentCount - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - @reader.ReadToEnd() - - lock (this) - currentCount++; - } - - int currentCount = 0; - - public void IncrementCount() - { - if (true) currentCount++; - } - -} - -@for (var i = 0; i < 10; i++) - @i - -@foreach (var item in new[] {"hello"}) - @item - -@do - @currentCount -while (--currentCount >= 0); - -@while (--currentCount <= 10) - currentCount++; - -@using (var reader = new System.IO.StreamReader("/something")) - // Reading the entire file - @reader.ReadToEnd() - -@lock (this) - currentCount++; - -@if (true) @@GitHubUserName

        Hello!

        - -@if (true) - @:

        The time is @DateTime.Now

        - -

        After Text

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.cs deleted file mode 100644 index 3ecf283882a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.cs +++ /dev/null @@ -1,385 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleLineControlFlowStatements_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - if (DateTime.Now.ToBinary() % 2 == 0) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = "Current time is divisible by 2"; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - else - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - object Bar() - { - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else if (DateTime.Now.ToBinary() % 3 == 0) - return "Current time is divisible by 3"; - else - return DateTime.Now; - } - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - foreach (var item in new[] {"hello"}) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - do - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = currentCount; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = reader.ReadToEnd(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - lock (this) - currentCount++; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 77 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - for (var i = 0; i < 10; i++) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 78 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -__o = i; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 78 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 80 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - foreach (var item in new[] {"hello"}) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 81 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -__o = item; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 81 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 83 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - do - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 84 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -__o = currentCount; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 84 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - -while (--currentCount >= 0); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 87 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - while (--currentCount <= 10) - currentCount++; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 90 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - using (var reader = new System.IO.StreamReader("/something")) - // Reading the entire file - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 92 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -__o = reader.ReadToEnd(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 92 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 94 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - lock (this) - currentCount++; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 97 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - if (true) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 97 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - @GitHubUserName - -#line default -#line hidden -#nullable disable -#nullable restore -#line 99 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - if (true) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 100 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 101 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - public string Foo() - { - var x = ""; - - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else - return "It isn't divisible by two"; - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - foreach (var item in new[] {"hello"}) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 52 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 52 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - do - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 55 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = currentCount; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 55 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 62 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - __o = reader.ReadToEnd(); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 62 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - lock (this) - currentCount++; - } - - int currentCount = 0; - - public void IncrementCount() - { - if (true) currentCount++; - } - - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html deleted file mode 100644 index 3d06dc8b909..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html +++ /dev/null @@ -1,102 +0,0 @@ -

        Before Text

        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

        Hello!

        - - -

        The time is

        - -

        After Text

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.diagnostics.txt deleted file mode 100644 index 1078a21cf6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml(97,12): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml(100,5): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.ir.txt deleted file mode 100644 index b277c3528a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.ir.txt +++ /dev/null @@ -1,131 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleLineControlFlowStatements_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [22] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (0:0,0 [2] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (3:0,3 [11] SingleLineControlFlowStatements.cshtml) - Html - Before Text - IntermediateToken - (14:0,14 [4] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (18:0,18 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (24:2,2 [44] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (24:2,2 [44] SingleLineControlFlowStatements.cshtml) - CSharp - \n if (DateTime.Now.ToBinary() % 2 == 0) - CSharpExpression - (70:3,44 [32] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (70:3,44 [32] SingleLineControlFlowStatements.cshtml) - CSharp - "Current time is divisible by 2" - CSharpCode - (103:3,77 [6] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (103:3,77 [6] SingleLineControlFlowStatements.cshtml) - CSharp - else - CSharpExpression - (110:3,84 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (110:3,84 [12] SingleLineControlFlowStatements.cshtml) - CSharp - DateTime.Now - CSharpCode - (122:3,96 [381] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (122:3,96 [381] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n object Bar()\n {\n if (DateTime.Now.ToBinary() % 2 == 0)\n return "Current time is divisible by 2";\n else if (DateTime.Now.ToBinary() % 3 == 0)\n return "Current time is divisible by 3";\n else\n return DateTime.Now;\n }\n\n for (var i = 0; i < 10; i++)\n // Incrementing a number\n i--;\n\n - CSharpCode - (504:19,5 [47] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (504:19,5 [47] SingleLineControlFlowStatements.cshtml) - CSharp - foreach (var item in new[] {"hello"})\n - CSharpExpression - (552:20,9 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (552:20,9 [4] SingleLineControlFlowStatements.cshtml) - CSharp - item - CSharpCode - (556:20,13 [0] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (556:20,13 [0] SingleLineControlFlowStatements.cshtml) - CSharp - - CSharpCode - (556:20,13 [20] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (556:20,13 [20] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n do\n - CSharpExpression - (577:23,9 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (577:23,9 [12] SingleLineControlFlowStatements.cshtml) - CSharp - currentCount - CSharpCode - (589:23,21 [174] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (589:23,21 [174] SingleLineControlFlowStatements.cshtml) - CSharp - \n while (--currentCount >= 0);\n\n while (--currentCount <= 10)\n currentCount++;\n\n using (var reader = new System.IO.StreamReader("/something"))\n - CSharpExpression - (764:30,9 [18] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (764:30,9 [18] SingleLineControlFlowStatements.cshtml) - CSharp - reader.ReadToEnd() - CSharpCode - (782:30,27 [8] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (782:30,27 [8] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n - CSharpCode - (791:32,5 [36] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (791:32,5 [36] SingleLineControlFlowStatements.cshtml) - CSharp - lock (this)\n currentCount++; - CSharpCode - (827:33,23 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (827:33,23 [2] SingleLineControlFlowStatements.cshtml) - CSharp - \n - HtmlContent - (832:35,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (832:35,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - HtmlContent - (1669:74,1 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1669:74,1 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (1674:76,1 [34] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1674:76,1 [34] SingleLineControlFlowStatements.cshtml) - CSharp - for (var i = 0; i < 10; i++)\n - CSharpExpression - (1709:77,5 [1] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1709:77,5 [1] SingleLineControlFlowStatements.cshtml) - CSharp - i - CSharpCode - (1710:77,6 [0] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1710:77,6 [0] SingleLineControlFlowStatements.cshtml) - CSharp - - HtmlContent - (1710:77,6 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1710:77,6 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (1715:79,1 [43] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1715:79,1 [43] SingleLineControlFlowStatements.cshtml) - CSharp - foreach (var item in new[] {"hello"})\n - CSharpExpression - (1759:80,5 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1759:80,5 [4] SingleLineControlFlowStatements.cshtml) - CSharp - item - CSharpCode - (1763:80,9 [0] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1763:80,9 [0] SingleLineControlFlowStatements.cshtml) - CSharp - - HtmlContent - (1763:80,9 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1763:80,9 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (1768:82,1 [8] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1768:82,1 [8] SingleLineControlFlowStatements.cshtml) - CSharp - do\n - CSharpExpression - (1777:83,5 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1777:83,5 [12] SingleLineControlFlowStatements.cshtml) - CSharp - currentCount - CSharpCode - (1789:83,17 [30] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1789:83,17 [30] SingleLineControlFlowStatements.cshtml) - CSharp - \nwhile (--currentCount >= 0); - HtmlContent - (1819:84,28 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1819:84,28 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (1824:86,1 [49] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1824:86,1 [49] SingleLineControlFlowStatements.cshtml) - CSharp - while (--currentCount <= 10)\n currentCount++; - HtmlContent - (1873:87,19 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1873:87,19 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (1878:89,1 [99] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1878:89,1 [99] SingleLineControlFlowStatements.cshtml) - CSharp - using (var reader = new System.IO.StreamReader("/something"))\n // Reading the entire file\n - CSharpExpression - (1978:91,5 [18] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1978:91,5 [18] SingleLineControlFlowStatements.cshtml) - CSharp - reader.ReadToEnd() - CSharpCode - (1996:91,23 [0] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1996:91,23 [0] SingleLineControlFlowStatements.cshtml) - CSharp - - HtmlContent - (1996:91,23 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1996:91,23 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (2001:93,1 [32] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2001:93,1 [32] SingleLineControlFlowStatements.cshtml) - CSharp - lock (this)\n currentCount++; - HtmlContent - (2033:94,19 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2033:94,19 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (2038:96,1 [10] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2038:96,1 [10] SingleLineControlFlowStatements.cshtml) - CSharp - if (true) - CSharpCode - (2049:96,12 [16] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2049:96,12 [16] SingleLineControlFlowStatements.cshtml) - CSharp - @GitHubUserName - HtmlContent - (2065:96,28 [17] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2065:96,28 [2] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (2068:96,31 [6] SingleLineControlFlowStatements.cshtml) - Html - Hello! - IntermediateToken - (2074:96,37 [4] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (2078:96,41 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (2083:98,1 [16] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2083:98,1 [16] SingleLineControlFlowStatements.cshtml) - CSharp - if (true) \n - HtmlContent - (2101:99,6 [16] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2101:99,6 [16] SingleLineControlFlowStatements.cshtml) - Html -

        The time is - CSharpExpression - (2118:99,23 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2118:99,23 [12] SingleLineControlFlowStatements.cshtml) - CSharp - DateTime.Now - HtmlContent - (2130:99,35 [6] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2130:99,35 [6] SingleLineControlFlowStatements.cshtml) - Html -

        \n - CSharpCode - (2136:100,0 [0] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2136:100,0 [0] SingleLineControlFlowStatements.cshtml) - CSharp - - HtmlContent - (2136:100,0 [19] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2136:100,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - IntermediateToken - (2138:101,0 [2] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (2141:101,3 [10] SingleLineControlFlowStatements.cshtml) - Html - After Text - IntermediateToken - (2151:101,13 [4] SingleLineControlFlowStatements.cshtml) - Html -

        - CSharpCode - (846:36,12 [386] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (846:36,12 [386] SingleLineControlFlowStatements.cshtml) - CSharp - \n public string Foo()\n {\n var x = "";\n\n if (DateTime.Now.ToBinary() % 2 == 0)\n return "Current time is divisible by 2";\n else\n return "It isn't divisible by two";\n \n for (var i = 0; i < 10; i++)\n // Incrementing a number\n i--;\n\n foreach (var item in new[] {"hello"})\n - CSharpExpression - (1233:51,13 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1233:51,13 [4] SingleLineControlFlowStatements.cshtml) - CSharp - item - CSharpCode - (1237:51,17 [28] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1237:51,17 [28] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n do\n - CSharpExpression - (1266:54,13 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1266:54,13 [12] SingleLineControlFlowStatements.cshtml) - CSharp - currentCount - CSharpCode - (1278:54,25 [194] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1278:54,25 [194] SingleLineControlFlowStatements.cshtml) - CSharp - \n while (--currentCount >= 0);\n\n while (--currentCount <= 10)\n currentCount++;\n\n using (var reader = new System.IO.StreamReader("/something"))\n - CSharpExpression - (1473:61,13 [18] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1473:61,13 [18] SingleLineControlFlowStatements.cshtml) - CSharp - reader.ReadToEnd() - CSharpCode - (1491:61,31 [177] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1491:61,31 [177] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n lock (this)\n currentCount++;\n }\n\n int currentCount = 0;\n\n public void IncrementCount()\n {\n if (true) currentCount++;\n }\n\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.mappings.txt deleted file mode 100644 index 046e1006f89..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.mappings.txt +++ /dev/null @@ -1,363 +0,0 @@ -Source Location: (24:2,2 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - if (DateTime.Now.ToBinary() % 2 == 0) | -Generated Location: (782:19,2 [44] ) -| - if (DateTime.Now.ToBinary() % 2 == 0) | - -Source Location: (70:3,44 [32] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|"Current time is divisible by 2"| -Generated Location: (1048:27,44 [32] ) -|"Current time is divisible by 2"| - -Source Location: (103:3,77 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| else | -Generated Location: (1336:34,77 [6] ) -| else | - -Source Location: (110:3,84 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|DateTime.Now| -Generated Location: (1604:41,84 [12] ) -|DateTime.Now| - -Source Location: (122:3,96 [381] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - - object Bar() - { - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else if (DateTime.Now.ToBinary() % 3 == 0) - return "Current time is divisible by 3"; - else - return DateTime.Now; - } - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - | -Generated Location: (1891:48,96 [381] ) -| - - object Bar() - { - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else if (DateTime.Now.ToBinary() % 3 == 0) - return "Current time is divisible by 3"; - else - return DateTime.Now; - } - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - | - -Source Location: (504:19,5 [47] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|foreach (var item in new[] {"hello"}) - | -Generated Location: (2456:71,5 [47] ) -|foreach (var item in new[] {"hello"}) - | - -Source Location: (552:20,9 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|item| -Generated Location: (2691:79,9 [4] ) -|item| - -Source Location: (556:20,13 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|| -Generated Location: (2888:86,13 [0] ) -|| - -Source Location: (556:20,13 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - - do - | -Generated Location: (3080:93,13 [20] ) -| - - do - | - -Source Location: (577:23,9 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|currentCount| -Generated Location: (3288:103,9 [12] ) -|currentCount| - -Source Location: (589:23,21 [174] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - | -Generated Location: (3501:110,21 [174] ) -| - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - | - -Source Location: (764:30,9 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|reader.ReadToEnd()| -Generated Location: (3863:124,9 [18] ) -|reader.ReadToEnd()| - -Source Location: (782:30,27 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - - | -Generated Location: (4088:131,27 [8] ) -| - - | - -Source Location: (791:32,5 [36] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|lock (this) - currentCount++;| -Generated Location: (4280:140,5 [36] ) -|lock (this) - currentCount++;| - -Source Location: (827:33,23 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| -| -Generated Location: (4518:148,23 [2] ) -| -| - -Source Location: (1674:76,1 [34] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|for (var i = 0; i < 10; i++) - | -Generated Location: (4698:155,1 [34] ) -|for (var i = 0; i < 10; i++) - | - -Source Location: (1709:77,5 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|i| -Generated Location: (4917:163,6 [1] ) -|i| - -Source Location: (1710:77,6 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|| -Generated Location: (5104:170,6 [0] ) -|| - -Source Location: (1715:79,1 [43] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|foreach (var item in new[] {"hello"}) - | -Generated Location: (5284:177,1 [43] ) -|foreach (var item in new[] {"hello"}) - | - -Source Location: (1759:80,5 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|item| -Generated Location: (5512:185,6 [4] ) -|item| - -Source Location: (1763:80,9 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|| -Generated Location: (5705:192,9 [0] ) -|| - -Source Location: (1768:82,1 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|do - | -Generated Location: (5885:199,1 [8] ) -|do - | - -Source Location: (1777:83,5 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|currentCount| -Generated Location: (6078:207,6 [12] ) -|currentCount| - -Source Location: (1789:83,17 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| -while (--currentCount >= 0);| -Generated Location: (6287:214,17 [30] ) -| -while (--currentCount >= 0);| - -Source Location: (1824:86,1 [49] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|while (--currentCount <= 10) - currentCount++;| -Generated Location: (6497:222,1 [49] ) -|while (--currentCount <= 10) - currentCount++;| - -Source Location: (1878:89,1 [99] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|using (var reader = new System.IO.StreamReader("/something")) - // Reading the entire file - | -Generated Location: (6726:230,1 [99] ) -|using (var reader = new System.IO.StreamReader("/something")) - // Reading the entire file - | - -Source Location: (1978:91,5 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|reader.ReadToEnd()| -Generated Location: (7010:239,6 [18] ) -|reader.ReadToEnd()| - -Source Location: (1996:91,23 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|| -Generated Location: (7231:246,23 [0] ) -|| - -Source Location: (2001:93,1 [32] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|lock (this) - currentCount++;| -Generated Location: (7411:253,1 [32] ) -|lock (this) - currentCount++;| - -Source Location: (2038:96,1 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|if (true) | -Generated Location: (7623:261,1 [10] ) -|if (true) | - -Source Location: (2049:96,12 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|@GitHubUserName | -Generated Location: (7824:268,12 [16] ) -|@GitHubUserName | - -Source Location: (2083:98,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|if (true) - | -Generated Location: (8020:275,1 [16] ) -|if (true) - | - -Source Location: (2118:99,23 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|DateTime.Now| -Generated Location: (8239:283,23 [12] ) -|DateTime.Now| - -Source Location: (2136:100,0 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|| -Generated Location: (8432:290,0 [0] ) -|| - -Source Location: (846:36,12 [386] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - public string Foo() - { - var x = ""; - - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else - return "It isn't divisible by two"; - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - foreach (var item in new[] {"hello"}) - | -Generated Location: (8670:298,12 [386] ) -| - public string Foo() - { - var x = ""; - - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else - return "It isn't divisible by two"; - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - foreach (var item in new[] {"hello"}) - | - -Source Location: (1233:51,13 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|item| -Generated Location: (9248:320,13 [4] ) -|item| - -Source Location: (1237:51,17 [28] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - - do - | -Generated Location: (9449:327,17 [28] ) -| - - do - | - -Source Location: (1266:54,13 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|currentCount| -Generated Location: (9669:337,13 [12] ) -|currentCount| - -Source Location: (1278:54,25 [194] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - | -Generated Location: (9886:344,25 [194] ) -| - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - | - -Source Location: (1473:61,13 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -|reader.ReadToEnd()| -Generated Location: (10272:358,13 [18] ) -|reader.ReadToEnd()| - -Source Location: (1491:61,31 [177] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml) -| - - lock (this) - currentCount++; - } - - int currentCount = 0; - - public void IncrementCount() - { - if (true) currentCount++; - } - -| -Generated Location: (10501:365,31 [177] ) -| - - lock (this) - currentCount++; - } - - int currentCount = 0; - - public void IncrementCount() - { - if (true) currentCount++; - } - -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.codegen.cs deleted file mode 100644 index 8f808b98265..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.codegen.cs +++ /dev/null @@ -1,344 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a057512a2be3416c0f48286af45a4e9855e06f55" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleLineControlFlowStatements_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a057512a2be3416c0f48286af45a4e9855e06f55", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleLineControlFlowStatements_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("

        Before Text

        \r\n\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - if (DateTime.Now.ToBinary() % 2 == 0) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write("Current time is divisible by 2"); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - else - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(DateTime.Now); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - object Bar() - { - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else if (DateTime.Now.ToBinary() % 3 == 0) - return "Current time is divisible by 3"; - else - return DateTime.Now; - } - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - foreach (var item in new[] {"hello"}) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(item); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - do - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(currentCount); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(reader.ReadToEnd()); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - lock (this) - currentCount++; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); - WriteLiteral("\r\n"); -#nullable restore -#line 77 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - for (var i = 0; i < 10; i++) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 78 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -Write(i); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 80 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - foreach (var item in new[] {"hello"}) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 81 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -Write(item); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 83 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - do - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 84 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -Write(currentCount); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 84 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - -while (--currentCount >= 0); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 87 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - while (--currentCount <= 10) - currentCount++; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 90 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - using (var reader = new System.IO.StreamReader("/something")) - // Reading the entire file - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 92 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" -Write(reader.ReadToEnd()); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 94 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - lock (this) - currentCount++; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 97 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - if (true) - -#line default -#line hidden -#nullable disable -#nullable restore -#line 97 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - @GitHubUserName - -#line default -#line hidden -#nullable disable - WriteLiteral("

        Hello!

        \r\n\r\n"); -#nullable restore -#line 99 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - if (true) - - -#line default -#line hidden -#nullable disable - WriteLiteral("

        The time is "); -#nullable restore -#line 100 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(DateTime.Now); - -#line default -#line hidden -#nullable disable - WriteLiteral("

        \r\n"); - WriteLiteral("

        After Text

        "); - } - #pragma warning restore 1998 -#nullable restore -#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - public string Foo() - { - var x = ""; - - if (DateTime.Now.ToBinary() % 2 == 0) - return "Current time is divisible by 2"; - else - return "It isn't divisible by two"; - - for (var i = 0; i < 10; i++) - // Incrementing a number - i--; - - foreach (var item in new[] {"hello"}) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 52 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(item); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 52 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - do - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 55 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(currentCount); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 55 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - while (--currentCount >= 0); - - while (--currentCount <= 10) - currentCount++; - - using (var reader = new System.IO.StreamReader("/something")) - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 62 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - Write(reader.ReadToEnd()); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 62 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml" - - - lock (this) - currentCount++; - } - - int currentCount = 0; - - public void IncrementCount() - { - if (true) currentCount++; - } - - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.diagnostics.txt deleted file mode 100644 index 1078a21cf6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.diagnostics.txt +++ /dev/null @@ -1,2 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml(97,12): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements.cshtml(100,5): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.ir.txt deleted file mode 100644 index 0447aaa7467..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_Runtime.ir.txt +++ /dev/null @@ -1,125 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleLineControlFlowStatements_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [22] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (0:0,0 [2] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (3:0,3 [11] SingleLineControlFlowStatements.cshtml) - Html - Before Text - IntermediateToken - (14:0,14 [4] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (18:0,18 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (24:2,2 [44] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (24:2,2 [44] SingleLineControlFlowStatements.cshtml) - CSharp - \n if (DateTime.Now.ToBinary() % 2 == 0) - CSharpExpression - (70:3,44 [32] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (70:3,44 [32] SingleLineControlFlowStatements.cshtml) - CSharp - "Current time is divisible by 2" - CSharpCode - (103:3,77 [6] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (103:3,77 [6] SingleLineControlFlowStatements.cshtml) - CSharp - else - CSharpExpression - (110:3,84 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (110:3,84 [12] SingleLineControlFlowStatements.cshtml) - CSharp - DateTime.Now - CSharpCode - (122:3,96 [381] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (122:3,96 [381] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n object Bar()\n {\n if (DateTime.Now.ToBinary() % 2 == 0)\n return "Current time is divisible by 2";\n else if (DateTime.Now.ToBinary() % 3 == 0)\n return "Current time is divisible by 3";\n else\n return DateTime.Now;\n }\n\n for (var i = 0; i < 10; i++)\n // Incrementing a number\n i--;\n\n - CSharpCode - (504:19,5 [47] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (504:19,5 [47] SingleLineControlFlowStatements.cshtml) - CSharp - foreach (var item in new[] {"hello"})\n - CSharpExpression - (552:20,9 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (552:20,9 [4] SingleLineControlFlowStatements.cshtml) - CSharp - item - CSharpCode - (556:20,13 [0] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (556:20,13 [0] SingleLineControlFlowStatements.cshtml) - CSharp - - CSharpCode - (556:20,13 [20] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (556:20,13 [20] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n do\n - CSharpExpression - (577:23,9 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (577:23,9 [12] SingleLineControlFlowStatements.cshtml) - CSharp - currentCount - CSharpCode - (589:23,21 [174] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (589:23,21 [174] SingleLineControlFlowStatements.cshtml) - CSharp - \n while (--currentCount >= 0);\n\n while (--currentCount <= 10)\n currentCount++;\n\n using (var reader = new System.IO.StreamReader("/something"))\n - CSharpExpression - (764:30,9 [18] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (764:30,9 [18] SingleLineControlFlowStatements.cshtml) - CSharp - reader.ReadToEnd() - CSharpCode - (782:30,27 [8] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (782:30,27 [8] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n - CSharpCode - (791:32,5 [36] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (791:32,5 [36] SingleLineControlFlowStatements.cshtml) - CSharp - lock (this)\n currentCount++; - CSharpCode - (827:33,23 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (827:33,23 [2] SingleLineControlFlowStatements.cshtml) - CSharp - \n - HtmlContent - (832:35,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (832:35,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - HtmlContent - (1671:75,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1671:75,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (1674:76,1 [34] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1674:76,1 [34] SingleLineControlFlowStatements.cshtml) - CSharp - for (var i = 0; i < 10; i++)\n - CSharpExpression - (1709:77,5 [1] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1709:77,5 [1] SingleLineControlFlowStatements.cshtml) - CSharp - i - CSharpCode - (1710:77,6 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1710:77,6 [2] SingleLineControlFlowStatements.cshtml) - CSharp - \n - HtmlContent - (1712:78,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1712:78,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (1715:79,1 [43] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1715:79,1 [43] SingleLineControlFlowStatements.cshtml) - CSharp - foreach (var item in new[] {"hello"})\n - CSharpExpression - (1759:80,5 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1759:80,5 [4] SingleLineControlFlowStatements.cshtml) - CSharp - item - CSharpCode - (1763:80,9 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1763:80,9 [2] SingleLineControlFlowStatements.cshtml) - CSharp - \n - HtmlContent - (1765:81,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1765:81,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (1768:82,1 [8] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1768:82,1 [8] SingleLineControlFlowStatements.cshtml) - CSharp - do\n - CSharpExpression - (1777:83,5 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1777:83,5 [12] SingleLineControlFlowStatements.cshtml) - CSharp - currentCount - CSharpCode - (1789:83,17 [32] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1789:83,17 [32] SingleLineControlFlowStatements.cshtml) - CSharp - \nwhile (--currentCount >= 0);\n - HtmlContent - (1821:85,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1821:85,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (1824:86,1 [51] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1824:86,1 [51] SingleLineControlFlowStatements.cshtml) - CSharp - while (--currentCount <= 10)\n currentCount++;\n - HtmlContent - (1875:88,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1875:88,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (1878:89,1 [99] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1878:89,1 [99] SingleLineControlFlowStatements.cshtml) - CSharp - using (var reader = new System.IO.StreamReader("/something"))\n // Reading the entire file\n - CSharpExpression - (1978:91,5 [18] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1978:91,5 [18] SingleLineControlFlowStatements.cshtml) - CSharp - reader.ReadToEnd() - CSharpCode - (1996:91,23 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1996:91,23 [2] SingleLineControlFlowStatements.cshtml) - CSharp - \n - HtmlContent - (1998:92,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1998:92,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (2001:93,1 [34] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2001:93,1 [34] SingleLineControlFlowStatements.cshtml) - CSharp - lock (this)\n currentCount++;\n - HtmlContent - (2035:95,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2035:95,0 [2] SingleLineControlFlowStatements.cshtml) - Html - \n - CSharpCode - (2038:96,1 [10] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2038:96,1 [10] SingleLineControlFlowStatements.cshtml) - CSharp - if (true) - CSharpCode - (2049:96,12 [16] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2049:96,12 [16] SingleLineControlFlowStatements.cshtml) - CSharp - @GitHubUserName - HtmlContent - (2065:96,28 [17] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2065:96,28 [2] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (2068:96,31 [6] SingleLineControlFlowStatements.cshtml) - Html - Hello! - IntermediateToken - (2074:96,37 [4] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (2078:96,41 [4] SingleLineControlFlowStatements.cshtml) - Html - \n\n - CSharpCode - (2083:98,1 [16] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2083:98,1 [16] SingleLineControlFlowStatements.cshtml) - CSharp - if (true) \n - HtmlContent - (2101:99,6 [16] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2101:99,6 [16] SingleLineControlFlowStatements.cshtml) - Html -

        The time is - CSharpExpression - (2118:99,23 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2118:99,23 [12] SingleLineControlFlowStatements.cshtml) - CSharp - DateTime.Now - HtmlContent - (2130:99,35 [6] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2130:99,35 [6] SingleLineControlFlowStatements.cshtml) - Html -

        \n - CSharpCode - (2136:100,0 [2] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2136:100,0 [2] SingleLineControlFlowStatements.cshtml) - CSharp - \n - HtmlContent - (2138:101,0 [17] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (2138:101,0 [2] SingleLineControlFlowStatements.cshtml) - Html -

        - IntermediateToken - (2141:101,3 [10] SingleLineControlFlowStatements.cshtml) - Html - After Text - IntermediateToken - (2151:101,13 [4] SingleLineControlFlowStatements.cshtml) - Html -

        - CSharpCode - (846:36,12 [386] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (846:36,12 [386] SingleLineControlFlowStatements.cshtml) - CSharp - \n public string Foo()\n {\n var x = "";\n\n if (DateTime.Now.ToBinary() % 2 == 0)\n return "Current time is divisible by 2";\n else\n return "It isn't divisible by two";\n \n for (var i = 0; i < 10; i++)\n // Incrementing a number\n i--;\n\n foreach (var item in new[] {"hello"})\n - CSharpExpression - (1233:51,13 [4] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1233:51,13 [4] SingleLineControlFlowStatements.cshtml) - CSharp - item - CSharpCode - (1237:51,17 [28] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1237:51,17 [28] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n do\n - CSharpExpression - (1266:54,13 [12] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1266:54,13 [12] SingleLineControlFlowStatements.cshtml) - CSharp - currentCount - CSharpCode - (1278:54,25 [194] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1278:54,25 [194] SingleLineControlFlowStatements.cshtml) - CSharp - \n while (--currentCount >= 0);\n\n while (--currentCount <= 10)\n currentCount++;\n\n using (var reader = new System.IO.StreamReader("/something"))\n - CSharpExpression - (1473:61,13 [18] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1473:61,13 [18] SingleLineControlFlowStatements.cshtml) - CSharp - reader.ReadToEnd() - CSharpCode - (1491:61,31 [177] SingleLineControlFlowStatements.cshtml) - IntermediateToken - (1491:61,31 [177] SingleLineControlFlowStatements.cshtml) - CSharp - \n\n lock (this)\n currentCount++;\n }\n\n int currentCount = 0;\n\n public void IncrementCount()\n {\n if (true) currentCount++;\n }\n\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml deleted file mode 100644 index 6e12a5f3bfa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@addTagHelper "*, TestAssembly" - -

        Body of Tag

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml deleted file mode 100644 index b5c2eddf1a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@addTagHelper "*, TestAssembly" - -

        Body of Tag

        \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs deleted file mode 100644 index 2262179514b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelperWithNewlineBeforeAttributes_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml" -__TestNamespace_PTagHelper.Age = 1337; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt deleted file mode 100644 index caa51dd43d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelperWithNewlineBeforeAttributes_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - IntermediateToken - (31:0,31 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - \n\n - TagHelper - (35:2,0 [53] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - IntermediateToken - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Body of Tag - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (49:3,10 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - IntermediateToken - (49:3,10 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Hello World - DefaultTagHelperProperty - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - CSharp - 1337 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt deleted file mode 100644 index 18be9514bfb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml) -|"*, TestAssembly"| -Generated Location: (1071:18,37 [17] ) -|"*, TestAssembly"| - -Source Location: (67:3,28 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml) -|1337| -Generated Location: (1720:36,33 [4] ) -|1337| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs deleted file mode 100644 index 90685cd4898..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,63 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "00f665efb7bd154c43f2bd30d287b9ed9fa2ffdd" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelperWithNewlineBeforeAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"00f665efb7bd154c43f2bd30d287b9ed9fa2ffdd", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelperWithNewlineBeforeAttributes_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Body of Tag"); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml" -__TestNamespace_PTagHelper.Age = 1337; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt deleted file mode 100644 index fb67e469d92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelperWithNewlineBeforeAttributes_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - IntermediateToken - (33:1,0 [2] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - \n - TagHelper - (35:2,0 [53] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - IntermediateToken - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Body of Tag - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperProperty - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - CSharp - 1337 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs deleted file mode 100644 index 730bac6f29a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelper_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml" -__TestNamespace_PTagHelper.Age = 1337; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt deleted file mode 100644 index 4749a67bfd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelper_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] SingleTagHelper.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] SingleTagHelper.cshtml) - IntermediateToken - (31:0,31 [4] SingleTagHelper.cshtml) - Html - \n\n - TagHelper - (35:2,0 [49] SingleTagHelper.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (69:2,34 [11] SingleTagHelper.cshtml) - IntermediateToken - (69:2,34 [11] SingleTagHelper.cshtml) - Html - Body of Tag - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (45:2,10 [11] SingleTagHelper.cshtml) - IntermediateToken - (45:2,10 [11] SingleTagHelper.cshtml) - Html - Hello World - DefaultTagHelperProperty - (63:2,28 [4] SingleTagHelper.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (63:2,28 [4] SingleTagHelper.cshtml) - CSharp - 1337 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt deleted file mode 100644 index 5d033dece60..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml) -|"*, TestAssembly"| -Generated Location: (1017:18,37 [17] ) -|"*, TestAssembly"| - -Source Location: (63:2,28 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml) -|1337| -Generated Location: (1639:36,33 [4] ) -|1337| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs deleted file mode 100644 index f72f804484a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs +++ /dev/null @@ -1,63 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8cdee08b4e2681f8524ae09a405f163fd96d1ed8" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelper_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"8cdee08b4e2681f8524ae09a405f163fd96d1ed8", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelper_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Body of Tag"); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml" -__TestNamespace_PTagHelper.Age = 1337; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt deleted file mode 100644 index 89ef050a2ca..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagHelper_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] SingleTagHelper.cshtml) - IntermediateToken - (33:1,0 [2] SingleTagHelper.cshtml) - Html - \n - TagHelper - (35:2,0 [49] SingleTagHelper.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (69:2,34 [11] SingleTagHelper.cshtml) - IntermediateToken - (69:2,34 [11] SingleTagHelper.cshtml) - Html - Body of Tag - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperProperty - (63:2,28 [4] SingleTagHelper.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (63:2,28 [4] SingleTagHelper.cshtml) - CSharp - 1337 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml deleted file mode 100644 index 19d498abfee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml +++ /dev/null @@ -1,237 +0,0 @@ -

        This is line 1

        -

        This is line 2

        -

        This is line 3

        -

        This is line 4

        -

        This is line 5

        -

        This is line 6

        -

        This is line 7

        -

        This is line 8

        -

        This is line 9

        -

        This is line 10

        -

        This is line 11

        -

        This is line 12

        -

        This is line 13

        -

        This is line 14

        -

        This is line 15

        -

        This is line 16

        -

        This is line 17

        -

        This is line 18

        -

        This is line 19

        -

        This is line 20

        -

        This is line 21

        -

        This is line 22

        -

        This is line 23

        -

        This is line 24

        -

        This is line 25

        -

        This is line 26

        -

        This is line 27

        -

        This is line 28

        -

        This is line 29

        -

        This is line 30

        -

        This is line 31

        -

        This is line 32

        -

        This is line 33

        -

        This is line 34

        -

        This is line 35

        -

        This is line 36

        -

        This is line 37

        -

        This is line 38

        -

        This is line 39

        -

        This is line 40

        -

        This is line 41

        -

        This is line 42

        -

        This is line 43

        -

        This is line 44

        -

        This is line 45

        -

        This is line 46

        -

        This is line 47

        -

        This is line 48

        -

        This is line 49

        -

        This is line 50

        -

        This is line 51

        -

        This is line 52

        -

        This is line 53

        -

        This is line 54

        -

        This is line 55

        -

        This is line 56

        -

        This is line 57

        -

        This is line 58

        -

        This is line 59

        -

        This is line 60

        -

        This is line 61

        -

        This is line 62

        -

        This is line 63

        -

        This is line 64

        -

        This is line 65

        -

        This is line 66

        -

        This is line 67

        -

        This is line 68

        -

        This is line 69

        -

        This is line 70

        -

        This is line 71

        -

        This is line 72

        -

        This is line 73

        -

        This is line 74

        -

        This is line 75

        -

        This is line 76

        -

        This is line 77

        -

        This is line 78

        -

        This is line 79

        -

        This is line 80

        -

        This is line 81

        -

        This is line 82

        -

        This is line 83

        -

        This is line 84


        - -@section WriteLiteralsToInHere { -

        This is line 1 nested

        -

        This is line 2 nested

        -

        This is line 3 nested

        -

        This is line 4 nested

        -

        This is line 5 nested

        -

        This is line 6 nested

        -

        This is line 7 nested

        -

        This is line 8 nested

        -

        This is line 9 nested

        -

        This is line 10 nested

        -

        This is line 11 nested

        -

        This is line 12 nested

        -

        This is line 13 nested

        -

        This is line 14 nested

        -

        This is line 15 nested

        -

        This is line 16 nested

        -

        This is line 17 nested

        -

        This is line 18 nested

        -

        This is line 19 nested

        -

        This is line 20 nested

        -

        This is line 21 nested

        -

        This is line 22 nested

        -

        This is line 23 nested

        -

        This is line 24 nested

        -

        This is line 25 nested

        -

        This is line 26 nested

        -

        This is line 27 nested

        -

        This is line 28 nested

        -

        This is line 29 nested

        -

        This is line 30 nested

        -

        This is line 31 nested

        -

        This is line 32 nested

        -

        This is line 33 nested

        -

        This is line 34 nested

        -

        This is line 35 nested

        -

        This is line 36 nested

        -

        This is line 37 nested

        -

        This is line 38 nested

        -

        This is line 39 nested

        -

        This is line 40 nested

        -

        This is line 41 nested

        -

        This is line 42 nested

        -

        This is line 43 nested

        -

        This is line 44 nested

        -

        This is line 45 nested

        -

        This is line 46 nested

        -

        This is line 47 nested

        -

        This is line 48 nested

        -

        This is line 49 nested

        -

        This is line 50 nested

        -

        This is line 51 nested

        -

        This is line 52 nested

        -

        This is line 53 nested

        -

        This is line 54 nested

        -

        This is line 55 nested

        -

        This is line 56 nested

        -

        This is line 57 nested

        -

        This is line 58 nested

        -

        This is line 59 nested

        -

        This is line 60 nested

        -

        This is line 61 nested

        -

        This is line 62 nested

        -

        This is line 63 nested

        -

        This is line 64 nested

        -

        This is line 65 nested

        -

        This is line 66 nested

        -

        This is line 67 nested

        -

        This is line 68 nested

        -

        This is line 69 nested

        -

        This is line 70 nested

        -

        This is line 71 nested

        -

        This is line 72 nested

        -

        This is line 73 nested

        -

        This is line 74 nested

        -

        This is line 75 nested

        -} -

        This is line 1

        -

        This is line 2

        -

        This is line 3

        -

        This is line 4

        -

        This is line 5

        -

        This is line 6

        -

        This is line 7

        -

        This is line 8

        -

        This is line 9

        -

        This is line 10

        -

        This is line 11

        -

        This is line 12

        -

        This is line 13

        -

        This is line 14

        -

        This is line 15

        -

        This is line 16

        -

        This is line 17

        -

        This is line 18

        -

        This is line 19

        -

        This is line 20

        -

        This is line 21

        -

        This is line 22

        -

        This is line 23

        -

        This is line 24

        -

        This is line 25

        -

        This is line 26

        -

        This is line 27

        -

        This is line 28

        -

        This is line 29

        -

        This is line 30

        -

        This is line 31

        -

        This is line 32

        -

        This is line 33

        -

        This is line 34

        -

        This is line 35

        -

        This is line 36

        -

        This is line 37

        -

        This is line 38

        -

        This is line 39

        -

        This is line 40

        -

        This is line 41

        -

        This is line 42

        -

        This is line 43

        hi! -@section WriteLiteralsToInHereAlso { -

        This is line 1 nested

        -

        This is line 2 nested

        -

        This is line 3 nested

        -

        This is line 4 nested

        -

        This is line 5 nested

        -

        This is line 6 nested

        -

        This is line 7 nested

        -

        This is line 8 nested

        -

        This is line 9 nested

        -

        This is line 10 nested

        -

        This is line 11 nested

        -

        This is line 12 nested

        -

        This is line 13 nested

        -

        This is line 14 nested

        -

        This is line 15 nested

        -

        This is line 16 nested

        -

        This is line 17 nested

        -

        This is line 18 nested

        -

        This is line 19 nested

        -

        This is line 20 nested

        -

        This is line 21 nested

        -

        This is line 22 nested

        -

        This is line 23 nested

        -

        This is line 24 nested

        -

        This is line 25 nested

        -

        This is line 26 nested

        -

        This is line 27 nested

        -

        This is line 28 nested

        -

        This is line 29 nested

        -

        30

        -}! \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs deleted file mode 100644 index d3da7cc7e3d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 86 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml" -global::System.Object WriteLiteralsToInHere = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 206 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml" -global::System.Object WriteLiteralsToInHereAlso = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - DefineSection("WriteLiteralsToInHere", async(__razor_section_writer) => { - } - ); - DefineSection("WriteLiteralsToInHereAlso", async(__razor_section_writer) => { - } - ); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html deleted file mode 100644 index b47c6a931cc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html +++ /dev/null @@ -1,237 +0,0 @@ -

        This is line 1

        -

        This is line 2

        -

        This is line 3

        -

        This is line 4

        -

        This is line 5

        -

        This is line 6

        -

        This is line 7

        -

        This is line 8

        -

        This is line 9

        -

        This is line 10

        -

        This is line 11

        -

        This is line 12

        -

        This is line 13

        -

        This is line 14

        -

        This is line 15

        -

        This is line 16

        -

        This is line 17

        -

        This is line 18

        -

        This is line 19

        -

        This is line 20

        -

        This is line 21

        -

        This is line 22

        -

        This is line 23

        -

        This is line 24

        -

        This is line 25

        -

        This is line 26

        -

        This is line 27

        -

        This is line 28

        -

        This is line 29

        -

        This is line 30

        -

        This is line 31

        -

        This is line 32

        -

        This is line 33

        -

        This is line 34

        -

        This is line 35

        -

        This is line 36

        -

        This is line 37

        -

        This is line 38

        -

        This is line 39

        -

        This is line 40

        -

        This is line 41

        -

        This is line 42

        -

        This is line 43

        -

        This is line 44

        -

        This is line 45

        -

        This is line 46

        -

        This is line 47

        -

        This is line 48

        -

        This is line 49

        -

        This is line 50

        -

        This is line 51

        -

        This is line 52

        -

        This is line 53

        -

        This is line 54

        -

        This is line 55

        -

        This is line 56

        -

        This is line 57

        -

        This is line 58

        -

        This is line 59

        -

        This is line 60

        -

        This is line 61

        -

        This is line 62

        -

        This is line 63

        -

        This is line 64

        -

        This is line 65

        -

        This is line 66

        -

        This is line 67

        -

        This is line 68

        -

        This is line 69

        -

        This is line 70

        -

        This is line 71

        -

        This is line 72

        -

        This is line 73

        -

        This is line 74

        -

        This is line 75

        -

        This is line 76

        -

        This is line 77

        -

        This is line 78

        -

        This is line 79

        -

        This is line 80

        -

        This is line 81

        -

        This is line 82

        -

        This is line 83

        -

        This is line 84


        - - -

        This is line 1 nested

        -

        This is line 2 nested

        -

        This is line 3 nested

        -

        This is line 4 nested

        -

        This is line 5 nested

        -

        This is line 6 nested

        -

        This is line 7 nested

        -

        This is line 8 nested

        -

        This is line 9 nested

        -

        This is line 10 nested

        -

        This is line 11 nested

        -

        This is line 12 nested

        -

        This is line 13 nested

        -

        This is line 14 nested

        -

        This is line 15 nested

        -

        This is line 16 nested

        -

        This is line 17 nested

        -

        This is line 18 nested

        -

        This is line 19 nested

        -

        This is line 20 nested

        -

        This is line 21 nested

        -

        This is line 22 nested

        -

        This is line 23 nested

        -

        This is line 24 nested

        -

        This is line 25 nested

        -

        This is line 26 nested

        -

        This is line 27 nested

        -

        This is line 28 nested

        -

        This is line 29 nested

        -

        This is line 30 nested

        -

        This is line 31 nested

        -

        This is line 32 nested

        -

        This is line 33 nested

        -

        This is line 34 nested

        -

        This is line 35 nested

        -

        This is line 36 nested

        -

        This is line 37 nested

        -

        This is line 38 nested

        -

        This is line 39 nested

        -

        This is line 40 nested

        -

        This is line 41 nested

        -

        This is line 42 nested

        -

        This is line 43 nested

        -

        This is line 44 nested

        -

        This is line 45 nested

        -

        This is line 46 nested

        -

        This is line 47 nested

        -

        This is line 48 nested

        -

        This is line 49 nested

        -

        This is line 50 nested

        -

        This is line 51 nested

        -

        This is line 52 nested

        -

        This is line 53 nested

        -

        This is line 54 nested

        -

        This is line 55 nested

        -

        This is line 56 nested

        -

        This is line 57 nested

        -

        This is line 58 nested

        -

        This is line 59 nested

        -

        This is line 60 nested

        -

        This is line 61 nested

        -

        This is line 62 nested

        -

        This is line 63 nested

        -

        This is line 64 nested

        -

        This is line 65 nested

        -

        This is line 66 nested

        -

        This is line 67 nested

        -

        This is line 68 nested

        -

        This is line 69 nested

        -

        This is line 70 nested

        -

        This is line 71 nested

        -

        This is line 72 nested

        -

        This is line 73 nested

        -

        This is line 74 nested

        -

        This is line 75 nested

        - -

        This is line 1

        -

        This is line 2

        -

        This is line 3

        -

        This is line 4

        -

        This is line 5

        -

        This is line 6

        -

        This is line 7

        -

        This is line 8

        -

        This is line 9

        -

        This is line 10

        -

        This is line 11

        -

        This is line 12

        -

        This is line 13

        -

        This is line 14

        -

        This is line 15

        -

        This is line 16

        -

        This is line 17

        -

        This is line 18

        -

        This is line 19

        -

        This is line 20

        -

        This is line 21

        -

        This is line 22

        -

        This is line 23

        -

        This is line 24

        -

        This is line 25

        -

        This is line 26

        -

        This is line 27

        -

        This is line 28

        -

        This is line 29

        -

        This is line 30

        -

        This is line 31

        -

        This is line 32

        -

        This is line 33

        -

        This is line 34

        -

        This is line 35

        -

        This is line 36

        -

        This is line 37

        -

        This is line 38

        -

        This is line 39

        -

        This is line 40

        -

        This is line 41

        -

        This is line 42

        -

        This is line 43

        hi! - -

        This is line 1 nested

        -

        This is line 2 nested

        -

        This is line 3 nested

        -

        This is line 4 nested

        -

        This is line 5 nested

        -

        This is line 6 nested

        -

        This is line 7 nested

        -

        This is line 8 nested

        -

        This is line 9 nested

        -

        This is line 10 nested

        -

        This is line 11 nested

        -

        This is line 12 nested

        -

        This is line 13 nested

        -

        This is line 14 nested

        -

        This is line 15 nested

        -

        This is line 16 nested

        -

        This is line 17 nested

        -

        This is line 18 nested

        -

        This is line 19 nested

        -

        This is line 20 nested

        -

        This is line 21 nested

        -

        This is line 22 nested

        -

        This is line 23 nested

        -

        This is line 24 nested

        -

        This is line 25 nested

        -

        This is line 26 nested

        -

        This is line 27 nested

        -

        This is line 28 nested

        -

        This is line 29 nested

        -

        30

        - ! \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt deleted file mode 100644 index 0c6dbeca8dd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt +++ /dev/null @@ -1,1186 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_DesignTime - - - DesignTimeDirective - - DirectiveToken - (2022:85,9 [21] StringLiterals.cshtml) - WriteLiteralsToInHere - DirectiveToken - (5701:205,9 [25] StringLiterals.cshtml) - WriteLiteralsToInHereAlso - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [2013] StringLiterals.cshtml) - IntermediateToken - (0:0,0 [2] StringLiterals.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (2005:83,22 [3] StringLiterals.cshtml) - Html -
        - IntermediateToken - (2009:83,26 [4] StringLiterals.cshtml) - Html - \n\n - Section - - WriteLiteralsToInHere - HtmlContent - (2045:85,32 [2618] StringLiterals.cshtml) - IntermediateToken - (2045:85,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2051:86,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2054:86,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - IntermediateToken - (2075:86,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2079:86,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2085:87,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2088:87,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - IntermediateToken - (2109:87,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2113:87,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2119:88,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2122:88,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - IntermediateToken - (2143:88,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2147:88,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2153:89,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2156:89,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - IntermediateToken - (2177:89,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2181:89,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2187:90,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2190:90,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - IntermediateToken - (2211:90,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2215:90,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2221:91,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2224:91,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - IntermediateToken - (2245:91,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2249:91,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2255:92,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2258:92,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - IntermediateToken - (2279:92,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2283:92,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2289:93,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2292:93,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - IntermediateToken - (2313:93,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2317:93,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2323:94,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2326:94,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - IntermediateToken - (2347:94,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2351:94,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2357:95,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2360:95,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - IntermediateToken - (2382:95,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2386:95,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2392:96,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2395:96,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - IntermediateToken - (2417:96,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2421:96,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2427:97,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2430:97,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - IntermediateToken - (2452:97,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2456:97,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2462:98,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2465:98,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - IntermediateToken - (2487:98,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2491:98,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2497:99,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2500:99,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - IntermediateToken - (2522:99,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2526:99,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2532:100,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2535:100,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - IntermediateToken - (2557:100,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2561:100,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2567:101,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2570:101,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - IntermediateToken - (2592:101,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2596:101,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2602:102,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2605:102,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - IntermediateToken - (2627:102,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2631:102,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2637:103,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2640:103,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - IntermediateToken - (2662:103,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2666:103,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2672:104,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2675:104,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - IntermediateToken - (2697:104,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2701:104,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2707:105,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2710:105,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - IntermediateToken - (2732:105,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2736:105,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2742:106,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2745:106,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - IntermediateToken - (2767:106,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2771:106,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2777:107,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2780:107,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - IntermediateToken - (2802:107,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2806:107,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2812:108,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2815:108,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - IntermediateToken - (2837:108,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2841:108,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2847:109,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2850:109,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - IntermediateToken - (2872:109,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2876:109,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2882:110,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2885:110,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - IntermediateToken - (2907:110,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2911:110,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2917:111,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2920:111,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - IntermediateToken - (2942:111,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2946:111,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2952:112,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2955:112,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - IntermediateToken - (2977:112,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2981:112,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2987:113,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2990:113,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - IntermediateToken - (3012:113,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3016:113,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3022:114,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3025:114,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - IntermediateToken - (3047:114,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3051:114,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3057:115,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3060:115,7 [22] StringLiterals.cshtml) - Html - This is line 30 nested - IntermediateToken - (3082:115,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3086:115,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3092:116,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3095:116,7 [22] StringLiterals.cshtml) - Html - This is line 31 nested - IntermediateToken - (3117:116,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3121:116,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3127:117,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3130:117,7 [22] StringLiterals.cshtml) - Html - This is line 32 nested - IntermediateToken - (3152:117,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3156:117,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3162:118,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3165:118,7 [22] StringLiterals.cshtml) - Html - This is line 33 nested - IntermediateToken - (3187:118,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3191:118,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3197:119,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3200:119,7 [22] StringLiterals.cshtml) - Html - This is line 34 nested - IntermediateToken - (3222:119,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3226:119,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3232:120,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3235:120,7 [22] StringLiterals.cshtml) - Html - This is line 35 nested - IntermediateToken - (3257:120,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3261:120,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3267:121,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3270:121,7 [22] StringLiterals.cshtml) - Html - This is line 36 nested - IntermediateToken - (3292:121,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3296:121,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3302:122,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3305:122,7 [22] StringLiterals.cshtml) - Html - This is line 37 nested - IntermediateToken - (3327:122,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3331:122,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3337:123,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3340:123,7 [22] StringLiterals.cshtml) - Html - This is line 38 nested - IntermediateToken - (3362:123,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3366:123,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3372:124,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3375:124,7 [22] StringLiterals.cshtml) - Html - This is line 39 nested - IntermediateToken - (3397:124,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3401:124,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3407:125,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3410:125,7 [22] StringLiterals.cshtml) - Html - This is line 40 nested - IntermediateToken - (3432:125,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3436:125,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3442:126,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3445:126,7 [22] StringLiterals.cshtml) - Html - This is line 41 nested - IntermediateToken - (3467:126,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3471:126,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3477:127,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3480:127,7 [22] StringLiterals.cshtml) - Html - This is line 42 nested - IntermediateToken - (3502:127,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3506:127,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3512:128,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3515:128,7 [22] StringLiterals.cshtml) - Html - This is line 43 nested - IntermediateToken - (3537:128,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3541:128,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3547:129,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3550:129,7 [22] StringLiterals.cshtml) - Html - This is line 44 nested - IntermediateToken - (3572:129,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3576:129,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3582:130,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3585:130,7 [22] StringLiterals.cshtml) - Html - This is line 45 nested - IntermediateToken - (3607:130,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3611:130,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3617:131,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3620:131,7 [22] StringLiterals.cshtml) - Html - This is line 46 nested - IntermediateToken - (3642:131,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3646:131,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3652:132,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3655:132,7 [22] StringLiterals.cshtml) - Html - This is line 47 nested - IntermediateToken - (3677:132,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3681:132,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3687:133,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3690:133,7 [22] StringLiterals.cshtml) - Html - This is line 48 nested - IntermediateToken - (3712:133,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3716:133,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3722:134,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3725:134,7 [22] StringLiterals.cshtml) - Html - This is line 49 nested - IntermediateToken - (3747:134,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3751:134,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3757:135,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3760:135,7 [22] StringLiterals.cshtml) - Html - This is line 50 nested - IntermediateToken - (3782:135,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3786:135,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3792:136,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3795:136,7 [22] StringLiterals.cshtml) - Html - This is line 51 nested - IntermediateToken - (3817:136,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3821:136,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3827:137,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3830:137,7 [22] StringLiterals.cshtml) - Html - This is line 52 nested - IntermediateToken - (3852:137,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3856:137,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3862:138,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3865:138,7 [22] StringLiterals.cshtml) - Html - This is line 53 nested - IntermediateToken - (3887:138,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3891:138,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3897:139,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3900:139,7 [22] StringLiterals.cshtml) - Html - This is line 54 nested - IntermediateToken - (3922:139,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3926:139,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3932:140,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3935:140,7 [22] StringLiterals.cshtml) - Html - This is line 55 nested - IntermediateToken - (3957:140,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3961:140,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3967:141,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3970:141,7 [22] StringLiterals.cshtml) - Html - This is line 56 nested - IntermediateToken - (3992:141,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3996:141,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4002:142,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4005:142,7 [22] StringLiterals.cshtml) - Html - This is line 57 nested - IntermediateToken - (4027:142,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4031:142,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4037:143,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4040:143,7 [22] StringLiterals.cshtml) - Html - This is line 58 nested - IntermediateToken - (4062:143,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4066:143,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4072:144,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4075:144,7 [22] StringLiterals.cshtml) - Html - This is line 59 nested - IntermediateToken - (4097:144,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4101:144,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4107:145,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4110:145,7 [22] StringLiterals.cshtml) - Html - This is line 60 nested - IntermediateToken - (4132:145,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4136:145,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4142:146,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4145:146,7 [22] StringLiterals.cshtml) - Html - This is line 61 nested - IntermediateToken - (4167:146,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4171:146,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4177:147,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4180:147,7 [22] StringLiterals.cshtml) - Html - This is line 62 nested - IntermediateToken - (4202:147,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4206:147,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4212:148,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4215:148,7 [22] StringLiterals.cshtml) - Html - This is line 63 nested - IntermediateToken - (4237:148,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4241:148,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4247:149,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4250:149,7 [22] StringLiterals.cshtml) - Html - This is line 64 nested - IntermediateToken - (4272:149,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4276:149,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4282:150,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4285:150,7 [22] StringLiterals.cshtml) - Html - This is line 65 nested - IntermediateToken - (4307:150,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4311:150,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4317:151,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4320:151,7 [22] StringLiterals.cshtml) - Html - This is line 66 nested - IntermediateToken - (4342:151,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4346:151,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4352:152,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4355:152,7 [22] StringLiterals.cshtml) - Html - This is line 67 nested - IntermediateToken - (4377:152,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4381:152,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4387:153,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4390:153,7 [22] StringLiterals.cshtml) - Html - This is line 68 nested - IntermediateToken - (4412:153,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4416:153,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4422:154,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4425:154,7 [22] StringLiterals.cshtml) - Html - This is line 69 nested - IntermediateToken - (4447:154,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4451:154,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4457:155,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4460:155,7 [22] StringLiterals.cshtml) - Html - This is line 70 nested - IntermediateToken - (4482:155,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4486:155,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4492:156,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4495:156,7 [22] StringLiterals.cshtml) - Html - This is line 71 nested - IntermediateToken - (4517:156,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4521:156,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4527:157,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4530:157,7 [22] StringLiterals.cshtml) - Html - This is line 72 nested - IntermediateToken - (4552:157,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4556:157,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4562:158,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4565:158,7 [22] StringLiterals.cshtml) - Html - This is line 73 nested - IntermediateToken - (4587:158,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4591:158,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4597:159,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4600:159,7 [22] StringLiterals.cshtml) - Html - This is line 74 nested - IntermediateToken - (4622:159,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4626:159,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4632:160,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4635:160,7 [22] StringLiterals.cshtml) - Html - This is line 75 nested - IntermediateToken - (4657:160,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4661:160,33 [2] StringLiterals.cshtml) - Html - \n - HtmlContent - (4664:161,1 [1028] StringLiterals.cshtml) - IntermediateToken - (4664:161,1 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4666:162,0 [2] StringLiterals.cshtml) - Html -

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

        - IntermediateToken - (4687:162,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4689:163,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4692:163,3 [14] StringLiterals.cshtml) - Html - This is line 2 - IntermediateToken - (4706:163,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4710:163,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4712:164,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4715:164,3 [14] StringLiterals.cshtml) - Html - This is line 3 - IntermediateToken - (4729:164,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4733:164,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4735:165,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4738:165,3 [14] StringLiterals.cshtml) - Html - This is line 4 - IntermediateToken - (4752:165,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4756:165,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4758:166,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4761:166,3 [14] StringLiterals.cshtml) - Html - This is line 5 - IntermediateToken - (4775:166,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4779:166,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4781:167,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4784:167,3 [14] StringLiterals.cshtml) - Html - This is line 6 - IntermediateToken - (4798:167,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4802:167,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4804:168,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4807:168,3 [14] StringLiterals.cshtml) - Html - This is line 7 - IntermediateToken - (4821:168,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4825:168,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4827:169,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4830:169,3 [14] StringLiterals.cshtml) - Html - This is line 8 - IntermediateToken - (4844:169,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4848:169,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4850:170,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4853:170,3 [14] StringLiterals.cshtml) - Html - This is line 9 - IntermediateToken - (4867:170,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4871:170,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4873:171,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4876:171,3 [15] StringLiterals.cshtml) - Html - This is line 10 - IntermediateToken - (4891:171,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4895:171,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4897:172,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4900:172,3 [15] StringLiterals.cshtml) - Html - This is line 11 - IntermediateToken - (4915:172,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4919:172,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4921:173,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4924:173,3 [15] StringLiterals.cshtml) - Html - This is line 12 - IntermediateToken - (4939:173,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4943:173,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4945:174,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4948:174,3 [15] StringLiterals.cshtml) - Html - This is line 13 - IntermediateToken - (4963:174,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4967:174,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4969:175,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4972:175,3 [15] StringLiterals.cshtml) - Html - This is line 14 - IntermediateToken - (4987:175,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4991:175,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4993:176,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4996:176,3 [15] StringLiterals.cshtml) - Html - This is line 15 - IntermediateToken - (5011:176,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5015:176,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5017:177,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5020:177,3 [15] StringLiterals.cshtml) - Html - This is line 16 - IntermediateToken - (5035:177,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5039:177,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5041:178,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5044:178,3 [15] StringLiterals.cshtml) - Html - This is line 17 - IntermediateToken - (5059:178,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5063:178,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5065:179,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5068:179,3 [15] StringLiterals.cshtml) - Html - This is line 18 - IntermediateToken - (5083:179,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5087:179,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5089:180,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5092:180,3 [15] StringLiterals.cshtml) - Html - This is line 19 - IntermediateToken - (5107:180,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5111:180,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5113:181,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5116:181,3 [15] StringLiterals.cshtml) - Html - This is line 20 - IntermediateToken - (5131:181,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5135:181,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5137:182,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5140:182,3 [15] StringLiterals.cshtml) - Html - This is line 21 - IntermediateToken - (5155:182,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5159:182,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5161:183,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5164:183,3 [15] StringLiterals.cshtml) - Html - This is line 22 - IntermediateToken - (5179:183,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5183:183,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5185:184,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5188:184,3 [15] StringLiterals.cshtml) - Html - This is line 23 - IntermediateToken - (5203:184,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5207:184,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5209:185,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5212:185,3 [15] StringLiterals.cshtml) - Html - This is line 24 - IntermediateToken - (5227:185,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5231:185,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5233:186,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5236:186,3 [15] StringLiterals.cshtml) - Html - This is line 25 - IntermediateToken - (5251:186,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5255:186,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5257:187,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5260:187,3 [15] StringLiterals.cshtml) - Html - This is line 26 - IntermediateToken - (5275:187,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5279:187,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5281:188,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5284:188,3 [15] StringLiterals.cshtml) - Html - This is line 27 - IntermediateToken - (5299:188,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5303:188,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5305:189,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5308:189,3 [15] StringLiterals.cshtml) - Html - This is line 28 - IntermediateToken - (5323:189,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5327:189,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5329:190,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5332:190,3 [15] StringLiterals.cshtml) - Html - This is line 29 - IntermediateToken - (5347:190,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5351:190,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5353:191,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5356:191,3 [15] StringLiterals.cshtml) - Html - This is line 30 - IntermediateToken - (5371:191,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5375:191,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5377:192,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5380:192,3 [15] StringLiterals.cshtml) - Html - This is line 31 - IntermediateToken - (5395:192,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5399:192,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5401:193,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5404:193,3 [15] StringLiterals.cshtml) - Html - This is line 32 - IntermediateToken - (5419:193,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5423:193,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5425:194,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5428:194,3 [15] StringLiterals.cshtml) - Html - This is line 33 - IntermediateToken - (5443:194,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5447:194,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5449:195,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5452:195,3 [15] StringLiterals.cshtml) - Html - This is line 34 - IntermediateToken - (5467:195,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5471:195,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5473:196,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5476:196,3 [15] StringLiterals.cshtml) - Html - This is line 35 - IntermediateToken - (5491:196,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5495:196,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5497:197,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5500:197,3 [15] StringLiterals.cshtml) - Html - This is line 36 - IntermediateToken - (5515:197,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5519:197,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5521:198,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5524:198,3 [15] StringLiterals.cshtml) - Html - This is line 37 - IntermediateToken - (5539:198,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5543:198,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5545:199,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5548:199,3 [15] StringLiterals.cshtml) - Html - This is line 38 - IntermediateToken - (5563:199,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5567:199,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5569:200,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5572:200,3 [15] StringLiterals.cshtml) - Html - This is line 39 - IntermediateToken - (5587:200,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5591:200,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5593:201,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5596:201,3 [15] StringLiterals.cshtml) - Html - This is line 40 - IntermediateToken - (5611:201,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5615:201,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5617:202,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5620:202,3 [15] StringLiterals.cshtml) - Html - This is line 41 - IntermediateToken - (5635:202,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5639:202,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5641:203,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5644:203,3 [15] StringLiterals.cshtml) - Html - This is line 42 - IntermediateToken - (5659:203,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5663:203,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5665:204,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5668:204,3 [15] StringLiterals.cshtml) - Html - This is line 43 - IntermediateToken - (5683:204,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5687:204,22 [5] StringLiterals.cshtml) - Html - hi!\n - Section - - WriteLiteralsToInHereAlso - HtmlContent - (5728:205,36 [1023] StringLiterals.cshtml) - IntermediateToken - (5728:205,36 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5734:206,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5737:206,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - IntermediateToken - (5758:206,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5762:206,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5768:207,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5771:207,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - IntermediateToken - (5792:207,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5796:207,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5802:208,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5805:208,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - IntermediateToken - (5826:208,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5830:208,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5836:209,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5839:209,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - IntermediateToken - (5860:209,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5864:209,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5870:210,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5873:210,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - IntermediateToken - (5894:210,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5898:210,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5904:211,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5907:211,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - IntermediateToken - (5928:211,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5932:211,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5938:212,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5941:212,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - IntermediateToken - (5962:212,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5966:212,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5972:213,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5975:213,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - IntermediateToken - (5996:213,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6000:213,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6006:214,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6009:214,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - IntermediateToken - (6030:214,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6034:214,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6040:215,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6043:215,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - IntermediateToken - (6065:215,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6069:215,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6075:216,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6078:216,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - IntermediateToken - (6100:216,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6104:216,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6110:217,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6113:217,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - IntermediateToken - (6135:217,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6139:217,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6145:218,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6148:218,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - IntermediateToken - (6170:218,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6174:218,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6180:219,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6183:219,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - IntermediateToken - (6205:219,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6209:219,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6215:220,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6218:220,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - IntermediateToken - (6240:220,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6244:220,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6250:221,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6253:221,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - IntermediateToken - (6275:221,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6279:221,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6285:222,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6288:222,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - IntermediateToken - (6310:222,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6314:222,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6320:223,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6323:223,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - IntermediateToken - (6345:223,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6349:223,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6355:224,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6358:224,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - IntermediateToken - (6380:224,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6384:224,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6390:225,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6393:225,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - IntermediateToken - (6415:225,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6419:225,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6425:226,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6428:226,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - IntermediateToken - (6450:226,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6454:226,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6460:227,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6463:227,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - IntermediateToken - (6485:227,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6489:227,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6495:228,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6498:228,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - IntermediateToken - (6520:228,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6524:228,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6530:229,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6533:229,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - IntermediateToken - (6555:229,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6559:229,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6565:230,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6568:230,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - IntermediateToken - (6590:230,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6594:230,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6600:231,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6603:231,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - IntermediateToken - (6625:231,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6629:231,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6635:232,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6638:232,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - IntermediateToken - (6660:232,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6664:232,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6670:233,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6673:233,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - IntermediateToken - (6695:233,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6699:233,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6705:234,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6708:234,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - IntermediateToken - (6730:234,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6734:234,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6740:235,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6743:235,7 [2] StringLiterals.cshtml) - Html - 30 - IntermediateToken - (6745:235,9 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6749:235,13 [2] StringLiterals.cshtml) - Html - \n - HtmlContent - (6752:236,1 [1] StringLiterals.cshtml) - IntermediateToken - (6752:236,1 [1] StringLiterals.cshtml) - Html - ! diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt deleted file mode 100644 index 3338234435b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (2022:85,9 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml) -|WriteLiteralsToInHere| -Generated Location: (515:12,22 [21] ) -|WriteLiteralsToInHere| - -Source Location: (5701:205,9 [25] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml) -|WriteLiteralsToInHereAlso| -Generated Location: (790:22,22 [25] ) -|WriteLiteralsToInHereAlso| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.codegen.cs deleted file mode 100644 index b2c587c14df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.codegen.cs +++ /dev/null @@ -1,267 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "711aea8060d90aea04acd3324afb4bb4a0caccde" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"711aea8060d90aea04acd3324afb4bb4a0caccde", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral(@"

        This is line 1

        -

        This is line 2

        -

        This is line 3

        -

        This is line 4

        -

        This is line 5

        -

        This is line 6

        -

        This is line 7

        -

        This is line 8

        -

        This is line 9

        -

        This is line 10

        -

        This is line 11

        -

        This is line 12

        -

        This is line 13

        -

        This is line 14

        -

        This is line 15

        -

        This is line 16

        -

        This is line 17

        -

        This is line 18

        -

        This is line 19

        -

        This is line 20

        -

        This is line 21

        -

        This is line 22

        -

        This is line 23

        -

        This is line 24

        -

        This is line 25

        -

        This is line 26

        -

        This is line 27

        -

        This is line 28

        -

        This is line 29

        -

        This is line 30

        -

        This is line 31

        -

        This is line 32

        -

        This is line 33

        -

        This is line 34

        -

        This is line 35

        -

        This is line 36

        -

        This is line 37

        -

        This is line 38

        -

        This is line 39

        -

        This is line 40

        -

        This is line 41

        -

        This is line 42

        -

        This is line 43

        -<"); - WriteLiteral(@"p>This is line 44

        -

        This is line 45

        -

        This is line 46

        -

        This is line 47

        -

        This is line 48

        -

        This is line 49

        -

        This is line 50

        -

        This is line 51

        -

        This is line 52

        -

        This is line 53

        -

        This is line 54

        -

        This is line 55

        -

        This is line 56

        -

        This is line 57

        -

        This is line 58

        -

        This is line 59

        -

        This is line 60

        -

        This is line 61

        -

        This is line 62

        -

        This is line 63

        -

        This is line 64

        -

        This is line 65

        -

        This is line 66

        -

        This is line 67

        -

        This is line 68

        -

        This is line 69

        -

        This is line 70

        -

        This is line 71

        -

        This is line 72

        -

        This is line 73

        -

        This is line 74

        -

        This is line 75

        -

        This is line 76

        -

        This is line 77

        -

        This is line 78

        -

        This is line 79

        -

        This is line 80

        -

        This is line 81

        -

        This is line 82

        -

        This is line 83

        -

        This is line 84


        - -"); - DefineSection("WriteLiteralsToInHere", async() => { - WriteLiteral(@" -

        This is line 1 nested

        -

        This is line 2 nested

        -

        This is line 3 nested

        -

        This is line 4 nested

        -

        This is line 5 nested

        -

        This is line 6 nested

        -

        This is line 7 nested

        -

        This is line 8 nested

        -

        This is line 9 nested

        -

        This is line 10 nested

        -

        This is line 11 nested

        -

        This is line 12 nested

        -

        This is line 13 nested

        -

        This is line 14 nested

        -

        This is line 15 nested

        -

        This is line 16 nested

        -

        This is line 17 nested

        -

        This is line 18 nested

        -

        This is line 19 nested

        -

        This is line 20 nested

        -

        This is line 21 nested

        -

        This is line 22 nested

        -

        This is line 23 nested

        -

        This is line 24 nested

        -

        This is line 25 nested

        -

        This is line 26 nested

        -

        This is line 27 nested

        -

        This is line 28 nested

        -

        This is line 29 nested

        -

        This is l"); - WriteLiteral(@"ine 30 nested

        -

        This is line 31 nested

        -

        This is line 32 nested

        -

        This is line 33 nested

        -

        This is line 34 nested

        -

        This is line 35 nested

        -

        This is line 36 nested

        -

        This is line 37 nested

        -

        This is line 38 nested

        -

        This is line 39 nested

        -

        This is line 40 nested

        -

        This is line 41 nested

        -

        This is line 42 nested

        -

        This is line 43 nested

        -

        This is line 44 nested

        -

        This is line 45 nested

        -

        This is line 46 nested

        -

        This is line 47 nested

        -

        This is line 48 nested

        -

        This is line 49 nested

        -

        This is line 50 nested

        -

        This is line 51 nested

        -

        This is line 52 nested

        -

        This is line 53 nested

        -

        This is line 54 nested

        -

        This is line 55 nested

        -

        This is line 56 nested

        -

        This is line 57 nested

        -

        This is line 58 nested

        -

        This is line 59 ne"); - WriteLiteral(@"sted

        -

        This is line 60 nested

        -

        This is line 61 nested

        -

        This is line 62 nested

        -

        This is line 63 nested

        -

        This is line 64 nested

        -

        This is line 65 nested

        -

        This is line 66 nested

        -

        This is line 67 nested

        -

        This is line 68 nested

        -

        This is line 69 nested

        -

        This is line 70 nested

        -

        This is line 71 nested

        -

        This is line 72 nested

        -

        This is line 73 nested

        -

        This is line 74 nested

        -

        This is line 75 nested

        -"); - } - ); - WriteLiteral(@"

        This is line 1

        -

        This is line 2

        -

        This is line 3

        -

        This is line 4

        -

        This is line 5

        -

        This is line 6

        -

        This is line 7

        -

        This is line 8

        -

        This is line 9

        -

        This is line 10

        -

        This is line 11

        -

        This is line 12

        -

        This is line 13

        -

        This is line 14

        -

        This is line 15

        -

        This is line 16

        -

        This is line 17

        -

        This is line 18

        -

        This is line 19

        -

        This is line 20

        -

        This is line 21

        -

        This is line 22

        -

        This is line 23

        -

        This is line 24

        -

        This is line 25

        -

        This is line 26

        -

        This is line 27

        -

        This is line 28

        -

        This is line 29

        -

        This is line 30

        -

        This is line 31

        -

        This is line 32

        -

        This is line 33

        -

        This is line 34

        -

        This is line 35

        -

        This is line 36

        -

        This is line 37

        -

        This is line 38

        -

        This is line 39

        -

        This is line 40

        -

        This is line 41

        -

        This is line 42

        -

        This is line 43

        hi!"); - WriteLiteral("\r\n"); - DefineSection("WriteLiteralsToInHereAlso", async() => { - WriteLiteral(@" -

        This is line 1 nested

        -

        This is line 2 nested

        -

        This is line 3 nested

        -

        This is line 4 nested

        -

        This is line 5 nested

        -

        This is line 6 nested

        -

        This is line 7 nested

        -

        This is line 8 nested

        -

        This is line 9 nested

        -

        This is line 10 nested

        -

        This is line 11 nested

        -

        This is line 12 nested

        -

        This is line 13 nested

        -

        This is line 14 nested

        -

        This is line 15 nested

        -

        This is line 16 nested

        -

        This is line 17 nested

        -

        This is line 18 nested

        -

        This is line 19 nested

        -

        This is line 20 nested

        -

        This is line 21 nested

        -

        This is line 22 nested

        -

        This is line 23 nested

        -

        This is line 24 nested

        -

        This is line 25 nested

        -

        This is line 26 nested

        -

        This is line 27 nested

        -

        This is line 28 nested

        -

        This is line 29 nested

        -

        30

        -"); - } - ); - WriteLiteral("!"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt deleted file mode 100644 index 0866f758370..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt +++ /dev/null @@ -1,1178 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (0:0,0 [2013] StringLiterals.cshtml) - IntermediateToken - (0:0,0 [2] StringLiterals.cshtml) - Html -

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        - IntermediateToken - (2005:83,22 [3] StringLiterals.cshtml) - Html -
        - IntermediateToken - (2009:83,26 [4] StringLiterals.cshtml) - Html - \n\n - Section - - WriteLiteralsToInHere - HtmlContent - (2045:85,32 [2618] StringLiterals.cshtml) - IntermediateToken - (2045:85,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2051:86,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2054:86,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - IntermediateToken - (2075:86,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2079:86,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2085:87,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2088:87,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - IntermediateToken - (2109:87,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2113:87,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2119:88,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2122:88,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - IntermediateToken - (2143:88,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2147:88,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2153:89,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2156:89,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - IntermediateToken - (2177:89,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2181:89,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2187:90,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2190:90,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - IntermediateToken - (2211:90,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2215:90,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2221:91,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2224:91,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - IntermediateToken - (2245:91,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2249:91,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2255:92,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2258:92,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - IntermediateToken - (2279:92,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2283:92,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2289:93,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2292:93,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - IntermediateToken - (2313:93,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2317:93,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2323:94,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2326:94,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - IntermediateToken - (2347:94,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2351:94,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2357:95,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2360:95,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - IntermediateToken - (2382:95,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2386:95,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2392:96,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2395:96,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - IntermediateToken - (2417:96,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2421:96,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2427:97,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2430:97,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - IntermediateToken - (2452:97,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2456:97,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2462:98,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2465:98,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - IntermediateToken - (2487:98,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2491:98,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2497:99,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2500:99,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - IntermediateToken - (2522:99,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2526:99,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2532:100,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2535:100,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - IntermediateToken - (2557:100,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2561:100,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2567:101,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2570:101,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - IntermediateToken - (2592:101,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2596:101,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2602:102,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2605:102,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - IntermediateToken - (2627:102,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2631:102,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2637:103,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2640:103,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - IntermediateToken - (2662:103,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2666:103,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2672:104,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2675:104,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - IntermediateToken - (2697:104,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2701:104,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2707:105,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2710:105,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - IntermediateToken - (2732:105,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2736:105,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2742:106,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2745:106,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - IntermediateToken - (2767:106,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2771:106,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2777:107,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2780:107,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - IntermediateToken - (2802:107,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2806:107,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2812:108,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2815:108,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - IntermediateToken - (2837:108,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2841:108,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2847:109,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2850:109,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - IntermediateToken - (2872:109,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2876:109,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2882:110,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2885:110,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - IntermediateToken - (2907:110,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2911:110,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2917:111,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2920:111,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - IntermediateToken - (2942:111,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2946:111,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2952:112,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2955:112,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - IntermediateToken - (2977:112,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2981:112,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (2987:113,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (2990:113,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - IntermediateToken - (3012:113,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3016:113,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3022:114,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3025:114,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - IntermediateToken - (3047:114,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3051:114,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3057:115,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3060:115,7 [22] StringLiterals.cshtml) - Html - This is line 30 nested - IntermediateToken - (3082:115,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3086:115,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3092:116,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3095:116,7 [22] StringLiterals.cshtml) - Html - This is line 31 nested - IntermediateToken - (3117:116,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3121:116,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3127:117,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3130:117,7 [22] StringLiterals.cshtml) - Html - This is line 32 nested - IntermediateToken - (3152:117,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3156:117,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3162:118,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3165:118,7 [22] StringLiterals.cshtml) - Html - This is line 33 nested - IntermediateToken - (3187:118,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3191:118,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3197:119,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3200:119,7 [22] StringLiterals.cshtml) - Html - This is line 34 nested - IntermediateToken - (3222:119,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3226:119,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3232:120,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3235:120,7 [22] StringLiterals.cshtml) - Html - This is line 35 nested - IntermediateToken - (3257:120,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3261:120,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3267:121,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3270:121,7 [22] StringLiterals.cshtml) - Html - This is line 36 nested - IntermediateToken - (3292:121,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3296:121,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3302:122,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3305:122,7 [22] StringLiterals.cshtml) - Html - This is line 37 nested - IntermediateToken - (3327:122,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3331:122,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3337:123,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3340:123,7 [22] StringLiterals.cshtml) - Html - This is line 38 nested - IntermediateToken - (3362:123,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3366:123,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3372:124,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3375:124,7 [22] StringLiterals.cshtml) - Html - This is line 39 nested - IntermediateToken - (3397:124,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3401:124,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3407:125,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3410:125,7 [22] StringLiterals.cshtml) - Html - This is line 40 nested - IntermediateToken - (3432:125,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3436:125,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3442:126,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3445:126,7 [22] StringLiterals.cshtml) - Html - This is line 41 nested - IntermediateToken - (3467:126,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3471:126,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3477:127,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3480:127,7 [22] StringLiterals.cshtml) - Html - This is line 42 nested - IntermediateToken - (3502:127,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3506:127,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3512:128,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3515:128,7 [22] StringLiterals.cshtml) - Html - This is line 43 nested - IntermediateToken - (3537:128,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3541:128,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3547:129,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3550:129,7 [22] StringLiterals.cshtml) - Html - This is line 44 nested - IntermediateToken - (3572:129,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3576:129,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3582:130,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3585:130,7 [22] StringLiterals.cshtml) - Html - This is line 45 nested - IntermediateToken - (3607:130,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3611:130,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3617:131,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3620:131,7 [22] StringLiterals.cshtml) - Html - This is line 46 nested - IntermediateToken - (3642:131,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3646:131,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3652:132,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3655:132,7 [22] StringLiterals.cshtml) - Html - This is line 47 nested - IntermediateToken - (3677:132,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3681:132,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3687:133,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3690:133,7 [22] StringLiterals.cshtml) - Html - This is line 48 nested - IntermediateToken - (3712:133,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3716:133,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3722:134,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3725:134,7 [22] StringLiterals.cshtml) - Html - This is line 49 nested - IntermediateToken - (3747:134,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3751:134,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3757:135,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3760:135,7 [22] StringLiterals.cshtml) - Html - This is line 50 nested - IntermediateToken - (3782:135,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3786:135,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3792:136,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3795:136,7 [22] StringLiterals.cshtml) - Html - This is line 51 nested - IntermediateToken - (3817:136,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3821:136,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3827:137,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3830:137,7 [22] StringLiterals.cshtml) - Html - This is line 52 nested - IntermediateToken - (3852:137,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3856:137,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3862:138,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3865:138,7 [22] StringLiterals.cshtml) - Html - This is line 53 nested - IntermediateToken - (3887:138,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3891:138,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3897:139,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3900:139,7 [22] StringLiterals.cshtml) - Html - This is line 54 nested - IntermediateToken - (3922:139,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3926:139,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3932:140,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3935:140,7 [22] StringLiterals.cshtml) - Html - This is line 55 nested - IntermediateToken - (3957:140,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3961:140,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (3967:141,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3970:141,7 [22] StringLiterals.cshtml) - Html - This is line 56 nested - IntermediateToken - (3992:141,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (3996:141,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4002:142,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4005:142,7 [22] StringLiterals.cshtml) - Html - This is line 57 nested - IntermediateToken - (4027:142,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4031:142,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4037:143,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4040:143,7 [22] StringLiterals.cshtml) - Html - This is line 58 nested - IntermediateToken - (4062:143,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4066:143,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4072:144,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4075:144,7 [22] StringLiterals.cshtml) - Html - This is line 59 nested - IntermediateToken - (4097:144,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4101:144,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4107:145,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4110:145,7 [22] StringLiterals.cshtml) - Html - This is line 60 nested - IntermediateToken - (4132:145,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4136:145,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4142:146,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4145:146,7 [22] StringLiterals.cshtml) - Html - This is line 61 nested - IntermediateToken - (4167:146,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4171:146,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4177:147,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4180:147,7 [22] StringLiterals.cshtml) - Html - This is line 62 nested - IntermediateToken - (4202:147,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4206:147,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4212:148,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4215:148,7 [22] StringLiterals.cshtml) - Html - This is line 63 nested - IntermediateToken - (4237:148,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4241:148,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4247:149,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4250:149,7 [22] StringLiterals.cshtml) - Html - This is line 64 nested - IntermediateToken - (4272:149,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4276:149,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4282:150,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4285:150,7 [22] StringLiterals.cshtml) - Html - This is line 65 nested - IntermediateToken - (4307:150,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4311:150,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4317:151,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4320:151,7 [22] StringLiterals.cshtml) - Html - This is line 66 nested - IntermediateToken - (4342:151,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4346:151,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4352:152,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4355:152,7 [22] StringLiterals.cshtml) - Html - This is line 67 nested - IntermediateToken - (4377:152,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4381:152,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4387:153,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4390:153,7 [22] StringLiterals.cshtml) - Html - This is line 68 nested - IntermediateToken - (4412:153,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4416:153,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4422:154,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4425:154,7 [22] StringLiterals.cshtml) - Html - This is line 69 nested - IntermediateToken - (4447:154,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4451:154,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4457:155,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4460:155,7 [22] StringLiterals.cshtml) - Html - This is line 70 nested - IntermediateToken - (4482:155,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4486:155,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4492:156,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4495:156,7 [22] StringLiterals.cshtml) - Html - This is line 71 nested - IntermediateToken - (4517:156,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4521:156,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4527:157,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4530:157,7 [22] StringLiterals.cshtml) - Html - This is line 72 nested - IntermediateToken - (4552:157,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4556:157,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4562:158,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4565:158,7 [22] StringLiterals.cshtml) - Html - This is line 73 nested - IntermediateToken - (4587:158,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4591:158,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4597:159,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4600:159,7 [22] StringLiterals.cshtml) - Html - This is line 74 nested - IntermediateToken - (4622:159,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4626:159,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4632:160,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4635:160,7 [22] StringLiterals.cshtml) - Html - This is line 75 nested - IntermediateToken - (4657:160,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4661:160,33 [2] StringLiterals.cshtml) - Html - \n - HtmlContent - (4666:162,0 [1026] StringLiterals.cshtml) - IntermediateToken - (4666:162,0 [2] StringLiterals.cshtml) - Html -

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

        - IntermediateToken - (4687:162,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4689:163,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4692:163,3 [14] StringLiterals.cshtml) - Html - This is line 2 - IntermediateToken - (4706:163,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4710:163,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4712:164,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4715:164,3 [14] StringLiterals.cshtml) - Html - This is line 3 - IntermediateToken - (4729:164,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4733:164,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4735:165,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4738:165,3 [14] StringLiterals.cshtml) - Html - This is line 4 - IntermediateToken - (4752:165,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4756:165,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4758:166,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4761:166,3 [14] StringLiterals.cshtml) - Html - This is line 5 - IntermediateToken - (4775:166,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4779:166,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4781:167,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4784:167,3 [14] StringLiterals.cshtml) - Html - This is line 6 - IntermediateToken - (4798:167,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4802:167,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4804:168,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4807:168,3 [14] StringLiterals.cshtml) - Html - This is line 7 - IntermediateToken - (4821:168,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4825:168,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4827:169,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4830:169,3 [14] StringLiterals.cshtml) - Html - This is line 8 - IntermediateToken - (4844:169,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4848:169,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4850:170,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4853:170,3 [14] StringLiterals.cshtml) - Html - This is line 9 - IntermediateToken - (4867:170,17 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4871:170,21 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4873:171,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4876:171,3 [15] StringLiterals.cshtml) - Html - This is line 10 - IntermediateToken - (4891:171,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4895:171,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4897:172,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4900:172,3 [15] StringLiterals.cshtml) - Html - This is line 11 - IntermediateToken - (4915:172,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4919:172,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4921:173,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4924:173,3 [15] StringLiterals.cshtml) - Html - This is line 12 - IntermediateToken - (4939:173,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4943:173,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4945:174,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4948:174,3 [15] StringLiterals.cshtml) - Html - This is line 13 - IntermediateToken - (4963:174,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4967:174,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4969:175,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4972:175,3 [15] StringLiterals.cshtml) - Html - This is line 14 - IntermediateToken - (4987:175,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4991:175,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (4993:176,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (4996:176,3 [15] StringLiterals.cshtml) - Html - This is line 15 - IntermediateToken - (5011:176,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5015:176,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5017:177,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5020:177,3 [15] StringLiterals.cshtml) - Html - This is line 16 - IntermediateToken - (5035:177,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5039:177,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5041:178,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5044:178,3 [15] StringLiterals.cshtml) - Html - This is line 17 - IntermediateToken - (5059:178,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5063:178,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5065:179,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5068:179,3 [15] StringLiterals.cshtml) - Html - This is line 18 - IntermediateToken - (5083:179,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5087:179,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5089:180,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5092:180,3 [15] StringLiterals.cshtml) - Html - This is line 19 - IntermediateToken - (5107:180,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5111:180,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5113:181,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5116:181,3 [15] StringLiterals.cshtml) - Html - This is line 20 - IntermediateToken - (5131:181,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5135:181,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5137:182,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5140:182,3 [15] StringLiterals.cshtml) - Html - This is line 21 - IntermediateToken - (5155:182,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5159:182,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5161:183,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5164:183,3 [15] StringLiterals.cshtml) - Html - This is line 22 - IntermediateToken - (5179:183,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5183:183,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5185:184,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5188:184,3 [15] StringLiterals.cshtml) - Html - This is line 23 - IntermediateToken - (5203:184,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5207:184,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5209:185,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5212:185,3 [15] StringLiterals.cshtml) - Html - This is line 24 - IntermediateToken - (5227:185,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5231:185,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5233:186,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5236:186,3 [15] StringLiterals.cshtml) - Html - This is line 25 - IntermediateToken - (5251:186,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5255:186,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5257:187,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5260:187,3 [15] StringLiterals.cshtml) - Html - This is line 26 - IntermediateToken - (5275:187,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5279:187,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5281:188,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5284:188,3 [15] StringLiterals.cshtml) - Html - This is line 27 - IntermediateToken - (5299:188,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5303:188,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5305:189,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5308:189,3 [15] StringLiterals.cshtml) - Html - This is line 28 - IntermediateToken - (5323:189,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5327:189,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5329:190,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5332:190,3 [15] StringLiterals.cshtml) - Html - This is line 29 - IntermediateToken - (5347:190,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5351:190,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5353:191,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5356:191,3 [15] StringLiterals.cshtml) - Html - This is line 30 - IntermediateToken - (5371:191,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5375:191,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5377:192,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5380:192,3 [15] StringLiterals.cshtml) - Html - This is line 31 - IntermediateToken - (5395:192,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5399:192,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5401:193,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5404:193,3 [15] StringLiterals.cshtml) - Html - This is line 32 - IntermediateToken - (5419:193,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5423:193,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5425:194,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5428:194,3 [15] StringLiterals.cshtml) - Html - This is line 33 - IntermediateToken - (5443:194,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5447:194,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5449:195,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5452:195,3 [15] StringLiterals.cshtml) - Html - This is line 34 - IntermediateToken - (5467:195,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5471:195,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5473:196,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5476:196,3 [15] StringLiterals.cshtml) - Html - This is line 35 - IntermediateToken - (5491:196,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5495:196,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5497:197,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5500:197,3 [15] StringLiterals.cshtml) - Html - This is line 36 - IntermediateToken - (5515:197,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5519:197,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5521:198,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5524:198,3 [15] StringLiterals.cshtml) - Html - This is line 37 - IntermediateToken - (5539:198,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5543:198,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5545:199,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5548:199,3 [15] StringLiterals.cshtml) - Html - This is line 38 - IntermediateToken - (5563:199,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5567:199,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5569:200,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5572:200,3 [15] StringLiterals.cshtml) - Html - This is line 39 - IntermediateToken - (5587:200,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5591:200,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5593:201,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5596:201,3 [15] StringLiterals.cshtml) - Html - This is line 40 - IntermediateToken - (5611:201,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5615:201,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5617:202,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5620:202,3 [15] StringLiterals.cshtml) - Html - This is line 41 - IntermediateToken - (5635:202,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5639:202,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5641:203,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5644:203,3 [15] StringLiterals.cshtml) - Html - This is line 42 - IntermediateToken - (5659:203,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5663:203,22 [2] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5665:204,0 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5668:204,3 [15] StringLiterals.cshtml) - Html - This is line 43 - IntermediateToken - (5683:204,18 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5687:204,22 [5] StringLiterals.cshtml) - Html - hi!\n - Section - - WriteLiteralsToInHereAlso - HtmlContent - (5728:205,36 [1023] StringLiterals.cshtml) - IntermediateToken - (5728:205,36 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5734:206,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5737:206,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - IntermediateToken - (5758:206,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5762:206,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5768:207,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5771:207,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - IntermediateToken - (5792:207,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5796:207,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5802:208,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5805:208,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - IntermediateToken - (5826:208,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5830:208,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5836:209,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5839:209,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - IntermediateToken - (5860:209,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5864:209,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5870:210,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5873:210,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - IntermediateToken - (5894:210,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5898:210,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5904:211,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5907:211,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - IntermediateToken - (5928:211,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5932:211,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5938:212,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5941:212,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - IntermediateToken - (5962:212,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5966:212,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (5972:213,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (5975:213,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - IntermediateToken - (5996:213,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6000:213,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6006:214,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6009:214,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - IntermediateToken - (6030:214,28 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6034:214,32 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6040:215,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6043:215,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - IntermediateToken - (6065:215,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6069:215,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6075:216,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6078:216,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - IntermediateToken - (6100:216,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6104:216,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6110:217,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6113:217,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - IntermediateToken - (6135:217,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6139:217,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6145:218,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6148:218,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - IntermediateToken - (6170:218,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6174:218,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6180:219,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6183:219,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - IntermediateToken - (6205:219,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6209:219,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6215:220,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6218:220,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - IntermediateToken - (6240:220,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6244:220,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6250:221,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6253:221,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - IntermediateToken - (6275:221,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6279:221,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6285:222,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6288:222,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - IntermediateToken - (6310:222,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6314:222,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6320:223,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6323:223,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - IntermediateToken - (6345:223,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6349:223,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6355:224,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6358:224,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - IntermediateToken - (6380:224,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6384:224,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6390:225,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6393:225,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - IntermediateToken - (6415:225,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6419:225,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6425:226,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6428:226,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - IntermediateToken - (6450:226,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6454:226,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6460:227,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6463:227,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - IntermediateToken - (6485:227,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6489:227,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6495:228,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6498:228,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - IntermediateToken - (6520:228,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6524:228,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6530:229,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6533:229,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - IntermediateToken - (6555:229,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6559:229,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6565:230,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6568:230,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - IntermediateToken - (6590:230,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6594:230,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6600:231,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6603:231,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - IntermediateToken - (6625:231,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6629:231,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6635:232,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6638:232,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - IntermediateToken - (6660:232,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6664:232,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6670:233,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6673:233,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - IntermediateToken - (6695:233,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6699:233,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6705:234,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6708:234,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - IntermediateToken - (6730:234,29 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6734:234,33 [6] StringLiterals.cshtml) - Html - \n - IntermediateToken - (6740:235,4 [2] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6743:235,7 [2] StringLiterals.cshtml) - Html - 30 - IntermediateToken - (6745:235,9 [4] StringLiterals.cshtml) - Html -

        - IntermediateToken - (6749:235,13 [2] StringLiterals.cshtml) - Html - \n - HtmlContent - (6752:236,1 [1] StringLiterals.cshtml) - IntermediateToken - (6752:236,1 [1] StringLiterals.cshtml) - Html - ! diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml deleted file mode 100644 index c653cff1b35..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml +++ /dev/null @@ -1,19 +0,0 @@ -@addTagHelper *, TestAssembly - -
          -
            - - - -
            -
            - -
              -
                - - - -
                -
                \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs deleted file mode 100644 index 38be520e246..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SymbolBoundAttributes_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.ListItems = items; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.ArrayItems = items; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.Event1 = doSomething(); - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.Event2 = doSomething(); - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper.StringProperty1 = "value"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __TestNamespace_CatchAllTagHelper.StringProperty2 = "value"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.diagnostics.txt deleted file mode 100644 index 1ee160ff70a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.diagnostics.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property 'System.Collections.Generic.List TestNamespace.CatchAllTagHelper.ListItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'System.Collections.Generic.List TestNamespace.CatchAllTagHelper.ListItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'System.String[] TestNamespace.CatchAllTagHelper.ArrayItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'System.String[] TestNamespace.CatchAllTagHelper.ArrayItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'string TestNamespace.CatchAllTagHelper.StringProperty1' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt deleted file mode 100644 index 5315700a1a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt +++ /dev/null @@ -1,140 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SymbolBoundAttributes_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] SymbolBoundAttributes.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [255] SymbolBoundAttributes.cshtml) - IntermediateToken - (29:0,29 [4] SymbolBoundAttributes.cshtml) - Html - \n\n - IntermediateToken - (33:2,0 [3] SymbolBoundAttributes.cshtml) - Html -
                  - IntermediateToken - (52:2,19 [5] SymbolBoundAttributes.cshtml) - Html -
                - IntermediateToken - (57:2,24 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (59:3,0 [3] SymbolBoundAttributes.cshtml) - Html -
                  - IntermediateToken - (80:3,21 [5] SymbolBoundAttributes.cshtml) - Html -
                - IntermediateToken - (85:3,26 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (87:4,0 [7] SymbolBoundAttributes.cshtml) - Html - - IntermediateToken - (136:4,49 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (138:5,0 [7] SymbolBoundAttributes.cshtml) - Html - - IntermediateToken - (188:5,50 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (190:6,0 [9] SymbolBoundAttributes.cshtml) - Html - - IntermediateToken - (232:7,11 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (234:8,0 [4] SymbolBoundAttributes.cshtml) - Html -
                - IntermediateToken - (246:8,12 [6] SymbolBoundAttributes.cshtml) - Html -
                - IntermediateToken - (252:8,18 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (254:9,0 [4] SymbolBoundAttributes.cshtml) - Html -
                - IntermediateToken - (274:9,20 [6] SymbolBoundAttributes.cshtml) - Html -
                - IntermediateToken - (280:9,26 [4] SymbolBoundAttributes.cshtml) - Html - \n\n - TagHelper - (284:11,0 [45] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (302:11,18 [5] SymbolBoundAttributes.cshtml) - [item] - System.Collections.Generic.List TestNamespace.CatchAllTagHelper.ListItems - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (302:11,18 [5] SymbolBoundAttributes.cshtml) - CSharp - items - DefaultTagHelperHtmlAttribute - - [item] - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (317:11,33 [5] SymbolBoundAttributes.cshtml) - IntermediateToken - (317:11,33 [5] SymbolBoundAttributes.cshtml) - Html - items - DefaultTagHelperExecute - - HtmlContent - (329:11,45 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (329:11,45 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (331:12,0 [49] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (351:12,20 [5] SymbolBoundAttributes.cshtml) - [(item)] - System.String[] TestNamespace.CatchAllTagHelper.ArrayItems - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (351:12,20 [5] SymbolBoundAttributes.cshtml) - CSharp - items - DefaultTagHelperHtmlAttribute - - [(item)] - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (368:12,37 [5] SymbolBoundAttributes.cshtml) - IntermediateToken - (368:12,37 [5] SymbolBoundAttributes.cshtml) - Html - items - DefaultTagHelperExecute - - HtmlContent - (380:12,49 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (380:12,49 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (382:13,0 [79] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (444:13,62 [8] SymbolBoundAttributes.cshtml) - IntermediateToken - (444:13,62 [8] SymbolBoundAttributes.cshtml) - Html - Click Me - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (405:13,23 [13] SymbolBoundAttributes.cshtml) - (click) - System.Action TestNamespace.CatchAllTagHelper.Event1 - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (405:13,23 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() - DefaultTagHelperHtmlAttribute - - (click) - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (429:13,47 [13] SymbolBoundAttributes.cshtml) - IntermediateToken - (429:13,47 [13] SymbolBoundAttributes.cshtml) - Html - doSomething() - DefaultTagHelperExecute - - HtmlContent - (461:13,79 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (461:13,79 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (463:14,0 [81] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (527:14,64 [8] SymbolBoundAttributes.cshtml) - IntermediateToken - (527:14,64 [8] SymbolBoundAttributes.cshtml) - Html - Click Me - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (487:14,24 [13] SymbolBoundAttributes.cshtml) - (^click) - System.Action TestNamespace.CatchAllTagHelper.Event2 - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (487:14,24 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() - DefaultTagHelperHtmlAttribute - - (^click) - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (512:14,49 [13] SymbolBoundAttributes.cshtml) - IntermediateToken - (512:14,49 [13] SymbolBoundAttributes.cshtml) - Html - doSomething() - DefaultTagHelperExecute - - HtmlContent - (544:14,81 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (544:14,81 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (546:15,0 [67] SymbolBoundAttributes.cshtml) - template - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (600:15,54 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (600:15,54 [2] SymbolBoundAttributes.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (574:15,28 [5] SymbolBoundAttributes.cshtml) - *something - string TestNamespace.CatchAllTagHelper.StringProperty1 - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (574:15,28 [5] SymbolBoundAttributes.cshtml) - IntermediateToken - (574:15,28 [5] SymbolBoundAttributes.cshtml) - Html - value - DefaultTagHelperHtmlAttribute - - *something - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (593:15,47 [5] SymbolBoundAttributes.cshtml) - IntermediateToken - (593:15,47 [5] SymbolBoundAttributes.cshtml) - Html - value - DefaultTagHelperExecute - - HtmlContent - (613:16,11 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (613:16,11 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (615:17,0 [33] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperHtmlAttribute - - #localminimized - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (648:17,33 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (648:17,33 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (650:18,0 [47] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (669:18,19 [5] SymbolBoundAttributes.cshtml) - #local - string TestNamespace.CatchAllTagHelper.StringProperty2 - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (669:18,19 [5] SymbolBoundAttributes.cshtml) - IntermediateToken - (669:18,19 [5] SymbolBoundAttributes.cshtml) - Html - value - DefaultTagHelperHtmlAttribute - - #local - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (684:18,34 [5] SymbolBoundAttributes.cshtml) - IntermediateToken - (684:18,34 [5] SymbolBoundAttributes.cshtml) - Html - value - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt deleted file mode 100644 index d7873fb7446..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt +++ /dev/null @@ -1,25 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml) -|*, TestAssembly| -Generated Location: (1044:18,38 [15] ) -|*, TestAssembly| - -Source Location: (302:11,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml) -|items| -Generated Location: (1699:36,46 [5] ) -|items| - -Source Location: (351:12,20 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml) -|items| -Generated Location: (2106:45,47 [5] ) -|items| - -Source Location: (405:13,23 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml) -|doSomething()| -Generated Location: (2509:54,43 [13] ) -|doSomething()| - -Source Location: (487:14,24 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml) -|doSomething()| -Generated Location: (2920:63,43 [13] ) -|doSomething()| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs deleted file mode 100644 index 697cafafff0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,207 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "911fabc92d64c2732fa0cff025d454076241edb8" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SymbolBoundAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"911fabc92d64c2732fa0cff025d454076241edb8", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SymbolBoundAttributes_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("[item]", new global::Microsoft.AspNetCore.Html.HtmlString("items"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("[(item)]", new global::Microsoft.AspNetCore.Html.HtmlString("items"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("(click)", new global::Microsoft.AspNetCore.Html.HtmlString("doSomething()"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("(^click)", new global::Microsoft.AspNetCore.Html.HtmlString("doSomething()"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("*something", "value", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("*something", new global::Microsoft.AspNetCore.Html.HtmlString("value"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("#local", "value", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("#local", new global::Microsoft.AspNetCore.Html.HtmlString("value"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n
                  \r\n
                    \r\n\r\n\r\n\r\n
                    \r\n
                    \r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ul", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.ListItems = items; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("[item]", __TestNamespace_CatchAllTagHelper.ListItems, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ul", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.ArrayItems = items; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("[(item)]", __TestNamespace_CatchAllTagHelper.ArrayItems, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Click Me"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); -#nullable restore -#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.Event1 = doSomething(); - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("(click)", __TestNamespace_CatchAllTagHelper.Event1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Click Me"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml" -__TestNamespace_CatchAllTagHelper.Event2 = doSomething(); - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("(^click)", __TestNamespace_CatchAllTagHelper.Event2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("template", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n"); - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - __TestNamespace_CatchAllTagHelper.StringProperty1 = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("#localminimized", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_CatchAllTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper); - BeginWriteTagHelperAttribute(); - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized); - __TestNamespace_CatchAllTagHelper.StringProperty2 = (string)__tagHelperAttribute_6.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.diagnostics.txt deleted file mode 100644 index 1ee160ff70a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.diagnostics.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property 'System.Collections.Generic.List TestNamespace.CatchAllTagHelper.ListItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'System.Collections.Generic.List TestNamespace.CatchAllTagHelper.ListItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'System.String[] TestNamespace.CatchAllTagHelper.ArrayItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'System.String[] TestNamespace.CatchAllTagHelper.ArrayItems' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property 'string TestNamespace.CatchAllTagHelper.StringProperty1' on tag helper 'TestNamespace.CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt deleted file mode 100644 index ee4dc7af832..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt +++ /dev/null @@ -1,126 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SymbolBoundAttributes_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - [item] - items - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - [(item)] - items - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - (click) - doSomething() - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - (^click) - doSomething() - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_4 - *something - value - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_5 - *something - value - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_6 - #local - value - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_7 - #local - value - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.CatchAllTagHelper - __TestNamespace_CatchAllTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:1,0 [253] SymbolBoundAttributes.cshtml) - IntermediateToken - (31:1,0 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (33:2,0 [3] SymbolBoundAttributes.cshtml) - Html -
                      - IntermediateToken - (52:2,19 [5] SymbolBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (57:2,24 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (59:3,0 [3] SymbolBoundAttributes.cshtml) - Html -
                      - IntermediateToken - (80:3,21 [5] SymbolBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (85:3,26 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (87:4,0 [7] SymbolBoundAttributes.cshtml) - Html - - IntermediateToken - (136:4,49 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (138:5,0 [7] SymbolBoundAttributes.cshtml) - Html - - IntermediateToken - (188:5,50 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (190:6,0 [9] SymbolBoundAttributes.cshtml) - Html - - IntermediateToken - (232:7,11 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (234:8,0 [4] SymbolBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (246:8,12 [6] SymbolBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (252:8,18 [2] SymbolBoundAttributes.cshtml) - Html - \n - IntermediateToken - (254:9,0 [4] SymbolBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (274:9,20 [6] SymbolBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (280:9,26 [4] SymbolBoundAttributes.cshtml) - Html - \n\n - TagHelper - (284:11,0 [45] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (302:11,18 [5] SymbolBoundAttributes.cshtml) - [item] - System.Collections.Generic.List TestNamespace.CatchAllTagHelper.ListItems - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (302:11,18 [5] SymbolBoundAttributes.cshtml) - CSharp - items - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperExecute - - HtmlContent - (329:11,45 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (329:11,45 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (331:12,0 [49] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (351:12,20 [5] SymbolBoundAttributes.cshtml) - [(item)] - System.String[] TestNamespace.CatchAllTagHelper.ArrayItems - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (351:12,20 [5] SymbolBoundAttributes.cshtml) - CSharp - items - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - HtmlContent - (380:12,49 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (380:12,49 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (382:13,0 [79] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (444:13,62 [8] SymbolBoundAttributes.cshtml) - IntermediateToken - (444:13,62 [8] SymbolBoundAttributes.cshtml) - Html - Click Me - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (405:13,23 [13] SymbolBoundAttributes.cshtml) - (click) - System.Action TestNamespace.CatchAllTagHelper.Event1 - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (405:13,23 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - HtmlContent - (461:13,79 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (461:13,79 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (463:14,0 [81] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (527:14,64 [8] SymbolBoundAttributes.cshtml) - IntermediateToken - (527:14,64 [8] SymbolBoundAttributes.cshtml) - Html - Click Me - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperProperty - (487:14,24 [13] SymbolBoundAttributes.cshtml) - (^click) - System.Action TestNamespace.CatchAllTagHelper.Event2 - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (487:14,24 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - DefaultTagHelperExecute - - HtmlContent - (544:14,81 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (544:14,81 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (546:15,0 [67] SymbolBoundAttributes.cshtml) - template - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (600:15,54 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (600:15,54 [2] SymbolBoundAttributes.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - PreallocatedTagHelperProperty - (574:15,28 [5] SymbolBoundAttributes.cshtml) - __tagHelperAttribute_4 - *something - StringProperty1 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - DefaultTagHelperExecute - - HtmlContent - (613:16,11 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (613:16,11 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (615:17,0 [33] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - DefaultTagHelperHtmlAttribute - - #localminimized - HtmlAttributeValueStyle.Minimized - DefaultTagHelperExecute - - HtmlContent - (648:17,33 [2] SymbolBoundAttributes.cshtml) - IntermediateToken - (648:17,33 [2] SymbolBoundAttributes.cshtml) - Html - \n - TagHelper - (650:18,0 [47] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.CatchAllTagHelper - DefaultTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized - PreallocatedTagHelperProperty - (669:18,19 [5] SymbolBoundAttributes.cshtml) - __tagHelperAttribute_6 - #local - StringProperty2 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml deleted file mode 100644 index 12d0afd1977..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml +++ /dev/null @@ -1,20 +0,0 @@ -@addTagHelper "*, TestAssembly" - -@{ - var code = "some code"; -} - -@section MySection { -
                    - - In None ContentBehavior. - Some buffered values with @code - -
                    - - @section nestedsection { -
                    - -
                    - } -} \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs deleted file mode 100644 index eeb070f4e1f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersInSection_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.MyTagHelper __TestNamespace_MyTagHelper; - private global::TestNamespace.NestedTagHelper __TestNamespace_NestedTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" -global::System.Object MySection = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" -global::System.Object nestedsection = null!; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - - var code = "some code"; - -#line default -#line hidden -#nullable disable - DefineSection("MySection", async(__razor_section_writer) => { -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - __o = code; - -#line default -#line hidden -#nullable disable - __TestNamespace_NestedTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_MyTagHelper = CreateTagHelper(); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - __TestNamespace_MyTagHelper.BoundProperty = string.Empty; -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - __o = DateTime.Now; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_NestedTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - ); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.diagnostics.txt deleted file mode 100644 index 0efe33796fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml(15,5): Error RZ2002: Section blocks ("@section Header { ... }") cannot be nested. Only one level of section blocks are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.ir.txt deleted file mode 100644 index 1f073cdb227..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.ir.txt +++ /dev/null @@ -1,80 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersInSection_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.MyTagHelper - __TestNamespace_MyTagHelper - FieldDeclaration - - private - global::TestNamespace.NestedTagHelper - __TestNamespace_NestedTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] TagHelpersInSection.cshtml) - "*, TestAssembly" - DirectiveToken - (82:6,9 [9] TagHelpersInSection.cshtml) - MySection - DirectiveToken - (388:14,13 [13] TagHelpersInSection.cshtml) - nestedsection - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] TagHelpersInSection.cshtml) - IntermediateToken - (31:0,31 [4] TagHelpersInSection.cshtml) - Html - \n\n - CSharpCode - (37:2,2 [31] TagHelpersInSection.cshtml) - IntermediateToken - (37:2,2 [31] TagHelpersInSection.cshtml) - CSharp - \n var code = "some code";\n - HtmlContent - (71:5,0 [2] TagHelpersInSection.cshtml) - IntermediateToken - (71:5,0 [2] TagHelpersInSection.cshtml) - Html - \n - Section - - MySection - HtmlContent - (93:6,20 [21] TagHelpersInSection.cshtml) - IntermediateToken - (93:6,20 [6] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (99:7,4 [4] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (104:7,9 [10] TagHelpersInSection.cshtml) - Html - \n - TagHelper - (114:8,8 [245] TagHelpersInSection.cshtml) - mytaghelper - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (217:8,111 [52] TagHelpersInSection.cshtml) - IntermediateToken - (217:8,111 [52] TagHelpersInSection.cshtml) - Html - \n In None ContentBehavior.\n - TagHelper - (269:10,12 [66] TagHelpersInSection.cshtml) - nestedtaghelper - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (286:10,29 [26] TagHelpersInSection.cshtml) - IntermediateToken - (286:10,29 [26] TagHelpersInSection.cshtml) - Html - Some buffered values with - CSharpExpression - (313:10,56 [4] TagHelpersInSection.cshtml) - IntermediateToken - (313:10,56 [4] TagHelpersInSection.cshtml) - CSharp - code - DefaultTagHelperCreate - - TestNamespace.NestedTagHelper - DefaultTagHelperExecute - - HtmlContent - (335:10,78 [10] TagHelpersInSection.cshtml) - IntermediateToken - (335:10,78 [10] TagHelpersInSection.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.MyTagHelper - DefaultTagHelperProperty - (142:8,36 [27] TagHelpersInSection.cshtml) - boundproperty - string TestNamespace.MyTagHelper.BoundProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (142:8,36 [14] TagHelpersInSection.cshtml) - IntermediateToken - (142:8,36 [7] TagHelpersInSection.cshtml) - Html - Current - IntermediateToken - (149:8,43 [6] TagHelpersInSection.cshtml) - Html - Time: - IntermediateToken - (155:8,49 [1] TagHelpersInSection.cshtml) - Html - - CSharpExpression - (157:8,51 [12] TagHelpersInSection.cshtml) - IntermediateToken - (157:8,51 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now - DefaultTagHelperHtmlAttribute - - unboundproperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (188:8,82 [7] TagHelpersInSection.cshtml) - - IntermediateToken - (188:8,82 [7] TagHelpersInSection.cshtml) - Html - Current - HtmlAttributeValue - (195:8,89 [6] TagHelpersInSection.cshtml) - - IntermediateToken - (196:8,90 [5] TagHelpersInSection.cshtml) - Html - Time: - CSharpExpressionAttributeValue - (201:8,95 [14] TagHelpersInSection.cshtml) - - IntermediateToken - (203:8,97 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now - DefaultTagHelperExecute - - HtmlContent - (359:11,22 [20] TagHelpersInSection.cshtml) - IntermediateToken - (359:11,22 [6] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (365:12,4 [6] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (371:12,10 [8] TagHelpersInSection.cshtml) - Html - \n\n - MalformedDirective - (379:14,4 [112] TagHelpersInSection.cshtml) - section - DirectiveToken - (388:14,13 [13] TagHelpersInSection.cshtml) - nestedsection - HtmlContent - (404:14,29 [29] TagHelpersInSection.cshtml) - IntermediateToken - (404:14,29 [10] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (414:15,8 [4] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (419:15,13 [14] TagHelpersInSection.cshtml) - Html - \n - TagHelper - (433:16,12 [35] TagHelpersInSection.cshtml) - nestedtaghelper - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.NestedTagHelper - DefaultTagHelperExecute - - HtmlContent - (468:16,47 [22] TagHelpersInSection.cshtml) - IntermediateToken - (468:16,47 [10] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (478:17,8 [6] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (484:17,14 [6] TagHelpersInSection.cshtml) - Html - \n - HtmlContent - (491:18,5 [2] TagHelpersInSection.cshtml) - IntermediateToken - (491:18,5 [2] TagHelpersInSection.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt deleted file mode 100644 index cc25475c21e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt +++ /dev/null @@ -1,39 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -|"*, TestAssembly"| -Generated Location: (1115:19,37 [17] ) -|"*, TestAssembly"| - -Source Location: (82:6,9 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -|MySection| -Generated Location: (1381:29,22 [9] ) -|MySection| - -Source Location: (388:14,13 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -|nestedsection| -Generated Location: (1648:39,22 [13] ) -|nestedsection| - -Source Location: (37:2,2 [31] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -| - var code = "some code"; -| -Generated Location: (2152:56,2 [31] ) -| - var code = "some code"; -| - -Source Location: (313:10,56 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -|code| -Generated Location: (2479:65,56 [4] ) -|code| - -Source Location: (157:8,51 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -|DateTime.Now| -Generated Location: (2991:75,51 [12] ) -|DateTime.Now| - -Source Location: (203:8,97 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml) -|DateTime.Now| -Generated Location: (3342:83,97 [12] ) -|DateTime.Now| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs deleted file mode 100644 index edc37eb1e22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs +++ /dev/null @@ -1,126 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7d1f5fcf069d8b265b8300a5070e14e2312ef599" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersInSection_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"7d1f5fcf069d8b265b8300a5070e14e2312ef599", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersInSection_Runtime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.MyTagHelper __TestNamespace_MyTagHelper; - private global::TestNamespace.NestedTagHelper __TestNamespace_NestedTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - - var code = "some code"; - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); - DefineSection("MySection", async() => { - WriteLiteral("\r\n
                    \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("mytaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n In None ContentBehavior.\r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Some buffered values with "); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - Write(code); - -#line default -#line hidden -#nullable disable - } - ); - __TestNamespace_NestedTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n "); - } - ); - __TestNamespace_MyTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper); - BeginWriteTagHelperAttribute(); - WriteLiteral("Current Time: "); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" - WriteLiteral(DateTime.Now); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __TestNamespace_MyTagHelper.BoundProperty = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("boundproperty", __TestNamespace_MyTagHelper.BoundProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unboundproperty", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - AddHtmlAttributeValue("", 188, "Current", 188, 7, true); - AddHtmlAttributeValue(" ", 195, "Time:", 196, 6, true); -#nullable restore -#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" -AddHtmlAttributeValue(" ", 201, DateTime.Now, 202, 13, false); - -#line default -#line hidden -#nullable disable - EndAddHtmlAttributeValues(__tagHelperExecutionContext); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
                    \r\n\r\n"); - WriteLiteral("\r\n
                    \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_NestedTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n
                    \r\n "); - } - ); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.diagnostics.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.diagnostics.txt deleted file mode 100644 index 0efe33796fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml(15,5): Error RZ2002: Section blocks ("@section Header { ... }") cannot be nested. Only one level of section blocks are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt deleted file mode 100644 index f59eaa42bbf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt +++ /dev/null @@ -1,70 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersInSection_Runtime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.MyTagHelper - __TestNamespace_MyTagHelper - FieldDeclaration - - private - global::TestNamespace.NestedTagHelper - __TestNamespace_NestedTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] TagHelpersInSection.cshtml) - IntermediateToken - (33:1,0 [2] TagHelpersInSection.cshtml) - Html - \n - CSharpCode - (37:2,2 [31] TagHelpersInSection.cshtml) - IntermediateToken - (37:2,2 [31] TagHelpersInSection.cshtml) - CSharp - \n var code = "some code";\n - HtmlContent - (71:5,0 [2] TagHelpersInSection.cshtml) - IntermediateToken - (71:5,0 [2] TagHelpersInSection.cshtml) - Html - \n - Section - - MySection - HtmlContent - (93:6,20 [21] TagHelpersInSection.cshtml) - IntermediateToken - (93:6,20 [6] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (99:7,4 [4] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (104:7,9 [10] TagHelpersInSection.cshtml) - Html - \n - TagHelper - (114:8,8 [245] TagHelpersInSection.cshtml) - mytaghelper - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (217:8,111 [52] TagHelpersInSection.cshtml) - IntermediateToken - (217:8,111 [52] TagHelpersInSection.cshtml) - Html - \n In None ContentBehavior.\n - TagHelper - (269:10,12 [66] TagHelpersInSection.cshtml) - nestedtaghelper - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (286:10,29 [26] TagHelpersInSection.cshtml) - IntermediateToken - (286:10,29 [26] TagHelpersInSection.cshtml) - Html - Some buffered values with - CSharpExpression - (313:10,56 [4] TagHelpersInSection.cshtml) - IntermediateToken - (313:10,56 [4] TagHelpersInSection.cshtml) - CSharp - code - DefaultTagHelperCreate - - TestNamespace.NestedTagHelper - DefaultTagHelperExecute - - HtmlContent - (335:10,78 [10] TagHelpersInSection.cshtml) - IntermediateToken - (335:10,78 [10] TagHelpersInSection.cshtml) - Html - \n - DefaultTagHelperCreate - - TestNamespace.MyTagHelper - DefaultTagHelperProperty - (142:8,36 [27] TagHelpersInSection.cshtml) - boundproperty - string TestNamespace.MyTagHelper.BoundProperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (142:8,36 [14] TagHelpersInSection.cshtml) - IntermediateToken - (142:8,36 [7] TagHelpersInSection.cshtml) - Html - Current - IntermediateToken - (149:8,43 [6] TagHelpersInSection.cshtml) - Html - Time: - IntermediateToken - (155:8,49 [1] TagHelpersInSection.cshtml) - Html - - CSharpExpression - (157:8,51 [12] TagHelpersInSection.cshtml) - IntermediateToken - (157:8,51 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now - DefaultTagHelperHtmlAttribute - - unboundproperty - HtmlAttributeValueStyle.DoubleQuotes - HtmlAttributeValue - (188:8,82 [7] TagHelpersInSection.cshtml) - - IntermediateToken - (188:8,82 [7] TagHelpersInSection.cshtml) - Html - Current - HtmlAttributeValue - (195:8,89 [6] TagHelpersInSection.cshtml) - - IntermediateToken - (196:8,90 [5] TagHelpersInSection.cshtml) - Html - Time: - CSharpExpressionAttributeValue - (201:8,95 [14] TagHelpersInSection.cshtml) - - IntermediateToken - (203:8,97 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now - DefaultTagHelperExecute - - HtmlContent - (359:11,22 [16] TagHelpersInSection.cshtml) - IntermediateToken - (359:11,22 [6] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (365:12,4 [6] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (371:12,10 [4] TagHelpersInSection.cshtml) - Html - \n\n - MalformedDirective - (379:14,4 [114] TagHelpersInSection.cshtml) - section - DirectiveToken - (388:14,13 [13] TagHelpersInSection.cshtml) - nestedsection - HtmlContent - (404:14,29 [29] TagHelpersInSection.cshtml) - IntermediateToken - (404:14,29 [10] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (414:15,8 [4] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (419:15,13 [14] TagHelpersInSection.cshtml) - Html - \n - TagHelper - (433:16,12 [35] TagHelpersInSection.cshtml) - nestedtaghelper - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.NestedTagHelper - DefaultTagHelperExecute - - HtmlContent - (468:16,47 [22] TagHelpersInSection.cshtml) - IntermediateToken - (468:16,47 [10] TagHelpersInSection.cshtml) - Html - \n - IntermediateToken - (478:17,8 [6] TagHelpersInSection.cshtml) - Html -
                    - IntermediateToken - (484:17,14 [6] TagHelpersInSection.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml deleted file mode 100644 index 83023559d3c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@addTagHelper *, TestAssembly -
                    - -
                    \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs deleted file mode 100644 index bb24a4e6cbe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithBoundAttributes_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __InputTagHelper = CreateTagHelper(); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml" - __o = Hello; - -#line default -#line hidden -#nullable disable - __InputTagHelper.BoundProp = string.Empty; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt deleted file mode 100644 index 1b4902d35dd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt +++ /dev/null @@ -1,32 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithBoundAttributes_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] TagHelpersWithBoundAttributes.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [14] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (29:0,29 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - IntermediateToken - (31:1,0 [5] TagHelpersWithBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n - TagHelper - (43:2,4 [34] TagHelpersWithBoundAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (56:2,17 [6] TagHelpersWithBoundAttributes.cshtml) - bound - string InputTagHelper.BoundProp - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (69:2,30 [4] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (69:2,30 [4] TagHelpersWithBoundAttributes.cshtml) - Html - text - DefaultTagHelperExecute - - HtmlContent - (77:2,38 [9] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - IntermediateToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html -
                    diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt deleted file mode 100644 index b9e407e7044..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt +++ /dev/null @@ -1,10 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml) -|*, TestAssembly| -Generated Location: (1026:18,38 [15] ) -|*, TestAssembly| - -Source Location: (57:2,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml) -|Hello| -Generated Location: (1626:36,18 [5] ) -|Hello| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs deleted file mode 100644 index 7965f8cdbd0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,66 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "111aa585040c2e45a0dac3f5bdb65ee0252748d2" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithBoundAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"111aa585040c2e45a0dac3f5bdb65ee0252748d2", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithBoundAttributes_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("text"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("
                    \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__InputTagHelper); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml" - WriteLiteral(Hello); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __InputTagHelper.BoundProp = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("bound", __InputTagHelper.BoundProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt deleted file mode 100644 index cc8c24201aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithBoundAttributes_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - type - text - HtmlAttributeValueStyle.SingleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:1,0 [12] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (31:1,0 [5] TagHelpersWithBoundAttributes.cshtml) - Html -
                    - IntermediateToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n - TagHelper - (43:2,4 [34] TagHelpersWithBoundAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (56:2,17 [6] TagHelpersWithBoundAttributes.cshtml) - bound - string InputTagHelper.BoundProp - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperExecute - - HtmlContent - (77:2,38 [9] TagHelpersWithBoundAttributes.cshtml) - IntermediateToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - IntermediateToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html -
                    diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml deleted file mode 100644 index 2a341893ee0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@addTagHelper *, TestAssembly - - -
                    -

                    diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs deleted file mode 100644 index e4c7c9faf22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithDataDashAttributes_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::InputTagHelper __InputTagHelper; - private global::DivTagHelper __DivTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __InputTagHelper = CreateTagHelper(); - __InputTagHelper.BoundProp = "hello"; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __DivTagHelper = CreateTagHelper(); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" - __o = foo; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" - __o = bar; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); -#nullable restore -#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" - __o = foo; - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.ir.txt deleted file mode 100644 index 2fadae0eec5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.ir.txt +++ /dev/null @@ -1,67 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithDataDashAttributes_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] TagHelpersWithDataDashAttributes.cshtml) - *, TestAssembly - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [4] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (29:0,29 [4] TagHelpersWithDataDashAttributes.cshtml) - Html - \n\n - TagHelper - (33:2,0 [61] TagHelpersWithDataDashAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (47:2,14 [5] TagHelpersWithDataDashAttributes.cshtml) - bound - string InputTagHelper.BoundProp - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (47:2,14 [5] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (47:2,14 [5] TagHelpersWithDataDashAttributes.cshtml) - Html - hello - DefaultTagHelperHtmlAttribute - - data-one - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (64:2,31 [1] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (64:2,31 [1] TagHelpersWithDataDashAttributes.cshtml) - Html - 1 - DefaultTagHelperHtmlAttribute - - data-two - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (76:2,43 [1] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (76:2,43 [1] TagHelpersWithDataDashAttributes.cshtml) - Html - 2 - DefaultTagHelperHtmlAttribute - - data-three - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (90:2,57 [0] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (90:2,57 [0] TagHelpersWithDataDashAttributes.cshtml) - Html - - DefaultTagHelperExecute - - HtmlContent - (94:2,61 [2] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (94:2,61 [2] TagHelpersWithDataDashAttributes.cshtml) - Html - \n - TagHelper - (96:3,0 [66] TagHelpersWithDataDashAttributes.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperHtmlAttribute - - data-one - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (111:3,15 [3] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (111:3,15 [3] TagHelpersWithDataDashAttributes.cshtml) - CSharp - foo - DefaultTagHelperHtmlAttribute - - data-two - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (126:3,30 [3] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (126:3,30 [3] TagHelpersWithDataDashAttributes.cshtml) - CSharp - bar - DefaultTagHelperHtmlAttribute - - data-three - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (142:3,46 [0] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (142:3,46 [0] TagHelpersWithDataDashAttributes.cshtml) - Html - - DefaultTagHelperHtmlAttribute - - data-four - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (154:3,58 [0] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (154:3,58 [0] TagHelpersWithDataDashAttributes.cshtml) - Html - - DefaultTagHelperExecute - - HtmlContent - (162:3,66 [4] TagHelpersWithDataDashAttributes.cshtml) - IntermediateToken - (162:3,66 [2] TagHelpersWithDataDashAttributes.cshtml) - Html - \n - IntermediateToken - (164:4,0 [2] TagHelpersWithDataDashAttributes.cshtml) - Html -

                    - IntermediateToken - (229:4,65 [2] TagHelpersWithDataDashAttributes.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt deleted file mode 100644 index d4c4b87de2f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml) -|*, TestAssembly| -Generated Location: (1086:19,38 [15] ) -|*, TestAssembly| - -Source Location: (111:3,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml) -|foo| -Generated Location: (1884:40,15 [3] ) -|foo| - -Source Location: (126:3,30 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml) -|bar| -Generated Location: (2097:47,30 [3] ) -|bar| - -Source Location: (225:4,61 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml) -|foo| -Generated Location: (2417:55,61 [3] ) -|foo| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs deleted file mode 100644 index 363ecea82c4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,110 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "cf45e3f3bb37acbe0abf214d8091170eaa98ce5f" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithDataDashAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"cf45e3f3bb37acbe0abf214d8091170eaa98ce5f", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithDataDashAttributes_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("bound", "hello", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-one", new global::Microsoft.AspNetCore.Html.HtmlString("1"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-two", new global::Microsoft.AspNetCore.Html.HtmlString("2"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-three", new global::Microsoft.AspNetCore.Html.HtmlString(""), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-four", new global::Microsoft.AspNetCore.Html.HtmlString(""), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::InputTagHelper __InputTagHelper; - private global::DivTagHelper __DivTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__InputTagHelper); - __InputTagHelper.BoundProp = (string)__tagHelperAttribute_0.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" - Write(foo); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("data-one", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml" - Write(bar); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("data-two", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n

                    - IntermediateToken - (229:4,65 [2] TagHelpersWithDataDashAttributes.cshtml) - Html - \n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml deleted file mode 100644 index e365dd4d60d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@addTagHelper *, TestAssembly -@tagHelperPrefix cool: -

                    - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs deleted file mode 100644 index 62cb6098caa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - ((System.Action)(() => { -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml" -global::System.Object __typeHelper = "cool:"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __InputTagHelper = CreateTagHelper(); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml" - __o = Hello; - -#line default -#line hidden -#nullable disable - __InputTagHelper.BoundProp = string.Empty; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt deleted file mode 100644 index 52f53933c09..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt +++ /dev/null @@ -1,35 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [15] TagHelpersWithPrefix.cshtml) - *, TestAssembly - DirectiveToken - (48:1,17 [5] TagHelpersWithPrefix.cshtml) - cool: - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (29:0,29 [2] TagHelpersWithPrefix.cshtml) - IntermediateToken - (29:0,29 [2] TagHelpersWithPrefix.cshtml) - Html - \n - HtmlContent - (53:1,22 [14] TagHelpersWithPrefix.cshtml) - IntermediateToken - (53:1,22 [2] TagHelpersWithPrefix.cshtml) - Html - \n - IntermediateToken - (55:2,0 [5] TagHelpersWithPrefix.cshtml) - Html -
                    - IntermediateToken - (61:2,6 [6] TagHelpersWithPrefix.cshtml) - Html - \n - TagHelper - (67:3,4 [39] TagHelpersWithPrefix.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (85:3,22 [6] TagHelpersWithPrefix.cshtml) - bound - string InputTagHelper.BoundProp - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - IntermediateToken - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - CSharp - Hello - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (98:3,35 [4] TagHelpersWithPrefix.cshtml) - IntermediateToken - (98:3,35 [4] TagHelpersWithPrefix.cshtml) - Html - text - DefaultTagHelperExecute - - HtmlContent - (106:3,43 [9] TagHelpersWithPrefix.cshtml) - IntermediateToken - (106:3,43 [2] TagHelpersWithPrefix.cshtml) - Html - \n - IntermediateToken - (108:4,0 [7] TagHelpersWithPrefix.cshtml) - Html -
                    diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt deleted file mode 100644 index cebc5962cdb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt +++ /dev/null @@ -1,15 +0,0 @@ -Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml) -|*, TestAssembly| -Generated Location: (1008:18,38 [15] ) -|*, TestAssembly| - -Source Location: (48:1,17 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml) -|cool:| -Generated Location: (1290:28,38 [5] ) -|cool:| - -Source Location: (86:3,23 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml) -|Hello| -Generated Location: (1876:46,23 [5] ) -|Hello| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs deleted file mode 100644 index a91161ce3ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs +++ /dev/null @@ -1,66 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5c97c003c8158f389b506a6dbc47e468892ec57d" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"5c97c003c8158f389b506a6dbc47e468892ec57d", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("text"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("
                    \r\n "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__InputTagHelper); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml" - WriteLiteral(Hello); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __InputTagHelper.BoundProp = __tagHelperStringValueBuffer; - __tagHelperExecutionContext.AddTagHelperAttribute("bound", __InputTagHelper.BoundProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n"); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt deleted file mode 100644 index 3a88f319f41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - type - text - HtmlAttributeValueStyle.SingleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (55:2,0 [12] TagHelpersWithPrefix.cshtml) - IntermediateToken - (55:2,0 [5] TagHelpersWithPrefix.cshtml) - Html -
                    - IntermediateToken - (61:2,6 [6] TagHelpersWithPrefix.cshtml) - Html - \n - TagHelper - (67:3,4 [39] TagHelpersWithPrefix.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperProperty - (85:3,22 [6] TagHelpersWithPrefix.cshtml) - bound - string InputTagHelper.BoundProp - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - IntermediateToken - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - CSharp - Hello - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperExecute - - HtmlContent - (106:3,43 [9] TagHelpersWithPrefix.cshtml) - IntermediateToken - (106:3,43 [2] TagHelpersWithPrefix.cshtml) - Html - \n - IntermediateToken - (108:4,0 [7] TagHelpersWithPrefix.cshtml) - Html -
                    diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml deleted file mode 100644 index 071122c261d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml +++ /dev/null @@ -1,19 +0,0 @@ -@addTagHelper "*, TestAssembly" - -@functions { - public void RenderTemplate(string title, Func template) - { - Output.WriteLine("

                    Rendering Template:

                    "); - var helperResult = template(title); - helperResult.WriteTo(Output, HtmlEncoder); - } -} - -
                    - @{ - RenderTemplate( - "Template: ", - @

                    @item

                    ); - } -
                    - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs deleted file mode 100644 index 8d7c885bce1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithTemplate_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::DivTagHelper __DivTagHelper; - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - - RenderTemplate( - "Template: ", - - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable - __InputTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __DivTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - ) -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - ); - - -#line default -#line hidden -#nullable disable - __DivTagHelper = CreateTagHelper(); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - - public void RenderTemplate(string title, Func template) - { - Output.WriteLine("

                    Rendering Template:

                    "); - var helperResult = template(title); - helperResult.WriteTo(Output, HtmlEncoder); - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt deleted file mode 100644 index 229134183a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt +++ /dev/null @@ -1,58 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithTemplate_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] TagHelpersWithTemplate.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (31:0,31 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n - HtmlContent - (316:9,1 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (316:9,1 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n - TagHelper - (320:11,0 [179] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (325:11,5 [6] TagHelpersWithTemplate.cshtml) - IntermediateToken - (325:11,5 [6] TagHelpersWithTemplate.cshtml) - Html - \n - CSharpCode - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - IntermediateToken - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - CSharp - \n RenderTemplate(\n "Template: ",\n - Template - (400:15,13 [82] TagHelpersWithTemplate.cshtml) - TagHelper - (400:15,13 [82] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (422:15,35 [3] TagHelpersWithTemplate.cshtml) - Html -

                    - CSharpExpression - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - CSharp - item - HtmlContent - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - IntermediateToken - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - Html -

                    - TagHelper - (436:15,49 [40] TagHelpersWithTemplate.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - DefaultTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (449:15,62 [8] TagHelpersWithTemplate.cshtml) - IntermediateToken - (449:15,62 [8] TagHelpersWithTemplate.cshtml) - Html - checkbox - DefaultTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (468:15,81 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (468:15,81 [4] TagHelpersWithTemplate.cshtml) - Html - true - DefaultTagHelperExecute - - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperHtmlAttribute - - condition - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (416:15,29 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (416:15,29 [4] TagHelpersWithTemplate.cshtml) - Html - true - DefaultTagHelperExecute - - CSharpCode - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - IntermediateToken - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - CSharp - );\n - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - HtmlContent - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n - CSharpCode - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - IntermediateToken - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - CSharp - \n public void RenderTemplate(string title, Func template)\n {\n Output.WriteLine("

                    Rendering Template:

                    ");\n var helperResult = template(title);\n helperResult.WriteTo(Output, HtmlEncoder);\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt deleted file mode 100644 index e66ab1a080d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt +++ /dev/null @@ -1,47 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml) -|"*, TestAssembly"| -Generated Location: (1065:19,37 [17] ) -|"*, TestAssembly"| - -Source Location: (333:12,6 [66] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml) -| - RenderTemplate( - "Template: ", - | -Generated Location: (1573:36,6 [66] ) -| - RenderTemplate( - "Template: ", - | - -Source Location: (427:15,40 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml) -|item| -Generated Location: (1919:47,40 [4] ) -|item| - -Source Location: (482:15,95 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml) -|); - | -Generated Location: (2533:60,95 [8] ) -|); - | - -Source Location: (47:2,12 [268] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml) -| - public void RenderTemplate(string title, Func template) - { - Output.WriteLine("

                    Rendering Template:

                    "); - var helperResult = template(title); - helperResult.WriteTo(Output, HtmlEncoder); - } -| -Generated Location: (2918:72,12 [268] ) -| - public void RenderTemplate(string title, Func template) - { - Output.WriteLine("

                    Rendering Template:

                    "); - var helperResult = template(title); - helperResult.WriteTo(Output, HtmlEncoder); - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs deleted file mode 100644 index 5d918c6a7f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs +++ /dev/null @@ -1,131 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d02421b6972074e82cabcfd56c7ab2739d5f3d49" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithTemplate_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d02421b6972074e82cabcfd56c7ab2739d5f3d49", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithTemplate_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("checkbox"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("checked", new global::Microsoft.AspNetCore.Html.HtmlString("true"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("condition", new global::Microsoft.AspNetCore.Html.HtmlString("true"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::DivTagHelper __DivTagHelper; - private global::InputTagHelper __InputTagHelper; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("\r\n"); -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - - RenderTemplate( - "Template: ", - - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("

                    "); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - Write(item); - -#line default -#line hidden -#nullable disable - WriteLiteral("

                    "); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__InputTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - PopWriter(); - } - ) -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - ); - - -#line default -#line hidden -#nullable disable - } - ); - __DivTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__DivTagHelper); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml" - - public void RenderTemplate(string title, Func template) - { - Output.WriteLine("

                    Rendering Template:

                    "); - var helperResult = template(title); - helperResult.WriteTo(Output, HtmlEncoder); - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt deleted file mode 100644 index 2c551023fef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt +++ /dev/null @@ -1,51 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithTemplate_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_1 - checked - true - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - condition - true - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::DivTagHelper - __DivTagHelper - FieldDeclaration - - private - global::InputTagHelper - __InputTagHelper - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] TagHelpersWithTemplate.cshtml) - IntermediateToken - (33:1,0 [2] TagHelpersWithTemplate.cshtml) - Html - \n - HtmlContent - (318:10,0 [2] TagHelpersWithTemplate.cshtml) - IntermediateToken - (318:10,0 [2] TagHelpersWithTemplate.cshtml) - Html - \n - TagHelper - (320:11,0 [179] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (325:11,5 [2] TagHelpersWithTemplate.cshtml) - IntermediateToken - (325:11,5 [2] TagHelpersWithTemplate.cshtml) - Html - \n - CSharpCode - (327:12,0 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (327:12,0 [4] TagHelpersWithTemplate.cshtml) - CSharp - - CSharpCode - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - IntermediateToken - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - CSharp - \n RenderTemplate(\n "Template: ",\n - Template - (400:15,13 [82] TagHelpersWithTemplate.cshtml) - TagHelper - (400:15,13 [82] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (422:15,35 [3] TagHelpersWithTemplate.cshtml) - Html -

                    - CSharpExpression - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - CSharp - item - HtmlContent - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - IntermediateToken - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - Html -

                    - TagHelper - (436:15,49 [40] TagHelpersWithTemplate.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - InputTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - DefaultTagHelperExecute - - DefaultTagHelperCreate - - DivTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - CSharpCode - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - IntermediateToken - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - CSharp - );\n - DefaultTagHelperCreate - - DivTagHelper - DefaultTagHelperExecute - - HtmlContent - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - IntermediateToken - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n - CSharpCode - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - IntermediateToken - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - CSharp - \n public void RenderTemplate(string title, Func template)\n {\n Output.WriteLine("

                    Rendering Template:

                    ");\n var helperResult = template(title);\n helperResult.WriteTo(Output, HtmlEncoder);\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml deleted file mode 100644 index 1796ed5c046..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@addTagHelper "*, TestAssembly" - -

                    Body of Tag

                    - - - -

                    - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs deleted file mode 100644 index 2940a1e2bef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithWeirdlySpacedAttributes_DesignTime - { - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - ((System.Action)(() => { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" -global::System.Object __typeHelper = "*, TestAssembly"; - -#line default -#line hidden -#nullable disable - } - ))(); - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" -__TestNamespace_PTagHelper.Age = 1337; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" - __o = true; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "text"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_PTagHelper = CreateTagHelper(); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" -__TestNamespace_PTagHelper.Age = 1234; - -#line default -#line hidden -#nullable disable - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __TestNamespace_InputTagHelper.Type = "password"; - __TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type; - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt deleted file mode 100644 index 8f89ff3a4f1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt +++ /dev/null @@ -1,75 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithWeirdlySpacedAttributes_DesignTime - - - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - DesignTimeDirective - - DirectiveToken - (14:0,14 [17] TagHelpersWithWeirdlySpacedAttributes.cshtml) - "*, TestAssembly" - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (31:0,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (31:0,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (35:2,0 [85] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Body of Tag - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (54:5,1 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (54:5,1 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Hello World - DefaultTagHelperProperty - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1337 - DefaultTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (124:8,0 [47] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - text - DefaultTagHelperProperty - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - text - DefaultTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (162:8,38 [5] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (162:8,38 [5] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - hello - DefaultTagHelperExecute - - HtmlContent - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (175:10,0 [46] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1234 - DefaultTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.SingleQuotes - HtmlContent - (209:11,3 [6] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (209:11,3 [6] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - hello2 - DefaultTagHelperExecute - - HtmlContent - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (225:13,0 [51] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - DefaultTagHelperProperty - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - string TestNamespace.InputTagHelper.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - password - DefaultTagHelperProperty - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - string TestNamespace.InputTagHelper2.Type - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - password - DefaultTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes - HtmlContent - (270:14,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (270:14,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - blah - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt deleted file mode 100644 index f37aba9dd4a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt +++ /dev/null @@ -1,20 +0,0 @@ -Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml) -|"*, TestAssembly"| -Generated Location: (1235:20,37 [17] ) -|"*, TestAssembly"| - -Source Location: (74:5,21 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml) -|1337| -Generated Location: (1879:38,33 [4] ) -|1337| - -Source Location: (99:6,19 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml) -|true| -Generated Location: (2087:45,19 [4] ) -|true| - -Source Location: (186:10,11 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml) -|1234| -Generated Location: (2913:59,33 [4] ) -|1234| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs deleted file mode 100644 index 2a566574c48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs +++ /dev/null @@ -1,142 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a58200cdb2a70e95e4cebb5c830216be0ae4b62c" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithWeirdlySpacedAttributes_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a58200cdb2a70e95e4cebb5c830216be0ae4b62c", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithWeirdlySpacedAttributes_Runtime - { - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-content", new global::Microsoft.AspNetCore.Html.HtmlString("hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-content", new global::Microsoft.AspNetCore.Html.HtmlString("hello2"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "password", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("data-content", new global::Microsoft.AspNetCore.Html.HtmlString("blah"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - #line hidden - #pragma warning disable 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext; - #pragma warning restore 0649 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner(); - #pragma warning disable 0169 - private string __tagHelperStringValueBuffer; - #pragma warning restore 0169 - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null; - private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager - { - get - { - if (__backed__tagHelperScopeManager == null) - { - __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope); - } - return __backed__tagHelperScopeManager; - } - } - private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper; - private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper; - private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2; - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - WriteLiteral("Body of Tag"); - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); -#nullable restore -#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" -__TestNamespace_PTagHelper.Age = 1337; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - BeginWriteTagHelperAttribute(); -#nullable restore -#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" - Write(true); - -#line default -#line hidden -#nullable disable - __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); - __tagHelperExecutionContext.AddHtmlAttribute("data-content", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => { - } - ); - __TestNamespace_PTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_PTagHelper); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml" -__TestNamespace_PTagHelper.Age = 1234; - -#line default -#line hidden -#nullable disable - __tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - WriteLiteral("\r\n\r\n"); - __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => { - } - ); - __TestNamespace_InputTagHelper = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper); - __TestNamespace_InputTagHelper2 = CreateTagHelper(); - __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); - __TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - __TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_4.Value; - __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); - __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); - await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); - if (!__tagHelperExecutionContext.Output.IsContentModified) - { - await __tagHelperExecutionContext.SetOutputContentAsync(); - } - Write(__tagHelperExecutionContext.Output); - __tagHelperExecutionContext = __tagHelperScopeManager.End(); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt deleted file mode 100644 index b89b1ddb275..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt +++ /dev/null @@ -1,59 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithWeirdlySpacedAttributes_Runtime - - - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_0 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_1 - type - text - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_2 - data-content - hello - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_3 - data-content - hello2 - HtmlAttributeValueStyle.SingleQuotes - PreallocatedTagHelperPropertyValue - - __tagHelperAttribute_4 - type - password - HtmlAttributeValueStyle.DoubleQuotes - PreallocatedTagHelperHtmlAttributeValue - - __tagHelperAttribute_5 - data-content - blah - HtmlAttributeValueStyle.DoubleQuotes - DefaultTagHelperRuntime - - FieldDeclaration - - private - global::TestNamespace.PTagHelper - __TestNamespace_PTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper - __TestNamespace_InputTagHelper - FieldDeclaration - - private - global::TestNamespace.InputTagHelper2 - __TestNamespace_InputTagHelper2 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (33:1,0 [2] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (33:1,0 [2] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n - TagHelper - (35:2,0 [85] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - HtmlContent - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Body of Tag - DefaultTagHelperCreate - - TestNamespace.PTagHelper - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 - DefaultTagHelperProperty - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1337 - DefaultTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes - CSharpExpression - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - true - DefaultTagHelperExecute - - HtmlContent - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (124:8,0 [47] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - __tagHelperAttribute_1 - type - Type - PreallocatedTagHelperProperty - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - __tagHelperAttribute_1 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - DefaultTagHelperExecute - - HtmlContent - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (175:10,0 [46] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.PTagHelper - DefaultTagHelperProperty - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - int TestNamespace.PTagHelper.Age - HtmlAttributeValueStyle.DoubleQuotes - IntermediateToken - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1234 - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - DefaultTagHelperExecute - - HtmlContent - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - IntermediateToken - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n - TagHelper - (225:13,0 [51] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing - DefaultTagHelperBody - - DefaultTagHelperCreate - - TestNamespace.InputTagHelper - DefaultTagHelperCreate - - TestNamespace.InputTagHelper2 - PreallocatedTagHelperProperty - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - __tagHelperAttribute_4 - type - Type - PreallocatedTagHelperProperty - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - __tagHelperAttribute_4 - type - Type - PreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - DefaultTagHelperExecute - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml deleted file mode 100644 index 05c96f57a25..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml +++ /dev/null @@ -1,9 +0,0 @@ -@{ - -} - - - - -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml" - - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml" - - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html deleted file mode 100644 index 419c13c11c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - -") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt deleted file mode 100644 index b3a19f88d02..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt +++ /dev/null @@ -1,43 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [6] Tags.cshtml) - IntermediateToken - (2:0,2 [6] Tags.cshtml) - CSharp - \n - HtmlContent - (8:1,4 [31] Tags.cshtml) - IntermediateToken - (8:1,4 [7] Tags.cshtml) - Html - - CSharpCode - (59:1,55 [2] Tags.cshtml) - IntermediateToken - (59:1,55 [2] Tags.cshtml) - CSharp - \n - HtmlContent - (64:3,0 [38] Tags.cshtml) - IntermediateToken - (64:3,0 [2] Tags.cshtml) - Html - \n - IntermediateToken - (66:4,0 [7] Tags.cshtml) - Html - - IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n - IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html - -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"75edd5542ddb6f78ab6a4d309bb3525a99ecfa55", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral(" \r\n"); - WriteLiteral("\r\n\r\n\r\n") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt deleted file mode 100644 index f50d573adaa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt +++ /dev/null @@ -1,40 +0,0 @@ -Document - - RazorCompiledItemAttribute - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - RazorSourceChecksumAttribute - - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime - - - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - CSharpCode - (2:0,2 [2] Tags.cshtml) - IntermediateToken - (2:0,2 [2] Tags.cshtml) - CSharp - \n - HtmlContent - (4:1,0 [35] Tags.cshtml) - IntermediateToken - (4:1,0 [4] Tags.cshtml) - Html - - IntermediateToken - (8:1,4 [7] Tags.cshtml) - Html - - IntermediateToken - (59:1,55 [2] Tags.cshtml) - Html - \n - CSharpCode - (61:2,0 [0] Tags.cshtml) - IntermediateToken - (61:2,0 [0] Tags.cshtml) - CSharp - - HtmlContent - (64:3,0 [38] Tags.cshtml) - IntermediateToken - (64:3,0 [2] Tags.cshtml) - Html - \n - IntermediateToken - (66:4,0 [7] Tags.cshtml) - Html - - IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n - IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html - template) { - return new HelperResult((writer) => { - for(int i = 0; i < times; i++) { - ((HelperResult)template(i)).WriteTo(writer); - } - }); - } -} - -@{ - Func foo = @This works @item!; - @foo("") -} - -@{ - Func bar = @

                    Hello

                    ; - @bar("myclass") -} - -
                      -@(Repeat(10, @
                    • Item #@item
                    • )) -
                    - -

                    -@Repeat(10, - @: This is line#@item of markup
                    -) -

                    - -

                    -@Repeat(10, - @:: This is line#@item of markup
                    -) -

                    - -

                    -@Repeat(10, - @::: This is line#@item of markup
                    -) -

                    - - -
                      - @Repeat(10, @
                    • - Item #@item - @{var parent = item;} -
                        -
                      • Child Items... ?
                      • - @*Repeat(10, @
                      • Item #@(parent).@item
                      • )*@ -
                      -
                    • ) -
                    \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs deleted file mode 100644 index e9338fa173a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_DesignTime - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - Func foo = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable - } - ) -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - ; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = foo(""); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - Func bar = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable - } - ) -#nullable restore -#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - ; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = bar("myclass"); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = Repeat(10, item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -} -)); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = Repeat(10, - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -} -)); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = Repeat(10, - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -} -)); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = Repeat(10, - item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 39 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -} -)); - -#line default -#line hidden -#nullable disable -#nullable restore -#line 45 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -__o = Repeat(10, item => new Template(async(__razor_template_writer) => { -#nullable restore -#line 46 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - __o = item; - -#line default -#line hidden -#nullable disable -#nullable restore -#line 47 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - var parent = item; - -#line default -#line hidden -#nullable disable -} -)); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - public HelperResult Repeat(int times, Func template) { - return new HelperResult((writer) => { - for(int i = 0; i < times; i++) { - ((HelperResult)template(i)).WriteTo(writer); - } - }); - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.html b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.html deleted file mode 100644 index de0b7355257..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - This works ! - - - - -

                    Hello

                    - - - -
                      -
                    • Item #
                    • -
                    - -

                    - - This is line# of markup
                    - -

                    - -

                    - - : This is line# of markup
                    - -

                    - -

                    - - :: This is line# of markup
                    - -

                    - - -
                      -
                    • - Item # - -
                        -
                      • Child Items... ?
                      • - -
                      -
                    • -
                    \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt deleted file mode 100644 index f43be6acf77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt +++ /dev/null @@ -1,158 +0,0 @@ -Document - - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_DesignTime - - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync - HtmlContent - (278:8,1 [4] Templates.cshtml) - IntermediateToken - (278:8,1 [4] Templates.cshtml) - Html - \n\n - CSharpCode - (284:10,2 [34] Templates.cshtml) - IntermediateToken - (284:10,2 [34] Templates.cshtml) - CSharp - \n Func foo = - Template - (325:11,39 [16] Templates.cshtml) - HtmlContent - (325:11,39 [11] Templates.cshtml) - IntermediateToken - (325:11,39 [11] Templates.cshtml) - Html - This works - CSharpExpression - (337:11,51 [4] Templates.cshtml) - IntermediateToken - (337:11,51 [4] Templates.cshtml) - CSharp - item - HtmlContent - (341:11,55 [1] Templates.cshtml) - IntermediateToken - (341:11,55 [1] Templates.cshtml) - Html - ! - CSharpCode - (349:11,63 [7] Templates.cshtml) - IntermediateToken - (349:11,63 [7] Templates.cshtml) - CSharp - ;\n - CSharpExpression - (357:12,5 [7] Templates.cshtml) - IntermediateToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("") - CSharpCode - (364:12,12 [2] Templates.cshtml) - IntermediateToken - (364:12,12 [2] Templates.cshtml) - CSharp - \n - HtmlContent - (369:14,0 [2] Templates.cshtml) - IntermediateToken - (369:14,0 [2] Templates.cshtml) - Html - \n - CSharpCode - (373:15,2 [35] Templates.cshtml) - IntermediateToken - (373:15,2 [35] Templates.cshtml) - CSharp - \n Func bar = - Template - (409:16,33 [26] Templates.cshtml) - HtmlContent - (409:16,33 [2] Templates.cshtml) - IntermediateToken - (409:16,33 [2] Templates.cshtml) - Html -

                    - IntermediateToken - (426:16,50 [5] Templates.cshtml) - Html - Hello - IntermediateToken - (431:16,55 [4] Templates.cshtml) - Html -

                    - CSharpCode - (435:16,59 [7] Templates.cshtml) - IntermediateToken - (435:16,59 [7] Templates.cshtml) - CSharp - ;\n - CSharpExpression - (443:17,5 [14] Templates.cshtml) - IntermediateToken - (443:17,5 [14] Templates.cshtml) - CSharp - bar("myclass") - CSharpCode - (457:17,19 [2] Templates.cshtml) - IntermediateToken - (457:17,19 [2] Templates.cshtml) - CSharp - \n - HtmlContent - (462:19,0 [8] Templates.cshtml) - IntermediateToken - (462:19,0 [2] Templates.cshtml) - Html - \n - IntermediateToken - (464:20,0 [3] Templates.cshtml) - Html -
                      - IntermediateToken - (468:20,4 [2] Templates.cshtml) - Html - \n - CSharpExpression - (472:21,2 [31] Templates.cshtml) - IntermediateToken - (472:21,2 [11] Templates.cshtml) - CSharp - Repeat(10, - Template - (484:21,14 [19] Templates.cshtml) - HtmlContent - (484:21,14 [10] Templates.cshtml) - IntermediateToken - (484:21,14 [3] Templates.cshtml) - Html -
                    • - IntermediateToken - (488:21,18 [6] Templates.cshtml) - Html - Item # - CSharpExpression - (495:21,25 [4] Templates.cshtml) - IntermediateToken - (495:21,25 [4] Templates.cshtml) - CSharp - item - HtmlContent - (499:21,29 [5] Templates.cshtml) - IntermediateToken - (499:21,29 [5] Templates.cshtml) - Html -
                    • - IntermediateToken - (504:21,34 [1] Templates.cshtml) - CSharp - ) - HtmlContent - (506:21,36 [16] Templates.cshtml) - IntermediateToken - (506:21,36 [2] Templates.cshtml) - Html - \n - IntermediateToken - (508:22,0 [5] Templates.cshtml) - Html -
                    - IntermediateToken - (513:22,5 [4] Templates.cshtml) - Html - \n\n - IntermediateToken - (517:24,0 [2] Templates.cshtml) - Html -

                    - IntermediateToken - (520:24,3 [2] Templates.cshtml) - Html - \n - CSharpExpression - (523:25,1 [52] Templates.cshtml) - IntermediateToken - (523:25,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n - Template - (541:26,6 [35] Templates.cshtml) - HtmlContent - (541:26,6 [14] Templates.cshtml) - IntermediateToken - (541:26,6 [14] Templates.cshtml) - Html - This is line# - CSharpExpression - (556:26,21 [4] Templates.cshtml) - IntermediateToken - (556:26,21 [4] Templates.cshtml) - CSharp - item - HtmlContent - (560:26,25 [17] Templates.cshtml) - IntermediateToken - (560:26,25 [17] Templates.cshtml) - Html - of markup
                    \n - IntermediateToken - (577:27,0 [1] Templates.cshtml) - CSharp - ) - HtmlContent - (578:27,1 [15] Templates.cshtml) - IntermediateToken - (578:27,1 [2] Templates.cshtml) - Html - \n - IntermediateToken - (580:28,0 [4] Templates.cshtml) - Html -

                    - IntermediateToken - (584:28,4 [4] Templates.cshtml) - Html - \n\n - IntermediateToken - (588:30,0 [2] Templates.cshtml) - Html -

                    - IntermediateToken - (591:30,3 [2] Templates.cshtml) - Html - \n - CSharpExpression - (594:31,1 [54] Templates.cshtml) - IntermediateToken - (594:31,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n - Template - (612:32,6 [37] Templates.cshtml) - HtmlContent - (612:32,6 [15] Templates.cshtml) - IntermediateToken - (612:32,6 [15] Templates.cshtml) - Html - : This is line# - CSharpExpression - (628:32,22 [4] Templates.cshtml) - IntermediateToken - (628:32,22 [4] Templates.cshtml) - CSharp - item - HtmlContent - (632:32,26 [18] Templates.cshtml) - IntermediateToken - (632:32,26 [18] Templates.cshtml) - Html - of markup
                    \n - IntermediateToken - (650:33,0 [1] Templates.cshtml) - CSharp - ) - HtmlContent - (651:33,1 [15] Templates.cshtml) - IntermediateToken - (651:33,1 [2] Templates.cshtml) - Html - \n - IntermediateToken - (653:34,0 [4] Templates.cshtml) - Html -

                    - IntermediateToken - (657:34,4 [4] Templates.cshtml) - Html - \n\n - IntermediateToken - (661:36,0 [2] Templates.cshtml) - Html -

                    - IntermediateToken - (664:36,3 [2] Templates.cshtml) - Html - \n - CSharpExpression - (667:37,1 [55] Templates.cshtml) - IntermediateToken - (667:37,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n - Template - (685:38,6 [38] Templates.cshtml) - HtmlContent - (685:38,6 [16] Templates.cshtml) - IntermediateToken - (685:38,6 [16] Templates.cshtml) - Html - :: This is line# - CSharpExpression - (702:38,23 [4] Templates.cshtml) - IntermediateToken - (702:38,23 [4] Templates.cshtml) - CSharp - item - HtmlContent - (706:38,27 [18] Templates.cshtml) - IntermediateToken - (706:38,27 [18] Templates.cshtml) - Html - of markup
                    \n - IntermediateToken - (724:39,0 [1] Templates.cshtml) - CSharp - ) - HtmlContent - (725:39,1 [22] Templates.cshtml) - IntermediateToken - (725:39,1 [2] Templates.cshtml) - Html - \n - IntermediateToken - (727:40,0 [4] Templates.cshtml) - Html -

                    - IntermediateToken - (731:40,4 [6] Templates.cshtml) - Html - \n\n\n - IntermediateToken - (737:43,0 [3] Templates.cshtml) - Html -
                      - IntermediateToken - (741:43,4 [6] Templates.cshtml) - Html - \n - CSharpExpression - (748:44,5 [141] Templates.cshtml) - IntermediateToken - (748:44,5 [11] Templates.cshtml) - CSharp - Repeat(10, - Template - (760:44,17 [129] Templates.cshtml) - HtmlContent - (760:44,17 [20] Templates.cshtml) - IntermediateToken - (760:44,17 [3] Templates.cshtml) - Html -
                    • - IntermediateToken - (764:44,21 [16] Templates.cshtml) - Html - \n Item # - CSharpExpression - (781:45,15 [4] Templates.cshtml) - IntermediateToken - (781:45,15 [4] Templates.cshtml) - CSharp - item - HtmlContent - (785:45,19 [10] Templates.cshtml) - IntermediateToken - (785:45,19 [10] Templates.cshtml) - Html - \n - CSharpCode - (797:46,10 [18] Templates.cshtml) - IntermediateToken - (797:46,10 [18] Templates.cshtml) - CSharp - var parent = item; - HtmlContent - (818:47,0 [53] Templates.cshtml) - IntermediateToken - (818:47,0 [8] Templates.cshtml) - Html - - IntermediateToken - (826:47,8 [3] Templates.cshtml) - Html -
                        - IntermediateToken - (830:47,12 [14] Templates.cshtml) - Html - \n - IntermediateToken - (844:48,12 [3] Templates.cshtml) - Html -
                      • - IntermediateToken - (848:48,16 [16] Templates.cshtml) - Html - Child Items... ? - IntermediateToken - (864:48,32 [5] Templates.cshtml) - Html -
                      • - IntermediateToken - (869:48,37 [2] Templates.cshtml) - Html - \n - HtmlContent - (932:50,0 [24] Templates.cshtml) - IntermediateToken - (932:50,0 [8] Templates.cshtml) - Html - - IntermediateToken - (940:50,8 [5] Templates.cshtml) - Html -
                      - IntermediateToken - (945:50,13 [6] Templates.cshtml) - Html - \n - IntermediateToken - (951:51,4 [5] Templates.cshtml) - Html -
                    • - IntermediateToken - (956:51,9 [1] Templates.cshtml) - CSharp - ) - HtmlContent - (957:51,10 [8] Templates.cshtml) - IntermediateToken - (957:51,10 [2] Templates.cshtml) - Html - \n - IntermediateToken - (959:52,0 [5] Templates.cshtml) - Html -
                    - IntermediateToken - (964:52,5 [1] Templates.cshtml) - Html - - CSharpCode - (12:0,12 [265] Templates.cshtml) - IntermediateToken - (12:0,12 [265] Templates.cshtml) - CSharp - \n public HelperResult Repeat(int times, Func template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt deleted file mode 100644 index 4c67be5de0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt +++ /dev/null @@ -1,169 +0,0 @@ -Source Location: (284:10,2 [34] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -| - Func foo = | -Generated Location: (739:19,2 [34] ) -| - Func foo = | - -Source Location: (337:11,51 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (1051:28,51 [4] ) -|item| - -Source Location: (349:11,63 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|; - | -Generated Location: (1306:37,63 [7] ) -|; - | - -Source Location: (357:12,5 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|foo("")| -Generated Location: (1476:45,6 [7] ) -|foo("")| - -Source Location: (364:12,12 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -| -| -Generated Location: (1653:52,12 [2] ) -| -| - -Source Location: (373:15,2 [35] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -| - Func bar = | -Generated Location: (1812:59,2 [35] ) -| - Func bar = | - -Source Location: (420:16,44 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (2118:68,44 [4] ) -|item| - -Source Location: (435:16,59 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|; - | -Generated Location: (2369:77,59 [7] ) -|; - | - -Source Location: (443:17,5 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|bar("myclass")| -Generated Location: (2539:85,6 [14] ) -|bar("myclass")| - -Source Location: (457:17,19 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -| -| -Generated Location: (2730:92,19 [2] ) -| -| - -Source Location: (472:21,2 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|Repeat(10, | -Generated Location: (2893:99,6 [11] ) -|Repeat(10, | - -Source Location: (495:21,25 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (3092:102,25 [4] ) -|item| - -Source Location: (504:21,34 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|)| -Generated Location: (3153:108,1 [1] ) -|)| - -Source Location: (523:25,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|Repeat(10, - | -Generated Location: (3318:115,6 [16] ) -|Repeat(10, - | - -Source Location: (556:26,21 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (3518:119,21 [4] ) -|item| - -Source Location: (577:27,0 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|)| -Generated Location: (3579:125,1 [1] ) -|)| - -Source Location: (594:31,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|Repeat(10, - | -Generated Location: (3744:132,6 [16] ) -|Repeat(10, - | - -Source Location: (628:32,22 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (3945:136,22 [4] ) -|item| - -Source Location: (650:33,0 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|)| -Generated Location: (4006:142,1 [1] ) -|)| - -Source Location: (667:37,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|Repeat(10, - | -Generated Location: (4171:149,6 [16] ) -|Repeat(10, - | - -Source Location: (702:38,23 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (4373:153,23 [4] ) -|item| - -Source Location: (724:39,0 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|)| -Generated Location: (4434:159,1 [1] ) -|)| - -Source Location: (748:44,5 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|Repeat(10, | -Generated Location: (4599:166,6 [11] ) -|Repeat(10, | - -Source Location: (781:45,15 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|item| -Generated Location: (4788:169,15 [4] ) -|item| - -Source Location: (797:46,10 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|var parent = item;| -Generated Location: (4960:176,10 [18] ) -|var parent = item;| - -Source Location: (956:51,9 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -|)| -Generated Location: (5034:182,1 [1] ) -|)| - -Source Location: (12:0,12 [265] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml) -| - public HelperResult Repeat(int times, Func template) { - return new HelperResult((writer) => { - for(int i = 0; i < times; i++) { - ((HelperResult)template(i)).WriteTo(writer); - } - }); - } -| -Generated Location: (5253:191,12 [265] ) -| - public HelperResult Repeat(int times, Func template) { - return new HelperResult((writer) => { - for(int i = 0; i < times; i++) { - ((HelperResult)template(i)).WriteTo(writer); - } - }); - } -| - diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs b/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs deleted file mode 100644 index 8dccc5c2669..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs +++ /dev/null @@ -1,228 +0,0 @@ -#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "488aa2f21a6d3e3c761871ec0bf2f295695db71a" -// -#pragma warning disable 1591 -[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml")] -namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles -{ - #line hidden - [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"488aa2f21a6d3e3c761871ec0bf2f295695db71a", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml")] - public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_Runtime - { - #pragma warning disable 1998 - public async System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("\r\n"); -#nullable restore -#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - Func foo = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - WriteLiteral("This works "); -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - Write(item); - -#line default -#line hidden -#nullable disable - WriteLiteral("!"); - PopWriter(); - } - ) -#nullable restore -#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - ; - - -#line default -#line hidden -#nullable disable -#nullable restore -#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" -Write(foo("")); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\n"); -#nullable restore -#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml" - - Func bar = - -#line default -#line hidden -#nullable disable - item => new Template(async(__razor_template_writer) => { - PushWriter(__razor_template_writer); - WriteLiteral("
                    LF }] - MarkupBlock - [0..352)::352 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..352)::352 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..36)::35 - [foreach(var c in db.Categories) {LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[c]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[db]; - Dot;[.]; - Identifier;[Categories]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [36..343)::307 - MarkupTextLiteral - [36..48)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [48..341)::293 - MarkupStartTag - [48..53)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [53..71)::18 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [71..87)::16 - MarkupStartTag - [71..75)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[h1]; - CloseAngle;[>]; - MarkupTextLiteral - [75..75)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [75..82)::7 - CSharpImplicitExpression - [75..82)::7 - CSharpTransition - [75..76)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [76..82)::6 - CSharpCodeBlock - [76..82)::6 - CSharpExpressionLiteral - [76..82)::6 - [c.Name] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[c]; - Dot;[.]; - Identifier;[Name]; - MarkupEndTag - [82..87)::5 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[h1]; - CloseAngle;[>]; - MarkupTextLiteral - [87..105)::18 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [105..321)::216 - MarkupStartTag - [105..109)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; - MarkupTextLiteral - [321..335)::14 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupEndTag - [335..341)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [341..343)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [343..352)::9 - [ }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [352..352)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.cspans.txt deleted file mode 100644 index 789aee764e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [181] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [181] ) -Code span at (1:0,1 [180] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [181] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.stree.txt deleted file mode 100644 index bef141e83ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesElseIfBranchesOfIfStatement.stree.txt +++ /dev/null @@ -1,101 +0,0 @@ -RazorDocument - [0..181)::181 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF}] - MarkupBlock - [0..181)::181 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..181)::181 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..181)::180 - [if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.cspans.txt deleted file mode 100644 index e9b41327961..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [13] ) -Code span at (12:0,12 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (11:0,11 [13] ) -Code span at (24:0,24 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.stree.txt deleted file mode 100644 index 4d0d95b0bdd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByIdentifierStart.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..26)::26 - [@if(foo) { @foo[4].bar() }] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..11)::10 - [if(foo) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [11..24)::13 - CSharpImplicitExpression - [11..24)::13 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [12..24)::12 - CSharpCodeBlock - [12..24)::12 - CSharpExpressionLiteral - [12..24)::12 - [foo[4].bar()] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Identifier;[foo]; - LeftBracket;[[]; - IntegerLiteral;[4]; - RightBracket;[]]; - Dot;[.]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - CSharpStatementLiteral - [24..26)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.cspans.txt deleted file mode 100644 index fa6fe6f284e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [12] ) -MetaCode span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [12] ) -Code span at (13:0,13 [9] ) (Accepts:Any) - Parent: Expression block at (11:0,11 [12] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [12] ) -Code span at (23:0,23 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.stree.txt deleted file mode 100644 index 13b1192f70f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesExpressionOnSwitchCharacterFollowedByOpenParen.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..25)::25 - [@if(foo) { @(foo + bar) }] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..11)::10 - [if(foo) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [11..23)::12 - CSharpExplicitExpression - [11..23)::12 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [12..23)::11 - RazorMetaCode - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [13..22)::9 - CSharpExpressionLiteral - [13..22)::9 - [foo + bar] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - Whitespace;[ ]; - Plus;[+]; - Whitespace;[ ]; - Identifier;[bar]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - CSharpStatementLiteral - [23..25)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.cspans.txt deleted file mode 100644 index 2fe075b5586..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [460] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [460] ) -Code span at (1:0,1 [459] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [460] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.stree.txt deleted file mode 100644 index c7b7c42a7ed..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatement.stree.txt +++ /dev/null @@ -1,245 +0,0 @@ -RazorDocument - [0..460)::460 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF}] - MarkupBlock - [0..460)::460 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..460)::460 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..460)::459 - [if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.cspans.txt deleted file mode 100644 index 605d3b6d2bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [314] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [314] ) -Code span at (1:0,1 [313] ) (Accepts:None) - Parent: Statement block at (0:0,0 [314] ) -Markup span at (314:6,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [314] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.stree.txt deleted file mode 100644 index aa1209b97a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesMultipleElseIfBranchesOfIfStatementFollowedByOneElseBranch.stree.txt +++ /dev/null @@ -1,165 +0,0 @@ -RazorDocument - [0..314)::314 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else { Debug.WriteLine(@"bar } baz"); }] - MarkupBlock - [0..314)::314 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..314)::314 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..314)::313 - [if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else { Debug.WriteLine(@"bar } baz"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [314..314)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt deleted file mode 100644 index 38e57fe477a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [29] ) -Code span at (1:0,1 [28] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt deleted file mode 100644 index 824fdc01edc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceAliasWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..29)::29 - [@using FooBarBaz = FooBarBaz;] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - RazorDirective - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..29)::28 - CSharpStatementLiteral - [1..29)::28 - [using FooBarBaz = FooBarBaz;] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Identifier;[FooBarBaz]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[FooBarBaz]; - Semicolon;[;]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt deleted file mode 100644 index 0fa4fa90547..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Code span at (1:0,1 [18] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt deleted file mode 100644 index e80602c1cc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ParsesNamespaceImportWithSemicolonForUsingKeywordIfIsInValidFormat.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..19)::19 - [@using Foo.Bar.Baz;] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - RazorDirective - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..19)::18 - CSharpStatementLiteral - [1..19)::18 - [using Foo.Bar.Baz;] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Identifier;[Foo]; - Dot;[.]; - Identifier;[Bar]; - Dot;[.]; - Identifier;[Baz]; - Semicolon;[;]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.cspans.txt deleted file mode 100644 index 3331924bfea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [83] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [83] ) -Code span at (1:0,1 [82] ) (Accepts:None) - Parent: Statement block at (0:0,0 [83] ) -Markup span at (83:0,83 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [83] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.stree.txt deleted file mode 100644 index 9b56c746261..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForKeyword.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..83)::83 - [@for(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - MarkupBlock - [0..83)::83 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..83)::83 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..83)::82 - [for(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[for]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [83..83)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.cspans.txt deleted file mode 100644 index 3dcf5604d41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [87] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [87] ) -Code span at (1:0,1 [86] ) (Accepts:None) - Parent: Statement block at (0:0,0 [87] ) -Markup span at (87:0,87 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [87] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.stree.txt deleted file mode 100644 index 57c9e1ffbc8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsForeachKeyword.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..87)::87 - [@foreach(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - MarkupBlock - [0..87)::87 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..87)::87 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..87)::86 - [foreach(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[foreach]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [87..87)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.cspans.txt deleted file mode 100644 index 8cb778eea32..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [82] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [82] ) -Code span at (1:0,1 [81] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [82] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.stree.txt deleted file mode 100644 index 416c7e02e3c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsIfKeywordWithNoElseBranches.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..82)::82 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - MarkupBlock - [0..82)::82 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..82)::82 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..82)::81 - [if(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.cspans.txt deleted file mode 100644 index 1db0bcc1b48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [162] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [162] ) -Code span at (1:0,1 [161] ) (Accepts:None) - Parent: Statement block at (0:0,0 [162] ) -Markup span at (162:11,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [162] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.stree.txt deleted file mode 100644 index 29ee2fa8786..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsSwitchKeyword.stree.txt +++ /dev/null @@ -1,62 +0,0 @@ -RazorDocument - [0..162)::162 - [@switch(foo) {LF case 0:LF break;LF case 1:LF {LF break;LF }LF case 2:LF return;LF default:LF return;LF}] - MarkupBlock - [0..162)::162 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..162)::162 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..162)::161 - [switch(foo) {LF case 0:LF break;LF case 1:LF {LF break;LF }LF case 2:LF return;LF default:LF return;LF}] - Gen - SpanEditHandler;Accepts:None - Keyword;[switch]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Colon;[:]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[break]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[1]; - Colon;[:]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[break]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[2]; - Colon;[:]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[return]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[default]; - Colon;[:]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[return]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - MarkupTextLiteral - [162..162)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.cspans.txt deleted file mode 100644 index ca0b546f9ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -Code span at (1:0,1 [84] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -Markup span at (85:0,85 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.stree.txt deleted file mode 100644 index 7c1f988f747..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesBracesIfFirstIdentifierIsWhileKeyword.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..85)::85 - [@while(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - MarkupBlock - [0..85)::85 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..85)::85 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..85)::84 - [while(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [85..85)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.cspans.txt deleted file mode 100644 index ca0b546f9ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -Code span at (1:0,1 [84] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -Markup span at (85:0,85 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.stree.txt deleted file mode 100644 index 348596ed7b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SkipsExprThenBalancesIfFirstIdentifierIsUsingFollowedByParen.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..85)::85 - [@using(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - MarkupBlock - [0..85)::85 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..85)::85 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..85)::84 - [using(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[using]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [85..85)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.cspans.txt deleted file mode 100644 index aa0c099c062..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Code span at (1:0,1 [55] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Markup span at (56:0,56 [23] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.stree.txt deleted file mode 100644 index 591939c74ef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCatchClausesAfterFinallyBlock.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..79)::79 - [@try { var foo = new { } } finally { var foo = new { } } catch(Foo Bar Baz) { }] - MarkupBlock - [0..79)::79 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..56)::56 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..56)::55 - [try { var foo = new { } } finally { var foo = new { } }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [56..79)::23 - [ catch(Foo Bar Baz) { }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[catch(Foo]; - Whitespace;[ ]; - Text;[Bar]; - Whitespace;[ ]; - Text;[Baz)]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.cspans.txt deleted file mode 100644 index be831c60b46..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [314] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [221] ) -Code span at (1:0,1 [220] ) (Accepts:None) - Parent: Statement block at (0:0,0 [221] ) -Markup span at (221:4,41 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [314] ) -Markup span at (243:4,63 [1] ) (Accepts:Any) - Parent: Tag block at (243:4,63 [71] ) -Markup span at (244:4,64 [4] ) (Accepts:Any) - Parent: Markup block at (244:4,64 [4] ) -Markup span at (248:4,68 [4] ) (Accepts:Any) - Parent: Markup block at (248:4,68 [4] ) -Markup span at (252:4,72 [4] ) (Accepts:Any) - Parent: Markup block at (252:4,72 [4] ) -Markup span at (256:4,76 [2] ) (Accepts:Any) - Parent: Markup block at (256:4,76 [2] ) -Markup span at (258:4,78 [8] ) (Accepts:Any) - Parent: Markup block at (258:4,78 [12] ) -Markup span at (266:4,86 [3] ) (Accepts:Any) - Parent: Markup block at (258:4,78 [12] ) -Markup span at (269:4,89 [1] ) (Accepts:Any) - Parent: Markup block at (258:4,78 [12] ) -Markup span at (270:4,90 [3] ) (Accepts:Any) - Parent: Markup block at (270:4,90 [3] ) -Markup span at (273:4,93 [2] ) (Accepts:Any) - Parent: Markup block at (273:4,93 [2] ) -Markup span at (275:4,95 [27] ) (Accepts:Any) - Parent: Markup block at (275:4,95 [27] ) -Markup span at (302:5,25 [2] ) (Accepts:Any) - Parent: Markup block at (302:5,25 [2] ) -Markup span at (304:5,27 [7] ) (Accepts:Any) - Parent: Markup block at (304:5,27 [7] ) -Markup span at (311:5,34 [3] ) (Accepts:Any) - Parent: Markup block at (311:5,34 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt deleted file mode 100644 index f4dfa891743..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt +++ /dev/null @@ -1,207 +0,0 @@ -RazorDocument - [0..314)::314 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else { Debug.WriteLine(@"bar } baz"); } else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF}] - MarkupBlock - [0..314)::314 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..221)::221 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..221)::220 - [if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF} else if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF} else { Debug.WriteLine(@"bar } baz"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"bar } baz"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [221..243)::22 - [ else if(int i = 0; i ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[else]; - Whitespace;[ ]; - Text;[if(int]; - Whitespace;[ ]; - Text;[i]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[0;]; - Whitespace;[ ]; - Text;[i]; - Whitespace;[ ]; - MarkupElement - [243..314)::71 - MarkupStartTag - [243..314)::71 - [< 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"bar } baz");LF}] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMinimizedAttributeBlock - [244..248)::4 - [ 10;] - MarkupTextLiteral - [244..245)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [245..248)::3 - [10;] - Gen - SpanEditHandler;Accepts:Any - Text;[10;]; - MarkupMinimizedAttributeBlock - [248..252)::4 - [ new] - MarkupTextLiteral - [248..249)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [249..252)::3 - [new] - Gen - SpanEditHandler;Accepts:Any - Text;[new]; - MarkupMinimizedAttributeBlock - [252..256)::4 - [ Foo] - MarkupTextLiteral - [252..253)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [253..256)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupMinimizedAttributeBlock - [256..258)::2 - [ {] - MarkupTextLiteral - [256..257)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [257..258)::1 - [{] - Gen - SpanEditHandler;Accepts:Any - Text;[{]; - MarkupAttributeBlock - [258..270)::12 - [ Bar = "baz"] - MarkupTextLiteral - [258..259)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [259..262)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [262..263)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Equals;[=]; - MarkupTextLiteral - [264..266)::2 - [ "] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - DoubleQuote;["]; - GenericBlock - [266..269)::3 - MarkupLiteralAttributeValue - [266..269)::3 - [baz] - MarkupTextLiteral - [266..269)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - MarkupTextLiteral - [269..270)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMinimizedAttributeBlock - [270..273)::3 - [ })] - MarkupTextLiteral - [270..271)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [271..273)::2 - [})] - Gen - SpanEditHandler;Accepts:Any - Text;[})]; - MarkupMinimizedAttributeBlock - [273..275)::2 - [ {] - MarkupTextLiteral - [273..274)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [274..275)::1 - [{] - Gen - SpanEditHandler;Accepts:Any - Text;[{]; - MarkupMinimizedAttributeBlock - [275..302)::27 - [LF Debug.WriteLine(@"bar] - MarkupTextLiteral - [275..281)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [281..302)::21 - [Debug.WriteLine(@"bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Debug.WriteLine(]; - Transition;[@]; - DoubleQuote;["]; - Text;[bar]; - MarkupMinimizedAttributeBlock - [302..304)::2 - [ }] - MarkupTextLiteral - [302..303)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [303..304)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - MarkupMinimizedAttributeBlock - [304..311)::7 - [ baz");] - MarkupTextLiteral - [304..305)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [305..311)::6 - [baz");] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - DoubleQuote;["]; - Text;[);]; - MarkupMinimizedAttributeBlock - [311..314)::3 - [LF}] - MarkupTextLiteral - [311..313)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [313..314)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.cspans.txt deleted file mode 100644 index fe1c9822899..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [88] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [88] ) -Code span at (1:0,1 [87] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [88] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.stree.txt deleted file mode 100644 index bc5f1923c3b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingIfIfStatementNotFollowedByElse.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..88)::88 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF}] - MarkupBlock - [0..88)::88 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..88)::88 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..88)::87 - [if(int i = 0; i < 10; new Foo { Bar = "baz" }) {LF Debug.WriteLine(@"foo } bar");LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.cspans.txt deleted file mode 100644 index 6e4685336b1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [76] ) -Code span at (1:0,1 [75] ) (Accepts:None) - Parent: Statement block at (0:0,0 [76] ) -Markup span at (76:0,76 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.stree.txt deleted file mode 100644 index 96e3f6e83ce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenCatchAndFinallyClause.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..76)::76 - [@try { bar(); } catch(bar) { baz(); } /* Foo */ /* Bar */ finally { biz(); }] - MarkupBlock - [0..76)::76 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..76)::76 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..76)::75 - [try { bar(); } catch(bar) { baz(); } /* Foo */ /* Bar */ finally { biz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - CSharpComment;[/* Foo */]; - Whitespace;[ ]; - CSharpComment;[/* Bar */]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[biz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [76..76)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.cspans.txt deleted file mode 100644 index ad7d618e3fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Code span at (1:0,1 [54] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Markup span at (55:0,55 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.stree.txt deleted file mode 100644 index fce6e868c68..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenDoAndWhileClause.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..55)::55 - [@do { var foo = bar; } /* Foo */ /* Bar */ while(true);] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..55)::54 - [do { var foo = bar; } /* Foo */ /* Bar */ while(true);] - Gen - SpanEditHandler;Accepts:None - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - CSharpComment;[/* Foo */]; - Whitespace;[ ]; - CSharpComment;[/* Bar */]; - Whitespace;[ ]; - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [55..55)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.cspans.txt deleted file mode 100644 index ab49157b048..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [79] ) -Code span at (1:0,1 [78] ) (Accepts:None) - Parent: Statement block at (0:0,0 [79] ) -Markup span at (79:0,79 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.stree.txt deleted file mode 100644 index a3ef08830ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenElseIfAndElseClause.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..79)::79 - [@if(foo) { bar(); } else if(bar) { baz(); } /* Foo */ /* Bar */ else { biz(); }] - MarkupBlock - [0..79)::79 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..79)::79 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..79)::78 - [if(foo) { bar(); } else if(bar) { baz(); } /* Foo */ /* Bar */ else { biz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - CSharpComment;[/* Foo */]; - Whitespace;[ ]; - CSharpComment;[/* Bar */]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[biz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [79..79)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.cspans.txt deleted file mode 100644 index ad7d618e3fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Code span at (1:0,1 [54] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Markup span at (55:0,55 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.stree.txt deleted file mode 100644 index caa9d72231f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseClause.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..55)::55 - [@if(foo) { bar(); } /* Foo */ /* Bar */ else { baz(); }] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..55)::54 - [if(foo) { bar(); } /* Foo */ /* Bar */ else { baz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - CSharpComment;[/* Foo */]; - Whitespace;[ ]; - CSharpComment;[/* Bar */]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [55..55)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.cspans.txt deleted file mode 100644 index 9308e1a86a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [62] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [62] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.stree.txt deleted file mode 100644 index 4d4572d8e28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenIfAndElseIfClause.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..62)::62 - [if(foo) { bar(); } /* Foo */ /* Bar */ else if(bar) { baz(); }] - MarkupBlock - [0..62)::62 - MarkupTextLiteral - [0..62)::62 - [if(foo) { bar(); } /* Foo */ /* Bar */ else if(bar) { baz(); }] - Gen - SpanEditHandler;Accepts:Any - Text;[if(foo)]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - Text;[bar();]; - Whitespace;[ ]; - Text;[}]; - Whitespace;[ ]; - ForwardSlash;[/]; - Text;[*]; - Whitespace;[ ]; - Text;[Foo]; - Whitespace;[ ]; - Text;[*]; - ForwardSlash;[/]; - Whitespace;[ ]; - ForwardSlash;[/]; - Text;[*]; - Whitespace;[ ]; - Text;[Bar]; - Whitespace;[ ]; - Text;[*]; - ForwardSlash;[/]; - Whitespace;[ ]; - Text;[else]; - Whitespace;[ ]; - Text;[if(bar)]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - Text;[baz();]; - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.cspans.txt deleted file mode 100644 index 160fbdc6813..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Code span at (1:0,1 [56] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [57] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.stree.txt deleted file mode 100644 index 2385e04a83f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndCatchClause.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..57)::57 - [@try { bar(); } /* Foo */ /* Bar */ catch(bar) { baz(); }] - MarkupBlock - [0..57)::57 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..57)::57 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..57)::56 - [try { bar(); } /* Foo */ /* Bar */ catch(bar) { baz(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - CSharpComment;[/* Foo */]; - Whitespace;[ ]; - CSharpComment;[/* Bar */]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.cspans.txt deleted file mode 100644 index d203f657eef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Code span at (1:0,1 [53] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Markup span at (54:0,54 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.stree.txt deleted file mode 100644 index b260d256642..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsBlockCommentBetweenTryAndFinallyClause.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..54)::54 - [@try { bar(); } /* Foo */ /* Bar */ finally { baz(); }] - MarkupBlock - [0..54)::54 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..54)::54 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..54)::53 - [try { bar(); } /* Foo */ /* Bar */ finally { baz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - CSharpComment;[/* Foo */]; - Whitespace;[ ]; - CSharpComment;[/* Bar */]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [54..54)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.cspans.txt deleted file mode 100644 index c6237e0e8a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Code span at (1:0,1 [53] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [54] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.stree.txt deleted file mode 100644 index 32c77551fa8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsExceptionLessCatchClauses.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..54)::54 - [@try { var foo = new { } } catch { var foo = new { } }] - MarkupBlock - [0..54)::54 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..54)::54 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..54)::53 - [try { var foo = new { } } catch { var foo = new { } }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.cspans.txt deleted file mode 100644 index 62b7ff3aa54..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [73] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [73] ) -Code span at (1:0,1 [72] ) (Accepts:None) - Parent: Statement block at (0:0,0 [73] ) -Markup span at (73:3,18 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [73] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.stree.txt deleted file mode 100644 index 2171dd644db..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenCatchAndFinallyClause.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..73)::73 - [@try { bar(); } catch(bar) { baz(); }LF// FooLF// BarLFfinally { biz(); }] - MarkupBlock - [0..73)::73 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..73)::73 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..73)::72 - [try { bar(); } catch(bar) { baz(); }LF// FooLF// BarLFfinally { biz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[biz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [73..73)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.cspans.txt deleted file mode 100644 index 9cf3e2b2199..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [52] ) -Code span at (1:0,1 [51] ) (Accepts:None) - Parent: Statement block at (0:0,0 [52] ) -Markup span at (52:3,12 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.stree.txt deleted file mode 100644 index 6e8cbb886ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenDoAndWhileClause.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..52)::52 - [@do { var foo = bar; }LF// FooLF// BarLFwhile(true);] - MarkupBlock - [0..52)::52 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..52)::52 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..52)::51 - [do { var foo = bar; }LF// FooLF// BarLFwhile(true);] - Gen - SpanEditHandler;Accepts:None - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [52..52)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.cspans.txt deleted file mode 100644 index e5f45fe9ffc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [76] ) -Code span at (1:0,1 [75] ) (Accepts:None) - Parent: Statement block at (0:0,0 [76] ) -Markup span at (76:3,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.stree.txt deleted file mode 100644 index e7bad5b4ff3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenElseIfAndElseClause.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..76)::76 - [@if(foo) { bar(); } else if(bar) { baz(); }LF// FooLF// BarLFelse { biz(); }] - MarkupBlock - [0..76)::76 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..76)::76 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..76)::75 - [if(foo) { bar(); } else if(bar) { baz(); }LF// FooLF// BarLFelse { biz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[biz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [76..76)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.cspans.txt deleted file mode 100644 index 566e454573e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [52] ) -Code span at (1:0,1 [51] ) (Accepts:None) - Parent: Statement block at (0:0,0 [52] ) -Markup span at (52:3,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.stree.txt deleted file mode 100644 index d167b6dbe23..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseClause.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..52)::52 - [@if(foo) { bar(); }LF// FooLF// BarLFelse { baz(); }] - MarkupBlock - [0..52)::52 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..52)::52 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..52)::51 - [if(foo) { bar(); }LF// FooLF// BarLFelse { baz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [52..52)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.cspans.txt deleted file mode 100644 index 8985fc4d327..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [60] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [60] ) -Code span at (1:0,1 [59] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [60] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.stree.txt deleted file mode 100644 index a0ca426d841..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenIfAndElseIfClause.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..60)::60 - [@if(foo) { bar(); }LF// FooLF// BarLFelse if(bar) { baz(); }] - MarkupBlock - [0..60)::60 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..60)::60 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..60)::59 - [if(foo) { bar(); }LF// FooLF// BarLFelse if(bar) { baz(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.cspans.txt deleted file mode 100644 index c6237e0e8a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Code span at (1:0,1 [53] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [54] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.stree.txt deleted file mode 100644 index 62b181f49f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndCatchClause.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..54)::54 - [@try { bar(); }LF// FooLF// BarLFcatch(bar) { baz(); }] - MarkupBlock - [0..54)::54 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..54)::54 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..54)::53 - [try { bar(); }LF// FooLF// BarLFcatch(bar) { baz(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.cspans.txt deleted file mode 100644 index 4ea9b5e4ac9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Code span at (1:0,1 [50] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Markup span at (51:3,18 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.stree.txt deleted file mode 100644 index ed023e9a583..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsLineCommentBetweenTryAndFinallyClause.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..51)::51 - [@try { bar(); }LF// FooLF// BarLFfinally { baz(); }] - MarkupBlock - [0..51)::51 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..51)::51 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..51)::50 - [try { bar(); }LF// FooLF// BarLFfinally { baz(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - CSharpComment;[// Foo]; - NewLine;[LF]; - CSharpComment;[// Bar]; - NewLine;[LF]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [51..51)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.cspans.txt deleted file mode 100644 index c85c3644c50..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [142] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [142] ) -Code span at (1:0,1 [128] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [142] ) -Markup span at (129:0,129 [1] ) (Accepts:Any) - Parent: Markup block at (129:0,129 [12] ) -Markup span at (130:0,130 [3] ) (Accepts:None) - Parent: Tag block at (130:0,130 [3] ) -Markup span at (133:0,133 [3] ) (Accepts:Any) - Parent: Markup block at (129:0,129 [12] ) -Markup span at (136:0,136 [4] ) (Accepts:None) - Parent: Tag block at (136:0,136 [4] ) -Markup span at (140:0,140 [1] ) (Accepts:None) - Parent: Markup block at (129:0,129 [12] ) -Code span at (141:0,141 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [142] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.stree.txt deleted file mode 100644 index 8c4bba87e93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinAdditionalCatchClauses.stree.txt +++ /dev/null @@ -1,105 +0,0 @@ -RazorDocument - [0..142)::142 - [@try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) {

                    Foo

                    }] - MarkupBlock - [0..142)::142 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..142)::142 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..129)::128 - [try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [129..141)::12 - MarkupTextLiteral - [129..130)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [130..140)::10 - MarkupStartTag - [130..133)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [133..136)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [136..140)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [140..141)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [141..142)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.cspans.txt deleted file mode 100644 index f5eacad8c8f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [60] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [60] ) -Code span at (1:0,1 [46] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [60] ) -Markup span at (47:0,47 [1] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [12] ) -Markup span at (48:0,48 [3] ) (Accepts:None) - Parent: Tag block at (48:0,48 [3] ) -Markup span at (51:0,51 [3] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [12] ) -Markup span at (54:0,54 [4] ) (Accepts:None) - Parent: Tag block at (54:0,54 [4] ) -Markup span at (58:0,58 [1] ) (Accepts:None) - Parent: Markup block at (47:0,47 [12] ) -Code span at (59:0,59 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [60] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.stree.txt deleted file mode 100644 index c3f718b5485..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinCatchClause.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..60)::60 - [@try { var foo = new { } } catch(Foo Bar Baz) {

                    Foo

                    }] - MarkupBlock - [0..60)::60 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..60)::60 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..47)::46 - [try { var foo = new { } } catch(Foo Bar Baz) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [47..59)::12 - MarkupTextLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [48..58)::10 - MarkupStartTag - [48..51)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [51..54)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [54..58)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [58..59)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [59..60)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.cspans.txt deleted file mode 100644 index 4fd893b6ab9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Code span at (1:0,1 [35] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [49] ) -Markup span at (36:0,36 [1] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [12] ) -Markup span at (37:0,37 [3] ) (Accepts:None) - Parent: Tag block at (37:0,37 [3] ) -Markup span at (40:0,40 [3] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [12] ) -Markup span at (43:0,43 [4] ) (Accepts:None) - Parent: Tag block at (43:0,43 [4] ) -Markup span at (47:0,47 [1] ) (Accepts:None) - Parent: Markup block at (36:0,36 [12] ) -Code span at (48:0,48 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Markup span at (49:0,49 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.stree.txt deleted file mode 100644 index 41cfa89c2cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinFinallyClause.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..49)::49 - [@try { var foo = new { } } finally {

                    Foo

                    }] - MarkupBlock - [0..49)::49 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..49)::49 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..36)::35 - [try { var foo = new { } } finally {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [36..48)::12 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [37..47)::10 - MarkupStartTag - [37..40)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [40..43)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [43..47)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [48..49)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [49..49)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.cspans.txt deleted file mode 100644 index 93ffe7cfe82..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (6:0,6 [1] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [12] ) -Markup span at (7:0,7 [3] ) (Accepts:None) - Parent: Tag block at (7:0,7 [3] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [12] ) -Markup span at (13:0,13 [4] ) (Accepts:None) - Parent: Tag block at (13:0,13 [4] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (6:0,6 [12] ) -Code span at (18:0,18 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.stree.txt deleted file mode 100644 index 996f278e094..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsMarkupWithinTryClause.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..19)::19 - [@try {

                    Foo

                    }] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..6)::5 - [try {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [6..18)::12 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [7..17)::10 - MarkupStartTag - [7..10)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [10..13)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [13..17)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [18..19)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.cspans.txt deleted file mode 100644 index 93426c20ee7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [76] ) -Code span at (1:0,1 [37] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [76] ) -Transition span at (38:0,38 [1] ) (Accepts:None) - Parent: Comment block at (38:0,38 [9] ) -MetaCode span at (39:0,39 [1] ) (Accepts:None) - Parent: Comment block at (38:0,38 [9] ) -Comment span at (40:0,40 [5] ) (Accepts:Any) - Parent: Comment block at (38:0,38 [9] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Comment block at (38:0,38 [9] ) -Transition span at (46:0,46 [1] ) (Accepts:None) - Parent: Comment block at (38:0,38 [9] ) -Code span at (47:0,47 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [76] ) -Transition span at (48:0,48 [1] ) (Accepts:None) - Parent: Comment block at (48:0,48 [9] ) -MetaCode span at (49:0,49 [1] ) (Accepts:None) - Parent: Comment block at (48:0,48 [9] ) -Comment span at (50:0,50 [5] ) (Accepts:Any) - Parent: Comment block at (48:0,48 [9] ) -MetaCode span at (55:0,55 [1] ) (Accepts:None) - Parent: Comment block at (48:0,48 [9] ) -Transition span at (56:0,56 [1] ) (Accepts:None) - Parent: Comment block at (48:0,48 [9] ) -Code span at (57:0,57 [19] ) (Accepts:None) - Parent: Statement block at (0:0,0 [76] ) -Markup span at (76:0,76 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.stree.txt deleted file mode 100644 index 2637f539e75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenCatchAndFinallyClause.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..76)::76 - [@try { bar(); } catch(bar) { baz(); } @* Foo *@ @* Bar *@ finally { biz(); }] - MarkupBlock - [0..76)::76 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..76)::76 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..38)::37 - [try { bar(); } catch(bar) { baz(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorComment - [38..47)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [48..57)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [57..76)::19 - [ finally { biz(); }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[biz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [76..76)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.cspans.txt deleted file mode 100644 index bc25d70006e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Code span at (1:0,1 [22] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [55] ) -Transition span at (23:0,23 [1] ) (Accepts:None) - Parent: Comment block at (23:0,23 [9] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Comment block at (23:0,23 [9] ) -Comment span at (25:0,25 [5] ) (Accepts:Any) - Parent: Comment block at (23:0,23 [9] ) -MetaCode span at (30:0,30 [1] ) (Accepts:None) - Parent: Comment block at (23:0,23 [9] ) -Transition span at (31:0,31 [1] ) (Accepts:None) - Parent: Comment block at (23:0,23 [9] ) -Code span at (32:0,32 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [55] ) -Transition span at (33:0,33 [1] ) (Accepts:None) - Parent: Comment block at (33:0,33 [9] ) -MetaCode span at (34:0,34 [1] ) (Accepts:None) - Parent: Comment block at (33:0,33 [9] ) -Comment span at (35:0,35 [5] ) (Accepts:Any) - Parent: Comment block at (33:0,33 [9] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Comment block at (33:0,33 [9] ) -Transition span at (41:0,41 [1] ) (Accepts:None) - Parent: Comment block at (33:0,33 [9] ) -Code span at (42:0,42 [13] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Markup span at (55:0,55 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.stree.txt deleted file mode 100644 index 381862b3551..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenDoAndWhileClause.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..55)::55 - [@do { var foo = bar; } @* Foo *@ @* Bar *@ while(true);] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..23)::22 - [do { var foo = bar; } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorComment - [23..32)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [32..33)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [33..42)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [42..55)::13 - [ while(true);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [55..55)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.cspans.txt deleted file mode 100644 index 18ad30afaaf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [79] ) -Code span at (1:0,1 [43] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [79] ) -Transition span at (44:0,44 [1] ) (Accepts:None) - Parent: Comment block at (44:0,44 [9] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Comment block at (44:0,44 [9] ) -Comment span at (46:0,46 [5] ) (Accepts:Any) - Parent: Comment block at (44:0,44 [9] ) -MetaCode span at (51:0,51 [1] ) (Accepts:None) - Parent: Comment block at (44:0,44 [9] ) -Transition span at (52:0,52 [1] ) (Accepts:None) - Parent: Comment block at (44:0,44 [9] ) -Code span at (53:0,53 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [79] ) -Transition span at (54:0,54 [1] ) (Accepts:None) - Parent: Comment block at (54:0,54 [9] ) -MetaCode span at (55:0,55 [1] ) (Accepts:None) - Parent: Comment block at (54:0,54 [9] ) -Comment span at (56:0,56 [5] ) (Accepts:Any) - Parent: Comment block at (54:0,54 [9] ) -MetaCode span at (61:0,61 [1] ) (Accepts:None) - Parent: Comment block at (54:0,54 [9] ) -Transition span at (62:0,62 [1] ) (Accepts:None) - Parent: Comment block at (54:0,54 [9] ) -Code span at (63:0,63 [16] ) (Accepts:None) - Parent: Statement block at (0:0,0 [79] ) -Markup span at (79:0,79 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.stree.txt deleted file mode 100644 index dcf81bd4435..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenElseIfAndElseClause.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..79)::79 - [@if(foo) { bar(); } else if(bar) { baz(); } @* Foo *@ @* Bar *@ else { baz(); }] - MarkupBlock - [0..79)::79 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..79)::79 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..44)::43 - [if(foo) { bar(); } else if(bar) { baz(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorComment - [44..53)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [54..63)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [63..79)::16 - [ else { baz(); }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [79..79)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.cspans.txt deleted file mode 100644 index 988b9312cc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Code span at (1:0,1 [19] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [55] ) -Transition span at (20:0,20 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -Comment span at (22:0,22 [5] ) (Accepts:Any) - Parent: Comment block at (20:0,20 [9] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -Transition span at (28:0,28 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -Code span at (29:0,29 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [55] ) -Transition span at (30:0,30 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -Comment span at (32:0,32 [5] ) (Accepts:Any) - Parent: Comment block at (30:0,30 [9] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -Transition span at (38:0,38 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -Code span at (39:0,39 [16] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Markup span at (55:0,55 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.stree.txt deleted file mode 100644 index 4d0ae9df0dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseClause.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..55)::55 - [@if(foo) { bar(); } @* Foo *@ @* Bar *@ else { baz(); }] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..20)::19 - [if(foo) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorComment - [20..29)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [30..39)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [39..55)::16 - [ else { baz(); }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [55..55)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.cspans.txt deleted file mode 100644 index 7884e3972d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [63] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [63] ) -Code span at (1:0,1 [19] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [63] ) -Transition span at (20:0,20 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -Comment span at (22:0,22 [5] ) (Accepts:Any) - Parent: Comment block at (20:0,20 [9] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -Transition span at (28:0,28 [1] ) (Accepts:None) - Parent: Comment block at (20:0,20 [9] ) -Code span at (29:0,29 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [63] ) -Transition span at (30:0,30 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -Comment span at (32:0,32 [5] ) (Accepts:Any) - Parent: Comment block at (30:0,30 [9] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -Transition span at (38:0,38 [1] ) (Accepts:None) - Parent: Comment block at (30:0,30 [9] ) -Code span at (39:0,39 [24] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [63] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.stree.txt deleted file mode 100644 index 9e6d75fb2eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenIfAndElseIfClause.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..63)::63 - [@if(foo) { bar(); } @* Foo *@ @* Bar *@ else if(bar) { baz(); }] - MarkupBlock - [0..63)::63 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..63)::63 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..20)::19 - [if(foo) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorComment - [20..29)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [30..39)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [39..63)::24 - [ else if(bar) { baz(); }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.cspans.txt deleted file mode 100644 index 4c911767960..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [56] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Comment block at (15:0,15 [9] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Comment block at (15:0,15 [9] ) -Comment span at (17:0,17 [5] ) (Accepts:Any) - Parent: Comment block at (15:0,15 [9] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Comment block at (15:0,15 [9] ) -Transition span at (23:0,23 [1] ) (Accepts:None) - Parent: Comment block at (15:0,15 [9] ) -Code span at (24:0,24 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [56] ) -Transition span at (25:0,25 [1] ) (Accepts:None) - Parent: Comment block at (25:0,25 [9] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Comment block at (25:0,25 [9] ) -Comment span at (27:0,27 [5] ) (Accepts:Any) - Parent: Comment block at (25:0,25 [9] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Comment block at (25:0,25 [9] ) -Transition span at (33:0,33 [1] ) (Accepts:None) - Parent: Comment block at (25:0,25 [9] ) -Code span at (34:0,34 [22] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.stree.txt deleted file mode 100644 index 16457cd82d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndCatchClause.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..56)::56 - [@try { bar(); }@* Foo *@ @* Bar *@ catch(bar) { baz(); }] - MarkupBlock - [0..56)::56 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..56)::56 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..15)::14 - [try { bar(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - RazorComment - [15..24)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [25..34)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [34..56)::22 - [ catch(bar) { baz(); }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.cspans.txt deleted file mode 100644 index 404343ecca4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Code span at (1:0,1 [15] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [54] ) -Transition span at (16:0,16 [1] ) (Accepts:None) - Parent: Comment block at (16:0,16 [9] ) -MetaCode span at (17:0,17 [1] ) (Accepts:None) - Parent: Comment block at (16:0,16 [9] ) -Comment span at (18:0,18 [5] ) (Accepts:Any) - Parent: Comment block at (16:0,16 [9] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Comment block at (16:0,16 [9] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Comment block at (16:0,16 [9] ) -Code span at (25:0,25 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [54] ) -Transition span at (26:0,26 [1] ) (Accepts:None) - Parent: Comment block at (26:0,26 [9] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Comment block at (26:0,26 [9] ) -Comment span at (28:0,28 [5] ) (Accepts:Any) - Parent: Comment block at (26:0,26 [9] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Comment block at (26:0,26 [9] ) -Transition span at (34:0,34 [1] ) (Accepts:None) - Parent: Comment block at (26:0,26 [9] ) -Code span at (35:0,35 [19] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Markup span at (54:0,54 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.stree.txt deleted file mode 100644 index 0cc98a88342..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsRazorCommentBetweenTryAndFinallyClause.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..54)::54 - [@try { bar(); } @* Foo *@ @* Bar *@ finally { biz(); }] - MarkupBlock - [0..54)::54 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..54)::54 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..16)::15 - [try { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorComment - [16..25)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Foo ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [26..35)::9 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Bar ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [35..54)::19 - [ finally { biz(); }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[biz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [54..54)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.cspans.txt deleted file mode 100644 index eef6075fd7f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Code span at (1:0,1 [55] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Markup span at (56:0,56 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.stree.txt deleted file mode 100644 index 0ce89b760fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithFinallyClause.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..56)::56 - [@try { var foo = new { } } finally { var foo = new { } }] - MarkupBlock - [0..56)::56 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..56)::56 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..56)::55 - [try { var foo = new { } } finally { var foo = new { } }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [56..56)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.cspans.txt deleted file mode 100644 index 3c1c9fd7caa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [149] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [149] ) -Code span at (1:0,1 [148] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [149] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.stree.txt deleted file mode 100644 index 54504a9e05a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithMultipleCatchClause.stree.txt +++ /dev/null @@ -1,100 +0,0 @@ -RazorDocument - [0..149)::149 - [@try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } }] - MarkupBlock - [0..149)::149 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..149)::149 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..149)::148 - [try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.cspans.txt deleted file mode 100644 index 6f701b216fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (1:0,1 [25] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.stree.txt deleted file mode 100644 index 944a321a801..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithNoAdditionalClauses.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..26)::26 - [@try { var foo = new { } }] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..26)::25 - [try { var foo = new { } }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.cspans.txt deleted file mode 100644 index 2d883a5590b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [67] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [67] ) -Code span at (1:0,1 [66] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [67] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.stree.txt deleted file mode 100644 index 976171e7017..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsTryStatementWithOneCatchClause.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..67)::67 - [@try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } }] - MarkupBlock - [0..67)::67 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..67)::67 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..67)::66 - [try { var foo = new { } } catch(Foo Bar Baz) { var foo = new { } }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Identifier;[Baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.cspans.txt deleted file mode 100644 index 40ccbbdea58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [97] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [97] ) -Code span at (1:0,1 [96] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [97] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.stree.txt deleted file mode 100644 index 5632b74d2fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/SupportsUsingsNestedWithinOtherBlocks.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..97)::97 - [@if(foo) { using(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); } }] - MarkupBlock - [0..97)::97 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..97)::97 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..97)::96 - [if(foo) { using(int i = 0; i < 10; new Foo { Bar = "baz" }) { Debug.WriteLine(@"foo } bar"); } }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Keyword;[using]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["baz"]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.cspans.txt deleted file mode 100644 index 2ed26af5984..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Code span at (1:0,1 [38] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [39] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.diag.txt deleted file mode 100644 index 98a67406d1b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,26): Error RZ1001: End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.stree.txt deleted file mode 100644 index 6a21bad8d31..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesBlockCommentAtEndOfFile.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..39)::39 - [@foreach(var f in Foo) { /* foo bar baz] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..39)::39 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..39)::38 - [foreach(var f in Foo) { /* foo bar baz] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[f]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpComment;[/* foo bar baz];RZ1001(25:0,25 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.cspans.txt deleted file mode 100644 index 3f873f6ea4d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [15] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.diag.txt deleted file mode 100644 index a40df1a410c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.stree.txt deleted file mode 100644 index c52a1189f08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesParenBalancingAtEOF.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..15)::15 - [@Html.En(code()] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpImplicitExpression - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..15)::14 - CSharpCodeBlock - [1..15)::14 - CSharpExpressionLiteral - [1..15)::14 - [Html.En(code()] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[En]; - LeftParenthesis;[(]; - Identifier;[code]; - LeftParenthesis;[(]; - RightParenthesis;[)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.cspans.txt deleted file mode 100644 index 2ed26af5984..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Code span at (1:0,1 [38] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [39] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.diag.txt deleted file mode 100644 index 06bf6f2dca6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.stree.txt deleted file mode 100644 index 256845d49c4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleLineCommentAtEndOfFile.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..39)::39 - [@foreach(var f in Foo) { // foo bar baz] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..39)::39 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..39)::38 - [foreach(var f in Foo) { // foo bar baz] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[f]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpComment;[// foo bar baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.cspans.txt deleted file mode 100644 index 7326485a952..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Code span at (1:0,1 [37] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.diag.txt deleted file mode 100644 index 06bf6f2dca6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.stree.txt deleted file mode 100644 index 106b2c81a17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesSingleSlashAtEndOfFile.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..38)::38 - [@foreach(var f in Foo) { / foo bar baz] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..38)::37 - [foreach(var f in Foo) { / foo bar baz] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[f]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Slash;[/]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - Whitespace;[ ]; - Identifier;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.cspans.txt deleted file mode 100644 index 6f701b216fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (1:0,1 [25] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.stree.txt deleted file mode 100644 index 7d0351183fc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TerminatesUsingKeywordAtEOFAndOutputsFileCodeBlock.stree.txt +++ /dev/null @@ -1,10 +0,0 @@ -RazorDocument - [0..26)::26 - [@using ] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..26)::25 - [using ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[using]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.cspans.txt deleted file mode 100644 index 3b430f9f074..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -Code span at (1:0,1 [44] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -Markup span at (45:0,45 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.stree.txt deleted file mode 100644 index 0f6a422fa28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/ThenBalancesBracesIfFirstIdentifierIsLockKeyword.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..45)::45 - [@lock(foo) { Debug.WriteLine(@"foo } bar"); }] - MarkupBlock - [0..45)::45 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..45)::45 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..45)::44 - [lock(foo) { Debug.WriteLine(@"foo } bar"); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[lock]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Debug]; - Dot;[.]; - Identifier;[WriteLine]; - LeftParenthesis;[(]; - StringLiteral;[@"foo } bar"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.cspans.txt deleted file mode 100644 index bb6bc45bc9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [28] ) -Code span at (11:0,11 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [28] ) -Code span at (12:0,12 [16] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.stree.txt deleted file mode 100644 index a47868ef01f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsAtSignsAfterFirstPairAsPartOfCSharpStatement.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..28)::28 - [@if(foo) { @@@@class.Foo() }] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..11)::10 - [if(foo) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpEphemeralTextLiteral - [11..12)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - CSharpStatementLiteral - [12..28)::16 - [@@@class.Foo() }] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Transition;[@]; - Transition;[@]; - Keyword;[class]; - Dot;[.]; - Identifier;[Foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.cspans.txt deleted file mode 100644 index 74119a5b924..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Code span at (11:0,11 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Code span at (12:0,12 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.stree.txt deleted file mode 100644 index 39960002919..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/TreatsDoubleAtSignAsEscapeSequenceIfAtStatementStart.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..26)::26 - [@if(foo) { @@class.Foo() }] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..11)::10 - [if(foo) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpEphemeralTextLiteral - [11..12)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - CSharpStatementLiteral - [12..26)::14 - [@class.Foo() }] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Keyword;[class]; - Dot;[.]; - Identifier;[Foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.cspans.txt deleted file mode 100644 index 867c9d5eae2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [20] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [12] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (14:0,14 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [12] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [12] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [20] ) -Code span at (22:0,22 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt deleted file mode 100644 index b08e3654114..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..23)::23 - [@{}] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupElement - [2..22)::20 - MarkupStartTag - [2..22)::20 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..19)::12 - [ foo='@@def'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..18)::5 - MarkupBlock - [13..15)::2 - MarkupTextLiteral - [13..14)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [14..15)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [15..18)::3 - [def] - MarkupTextLiteral - [15..18)::3 - [def] - Gen - SpanEditHandler;Accepts:Any - Text;[def]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.cspans.txt deleted file mode 100644 index 2af0b848136..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [20] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Markup block at (16:0,16 [2] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (16:0,16 [2] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [12] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [20] ) -Code span at (22:0,22 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt deleted file mode 100644 index 439763c3fb8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..23)::23 - [@{}] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupElement - [2..22)::20 - MarkupStartTag - [2..22)::20 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..19)::12 - [ foo='abc@@'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..18)::5 - MarkupLiteralAttributeValue - [13..16)::3 - [abc] - MarkupTextLiteral - [13..16)::3 - [abc] - Gen - SpanEditHandler;Accepts:Any - Text;[abc]; - MarkupBlock - [16..18)::2 - MarkupTextLiteral - [16..17)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [17..18)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.cspans.txt deleted file mode 100644 index 7af2be2c26d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [25] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (16:0,16 [2] ) (Accepts:None) - Parent: Markup block at (16:0,16 [3] ) -Markup span at (18:0,18 [1] ) (Accepts:None) - Parent: Markup block at (16:0,16 [3] ) -Markup span at (19:0,19 [4] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (24:0,24 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [25] ) -Code span at (27:0,27 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [28] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt deleted file mode 100644 index b32d5a68220..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..28)::28 - [@{}] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - CSharpStatement - [0..28)::28 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..28)::27 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..27)::25 - MarkupBlock - [2..27)::25 - MarkupElement - [2..27)::25 - MarkupStartTag - [2..27)::25 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..24)::17 - [ foo='abc @@ def'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..23)::10 - MarkupLiteralAttributeValue - [13..16)::3 - [abc] - MarkupTextLiteral - [13..16)::3 - [abc] - Gen - SpanEditHandler;Accepts:Any - Text;[abc]; - MarkupBlock - [16..19)::3 - MarkupTextLiteral - [16..18)::2 - [ @] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Transition;[@]; - MarkupEphemeralTextLiteral - [18..19)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [19..23)::4 - [ def] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..23)::3 - [def] - Gen - SpanEditHandler;Accepts:Any - Text;[def]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [24..25)::1 - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [27..28)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.cspans.txt deleted file mode 100644 index 391706d1462..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [17] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [9] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (14:0,14 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [9] ) -Markup span at (16:0,16 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [17] ) -Code span at (19:0,19 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (19:0,19 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt deleted file mode 100644 index 9a403936c1a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..20)::20 - [@{}] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..19)::17 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..16)::9 - [ foo='@@'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..15)::2 - MarkupBlock - [13..15)::2 - MarkupTextLiteral - [13..14)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [14..15)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [19..20)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.cspans.txt deleted file mode 100644 index 26e0bdca066..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [42] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [34] ) -Markup span at (13:0,13 [11] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [34] ) -Markup span at (24:0,24 [4] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [34] ) -Markup span at (28:0,28 [1] ) (Accepts:None) - Parent: Markup block at (28:0,28 [2] ) -Markup span at (29:0,29 [1] ) (Accepts:None) - Parent: Markup block at (28:0,28 [2] ) -Markup span at (30:0,30 [7] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [34] ) -Markup span at (37:0,37 [2] ) (Accepts:None) - Parent: Markup block at (37:0,37 [3] ) -Markup span at (39:0,39 [1] ) (Accepts:None) - Parent: Markup block at (37:0,37 [3] ) -Markup span at (40:0,40 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [34] ) -Markup span at (41:0,41 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [42] ) -Code span at (44:0,44 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [45] ) -MetaCode span at (44:0,44 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -Markup span at (45:0,45 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt deleted file mode 100644 index 480eaf7a512..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..45)::45 - [@{}] - MarkupBlock - [0..45)::45 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..45)::45 - CSharpStatement - [0..45)::45 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..45)::44 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..44)::42 - MarkupBlock - [2..44)::42 - MarkupElement - [2..44)::42 - MarkupStartTag - [2..44)::42 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..41)::34 - [ foo='abc@def.com abc@@def.com @@'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..40)::27 - MarkupLiteralAttributeValue - [13..24)::11 - [abc@def.com] - MarkupTextLiteral - [13..24)::11 - [abc@def.com] - Gen - SpanEditHandler;Accepts:Any - Text;[abc@def.com]; - MarkupLiteralAttributeValue - [24..28)::4 - [ abc] - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [25..28)::3 - [abc] - Gen - SpanEditHandler;Accepts:Any - Text;[abc]; - MarkupBlock - [28..30)::2 - MarkupTextLiteral - [28..29)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [29..30)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [30..37)::7 - [def.com] - MarkupTextLiteral - [30..37)::7 - [def.com] - Gen - SpanEditHandler;Accepts:Any - Text;[def.com]; - MarkupBlock - [37..40)::3 - MarkupTextLiteral - [37..39)::2 - [ @] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Transition;[@]; - MarkupEphemeralTextLiteral - [39..40)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [41..42)::1 - MarkupTextLiteral - [41..42)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.cspans.txt deleted file mode 100644 index bc10454e415..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [118] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [118] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [118] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [115] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [107] ) -Markup span at (13:0,13 [32] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [107] ) -Markup span at (45:0,45 [1] ) (Accepts:None) - Parent: Markup block at (45:0,45 [2] ) -Markup span at (46:0,46 [1] ) (Accepts:None) - Parent: Markup block at (45:0,45 [2] ) -Markup span at (47:0,47 [66] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [107] ) -Markup span at (113:0,113 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [107] ) -Markup span at (114:0,114 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [115] ) -Code span at (117:0,117 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [118] ) -MetaCode span at (117:0,117 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [118] ) -Markup span at (118:0,118 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [118] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt deleted file mode 100644 index 3f25fa17821..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt +++ /dev/null @@ -1,92 +0,0 @@ -RazorDocument - [0..118)::118 - [@{}] - MarkupBlock - [0..118)::118 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..118)::118 - CSharpStatement - [0..118)::118 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..118)::117 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..117)::115 - MarkupBlock - [2..117)::115 - MarkupElement - [2..117)::115 - MarkupStartTag - [2..117)::115 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..114)::107 - [ foo="/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@@[a-z0-9]([a-z0-9-]*[a-z0-9])?\.([a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..113)::100 - MarkupLiteralAttributeValue - [13..45)::32 - [/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+] - MarkupTextLiteral - [13..45)::32 - [/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - Text;[^]; - LeftBracket;[[]; - Text;[a-z0-9]; - Bang;[!]; - Text;[#$%&]; - SingleQuote;[']; - Text;[*+\]; - ForwardSlash;[/]; - Equals;[=]; - QuestionMark;[?]; - Text;[^_`{|}~.-]; - RightBracket;[]]; - Text;[+]; - MarkupBlock - [45..47)::2 - MarkupTextLiteral - [45..46)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [46..47)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [47..113)::66 - [[a-z0-9]([a-z0-9-]*[a-z0-9])?\.([a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i] - MarkupTextLiteral - [47..113)::66 - [[a-z0-9]([a-z0-9-]*[a-z0-9])?\.([a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[a-z0-9]; - RightBracket;[]]; - Text;[(]; - LeftBracket;[[]; - Text;[a-z0-9-]; - RightBracket;[]]; - Text;[*]; - LeftBracket;[[]; - Text;[a-z0-9]; - RightBracket;[]]; - Text;[)]; - QuestionMark;[?]; - Text;[\.(]; - LeftBracket;[[]; - Text;[a-z0-9]; - RightBracket;[]]; - Text;[(]; - LeftBracket;[[]; - Text;[a-z0-9-]; - RightBracket;[]]; - Text;[*]; - LeftBracket;[[]; - Text;[a-z0-9]; - RightBracket;[]]; - Text;[)]; - QuestionMark;[?]; - Text;[)*$]; - ForwardSlash;[/]; - Text;[i]; - MarkupTextLiteral - [113..114)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [114..115)::1 - MarkupTextLiteral - [114..115)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [117..117)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [117..118)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [118..118)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.cspans.txt deleted file mode 100644 index cac77c70653..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,47 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [121] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [121] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [121] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [118] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [15] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (14:0,14 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (15:0,15 [0] ) (Accepts:Any) - Parent: Markup block at (15:0,15 [6] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [6] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [6] ) -Code span at (17:0,17 [3] ) (Accepts:Any) - Parent: Expression block at (15:0,15 [6] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [6] ) -Markup span at (21:0,21 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [15] ) -Markup span at (22:0,22 [6] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [28] ) -Transition span at (28:0,28 [1] ) (Accepts:None) - Parent: Expression block at (28:0,28 [6] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Expression block at (28:0,28 [6] ) -Code span at (30:0,30 [3] ) (Accepts:Any) - Parent: Expression block at (28:0,28 [6] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Expression block at (28:0,28 [6] ) -Markup span at (34:0,34 [1] ) (Accepts:None) - Parent: Markup block at (34:0,34 [2] ) -Markup span at (35:0,35 [1] ) (Accepts:None) - Parent: Markup block at (34:0,34 [2] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [13] ) -Transition span at (36:0,36 [1] ) (Accepts:None) - Parent: Expression block at (36:0,36 [13] ) -Code span at (37:0,37 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (36:0,36 [13] ) -Markup span at (49:0,49 [1] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [28] ) -Markup span at (50:0,50 [6] ) (Accepts:Any) - Parent: Markup block at (50:0,50 [22] ) -Transition span at (56:0,56 [1] ) (Accepts:None) - Parent: Expression block at (56:0,56 [13] ) -Code span at (57:0,57 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (56:0,56 [13] ) -Markup span at (69:0,69 [1] ) (Accepts:None) - Parent: Markup block at (69:0,69 [2] ) -Markup span at (70:0,70 [1] ) (Accepts:None) - Parent: Markup block at (69:0,69 [2] ) -Markup span at (71:0,71 [1] ) (Accepts:Any) - Parent: Markup block at (50:0,50 [22] ) -Markup span at (72:0,72 [6] ) (Accepts:Any) - Parent: Markup block at (72:0,72 [23] ) -Transition span at (78:0,78 [1] ) (Accepts:None) - Parent: Expression block at (78:0,78 [13] ) -Code span at (79:0,79 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (78:0,78 [13] ) -Markup span at (91:0,91 [2] ) (Accepts:None) - Parent: Markup block at (91:0,91 [3] ) -Markup span at (93:0,93 [1] ) (Accepts:None) - Parent: Markup block at (91:0,91 [3] ) -Markup span at (94:0,94 [1] ) (Accepts:Any) - Parent: Markup block at (72:0,72 [23] ) -Markup span at (95:0,95 [6] ) (Accepts:Any) - Parent: Markup block at (95:0,95 [22] ) -Markup span at (101:0,101 [1] ) (Accepts:None) - Parent: Markup block at (101:0,101 [2] ) -Markup span at (102:0,102 [1] ) (Accepts:None) - Parent: Markup block at (101:0,101 [2] ) -Markup span at (103:0,103 [0] ) (Accepts:Any) - Parent: Markup block at (103:0,103 [13] ) -Transition span at (103:0,103 [1] ) (Accepts:None) - Parent: Expression block at (103:0,103 [13] ) -Code span at (104:0,104 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (103:0,103 [13] ) -Markup span at (116:0,116 [1] ) (Accepts:Any) - Parent: Markup block at (95:0,95 [22] ) -Markup span at (117:0,117 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [118] ) -Code span at (120:0,120 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [121] ) -MetaCode span at (120:0,120 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [121] ) -Markup span at (121:0,121 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [121] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt deleted file mode 100644 index 9b4efd94013..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt +++ /dev/null @@ -1,195 +0,0 @@ -RazorDocument - [0..121)::121 - [@{}] - MarkupBlock - [0..121)::121 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..121)::121 - CSharpStatement - [0..121)::121 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..121)::120 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..120)::118 - MarkupBlock - [2..120)::118 - MarkupElement - [2..120)::118 - MarkupStartTag - [2..120)::118 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..22)::15 - [ foo='@@@(2+3)'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..21)::8 - MarkupBlock - [13..15)::2 - MarkupTextLiteral - [13..14)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [14..15)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupDynamicAttributeValue - [15..21)::6 - [@(2+3)] - GenericBlock - [15..21)::6 - MarkupTextLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [15..21)::6 - CSharpExplicitExpression - [15..21)::6 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [16..21)::5 - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [17..20)::3 - CSharpExpressionLiteral - [17..20)::3 - [2+3] - Gen - SpanEditHandler;Accepts:Any - IntegerLiteral;[2]; - Plus;[+]; - IntegerLiteral;[3]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [22..50)::28 - [ bar='@(2+3)@@@DateTime.Now'] - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [23..26)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [28..49)::21 - MarkupDynamicAttributeValue - [28..34)::6 - [@(2+3)] - GenericBlock - [28..34)::6 - CSharpCodeBlock - [28..34)::6 - CSharpExplicitExpression - [28..34)::6 - CSharpTransition - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [29..34)::5 - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [30..33)::3 - CSharpExpressionLiteral - [30..33)::3 - [2+3] - Gen - SpanEditHandler;Accepts:Any - IntegerLiteral;[2]; - Plus;[+]; - IntegerLiteral;[3]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupBlock - [34..36)::2 - MarkupTextLiteral - [34..35)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [35..36)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupDynamicAttributeValue - [36..49)::13 - [@DateTime.Now] - GenericBlock - [36..49)::13 - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [36..49)::13 - CSharpImplicitExpression - [36..49)::13 - CSharpTransition - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [37..49)::12 - CSharpCodeBlock - [37..49)::12 - CSharpExpressionLiteral - [37..49)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [49..50)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [50..72)::22 - [ baz='@DateTime.Now@@'] - MarkupTextLiteral - [50..51)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [51..54)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - Equals;[=]; - MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [56..71)::15 - MarkupDynamicAttributeValue - [56..69)::13 - [@DateTime.Now] - GenericBlock - [56..69)::13 - CSharpCodeBlock - [56..69)::13 - CSharpImplicitExpression - [56..69)::13 - CSharpTransition - [56..57)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [57..69)::12 - CSharpCodeBlock - [57..69)::12 - CSharpExpressionLiteral - [57..69)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupBlock - [69..71)::2 - MarkupTextLiteral - [69..70)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [70..71)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [71..72)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [72..95)::23 - [ bat='@DateTime.Now @@'] - MarkupTextLiteral - [72..73)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [73..76)::3 - [bat] - Gen - SpanEditHandler;Accepts:Any - Text;[bat]; - Equals;[=]; - MarkupTextLiteral - [77..78)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [78..94)::16 - MarkupDynamicAttributeValue - [78..91)::13 - [@DateTime.Now] - GenericBlock - [78..91)::13 - CSharpCodeBlock - [78..91)::13 - CSharpImplicitExpression - [78..91)::13 - CSharpTransition - [78..79)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [79..91)::12 - CSharpCodeBlock - [79..91)::12 - CSharpExpressionLiteral - [79..91)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupBlock - [91..94)::3 - MarkupTextLiteral - [91..93)::2 - [ @] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Transition;[@]; - MarkupEphemeralTextLiteral - [93..94)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [94..95)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [95..117)::22 - [ zoo='@@@DateTime.Now'] - MarkupTextLiteral - [95..96)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [96..99)::3 - [zoo] - Gen - SpanEditHandler;Accepts:Any - Text;[zoo]; - Equals;[=]; - MarkupTextLiteral - [100..101)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [101..116)::15 - MarkupBlock - [101..103)::2 - MarkupTextLiteral - [101..102)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [102..103)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupDynamicAttributeValue - [103..116)::13 - [@DateTime.Now] - GenericBlock - [103..116)::13 - MarkupTextLiteral - [103..103)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [103..116)::13 - CSharpImplicitExpression - [103..116)::13 - CSharpTransition - [103..104)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [104..116)::12 - CSharpCodeBlock - [104..116)::12 - CSharpExpressionLiteral - [104..116)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [116..117)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [117..118)::1 - MarkupTextLiteral - [117..118)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [120..120)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [120..121)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [121..121)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.cspans.txt deleted file mode 100644 index 833ee8ad8aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [13] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [8] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) -Markup span at (14:0,14 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.diag.txt deleted file mode 100644 index a4e40cedd44..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "span" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                    ") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt deleted file mode 100644 index da26fe2d8fc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..15)::15 - [@{ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..15)::8 - [ foo='@@] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..15)::2 - MarkupBlock - [13..15)::2 - MarkupTextLiteral - [13..14)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [14..15)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CloseAngle;[]; - RazorMetaCode - [15..15)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.cspans.txt deleted file mode 100644 index 00335db4a8c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [10] ) -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Expression block at (13:0,13 [1] ) -Code span at (14:0,14 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (13:0,13 [1] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [2] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [1] ) -Code span at (16:0,16 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (15:0,15 [1] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [10] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [18] ) -Code span at (20:0,20 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.diag.txt deleted file mode 100644 index 4f60a724cf9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,15): Error RZ1003: A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. -(1,17): Error RZ1005: "' />}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt deleted file mode 100644 index b869f266320..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..21)::21 - [@{}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..20)::18 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..17)::10 - [ foo='@ @'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..16)::3 - MarkupDynamicAttributeValue - [13..14)::1 - [@] - GenericBlock - [13..14)::1 - CSharpCodeBlock - [13..14)::1 - CSharpImplicitExpression - [13..14)::1 - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [14..14)::0 - CSharpCodeBlock - [14..14)::0 - CSharpExpressionLiteral - [14..14)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupDynamicAttributeValue - [14..16)::2 - [ @] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - GenericBlock - [15..16)::1 - CSharpCodeBlock - [15..16)::1 - CSharpImplicitExpression - [15..16)::1 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [16..16)::0 - CSharpCodeBlock - [16..16)::0 - CSharpExpressionLiteral - [16..16)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.cspans.txt deleted file mode 100644 index e0217056a79..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -Code span at (1:0,1 [17] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [18] ) -Markup span at (18:1,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.stree.txt deleted file mode 100644 index 813ee4da1ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CapturesWhitespaceToEOLInInvalidUsingStmtAndTreatsAsFileCode.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..20)::20 - [@using LFLF] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..18)::18 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..18)::17 - [using LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[using]; - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [18..20)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.cspans.txt deleted file mode 100644 index d1b305fbf19..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:1,0 [4] ) (Accepts:Any) - Parent: Tag block at (8:1,0 [4] ) -Transition span at (12:1,4 [1] ) (Accepts:None) - Parent: Expression block at (12:1,4 [14] ) -Code span at (13:1,5 [13] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:1,4 [14] ) -Markup span at (26:1,18 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Markup span at (27:1,19 [5] ) (Accepts:Any) - Parent: Tag block at (27:1,19 [5] ) -Markup span at (32:1,24 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.diag.txt deleted file mode 100644 index 6cb7c823852..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.stree.txt deleted file mode 100644 index e576a17c44e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyHandlesInCorrectTransitionsIfImplicitExpressionParensUnclosed.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..34)::34 - [@Href(LF

                    @Html.Foo(Bar);

                    LF] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [Href(LF] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Href]; - LeftParenthesis;[(]; - NewLine;[LF]; - MarkupElement - [8..32)::24 - MarkupStartTag - [8..12)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[h1]; - CloseAngle;[>]; - CSharpCodeBlock - [12..26)::14 - CSharpImplicitExpression - [12..26)::14 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..26)::13 - CSharpCodeBlock - [13..26)::13 - CSharpExpressionLiteral - [13..26)::13 - [Html.Foo(Bar)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Foo]; - LeftParenthesis;[(]; - Identifier;[Bar]; - RightParenthesis;[)]; - MarkupTextLiteral - [26..27)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; - MarkupEndTag - [27..32)::5 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[h1]; - CloseAngle;[>]; - MarkupTextLiteral - [32..34)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.cspans.txt deleted file mode 100644 index 1ee270f4e43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [47] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [47] ) -Code span at (2:0,2 [44] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [47] ) -MetaCode span at (46:0,46 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [47] ) -Markup span at (47:0,47 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.stree.txt deleted file mode 100644 index 5825be2c7bb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesAtSignInDelimitedBlock.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..47)::47 - [@(Request["description"] ?? @photo.Description)] - MarkupBlock - [0..47)::47 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..47)::47 - CSharpExplicitExpression - [0..47)::47 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..47)::46 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..46)::44 - CSharpExpressionLiteral - [2..46)::44 - [Request["description"] ?? @photo.Description] - Gen - SpanEditHandler;Accepts:Any - Identifier;[Request]; - LeftBracket;[[]; - StringLiteral;["description"]; - RightBracket;[]]; - Whitespace;[ ]; - NullCoalesce;[??]; - Whitespace;[ ]; - Transition;[@]; - Identifier;[photo]; - Dot;[.]; - Identifier;[Description]; - RazorMetaCode - [46..47)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.cspans.txt deleted file mode 100644 index c8c6ac23dc9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [65] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [65] ) -Code span at (1:0,1 [43] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [65] ) -Markup span at (44:2,4 [3] ) (Accepts:None) - Parent: Tag block at (44:2,4 [3] ) -Markup span at (47:2,7 [7] ) (Accepts:Any) - Parent: Markup block at (44:2,4 [20] ) -Transition span at (54:2,14 [1] ) (Accepts:None) - Parent: Expression block at (54:2,14 [4] ) -Code span at (55:2,15 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (54:2,14 [4] ) -Markup span at (58:2,18 [4] ) (Accepts:None) - Parent: Tag block at (58:2,18 [4] ) -Markup span at (62:2,22 [2] ) (Accepts:None) - Parent: Markup block at (44:2,4 [20] ) -Code span at (64:3,0 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [65] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.diag.txt deleted file mode 100644 index 749c29cf56e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,15): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.stree.txt deleted file mode 100644 index 57d38b45fcd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyParsesMarkupIncorrectyAssumedToBeWithinAStatement.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..65)::65 - [@if(foo) {LF var foo = "foo bar bazLF

                    Foo is @foo

                    LF}] - MarkupBlock - [0..65)::65 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..65)::65 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..44)::43 - [if(foo) {LF var foo = "foo bar bazLF ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["foo bar baz];RZ1000(26:1,14 [1] ) - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [44..64)::20 - MarkupElement - [44..62)::18 - MarkupStartTag - [44..47)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [47..54)::7 - [Foo is ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[is]; - Whitespace;[ ]; - CSharpCodeBlock - [54..58)::4 - CSharpImplicitExpression - [54..58)::4 - CSharpTransition - [54..55)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [55..58)::3 - CSharpCodeBlock - [55..58)::3 - CSharpExpressionLiteral - [55..58)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupEndTag - [58..62)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [62..64)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [64..65)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.cspans.txt deleted file mode 100644 index 7faf3199b13..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Code span at (2:0,2 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (16:0,16 [6] ) (Accepts:None) - Parent: Tag block at (16:0,16 [6] ) -Markup span at (22:0,22 [7] ) (Accepts:None) - Parent: Tag block at (22:0,22 [7] ) -Code span at (29:0,29 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.diag.txt deleted file mode 100644 index b356fede3ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,16): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.stree.txt deleted file mode 100644 index 96792af9951..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/CorrectlyRecoversFromMissingCloseParenInExpressionWithinCode.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..30)::30 - [@{string.Format(}] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpStatement - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..30)::29 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..29)::27 - CSharpStatementLiteral - [2..16)::14 - [string.Format(] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Keyword;[string]; - Dot;[.]; - Identifier;[Format]; - LeftParenthesis;[(]; - MarkupBlock - [16..29)::13 - MarkupElement - [16..29)::13 - MarkupStartTag - [16..22)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; - MarkupEndTag - [22..29)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[html]; - CloseAngle;[>]; - CSharpStatementLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.cspans.txt deleted file mode 100644 index d06a3a71b6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.diag.txt deleted file mode 100644 index 0179da5b143..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1005: """ is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.stree.txt deleted file mode 100644 index 585e50aec9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/HandlesQuotesAfterTransition.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..2)::2 - [@"] - MarkupBlock - [0..2)::2 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..2)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.cspans.txt deleted file mode 100644 index 4607de5bf44..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:0,10 [18] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.stree.txt deleted file mode 100644 index ee3891e3350..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/IncludesUnexpectedCharacterInSingleStatementControlFlowStatementError.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..28)::28 - [@if(foo)) { var bar = foo; }] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..10)::9 - [if(foo)) ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - RightParenthesis;[)]; - Whitespace;[ ]; - MarkupTextLiteral - [10..28)::18 - [{ var bar = foo; }] - Gen - SpanEditHandler;Accepts:Any - Text;[{]; - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[bar]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[foo;]; - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.cspans.txt deleted file mode 100644 index 5f99762a704..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [2] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [2] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.diag.txt deleted file mode 100644 index 1ced8c1b883..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.stree.txt deleted file mode 100644 index 4a57c97b598..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsOpenCurlyAsCodeSpanIfEofFoundAfterOpenCurlyBrace.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..2)::2 - [@{] - MarkupBlock - [0..2)::2 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..2)::2 - CSharpStatement - [0..2)::2 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..2)::1 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..2)::0 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - Marker;[]; - RazorMetaCode - [2..2)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.cspans.txt deleted file mode 100644 index 48059498d22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [3] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [3] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [3] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [3] ) -MetaCode span at (2:0,2 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [3] ) -Markup span at (3:0,3 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.stree.txt deleted file mode 100644 index 0c76b47c33a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodOutputsZeroLengthCodeSpanIfStatementBlockEmpty.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..3)::3 - [@{}] - MarkupBlock - [0..3)::3 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..3)::3 - CSharpStatement - [0..3)::3 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..3)::2 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..2)::0 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - RazorMetaCode - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [3..3)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.cspans.txt deleted file mode 100644 index 31bcda03915..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.diag.txt deleted file mode 100644 index 84fe5838bb3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1005: "!" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.stree.txt deleted file mode 100644 index 80bf05811cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodParsesNothingIfFirstCharacterIsNotIdentifierStartOrParenOrBrace.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..4)::4 - [@!!!] - MarkupBlock - [0..4)::4 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..4)::3 - [!!!] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - Bang;[!]; - Bang;[!]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.cspans.txt deleted file mode 100644 index 609209cd3d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [9] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [9] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [9] ) -Transition span at (8:1,4 [1] ) (Accepts:None) - Parent: Expression block at (8:1,4 [1] ) -Code span at (9:1,5 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (8:1,4 [1] ) -Code span at (9:1,5 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.diag.txt deleted file mode 100644 index 5e816e75b74..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(2,6): Error RZ1004: End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.stree.txt deleted file mode 100644 index 7d98cc9690e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfEOFAfterTransitionInEmbeddedExpression.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..9)::9 - [@{LF @] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..9)::9 - CSharpStatement - [0..9)::9 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..9)::8 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - CSharpCodeBlock - [8..9)::1 - CSharpImplicitExpression - [8..9)::1 - CSharpTransition - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [9..9)::0 - CSharpCodeBlock - [9..9)::0 - CSharpExpressionLiteral - [9..9)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Marker;[]; - CSharpStatementLiteral - [9..9)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [9..9)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.cspans.txt deleted file mode 100644 index ab0be729ee0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [3] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.diag.txt deleted file mode 100644 index 1a4e7725a40..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1003: A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.stree.txt deleted file mode 100644 index 178b2eab31f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfNewlineFollowsTransition.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..3)::3 - [@LF] - MarkupBlock - [0..3)::3 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..3)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.cspans.txt deleted file mode 100644 index 4b4aec9b7bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [17] ) -Transition span at (8:1,4 [1] ) (Accepts:None) - Parent: Expression block at (8:1,4 [1] ) -Code span at (9:1,5 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (8:1,4 [1] ) -Code span at (9:1,5 [7] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (16:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (17:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.diag.txt deleted file mode 100644 index a8f6dc0930d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,6): Error RZ1003: A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.stree.txt deleted file mode 100644 index 5dbe63612f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/MethodProducesErrorIfWhitespaceBetweenTransitionAndBlockStartInEmbeddedExpr.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..17)::17 - [@{LF @ {}LF}] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpStatement - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..17)::16 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..16)::14 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - CSharpCodeBlock - [8..9)::1 - CSharpImplicitExpression - [8..9)::1 - CSharpTransition - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [9..9)::0 - CSharpCodeBlock - [9..9)::0 - CSharpExpressionLiteral - [9..9)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Marker;[]; - CSharpStatementLiteral - [9..16)::7 - [ {}LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - LeftBrace;[{]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.cspans.txt deleted file mode 100644 index 448f2a72aab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [13] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Markup block at (10:0,10 [13] ) -Markup span at (12:0,12 [3] ) (Accepts:None) - Parent: Tag block at (12:0,12 [3] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [13] ) -Markup span at (18:0,18 [4] ) (Accepts:None) - Parent: Tag block at (18:0,18 [4] ) -Markup span at (22:0,22 [1] ) (Accepts:None) - Parent: Markup block at (10:0,10 [13] ) -Code span at (23:0,23 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.diag.txt deleted file mode 100644 index ef1b3502c55..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(1,12): Error RZ1009: The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example: - -@if(isLoggedIn) { -

                    Hello, @user!

                    -} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.stree.txt deleted file mode 100644 index a60288cf5ae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/OutputsErrorIfAtSignFollowedByLessThanSignAtStatementStart.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..24)::24 - [@if(foo) { @

                    Bar

                    }] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..10)::9 - [if(foo) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [10..23)::13 - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [12..22)::10 - MarkupStartTag - [12..15)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [15..18)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [18..22)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [23..24)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index c989a85034a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [71] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [71] ) -Code span at (1:0,1 [70] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [71] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index f6ab309156a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,17): Error RZ1006: The catch block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 50d37af8ccb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfCatchBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..71)::71 - [@try { baz(); } catch(Foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..71)::71 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..71)::71 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..71)::70 - [try { baz(); } catch(Foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 229a40e9e58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [55] ) -MetaCode span at (1:0,1 [9] ) (Accepts:None) - Parent: Directive block at (0:0,0 [55] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [55] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [55] ) -Code span at (12:0,12 [43] ) (Accepts:Any) - Parent: Directive block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 7a30f21cb37..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,12): Error RZ1006: The functions block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 5cadb1566b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfClassBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..55)::55 - [@functions { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - RazorDirective - [0..55)::55 - Directive:{functions;CodeBlock;Unrestricted} [RZ1006(11:0,11 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..55)::54 - RazorMetaCode - [1..10)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [10..55)::45 - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [12..55)::43 - CSharpStatementLiteral - [12..55)::43 - [ var foo = bar; if(foo != null) { bar(); } ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [55..55)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 0e6427508ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -Code span at (1:0,1 [47] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [48] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 3edd08db123..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The do block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index f7c8702df0c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfDoBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..48)::48 - [@do { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..48)::48 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..48)::48 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..48)::47 - [do { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 2812db06fe1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [69] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [69] ) -Code span at (1:0,1 [68] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [69] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 1304e018e32..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,21): Error RZ1006: The else block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 4d6a99b2237..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..69)::69 - [@if(foo) { baz(); } else { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..69)::69 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..69)::69 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..69)::68 - [if(foo) { baz(); } else { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index a0e62028ce5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [72] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [72] ) -Code span at (1:0,1 [71] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [72] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index d936a1e08f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,21): Error RZ1006: The else if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index bea3035aebd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfElseIfBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..72)::72 - [@if(foo) { baz(); } else if { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..72)::72 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..72)::72 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..72)::71 - [if(foo) { baz(); } else if { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 7ce34a75dc2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [45] ) -Code span at (2:0,2 [43] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 1ced8c1b883..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 9f3ebb874bb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfExplicitCodeBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..45)::45 - [@{ var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..45)::45 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..45)::45 - CSharpStatement - [0..45)::45 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..45)::44 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - CSharpStatementLiteral - [2..45)::43 - [ var foo = bar; if(foo != null) { bar(); } ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [45..45)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index efb98ce332d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Code span at (1:0,1 [67] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [68] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index c4ee5afb665..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,17): Error RZ1006: The finally block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 7ce1b48905a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfFinallyBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..68)::68 - [@try { baz(); } finally { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..68)::68 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..68)::68 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..68)::67 - [try { baz(); } finally { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[baz]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 5c2cb289254..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Code span at (1:0,1 [54] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 2b762aec63d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The for block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 205adf9089a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..55)::55 - [@for (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..55)::54 - [for (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[for]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 1c6ed575ff0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [59] ) -Code span at (1:0,1 [58] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [59] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 06bf6f2dca6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 0572c5b99dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfForeachBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..59)::59 - [@foreach (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..59)::59 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..59)::59 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..59)::58 - [foreach (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index c6237e0e8a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [54] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [54] ) -Code span at (1:0,1 [53] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [54] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 2742101ffcc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index aa89143967f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfIfBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..54)::54 - [@if (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..54)::54 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..54)::54 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..54)::53 - [if (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 3ac1ad9b096..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Code span at (1:0,1 [55] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 08db663674c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The lock block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 759e96286c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfLockBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..56)::56 - [@lock (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..56)::56 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..56)::56 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..56)::55 - [lock (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[lock]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index e601a12186a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [58] ) -Code span at (1:0,1 [57] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [58] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 65ca04a2b24..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The switch block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index a54583efbf6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfSwitchBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..58)::58 - [@switch (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..58)::58 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..58)::58 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..58)::57 - [switch (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[switch]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index ee11c5c5119..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Code span at (1:0,1 [48] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 1b9bc8df7f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The try block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 7c5b8b4d7d1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfTryBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..49)::49 - [@try { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..49)::49 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..49)::49 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..49)::48 - [try { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 160fbdc6813..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Code span at (1:0,1 [56] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [57] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 1a15e5d4919..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The using block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index 82d612293e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfUsingBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..57)::57 - [@using (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..57)::57 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..57)::57 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..57)::56 - [using (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[using]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.cspans.txt deleted file mode 100644 index 160fbdc6813..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Code span at (1:0,1 [56] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [57] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.diag.txt deleted file mode 100644 index 8eb38d89115..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The while block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.stree.txt deleted file mode 100644 index fc413e23b17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ReportsErrorIfWhileBlockUnterminatedAtEOF.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..57)::57 - [@while (foo) { var foo = bar; if(foo != null) { bar(); } ] - MarkupBlock - [0..57)::57 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..57)::57 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..57)::56 - [while (foo) { var foo = bar; if(foo != null) { bar(); } ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.cspans.txt deleted file mode 100644 index ab58e6a89e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [59] ) -Code span at (1:0,1 [8] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [59] ) -Markup span at (9:0,9 [3] ) (Accepts:None) - Parent: Tag block at (9:0,9 [3] ) -Markup span at (12:0,12 [3] ) (Accepts:Any) - Parent: Markup block at (9:0,9 [11] ) -Markup span at (15:0,15 [4] ) (Accepts:None) - Parent: Tag block at (15:0,15 [4] ) -Markup span at (19:0,19 [1] ) (Accepts:None) - Parent: Markup block at (9:0,9 [11] ) -Code span at (20:0,20 [13] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [59] ) -Markup span at (33:0,33 [3] ) (Accepts:None) - Parent: Tag block at (33:0,33 [3] ) -Markup span at (36:0,36 [3] ) (Accepts:Any) - Parent: Markup block at (33:0,33 [11] ) -Markup span at (39:0,39 [4] ) (Accepts:None) - Parent: Tag block at (39:0,39 [4] ) -Markup span at (43:0,43 [1] ) (Accepts:None) - Parent: Markup block at (33:0,33 [11] ) -Code span at (44:0,44 [5] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [59] ) -Markup span at (49:0,49 [3] ) (Accepts:None) - Parent: Tag block at (49:0,49 [3] ) -Markup span at (52:0,52 [3] ) (Accepts:Any) - Parent: Markup block at (49:0,49 [10] ) -Markup span at (55:0,55 [4] ) (Accepts:None) - Parent: Tag block at (55:0,55 [4] ) -Code span at (59:0,59 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [59] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.diag.txt deleted file mode 100644 index c18bec89a90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,10): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -(1,34): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -(1,50): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.stree.txt deleted file mode 100644 index 8d4a69e8238..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/RequiresControlFlowStatementsToHaveBraces.stree.txt +++ /dev/null @@ -1,69 +0,0 @@ -RazorDocument - [0..59)::59 - [@if(foo)

                    Bar

                    else if(bar)

                    Baz

                    else

                    Boz

                    ] - MarkupBlock - [0..59)::59 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..59)::59 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..9)::8 - [if(foo) ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - MarkupBlock - [9..20)::11 - MarkupElement - [9..19)::10 - MarkupStartTag - [9..12)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [12..15)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [15..19)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [20..33)::13 - [else if(bar) ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - MarkupBlock - [33..44)::11 - MarkupElement - [33..43)::10 - MarkupStartTag - [33..36)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [36..39)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupEndTag - [39..43)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [44..49)::5 - [else ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[else]; - Whitespace;[ ]; - MarkupBlock - [49..59)::10 - MarkupElement - [49..59)::10 - MarkupStartTag - [49..52)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [52..55)::3 - [Boz] - Gen - SpanEditHandler;Accepts:Any - Text;[Boz]; - MarkupEndTag - [55..59)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [59..59)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.cspans.txt deleted file mode 100644 index 326a3408726..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Code span at (1:0,1 [11] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (12:1,6 [1] ) (Accepts:Any) - Parent: Markup block at (12:1,6 [12] ) -Markup span at (13:1,7 [3] ) (Accepts:None) - Parent: Tag block at (13:1,7 [3] ) -Markup span at (16:1,10 [3] ) (Accepts:Any) - Parent: Markup block at (12:1,6 [12] ) -Markup span at (19:1,13 [4] ) (Accepts:None) - Parent: Tag block at (19:1,13 [4] ) -Markup span at (23:1,17 [1] ) (Accepts:None) - Parent: Markup block at (12:1,6 [12] ) -Code span at (24:1,18 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:1,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.diag.txt deleted file mode 100644 index a08a836e656..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.stree.txt deleted file mode 100644 index 15e925d411c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ResumesIfStatementAfterOpenParen.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..25)::25 - [@if(LFelse {

                    Foo

                    }] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..12)::11 - [if(LFelse {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - NewLine;[LF]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [12..24)::12 - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [13..23)::10 - MarkupStartTag - [13..16)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [16..19)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [19..23)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [24..25)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.cspans.txt deleted file mode 100644 index ac4d17eea7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [23] ) -Code span at (1:0,1 [22] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.diag.txt deleted file mode 100644 index 5df09fd6683..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.stree.txt deleted file mode 100644 index aaccbd8bc2a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfBracketInImplicitExpressionUnclosed.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..23)::23 - [@Foo[Bar[Baz]LFBizLFBoz] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpImplicitExpression - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..23)::22 - CSharpCodeBlock - [1..23)::22 - CSharpExpressionLiteral - [1..23)::22 - [Foo[Bar[Baz]LFBizLFBoz] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - LeftBracket;[[]; - Identifier;[Bar]; - LeftBracket;[[]; - Identifier;[Baz]; - RightBracket;[]]; - NewLine;[LF]; - Identifier;[Biz]; - NewLine;[LF]; - Identifier;[Boz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.cspans.txt deleted file mode 100644 index 65434a2d4c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -Code span at (2:0,2 [12] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.diag.txt deleted file mode 100644 index 0b063402e61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.stree.txt deleted file mode 100644 index 1780ed95e90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfIfParenInExplicitExprUnclosed.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..14)::14 - [@(foo barLFbaz] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpExplicitExpression - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..14)::13 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..14)::12 - CSharpExpressionLiteral - [2..14)::12 - [foo barLFbaz] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - NewLine;[LF]; - Identifier;[baz]; - RazorMetaCode - [14..14)::0 - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.cspans.txt deleted file mode 100644 index ac4d17eea7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [23] ) -Code span at (1:0,1 [22] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.diag.txt deleted file mode 100644 index ade6c85b252..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.stree.txt deleted file mode 100644 index 13233f5339c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtEOFIfParenInImplicitExprUnclosed.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..23)::23 - [@Foo(Bar(Baz)LFBizLFBoz] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpImplicitExpression - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..23)::22 - CSharpCodeBlock - [1..23)::22 - CSharpExpressionLiteral - [1..23)::22 - [Foo(Bar(Baz)LFBizLFBoz] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - LeftParenthesis;[(]; - Identifier;[Bar]; - LeftParenthesis;[(]; - Identifier;[Baz]; - RightParenthesis;[)]; - NewLine;[LF]; - Identifier;[Biz]; - NewLine;[LF]; - Identifier;[Boz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.cspans.txt deleted file mode 100644 index fb4c14a8e85..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [20] ) -Markup span at (20:2,0 [3] ) (Accepts:Any) - Parent: Tag block at (20:2,0 [3] ) -Markup span at (23:2,3 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Markup span at (30:4,0 [4] ) (Accepts:Any) - Parent: Tag block at (30:4,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.diag.txt deleted file mode 100644 index 5df09fd6683..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.stree.txt deleted file mode 100644 index d1f29340087..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfBracketInImplicitExprUnclosed.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..34)::34 - [@Foo[Bar[Baz]LFBizLFLFBozLF] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpImplicitExpression - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..20)::19 - CSharpCodeBlock - [1..20)::19 - CSharpExpressionLiteral - [1..20)::19 - [Foo[Bar[Baz]LFBizLF] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - LeftBracket;[[]; - Identifier;[Bar]; - LeftBracket;[[]; - Identifier;[Baz]; - RightBracket;[]]; - NewLine;[LF]; - Identifier;[Biz]; - NewLine;[LF]; - MarkupElement - [20..34)::14 - MarkupStartTag - [20..23)::3 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[b]; - CloseAngle;[>]; - MarkupTextLiteral - [23..30)::7 - [LFBozLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[Boz]; - NewLine;[LF]; - MarkupEndTag - [30..34)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[b]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.cspans.txt deleted file mode 100644 index e7181851fb3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [11] ) -Code span at (2:0,2 [9] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [11] ) -Markup span at (11:1,0 [6] ) (Accepts:Any) - Parent: Tag block at (11:1,0 [6] ) -Markup span at (17:1,6 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (24:3,0 [6] ) (Accepts:Any) - Parent: Tag block at (24:3,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.diag.txt deleted file mode 100644 index 0b063402e61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.stree.txt deleted file mode 100644 index 0698d6ddec3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfIfParenInExplicitExprUnclosed.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..30)::30 - [@(foo barLFLFbazLF - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpExplicitExpression - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..11)::9 - CSharpExpressionLiteral - [2..11)::9 - [foo barLF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - NewLine;[LF]; - RazorMetaCode - [11..11)::0 - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[]; - MarkupElement - [11..30)::19 - MarkupStartTag - [11..17)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; - MarkupTextLiteral - [17..24)::7 - [LFbazLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[baz]; - NewLine;[LF]; - MarkupEndTag - [24..30)::6 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[html]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.cspans.txt deleted file mode 100644 index 0d8a457d269..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [20] ) -Markup span at (20:2,0 [6] ) (Accepts:Any) - Parent: Tag block at (20:2,0 [6] ) -Markup span at (26:2,6 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Markup span at (33:4,0 [7] ) (Accepts:Any) - Parent: Tag block at (33:4,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.diag.txt deleted file mode 100644 index ade6c85b252..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.stree.txt deleted file mode 100644 index bb1196c88e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/ShouldReportErrorAndTerminateAtMarkupIfParenInImplicitExpressionUnclosed.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..40)::40 - [@Foo(Bar(Baz)LFBizLFLFBozLF] - MarkupBlock - [0..40)::40 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpImplicitExpression - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..20)::19 - CSharpCodeBlock - [1..20)::19 - CSharpExpressionLiteral - [1..20)::19 - [Foo(Bar(Baz)LFBizLF] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - LeftParenthesis;[(]; - Identifier;[Bar]; - LeftParenthesis;[(]; - Identifier;[Baz]; - RightParenthesis;[)]; - NewLine;[LF]; - Identifier;[Biz]; - NewLine;[LF]; - MarkupElement - [20..40)::20 - MarkupStartTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; - MarkupTextLiteral - [26..33)::7 - [LFBozLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[Boz]; - NewLine;[LF]; - MarkupEndTag - [33..40)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt deleted file mode 100644 index 6e9d7655532..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -Code span at (1:0,1 [17] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [18] ) -Markup span at (18:1,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt deleted file mode 100644 index a40df1a410c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt deleted file mode 100644 index 6e28bbcdf9d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesForeachBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..21)::21 - [@foreach(foo barLFbaz] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..18)::18 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..18)::17 - [foreach(foo barLF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - NewLine;[LF]; - MarkupTextLiteral - [18..21)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt deleted file mode 100644 index 9ca26d65c8c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [13] ) -Code span at (1:0,1 [12] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [13] ) -Markup span at (13:1,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt deleted file mode 100644 index a08a836e656..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt deleted file mode 100644 index 581e95bb660..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesIfBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..16)::16 - [@if(foo barLFbaz] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..13)::13 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..13)::12 - [if(foo barLF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - NewLine;[LF]; - MarkupTextLiteral - [13..16)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.cspans.txt deleted file mode 100644 index 451037e71bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Code span at (1:0,1 [41] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.diag.txt deleted file mode 100644 index 73d5e27b67f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,13): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.stree.txt deleted file mode 100644 index 272bf0ce6f1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalCSharpStringsAtEOLIfEndQuoteMissing.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..42)::42 - [@if(foo) {LF var p = "foo bar bazLF;LF}] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..42)::41 - [if(foo) {LF var p = "foo bar bazLF;LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[p]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["foo bar baz];RZ1000(24:1,12 [1] ) - NewLine;[LF]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.cspans.txt deleted file mode 100644 index 70b420119b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Code span at (1:0,1 [45] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.diag.txt deleted file mode 100644 index a49f8402046..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,22): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.stree.txt deleted file mode 100644 index 21169374725..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesNormalStringAtEndOfFile.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..46)::46 - [@if(foo) { var foo = "blah blah blah blah blah] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..46)::45 - [if(foo) { var foo = "blah blah blah blah blah] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["blah blah blah blah blah];RZ1000(21:0,21 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt deleted file mode 100644 index baf2c5c1f88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Code span at (1:0,1 [15] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (16:1,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt deleted file mode 100644 index a8733967dec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt deleted file mode 100644 index 2d8984304fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesUsingBlockAtEOLWhenRecoveringFromMissingCloseParen.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..19)::19 - [@using(foo barLFbaz] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..16)::15 - [using(foo barLF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[using]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - NewLine;[LF]; - MarkupTextLiteral - [16..19)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.cspans.txt deleted file mode 100644 index cd8e624ee16..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [61] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [61] ) -Code span at (1:0,1 [60] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [61] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.diag.txt deleted file mode 100644 index a49f8402046..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The if block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,22): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.stree.txt deleted file mode 100644 index 67afb3874b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesVerbatimStringAtEndOfFile.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..61)::61 - [@if(foo) { var foo = @"blah LFblah; LF

                    Foo

                    LFblah LFblah] - MarkupBlock - [0..61)::61 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..61)::61 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..61)::60 - [if(foo) { var foo = @"blah LFblah; LF

                    Foo

                    LFblah LFblah] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;[@"blah LFblah; LF

                    Foo

                    LFblah LFblah];RZ1000(21:0,21 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt deleted file mode 100644 index afd9a6256ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (1:0,1 [22] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:1,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.diag.txt deleted file mode 100644 index 0d2c452b133..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.stree.txt deleted file mode 100644 index 01f031ed085..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/TerminatesWhileClauseInDoStmtAtEOLWhenRecoveringFromMissingCloseParen.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..26)::26 - [@do { } while(foo barLFbaz] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..23)::22 - [do { } while(foo barLF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Identifier;[bar]; - NewLine;[LF]; - MarkupTextLiteral - [23..26)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.cspans.txt deleted file mode 100644 index e6cc0f0ab4f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -Code span at (1:0,1 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [7] ) -Markup span at (7:0,7 [14] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.diag.txt deleted file mode 100644 index dafdc8f2e99..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1002: The helper directive is not supported. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.stree.txt deleted file mode 100644 index 2edf3b29c05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithHelperDirectiveProducesError.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..21)::21 - [@helper fooHelper { }] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpImplicitExpression - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..7)::6 - CSharpCodeBlock - [1..7)::6 - CSharpExpressionLiteral - [1..7)::6 - [helper] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[helper]; - MarkupTextLiteral - [7..21)::14 - [ fooHelper { }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[fooHelper]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.cspans.txt deleted file mode 100644 index c9fe98a8497..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) -Transition span at (6:0,6 [1] ) (Accepts:None) - Parent: Statement block at (6:0,6 [3] ) -MetaCode span at (7:0,7 [1] ) (Accepts:None) - Parent: Statement block at (6:0,6 [3] ) -Code span at (8:0,8 [0] ) (Accepts:Any) - Parent: Statement block at (6:0,6 [3] ) -MetaCode span at (8:0,8 [1] ) (Accepts:None) - Parent: Statement block at (6:0,6 [3] ) -Code span at (9:0,9 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.diag.txt deleted file mode 100644 index 302b6415805..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ1010: Unexpected "{" after "@" character. Once inside the body of a code block (@if {}, @{}, etc.) you do not need to use "@{" to switch to code. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.stree.txt deleted file mode 100644 index 7b55422dd67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpErrorTest/WithNestedCodeBlockProducesError.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..11)::11 - [@if { @{} }] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..6)::5 - [if { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [6..9)::3 - CSharpStatement - [6..9)::3 - CSharpTransition - [6..7)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [7..9)::2 - RazorMetaCode - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [8..8)::0 - CSharpStatementLiteral - [8..8)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - RazorMetaCode - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - CSharpStatementLiteral - [9..11)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.cspans.txt deleted file mode 100644 index a09a5507a81..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [9] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [9] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [9] ) -MetaCode span at (8:0,8 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [9] ) -Markup span at (9:0,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.stree.txt deleted file mode 100644 index b32100887b9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInNonVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..9)::9 - [@("\"\"")] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..9)::9 - CSharpExplicitExpression - [0..9)::9 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..9)::8 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..8)::6 - CSharpExpressionLiteral - [2..8)::6 - ["\"\""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;["\"\""]; - RazorMetaCode - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [9..9)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.cspans.txt deleted file mode 100644 index b867104f467..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (2:0,2 [7] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [10] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.stree.txt deleted file mode 100644 index 4e2a0d3ee86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptConsecutiveEscapedQuotesInVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..10)::10 - [@(@"""""")] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpExplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..9)::7 - CSharpExpressionLiteral - [2..9)::7 - [@""""""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;[@""""""]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.cspans.txt deleted file mode 100644 index 00911f1902f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -Code span at (2:0,2 [4] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [7] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -Markup span at (7:0,7 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.stree.txt deleted file mode 100644 index f6b8e386654..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInNonVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..7)::7 - [@("\"")] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpExplicitExpression - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..7)::6 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..6)::4 - CSharpExpressionLiteral - [2..6)::4 - ["\""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;["\""]; - RazorMetaCode - [6..7)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [7..7)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.cspans.txt deleted file mode 100644 index a8175e85d98..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (2:0,2 [5] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [8] ) -MetaCode span at (7:0,7 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.stree.txt deleted file mode 100644 index 3103f0223fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptEscapedQuoteInVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..8)::8 - [@(@"""")] - MarkupBlock - [0..8)::8 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpExplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..8)::7 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..7)::5 - CSharpExpressionLiteral - [2..7)::5 - [@""""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;[@""""]; - RazorMetaCode - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [8..8)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.cspans.txt deleted file mode 100644 index 1f223ecaf09..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [23] ) -Code span at (2:0,2 [20] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [23] ) -MetaCode span at (22:4,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [23] ) -Markup span at (23:4,2 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.stree.txt deleted file mode 100644 index 4120fe5a0c1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultiLineVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..23)::23 - [@(@"LFFooLFBarLFBazLF")] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpExplicitExpression - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..22)::20 - CSharpExpressionLiteral - [2..22)::20 - [@"LFFooLFBarLFBazLF"] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;[@"LFFooLFBarLFBazLF"]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.cspans.txt deleted file mode 100644 index e40d1842654..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [21] ) -Code span at (2:0,2 [18] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.stree.txt deleted file mode 100644 index 6444a0ba447..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInNonVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..21)::21 - [@("\"hello, world\"")] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpExplicitExpression - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..20)::18 - CSharpExpressionLiteral - [2..20)::18 - ["\"hello, world\""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;["\"hello, world\""]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.cspans.txt deleted file mode 100644 index a45c531d174..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [22] ) -Code span at (2:0,2 [19] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [22] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.stree.txt deleted file mode 100644 index d68a700afc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleEscapedQuotesInVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..22)::22 - [@(@"""hello, world""")] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpExplicitExpression - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..21)::19 - CSharpExpressionLiteral - [2..21)::19 - [@"""hello, world"""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;[@"""hello, world"""]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.cspans.txt deleted file mode 100644 index b867104f467..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (2:0,2 [7] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [10] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.stree.txt deleted file mode 100644 index 4e2a0d3ee86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldAcceptMultipleRepeatedEscapedQuoteInVerbatimStrings.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..10)::10 - [@(@"""""")] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpExplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..9)::7 - CSharpExpressionLiteral - [2..9)::7 - [@""""""] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;[@""""""]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.cspans.txt deleted file mode 100644 index db00568920c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [2] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [2] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.diag.txt deleted file mode 100644 index 0b063402e61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The explicit expression block is missing a closing ")" character. Make sure you have a matching ")" character for all the "(" characters within this block, and that none of the ")" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.stree.txt deleted file mode 100644 index 7aa4d7138c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfEOFOccursAfterStartOfExplicitExpr.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..2)::2 - [@(] - MarkupBlock - [0..2)::2 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..2)::2 - CSharpExplicitExpression - [0..2)::2 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..2)::1 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..2)::0 - CSharpExpressionLiteral - [2..2)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [2..2)::0 - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.cspans.txt deleted file mode 100644 index 65a3c41a925..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [3] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [3] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [3] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [3] ) -MetaCode span at (2:0,2 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [3] ) -Markup span at (3:0,3 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.stree.txt deleted file mode 100644 index 07a566bf893..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpExplicitExpressionTest/ShouldOutputZeroLengthCodeSpanIfExplicitExpressionIsEmpty.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..3)::3 - [@()] - MarkupBlock - [0..3)::3 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..3)::3 - CSharpExplicitExpression - [0..3)::3 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..3)::2 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..2)::0 - CSharpExpressionLiteral - [2..2)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [3..3)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.cspans.txt deleted file mode 100644 index ad756e73a26..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [147] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [145] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [145] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [145] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [145] ) -Code span at (14:1,12 [130] ) (Accepts:Any) - Parent: Directive block at (2:1,0 [145] ) -MetaCode span at (144:6,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [145] ) -Markup span at (147:7,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [147] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.stree.txt deleted file mode 100644 index 96b51d354ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement.stree.txt +++ /dev/null @@ -1,62 +0,0 @@ -RazorDocument - [0..147)::147 - [LF@functions {LF string GetAnnouncmentText(string message)LF {LF if (message.Length > 0) return "Anouncement: " + message;LF }LF}LF] - MarkupBlock - [0..147)::147 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..147)::145 - RazorDirective - [2..147)::145 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..147)::144 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..147)::135 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..144)::130 - CSharpStatementLiteral - [14..144)::130 - [LF string GetAnnouncmentText(string message)LF {LF if (message.Length > 0) return "Anouncement: " + message;LF }LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[GetAnnouncmentText]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[message]; - Dot;[.]; - Identifier;[Length]; - Whitespace;[ ]; - GreaterThan;[>]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[return]; - Whitespace;[ ]; - StringLiteral;["Anouncement: "]; - Whitespace;[ ]; - Plus;[+]; - Whitespace;[ ]; - Identifier;[message]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [144..147)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [147..147)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.cspans.txt deleted file mode 100644 index 223c39f5de2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.cspans.txt +++ /dev/null @@ -1,36 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [408] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [406] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [406] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [406] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [406] ) -Code span at (14:1,12 [88] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -Markup span at (102:4,32 [3] ) (Accepts:None) - Parent: Tag block at (102:4,32 [3] ) -Markup span at (105:4,35 [9] ) (Accepts:Any) - Parent: Markup block at (102:4,32 [26] ) -Transition span at (114:4,44 [1] ) (Accepts:None) - Parent: Expression block at (114:4,44 [8] ) -Code span at (115:4,45 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (114:4,44 [8] ) -Markup span at (122:4,52 [4] ) (Accepts:None) - Parent: Tag block at (122:4,52 [4] ) -Markup span at (126:4,56 [2] ) (Accepts:None) - Parent: Markup block at (102:4,32 [26] ) -Code span at (128:5,0 [78] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -Markup span at (206:8,12 [3] ) (Accepts:None) - Parent: Tag block at (206:8,12 [3] ) -Markup span at (209:8,15 [16] ) (Accepts:Any) - Parent: Markup block at (206:8,12 [25] ) -Markup span at (225:8,31 [4] ) (Accepts:None) - Parent: Tag block at (225:8,31 [4] ) -Markup span at (229:8,35 [2] ) (Accepts:None) - Parent: Markup block at (206:8,12 [25] ) -Code span at (231:9,0 [61] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -Transition span at (292:11,12 [1] ) (Accepts:None) - Parent: Markup block at (292:11,12 [27] ) -MetaCode span at (293:11,13 [1] ) (Accepts:Any) - Parent: Markup block at (292:11,12 [27] ) -Markup span at (294:11,14 [14] ) (Accepts:Any) - Parent: Markup block at (292:11,12 [27] ) -Transition span at (308:11,28 [1] ) (Accepts:None) - Parent: Expression block at (308:11,28 [5] ) -Code span at (309:11,29 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (308:11,28 [5] ) -Markup span at (313:11,33 [6] ) (Accepts:None) - Parent: Markup block at (292:11,12 [27] ) -Code span at (319:12,0 [31] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -Code span at (350:13,29 [1] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -Code span at (351:13,30 [20] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -Markup span at (371:13,50 [8] ) (Accepts:None) - Parent: Tag block at (371:13,50 [8] ) -Markup span at (379:13,58 [0] ) (Accepts:Any) - Parent: Markup block at (371:13,50 [27] ) -Transition span at (379:13,58 [1] ) (Accepts:None) - Parent: Expression block at (379:13,58 [8] ) -Code span at (380:13,59 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (379:13,58 [8] ) -Markup span at (387:13,66 [9] ) (Accepts:None) - Parent: Tag block at (387:13,66 [9] ) -Markup span at (396:13,75 [2] ) (Accepts:None) - Parent: Markup block at (371:13,50 [27] ) -Code span at (398:14,0 [7] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [391] ) -MetaCode span at (405:15,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [406] ) -Markup span at (408:16,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [408] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.diag.txt deleted file mode 100644 index f661098862d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.diag.txt +++ /dev/null @@ -1,4 +0,0 @@ -(5,33): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -(9,13): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -(12,13): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". -(14,30): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.stree.txt deleted file mode 100644 index 03065213c00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/Functions_SingleLineControlFlowStatement_Error.stree.txt +++ /dev/null @@ -1,208 +0,0 @@ -RazorDocument - [0..408)::408 - [LF@functions {LF string GetAnnouncmentText(string message)LF {LF if (message.Length > 0)

                    Message: @message

                    LFLF if (message == null)LF // Nothing to renderLF

                    Message was null

                    LFLF if (DateTime.Now.ToBinary() % 2 == 0)LF @:

                    The time: @time

                    LFLF if (message != null) @@SomeGitHubUserName @messageLF }LF}LF] - MarkupBlock - [0..408)::408 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..408)::406 - RazorDirective - [2..408)::406 - Directive:{functions;CodeBlock;Unrestricted} [RZ1008(102:4,32 [1] ), RZ1008(206:8,12 [1] ), RZ1008(292:11,12 [2] ), RZ1008(350:13,29 [2] )] - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..408)::405 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..408)::396 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..405)::391 - CSharpStatementLiteral - [14..102)::88 - [LF string GetAnnouncmentText(string message)LF {LF if (message.Length > 0) ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[GetAnnouncmentText]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[message]; - Dot;[.]; - Identifier;[Length]; - Whitespace;[ ]; - GreaterThan;[>]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - Whitespace;[ ]; - MarkupBlock - [102..128)::26 - MarkupElement - [102..126)::24 - MarkupStartTag - [102..105)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [105..114)::9 - [Message: ] - Gen - SpanEditHandler;Accepts:Any - Text;[Message:]; - Whitespace;[ ]; - CSharpCodeBlock - [114..122)::8 - CSharpImplicitExpression - [114..122)::8 - CSharpTransition - [114..115)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [115..122)::7 - CSharpCodeBlock - [115..122)::7 - CSharpExpressionLiteral - [115..122)::7 - [message] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[message]; - MarkupEndTag - [122..126)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [126..128)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [128..206)::78 - [LF if (message == null)LF // Nothing to renderLF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[message]; - Whitespace;[ ]; - Equals;[==]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - CSharpComment;[// Nothing to render]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [206..231)::25 - MarkupElement - [206..229)::23 - MarkupStartTag - [206..209)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [209..225)::16 - [Message was null] - Gen - SpanEditHandler;Accepts:Any - Text;[Message]; - Whitespace;[ ]; - Text;[was]; - Whitespace;[ ]; - Text;[null]; - MarkupEndTag - [225..229)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [229..231)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [231..292)::61 - [LF if (DateTime.Now.ToBinary() % 2 == 0)LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - Dot;[.]; - Identifier;[ToBinary]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Whitespace;[ ]; - Modulo;[%]; - Whitespace;[ ]; - IntegerLiteral;[2]; - Whitespace;[ ]; - Equals;[==]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [292..319)::27 - MarkupTransition - [292..293)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [293..294)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [294..308)::14 - [

                    The time: ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - Text;[The]; - Whitespace;[ ]; - Text;[time:]; - Whitespace;[ ]; - CSharpCodeBlock - [308..313)::5 - CSharpImplicitExpression - [308..313)::5 - CSharpTransition - [308..309)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [309..313)::4 - CSharpCodeBlock - [309..313)::4 - CSharpExpressionLiteral - [309..313)::4 - [time] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[time]; - MarkupTextLiteral - [313..319)::6 - [

                    LF] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - NewLine;[LF]; - CSharpStatementLiteral - [319..350)::31 - [LF if (message != null) ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[message]; - Whitespace;[ ]; - NotEqual;[!=]; - Whitespace;[ ]; - Keyword;[null]; - RightParenthesis;[)]; - Whitespace;[ ]; - CSharpEphemeralTextLiteral - [350..351)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - CSharpStatementLiteral - [351..371)::20 - [@SomeGitHubUserName ] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Identifier;[SomeGitHubUserName]; - Whitespace;[ ]; - MarkupBlock - [371..398)::27 - MarkupElement - [371..396)::25 - MarkupStartTag - [371..379)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [379..379)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [379..387)::8 - CSharpImplicitExpression - [379..387)::8 - CSharpTransition - [379..380)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [380..387)::7 - CSharpCodeBlock - [380..387)::7 - CSharpExpressionLiteral - [380..387)::7 - [message] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[message]; - MarkupEndTag - [387..396)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [396..398)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [398..405)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [405..408)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [408..408)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.cspans.txt deleted file mode 100644 index 8253b1a0b74..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.cspans.txt +++ /dev/null @@ -1,26 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [210] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [208] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [208] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [208] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [208] ) -Code span at (14:1,12 [47] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [193] ) -Markup span at (61:4,0 [8] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [139] ) -Markup span at (69:4,8 [5] ) (Accepts:None) - Parent: Tag block at (69:4,8 [5] ) -Markup span at (74:4,13 [2] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [139] ) -Code span at (76:5,0 [12] ) (Accepts:Any) - Parent: Statement block at (76:5,0 [108] ) -Transition span at (88:5,12 [1] ) (Accepts:None) - Parent: Statement block at (76:5,0 [108] ) -Code span at (89:5,13 [40] ) (Accepts:Any) - Parent: Statement block at (76:5,0 [108] ) -Markup span at (129:7,0 [16] ) (Accepts:Any) - Parent: Markup block at (129:7,0 [40] ) -Markup span at (145:7,16 [3] ) (Accepts:None) - Parent: Tag block at (145:7,16 [3] ) -Markup span at (148:7,19 [0] ) (Accepts:Any) - Parent: Markup block at (129:7,0 [40] ) -Transition span at (148:7,19 [1] ) (Accepts:None) - Parent: Expression block at (148:7,19 [15] ) -Code span at (149:7,20 [14] ) (Accepts:NonWhitespace) - Parent: Expression block at (148:7,19 [15] ) -Markup span at (163:7,34 [4] ) (Accepts:None) - Parent: Tag block at (163:7,34 [4] ) -Markup span at (167:7,38 [2] ) (Accepts:None) - Parent: Markup block at (129:7,0 [40] ) -Code span at (169:8,0 [15] ) (Accepts:Any) - Parent: Statement block at (76:5,0 [108] ) -Markup span at (184:9,0 [8] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [139] ) -Markup span at (192:9,8 [6] ) (Accepts:None) - Parent: Tag block at (192:9,8 [6] ) -Markup span at (198:9,14 [2] ) (Accepts:None) - Parent: Markup block at (61:4,0 [139] ) -Code span at (200:10,0 [7] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [193] ) -MetaCode span at (207:11,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [208] ) -Markup span at (210:12,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [210] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.stree.txt deleted file mode 100644 index f0ad4cc26ca..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_CanContainCurlyBraces.stree.txt +++ /dev/null @@ -1,112 +0,0 @@ -RazorDocument - [0..210)::210 - [LF@functions {LF void Announcment(string message)LF {LF
                    LF @if (message.Length > 0)LF {LF

                    @message.Length

                    LF }LF
                    LF }LF}LF] - MarkupBlock - [0..210)::210 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..210)::208 - RazorDirective - [2..210)::208 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..210)::207 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..210)::198 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..207)::193 - CSharpStatementLiteral - [14..61)::47 - [LF void Announcment(string message)LF {LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [61..200)::139 - MarkupTextLiteral - [61..69)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [69..198)::129 - MarkupStartTag - [69..74)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [74..76)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [76..184)::108 - CSharpStatementLiteral - [76..88)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpTransition - [88..89)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [89..129)::40 - [if (message.Length > 0)LF {LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[message]; - Dot;[.]; - Identifier;[Length]; - Whitespace;[ ]; - GreaterThan;[>]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [129..169)::40 - MarkupTextLiteral - [129..145)::16 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [145..167)::22 - MarkupStartTag - [145..148)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [148..148)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [148..163)::15 - CSharpImplicitExpression - [148..163)::15 - CSharpTransition - [148..149)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [149..163)::14 - CSharpCodeBlock - [149..163)::14 - CSharpExpressionLiteral - [149..163)::14 - [message.Length] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[message]; - Dot;[.]; - Identifier;[Length]; - MarkupEndTag - [163..167)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [167..169)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [169..184)::15 - [ }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [184..192)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [192..198)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [198..200)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [200..207)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [207..210)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [210..210)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.cspans.txt deleted file mode 100644 index e4bcfd4f62c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [81] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [79] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [79] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [79] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [79] ) -Code span at (14:1,12 [64] ) (Accepts:Any) - Parent: Directive block at (2:1,0 [79] ) -MetaCode span at (78:3,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [79] ) -Markup span at (81:4,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [81] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.stree.txt deleted file mode 100644 index ac779ab0347..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInString.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..81)::81 - [LF@functions {LF void Announcment(string message) => "

                    @message

                    ";LF}LF] - MarkupBlock - [0..81)::81 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..81)::79 - RazorDirective - [2..81)::79 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..81)::78 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..81)::69 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..78)::64 - CSharpStatementLiteral - [14..78)::64 - [LF void Announcment(string message) => "

                    @message

                    ";LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - Whitespace;[ ]; - GreaterThanEqual;[=>]; - Whitespace;[ ]; - StringLiteral;["

                    @message

                    "]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [78..81)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [81..81)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.cspans.txt deleted file mode 100644 index c908ca70cc1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [82] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [80] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [80] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [80] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [80] ) -Code span at (14:1,12 [65] ) (Accepts:Any) - Parent: Directive block at (2:1,0 [80] ) -MetaCode span at (79:3,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [80] ) -Markup span at (82:4,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [82] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.stree.txt deleted file mode 100644 index 262c18d238d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseMarkupInVerbatimString.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..82)::82 - [LF@functions {LF void Announcment(string message) => @"

                    @message

                    ";LF}LF] - MarkupBlock - [0..82)::82 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..82)::80 - RazorDirective - [2..82)::80 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..82)::79 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..82)::70 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..79)::65 - CSharpStatementLiteral - [14..79)::65 - [LF void Announcment(string message) => @"

                    @message

                    ";LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - Whitespace;[ ]; - GreaterThanEqual;[=>]; - Whitespace;[ ]; - StringLiteral;[@"

                    @message

                    "]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [79..82)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [82..82)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.cspans.txt deleted file mode 100644 index 3ff26adf1be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [96] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -Code span at (14:1,12 [81] ) (Accepts:Any) - Parent: Directive block at (2:1,0 [96] ) -MetaCode span at (95:6,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -Markup span at (98:7,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.stree.txt deleted file mode 100644 index c3d51822e64..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_DoesNotParseWhenNotSupported.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..98)::98 - [LF@functions {LF void Announcment(string message)LF {LF

                    @message

                    LF }LF}LF] - MarkupBlock - [0..98)::98 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..98)::96 - RazorDirective - [2..98)::96 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..98)::95 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..98)::86 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..95)::81 - CSharpStatementLiteral - [14..95)::81 - [LF void Announcment(string message)LF {LF

                    @message

                    LF }LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - LessThan;[<]; - Identifier;[h3]; - GreaterThan;[>]; - Transition;[@]; - Identifier;[message]; - LessThan;[<]; - Slash;[/]; - Identifier;[h3]; - GreaterThan;[>]; - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [95..98)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [98..98)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.cspans.txt deleted file mode 100644 index fd4fc97ed3e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.cspans.txt +++ /dev/null @@ -1,25 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [220] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [218] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [218] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [218] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [218] ) -Code span at (14:1,12 [47] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [203] ) -Markup span at (61:4,0 [8] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [149] ) -Markup span at (69:4,8 [5] ) (Accepts:None) - Parent: Tag block at (69:4,8 [5] ) -Markup span at (74:4,13 [2] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [149] ) -Code span at (76:5,0 [12] ) (Accepts:Any) - Parent: Statement block at (76:5,0 [118] ) -Transition span at (88:5,12 [1] ) (Accepts:None) - Parent: Statement block at (76:5,0 [118] ) -Code span at (89:5,13 [63] ) (Accepts:Any) - Parent: Statement block at (76:5,0 [118] ) -Transition span at (152:7,23 [1] ) (Accepts:None) - Parent: Markup block at (152:7,23 [23] ) -Markup span at (153:7,24 [3] ) (Accepts:None) - Parent: Tag block at (153:7,24 [3] ) -Markup span at (156:7,27 [0] ) (Accepts:Any) - Parent: Markup block at (152:7,23 [23] ) -Transition span at (156:7,27 [1] ) (Accepts:None) - Parent: Expression block at (156:7,27 [15] ) -Code span at (157:7,28 [14] ) (Accepts:NonWhitespace) - Parent: Expression block at (156:7,27 [15] ) -Markup span at (171:7,42 [4] ) (Accepts:None) - Parent: Tag block at (171:7,42 [4] ) -Code span at (175:7,46 [19] ) (Accepts:Any) - Parent: Statement block at (76:5,0 [118] ) -Markup span at (194:9,0 [8] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [149] ) -Markup span at (202:9,8 [6] ) (Accepts:None) - Parent: Tag block at (202:9,8 [6] ) -Markup span at (208:9,14 [2] ) (Accepts:None) - Parent: Markup block at (61:4,0 [149] ) -Code span at (210:10,0 [7] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [203] ) -MetaCode span at (217:11,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [218] ) -Markup span at (220:12,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [220] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.stree.txt deleted file mode 100644 index e6319cb6860..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_MarkupCanContainTemplate.stree.txt +++ /dev/null @@ -1,117 +0,0 @@ -RazorDocument - [0..220)::220 - [LF@functions {LF void Announcment(string message)LF {LF
                    LF @if (message.Length > 0)LF {LF Repeat(@

                    @message.Length

                    );LF }LF
                    LF }LF}LF] - MarkupBlock - [0..220)::220 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..220)::218 - RazorDirective - [2..220)::218 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..220)::217 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..220)::208 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..217)::203 - CSharpStatementLiteral - [14..61)::47 - [LF void Announcment(string message)LF {LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [61..210)::149 - MarkupTextLiteral - [61..69)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [69..208)::139 - MarkupStartTag - [69..74)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [74..76)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [76..194)::118 - CSharpStatementLiteral - [76..88)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpTransition - [88..89)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [89..152)::63 - [if (message.Length > 0)LF {LF Repeat(] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[message]; - Dot;[.]; - Identifier;[Length]; - Whitespace;[ ]; - GreaterThan;[>]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - CSharpTemplateBlock - [152..175)::23 - MarkupBlock - [152..175)::23 - MarkupTransition - [152..153)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [153..175)::22 - MarkupStartTag - [153..156)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [156..156)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [156..171)::15 - CSharpImplicitExpression - [156..171)::15 - CSharpTransition - [156..157)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [157..171)::14 - CSharpCodeBlock - [157..171)::14 - CSharpExpressionLiteral - [157..171)::14 - [message.Length] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[message]; - Dot;[.]; - Identifier;[Length]; - MarkupEndTag - [171..175)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [175..194)::19 - [);LF }LF] - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [194..202)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [202..208)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [208..210)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [210..217)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [217..220)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [220..220)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.cspans.txt deleted file mode 100644 index 4a14010156d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [96] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -Code span at (14:1,12 [47] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [81] ) -Markup span at (61:4,0 [8] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [27] ) -Markup span at (69:4,8 [4] ) (Accepts:None) - Parent: Tag block at (69:4,8 [4] ) -Markup span at (73:4,12 [0] ) (Accepts:Any) - Parent: Markup block at (61:4,0 [27] ) -Transition span at (73:4,12 [1] ) (Accepts:None) - Parent: Expression block at (73:4,12 [8] ) -Code span at (74:4,13 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (73:4,12 [8] ) -Markup span at (81:4,20 [5] ) (Accepts:None) - Parent: Tag block at (81:4,20 [5] ) -Markup span at (86:4,25 [2] ) (Accepts:None) - Parent: Markup block at (61:4,0 [27] ) -Code span at (88:5,0 [7] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [81] ) -MetaCode span at (95:6,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [96] ) -Markup span at (98:7,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.stree.txt deleted file mode 100644 index 45946374fe1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupInsideMethod.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..98)::98 - [LF@functions {LF void Announcment(string message)LF {LF

                    @message

                    LF }LF}LF] - MarkupBlock - [0..98)::98 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..98)::96 - RazorDirective - [2..98)::96 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..98)::95 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..98)::86 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..95)::81 - CSharpStatementLiteral - [14..61)::47 - [LF void Announcment(string message)LF {LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [61..88)::27 - MarkupTextLiteral - [61..69)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [69..86)::17 - MarkupStartTag - [69..73)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[h3]; - CloseAngle;[>]; - MarkupTextLiteral - [73..73)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [73..81)::8 - CSharpImplicitExpression - [73..81)::8 - CSharpTransition - [73..74)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [74..81)::7 - CSharpCodeBlock - [74..81)::7 - CSharpExpressionLiteral - [74..81)::7 - [message] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[message]; - MarkupEndTag - [81..86)::5 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[h3]; - CloseAngle;[>]; - MarkupTextLiteral - [86..88)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [88..95)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [95..98)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [98..98)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.cspans.txt deleted file mode 100644 index fbc728c657f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [78] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [76] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [76] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [76] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [76] ) -Code span at (14:1,12 [42] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [61] ) -Markup span at (56:2,40 [4] ) (Accepts:None) - Parent: Tag block at (56:2,40 [4] ) -Markup span at (60:2,44 [0] ) (Accepts:Any) - Parent: Markup block at (56:2,40 [19] ) -Transition span at (60:2,44 [1] ) (Accepts:None) - Parent: Expression block at (60:2,44 [8] ) -Code span at (61:2,45 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (60:2,44 [8] ) -Markup span at (68:2,52 [5] ) (Accepts:None) - Parent: Tag block at (68:2,52 [5] ) -Markup span at (73:2,57 [2] ) (Accepts:None) - Parent: Markup block at (56:2,40 [19] ) -Code span at (75:3,0 [0] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [61] ) -MetaCode span at (75:3,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [76] ) -Markup span at (78:4,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [78] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.stree.txt deleted file mode 100644 index e22da882cbf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/MarkupInFunctionsBlock_ParsesMarkupWithExpressionsMethod.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..78)::78 - [LF@functions {LF void Announcment(string message) =>

                    @message

                    LF}LF] - MarkupBlock - [0..78)::78 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..78)::76 - RazorDirective - [2..78)::76 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..78)::75 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..78)::66 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..75)::61 - CSharpStatementLiteral - [14..56)::42 - [LF void Announcment(string message) => ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Announcment]; - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[message]; - RightParenthesis;[)]; - Whitespace;[ ]; - GreaterThanEqual;[=>]; - Whitespace;[ ]; - MarkupBlock - [56..75)::19 - MarkupElement - [56..73)::17 - MarkupStartTag - [56..60)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[h3]; - CloseAngle;[>]; - MarkupTextLiteral - [60..60)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [60..68)::8 - CSharpImplicitExpression - [60..68)::8 - CSharpTransition - [60..61)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [61..68)::7 - CSharpCodeBlock - [61..68)::7 - CSharpExpressionLiteral - [61..68)::7 - [message] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[message]; - MarkupEndTag - [68..73)::5 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[h3]; - CloseAngle;[>]; - MarkupTextLiteral - [73..75)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [75..75)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [75..78)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [78..78)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.cspans.txt deleted file mode 100644 index 356e5dbb5da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [140] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [138] ) -MetaCode span at (3:1,1 [9] ) (Accepts:None) - Parent: Directive block at (2:1,0 [138] ) -None span at (12:1,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:1,0 [138] ) -MetaCode span at (13:1,11 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [138] ) -Code span at (14:1,12 [73] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [123] ) -Markup span at (87:6,0 [12] ) (Accepts:Any) - Parent: Markup block at (87:6,0 [32] ) -Markup span at (99:6,12 [3] ) (Accepts:None) - Parent: Tag block at (99:6,12 [3] ) -Markup span at (102:6,15 [11] ) (Accepts:Any) - Parent: Markup block at (87:6,0 [32] ) -Markup span at (113:6,26 [4] ) (Accepts:None) - Parent: Tag block at (113:6,26 [4] ) -Markup span at (117:6,30 [2] ) (Accepts:None) - Parent: Markup block at (87:6,0 [32] ) -Code span at (119:7,0 [18] ) (Accepts:Any) - Parent: Statement block at (14:1,12 [123] ) -MetaCode span at (137:9,0 [3] ) (Accepts:None) - Parent: Directive block at (2:1,0 [138] ) -Markup span at (140:10,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [140] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.stree.txt deleted file mode 100644 index f994fcb86d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpFunctionsTest/ReservedKeywordsInFunctionsBlock_WithMarkup.stree.txt +++ /dev/null @@ -1,73 +0,0 @@ -RazorDocument - [0..140)::140 - [LF@functions {LF class PersonLF {LF public void DoSomething()LF {LF

                    Just do it!

                    LF }LF }LF}LF] - MarkupBlock - [0..140)::140 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..140)::138 - RazorDirective - [2..140)::138 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..140)::137 - RazorMetaCode - [3..12)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [12..140)::128 - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [14..137)::123 - CSharpStatementLiteral - [14..87)::73 - [LF class PersonLF {LF public void DoSomething()LF {LF] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[class]; - Whitespace;[ ]; - Identifier;[Person]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[public]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[DoSomething]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [87..119)::32 - MarkupTextLiteral - [87..99)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [99..117)::18 - MarkupStartTag - [99..102)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [102..113)::11 - [Just do it!] - Gen - SpanEditHandler;Accepts:Any - Text;[Just]; - Whitespace;[ ]; - Text;[do]; - Whitespace;[ ]; - Text;[it]; - Bang;[!]; - MarkupEndTag - [113..117)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [117..119)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [119..137)::18 - [ }LF }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [137..140)::3 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [140..140)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.cspans.txt deleted file mode 100644 index 9811c622e57..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.stree.txt deleted file mode 100644 index 754aaddfacb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/AcceptsNonEnglishCharactersThatAreValidIdentifiers.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..9)::9 - [@हळूँजद॔.] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [हळूँजद॔] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[हळूँजद॔]; - MarkupTextLiteral - [8..9)::1 - [.] - Gen - SpanEditHandler;Accepts:Any - Text;[.]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.cspans.txt deleted file mode 100644 index 3af48c1d82f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.stree.txt deleted file mode 100644 index 4c51ced51ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotAcceptSemicolonIfExpressionTerminatedByWhitespace.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..6)::6 - [@foo ;] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [4..6)::2 - [ ;] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[;]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.cspans.txt deleted file mode 100644 index 9811c622e57..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.stree.txt deleted file mode 100644 index 9aeb491366e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotAtEOFInImplicitExpression.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..9)::9 - [@foo.bar.] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [foo.bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - MarkupTextLiteral - [8..9)::1 - [.] - Gen - SpanEditHandler;Accepts:Any - Text;[.]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.cspans.txt deleted file mode 100644 index fcb828addcb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.stree.txt deleted file mode 100644 index 6c80edc56e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr1.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..10)::10 - [@foo.bar.0] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [foo.bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - MarkupTextLiteral - [8..10)::2 - [.0] - Gen - SpanEditHandler;Accepts:Any - Text;[.0]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.cspans.txt deleted file mode 100644 index 3da06726a76..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Markup span at (9:0,9 [4] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.stree.txt deleted file mode 100644 index ab3a3eaa71e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeDotFollowedByInvalidIdentifierCharInImplicitExpr2.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..13)::13 - [@foo.bar.

                    ] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [foo.bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - MarkupTextLiteral - [8..9)::1 - [.] - Gen - SpanEditHandler;Accepts:Any - Text;[.]; - MarkupElement - [9..13)::4 - MarkupEndTag - [9..13)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.cspans.txt deleted file mode 100644 index fcb828addcb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.stree.txt deleted file mode 100644 index 8bcb3320d0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/DoesNotIncludeSemicolonAfterDot.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..10)::10 - [@foo.bar.;] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [foo.bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - MarkupTextLiteral - [8..10)::2 - [.;] - Gen - SpanEditHandler;Accepts:Any - Text;[.;]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.cspans.txt deleted file mode 100644 index 26a7df601bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [12] ) -Code span at (1:0,1 [11] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [12] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.stree.txt deleted file mode 100644 index 81dce166d05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfDottedIdentifiers.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..13)::13 - [@foo.bar.baz;] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - CSharpImplicitExpression - [0..12)::12 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..12)::11 - CSharpCodeBlock - [1..12)::11 - CSharpExpressionLiteral - [1..12)::11 - [foo.bar.baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - Dot;[.]; - Identifier;[baz]; - MarkupTextLiteral - [12..13)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.cspans.txt deleted file mode 100644 index 2bb1fc91e08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.stree.txt deleted file mode 100644 index d0b3494b530..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/IgnoresSemicolonAtEndOfSimpleImplicitExpression.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..5)::5 - [@foo;] - MarkupBlock - [0..5)::5 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [4..5)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.cspans.txt deleted file mode 100644 index ec56fd948cc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [12] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [4] ) -Code span at (13:0,13 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [4] ) -Markup span at (16:0,16 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.stree.txt deleted file mode 100644 index 183ab53d22a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/NestedImplicitExpression.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..18)::18 - [if (true) { @foo }] - MarkupBlock - [0..18)::18 - MarkupTextLiteral - [0..12)::12 - [if (true) { ] - Gen - SpanEditHandler;Accepts:Any - Text;[if]; - Whitespace;[ ]; - Text;[(true)]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [12..16)::4 - CSharpImplicitExpression - [12..16)::4 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..16)::3 - CSharpCodeBlock - [13..16)::3 - CSharpExpressionLiteral - [13..16)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [16..18)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.cspans.txt deleted file mode 100644 index 4b7b3ba3f00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [13] ) -Code span at (1:0,1 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [13] ) -Markup span at (13:0,13 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.stree.txt deleted file mode 100644 index d3500903b67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputExpressionIfModuleTokenNotFollowedByBrace.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..13)::13 - [@module.foo()] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..13)::13 - CSharpImplicitExpression - [0..13)::13 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..13)::12 - CSharpCodeBlock - [1..13)::12 - CSharpExpressionLiteral - [1..13)::12 - [module.foo()] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[module]; - Dot;[.]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - MarkupTextLiteral - [13..13)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.cspans.txt deleted file mode 100644 index cd03a1193cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [1] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.diag.txt deleted file mode 100644 index c6d6925451d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1004: End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.stree.txt deleted file mode 100644 index 1b3a186cb62..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfEOFOccursAfterTransition.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..1)::1 - [@] - MarkupBlock - [0..1)::1 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..1)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.cspans.txt deleted file mode 100644 index d06a3a71b6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.diag.txt deleted file mode 100644 index 6d8d0cd1bbc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1005: "/" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.stree.txt deleted file mode 100644 index b5a86255d77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/OutputsZeroLengthCodeSpanIfInvalidCharacterFollowsTransition.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..2)::2 - [@/] - MarkupBlock - [0..2)::2 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..2)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.cspans.txt deleted file mode 100644 index f22755e950f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [12] ) -Code span at (1:0,1 [11] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [12] ) -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.stree.txt deleted file mode 100644 index 705a5002441..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesDottedIdentifiersAsImplicitExpression.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..12)::12 - [@foo.bar.baz] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - CSharpImplicitExpression - [0..12)::12 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..12)::11 - CSharpCodeBlock - [1..12)::11 - CSharpExpressionLiteral - [1..12)::11 - [foo.bar.baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - Dot;[.]; - Identifier;[baz]; - MarkupTextLiteral - [12..12)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.cspans.txt deleted file mode 100644 index 9449b5a2677..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.stree.txt deleted file mode 100644 index 2a973adbb83..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket1.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..7)::7 - [@val??[] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..7)::3 - [??[] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; - LeftBracket;[[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.cspans.txt deleted file mode 100644 index aaa7127537d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [9] ) -Code span at (1:0,1 [8] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [9] ) -Markup span at (9:0,9 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.stree.txt deleted file mode 100644 index f4956e6999d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket10.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..10)::10 - [@val?[-1]?] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..9)::9 - CSharpImplicitExpression - [0..9)::9 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..9)::8 - CSharpCodeBlock - [1..9)::8 - CSharpExpressionLiteral - [1..9)::8 - [val?[-1]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Minus;[-]; - IntegerLiteral;[1]; - RightBracket;[]]; - MarkupTextLiteral - [9..10)::1 - [?] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.cspans.txt deleted file mode 100644 index 3f873f6ea4d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [15] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.diag.txt deleted file mode 100644 index a6129d65d73..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,12): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.stree.txt deleted file mode 100644 index 8ccf243709f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket11.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..15)::15 - [@val?[abc]?[def] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpImplicitExpression - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..15)::14 - CSharpCodeBlock - [1..15)::14 - CSharpExpressionLiteral - [1..15)::14 - [val?[abc]?[def] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[def]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.cspans.txt deleted file mode 100644 index 92bb2a98636..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -Code span at (1:0,1 [13] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [14] ) -Markup span at (14:0,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.stree.txt deleted file mode 100644 index bb2ddfa496c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket12.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..14)::14 - [@val?[abc]?[2]] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpImplicitExpression - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..14)::13 - CSharpCodeBlock - [1..14)::13 - CSharpExpressionLiteral - [1..14)::13 - [val?[abc]?[2]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - QuestionMark;[?]; - LeftBracket;[[]; - IntegerLiteral;[2]; - RightBracket;[]]; - MarkupTextLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.cspans.txt deleted file mode 100644 index 4afe3fa1bce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [22] ) -Code span at (1:0,1 [21] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.stree.txt deleted file mode 100644 index 483a875a7df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket13.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..22)::22 - [@val?[abc]?.more?[def]] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpImplicitExpression - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..22)::21 - CSharpCodeBlock - [1..22)::21 - CSharpExpressionLiteral - [1..22)::21 - [val?[abc]?.more?[def]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[def]; - RightBracket;[]]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.cspans.txt deleted file mode 100644 index 03103a61c2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [21] ) -Code span at (1:0,1 [20] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.stree.txt deleted file mode 100644 index e484ae74f9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket14.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..21)::21 - [@val?[abc]?.more?.abc] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpImplicitExpression - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..21)::20 - CSharpCodeBlock - [1..21)::20 - CSharpExpressionLiteral - [1..21)::20 - [val?[abc]?.more?.abc] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[abc]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.cspans.txt deleted file mode 100644 index bb0defcc69b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [19] ) -Code span at (1:0,1 [18] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.stree.txt deleted file mode 100644 index 49f0bd7d074..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket15.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..19)::19 - [@val?[null ?? true]] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpImplicitExpression - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..19)::18 - CSharpCodeBlock - [1..19)::18 - CSharpExpressionLiteral - [1..19)::18 - [val?[null ?? true]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Keyword;[null]; - Whitespace;[ ]; - NullCoalesce;[??]; - Whitespace;[ ]; - Keyword;[true]; - RightBracket;[]]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.cspans.txt deleted file mode 100644 index 0b32c2fccc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.stree.txt deleted file mode 100644 index ef28b6255cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket16.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..20)::20 - [@val?[abc?.gef?[-1]]] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpImplicitExpression - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..20)::19 - CSharpCodeBlock - [1..20)::19 - CSharpExpressionLiteral - [1..20)::19 - [val?[abc?.gef?[-1]]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[abc]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[gef]; - QuestionMark;[?]; - LeftBracket;[[]; - Minus;[-]; - IntegerLiteral;[1]; - RightBracket;[]]; - RightBracket;[]]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.cspans.txt deleted file mode 100644 index b01f9901591..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.stree.txt deleted file mode 100644 index a09cafb40e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket2.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..8)::8 - [@val??[0] - MarkupBlock - [0..8)::8 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..8)::4 - [??[0] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; - LeftBracket;[[]; - Text;[0]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.cspans.txt deleted file mode 100644 index f1cf24e2819..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.stree.txt deleted file mode 100644 index c65cad563b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket3.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..6)::6 - [@val?[] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val?[] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.cspans.txt deleted file mode 100644 index 3af48c1d82f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.stree.txt deleted file mode 100644 index 8591aa3eb2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket4.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..6)::6 - [@val?(] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..6)::2 - [?(] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - Text;[(]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.cspans.txt deleted file mode 100644 index 540927e7d85..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.stree.txt deleted file mode 100644 index 8071369d6a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket5.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..10)::10 - [@val?[more] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [val?[more] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[more]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.cspans.txt deleted file mode 100644 index 685d604d5b1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.stree.txt deleted file mode 100644 index dad9336067a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket6.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..8)::8 - [@val?[0]] - MarkupBlock - [0..8)::8 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [val?[0]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - IntegerLiteral;[0]; - RightBracket;[]]; - MarkupTextLiteral - [8..8)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.cspans.txt deleted file mode 100644 index 8ecc8ebeba4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [6] ) -Markup span at (6:0,6 [3] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.stree.txt deleted file mode 100644 index a6ce27255a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket7.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..9)::9 - [@val?[

                    ] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val?[] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - MarkupElement - [6..9)::3 - MarkupStartTag - [6..9)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.cspans.txt deleted file mode 100644 index 5890f7654db..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [11] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [11] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.stree.txt deleted file mode 100644 index 5e458aa0e86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket8.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..14)::14 - [@val?[more.

                    ] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpImplicitExpression - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..11)::10 - CSharpCodeBlock - [1..11)::10 - CSharpExpressionLiteral - [1..11)::10 - [val?[more.] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - LeftBracket;[[]; - Identifier;[more]; - Dot;[.]; - MarkupElement - [11..14)::3 - MarkupStartTag - [11..14)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.cspans.txt deleted file mode 100644 index b93ef2adc41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.stree.txt deleted file mode 100644 index 72be12795ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Bracket9.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..14)::14 - [@val??[more

                    ] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..11)::7 - [??[more] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; - LeftBracket;[[]; - Text;[more]; - MarkupElement - [11..14)::3 - MarkupStartTag - [11..14)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.cspans.txt deleted file mode 100644 index 2bb1fc91e08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.stree.txt deleted file mode 100644 index 4ccc4619af1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot1.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..5)::5 - [@val?] - MarkupBlock - [0..5)::5 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..5)::1 - [?] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.cspans.txt deleted file mode 100644 index 0013e6c6e5e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.stree.txt deleted file mode 100644 index 3804d990ef3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot10.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..13)::13 - [@val?.more

                    ] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [val?.more] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - MarkupElement - [10..13)::3 - MarkupStartTag - [10..13)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.cspans.txt deleted file mode 100644 index b93ef2adc41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.stree.txt deleted file mode 100644 index ce8be23cef5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot11.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..14)::14 - [@val??.more

                    ] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..11)::7 - [??.more] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; - Text;[.more]; - MarkupElement - [11..14)::3 - MarkupStartTag - [11..14)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.cspans.txt deleted file mode 100644 index 41f5f8c0d47..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [19] ) -Code span at (1:0,1 [18] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [19] ) -Markup span at (19:0,19 [3] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.stree.txt deleted file mode 100644 index 01eccdf9f7f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot12.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..22)::22 - [@val?.more(false)?.

                    ] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpImplicitExpression - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..19)::18 - CSharpCodeBlock - [1..19)::18 - CSharpExpressionLiteral - [1..19)::18 - [val?.more(false)?.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - QuestionMark;[?]; - Dot;[.]; - MarkupElement - [19..22)::3 - MarkupStartTag - [19..22)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.cspans.txt deleted file mode 100644 index 4afe3fa1bce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [22] ) -Code span at (1:0,1 [21] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.stree.txt deleted file mode 100644 index 193c9dbc4e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot13.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..22)::22 - [@val?.more(false)?.abc] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpImplicitExpression - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..22)::21 - CSharpCodeBlock - [1..22)::21 - CSharpExpressionLiteral - [1..22)::21 - [val?.more(false)?.abc] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[abc]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.cspans.txt deleted file mode 100644 index 3df6aca2769..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [29] ) -Code span at (1:0,1 [28] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.stree.txt deleted file mode 100644 index c70700ff244..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot14.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..29)::29 - [@val?.more(null ?? true)?.abc] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpImplicitExpression - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..29)::28 - CSharpCodeBlock - [1..29)::28 - CSharpExpressionLiteral - [1..29)::28 - [val?.more(null ?? true)?.abc] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - LeftParenthesis;[(]; - Keyword;[null]; - Whitespace;[ ]; - NullCoalesce;[??]; - Whitespace;[ ]; - Keyword;[true]; - RightParenthesis;[)]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[abc]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.cspans.txt deleted file mode 100644 index 3af48c1d82f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.stree.txt deleted file mode 100644 index 37455f29568..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot2.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..6)::6 - [@val??] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..6)::2 - [??] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.cspans.txt deleted file mode 100644 index ad423cd1786..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.stree.txt deleted file mode 100644 index 6ea64559320..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot3.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..10)::10 - [@val??more] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..10)::6 - [??more] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; - Text;[more]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.cspans.txt deleted file mode 100644 index 3af48c1d82f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.stree.txt deleted file mode 100644 index e90d2caa254..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot4.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..6)::6 - [@val?!] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..6)::2 - [?!] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - Bang;[!]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.cspans.txt deleted file mode 100644 index fb74b137cb4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [6] ) -Markup span at (6:0,6 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.stree.txt deleted file mode 100644 index cb4ae61a45a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot5.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..6)::6 - [@val?.] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val?.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - MarkupTextLiteral - [6..6)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.cspans.txt deleted file mode 100644 index 9449b5a2677..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.stree.txt deleted file mode 100644 index aaa2a274fba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot6.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..7)::7 - [@val??.] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..7)::3 - [??.] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - QuestionMark;[?]; - Text;[.]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.cspans.txt deleted file mode 100644 index 922c9aa28d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [6] ) -Markup span at (6:0,6 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.stree.txt deleted file mode 100644 index 6c7496a3a5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot7.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..11)::11 - [@val?.(abc)] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val?.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - MarkupTextLiteral - [6..11)::5 - [(abc)] - Gen - SpanEditHandler;Accepts:Any - Text;[(abc)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.cspans.txt deleted file mode 100644 index f39a70eff84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [6] ) -Markup span at (6:0,6 [3] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.stree.txt deleted file mode 100644 index f47f2c3137c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot8.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..9)::9 - [@val?.

                    ] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val?.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - MarkupElement - [6..9)::3 - MarkupStartTag - [6..9)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.cspans.txt deleted file mode 100644 index a3258870271..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.stree.txt deleted file mode 100644 index 3f147507dc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullConditionalOperatorImplicitExpression_Dot9.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..10)::10 - [@val?.more] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [val?.more] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.cspans.txt deleted file mode 100644 index 0b32c2fccc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.stree.txt deleted file mode 100644 index ad5651fb878..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Bracket15.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..20)::20 - [@val![null! ?? true]] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpImplicitExpression - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..20)::19 - CSharpCodeBlock - [1..20)::19 - CSharpExpressionLiteral - [1..20)::19 - [val![null! ?? true]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Keyword;[null]; - Not;[!]; - Whitespace;[ ]; - NullCoalesce;[??]; - Whitespace;[ ]; - Keyword;[true]; - RightBracket;[]]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.cspans.txt deleted file mode 100644 index 685d604d5b1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.stree.txt deleted file mode 100644 index 49218281638..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Brackets.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..8)::8 - [@val![0]] - MarkupBlock - [0..8)::8 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [val![0]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - IntegerLiteral;[0]; - RightBracket;[]]; - MarkupTextLiteral - [8..8)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.cspans.txt deleted file mode 100644 index d438935c6d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [11] ) -Code span at (1:0,1 [10] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [11] ) -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.stree.txt deleted file mode 100644 index 5b1b99423f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Combined.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..11)::11 - [@val!?.more] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpImplicitExpression - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..11)::10 - CSharpCodeBlock - [1..11)::10 - CSharpExpressionLiteral - [1..11)::10 - [val!?.more] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[more]; - MarkupTextLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.cspans.txt deleted file mode 100644 index 34db8ba1e2e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -Code span at (1:0,1 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [7] ) -Markup span at (7:0,7 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.stree.txt deleted file mode 100644 index 0851177da5d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedEnding.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..7)::7 - [@val!?.] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpImplicitExpression - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..7)::6 - CSharpCodeBlock - [1..7)::6 - CSharpExpressionLiteral - [1..7)::6 - [val!?.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - QuestionMark;[?]; - Dot;[.]; - MarkupTextLiteral - [7..7)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.cspans.txt deleted file mode 100644 index 980b0da3192..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [5] ) -Code span at (1:0,1 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [5] ) -Markup span at (5:0,5 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.stree.txt deleted file mode 100644 index 3a965aba803..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_CombinedWithNullConditional.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..6)::6 - [@val!?] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpImplicitExpression - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..5)::4 - CSharpCodeBlock - [1..5)::4 - CSharpExpressionLiteral - [1..5)::4 - [val!] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - MarkupTextLiteral - [5..6)::1 - [?] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.cspans.txt deleted file mode 100644 index 47ad9f2cb09..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [17] ) -Code span at (1:0,1 [16] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [17] ) -Markup span at (17:0,17 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Markup span at (19:0,19 [3] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.stree.txt deleted file mode 100644 index 4a747ee7d88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Complex.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..22)::22 - [@val!.more(false)!.

                    ] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpImplicitExpression - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..17)::16 - CSharpCodeBlock - [1..17)::16 - CSharpExpressionLiteral - [1..17)::16 - [val!.more(false)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - Dot;[.]; - Identifier;[more]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - MarkupTextLiteral - [17..19)::2 - [!.] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - Text;[.]; - MarkupElement - [19..22)::3 - MarkupStartTag - [19..22)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.cspans.txt deleted file mode 100644 index 6a164b65bca..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [59] ) -MetaCode span at (1:0,1 [9] ) (Accepts:None) - Parent: Directive block at (0:0,0 [59] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [59] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [59] ) -Code span at (12:0,12 [21] ) (Accepts:Any) - Parent: Statement block at (12:0,12 [46] ) -Transition span at (33:0,33 [1] ) (Accepts:None) - Parent: Expression block at (33:0,33 [22] ) -Code span at (34:0,34 [21] ) (Accepts:NonWhitespace) - Parent: Expression block at (33:0,33 [22] ) -Code span at (55:0,55 [3] ) (Accepts:Any) - Parent: Statement block at (12:0,12 [46] ) -MetaCode span at (58:0,58 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [59] ) -Markup span at (59:0,59 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.stree.txt deleted file mode 100644 index 7aaf996a808..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DirectiveCodeBlock.stree.txt +++ /dev/null @@ -1,56 +0,0 @@ -RazorDocument - [0..59)::59 - [@functions { public void Foo() { @Model!.Name![0]!?.Bar } }] - MarkupBlock - [0..59)::59 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..59)::59 - RazorDirective - [0..59)::59 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..59)::58 - RazorMetaCode - [1..10)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [10..59)::49 - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [12..58)::46 - CSharpStatementLiteral - [12..33)::21 - [ public void Foo() { ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - Whitespace;[ ]; - Keyword;[public]; - Whitespace;[ ]; - Keyword;[void]; - Whitespace;[ ]; - Identifier;[Foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [33..55)::22 - CSharpImplicitExpression - [33..55)::22 - CSharpTransition - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [34..55)::21 - CSharpCodeBlock - [34..55)::21 - CSharpExpressionLiteral - [34..55)::21 - [Model!.Name![0]!?.Bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K15 - Identifier;[Model]; - Not;[!]; - Dot;[.]; - Identifier;[Name]; - Not;[!]; - LeftBracket;[[]; - IntegerLiteral;[0]; - RightBracket;[]]; - Not;[!]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[Bar]; - CSharpStatementLiteral - [55..58)::3 - [ } ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [58..59)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [59..59)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.cspans.txt deleted file mode 100644 index 9449b5a2677..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.stree.txt deleted file mode 100644 index e68796a910f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_DoubleBang_IncompleteBracket.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..7)::7 - [@val!![] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..7)::3 - [!![] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - Bang;[!]; - LeftBracket;[[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.cspans.txt deleted file mode 100644 index 2bb1fc91e08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.stree.txt deleted file mode 100644 index 3812fb1a91d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Ending.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..5)::5 - [@val!] - MarkupBlock - [0..5)::5 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..5)::1 - [!] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.cspans.txt deleted file mode 100644 index 3af48c1d82f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.stree.txt deleted file mode 100644 index 38fa5297aae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_EndingDotedOperator.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..6)::6 - [@val!.] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..6)::2 - [!.] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - Text;[.]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.cspans.txt deleted file mode 100644 index a3258870271..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.stree.txt deleted file mode 100644 index 823306d9ff7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpression.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..10)::10 - [@val!.more] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [val!.more] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - Dot;[.]; - Identifier;[more]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.cspans.txt deleted file mode 100644 index 0013e6c6e5e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.stree.txt deleted file mode 100644 index 1ce31325bc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_FullExpressionWithHtml.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..13)::13 - [@val!.more

                    ] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [val!.more] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - Dot;[.]; - Identifier;[more]; - MarkupElement - [10..13)::3 - MarkupStartTag - [10..13)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.cspans.txt deleted file mode 100644 index f1cf24e2819..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.stree.txt deleted file mode 100644 index 98b7a5ba3af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracket.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..6)::6 - [@val![] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val![] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.cspans.txt deleted file mode 100644 index 8ecc8ebeba4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [6] ) -Markup span at (6:0,6 [3] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.stree.txt deleted file mode 100644 index 3d7d9987fc9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithHtml.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..9)::9 - [@val![

                    ] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val![] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - MarkupElement - [6..9)::3 - MarkupStartTag - [6..9)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.cspans.txt deleted file mode 100644 index 540927e7d85..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.stree.txt deleted file mode 100644 index 05644f8d350..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteBracketWithIdentifier.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..10)::10 - [@val![more] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [val![more] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[more]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.cspans.txt deleted file mode 100644 index f1cf24e2819..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [6] ) -Code span at (1:0,1 [5] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.diag.txt deleted file mode 100644 index 6cb7c823852..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.stree.txt deleted file mode 100644 index d619447c8d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_IncompleteParenthesis.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..6)::6 - [@val!(] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpImplicitExpression - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..6)::5 - CSharpCodeBlock - [1..6)::5 - CSharpExpressionLiteral - [1..6)::5 - [val!(] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftParenthesis;[(]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.cspans.txt deleted file mode 100644 index 0611081c692..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Markup span at (6:0,6 [3] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.stree.txt deleted file mode 100644 index e894acb1352..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Incomplete_ContinuedHtml.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..9)::9 - [@val!.

                    ] - MarkupBlock - [0..9)::9 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..6)::2 - [!.] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - Text;[.]; - MarkupElement - [6..9)::3 - MarkupStartTag - [6..9)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.cspans.txt deleted file mode 100644 index 03ee93c7800..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.stree.txt deleted file mode 100644 index 53cac366d77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_InvalidMethodEnding.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..11)::11 - [@val!.(abc)] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..11)::7 - [!.(abc)] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - Text;[.(abc)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.cspans.txt deleted file mode 100644 index 5890f7654db..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [11] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [11] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.diag.txt deleted file mode 100644 index 34f020b41b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.stree.txt deleted file mode 100644 index c09500e785c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedIncompleteBracket.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..14)::14 - [@val![more.

                    ] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpImplicitExpression - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..11)::10 - CSharpCodeBlock - [1..11)::10 - CSharpExpressionLiteral - [1..11)::10 - [val![more.] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[more]; - Dot;[.]; - MarkupElement - [11..14)::3 - MarkupStartTag - [11..14)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.cspans.txt deleted file mode 100644 index b93ef2adc41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.stree.txt deleted file mode 100644 index fb74f4160dd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MixedNullConditional.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..14)::14 - [@val?![more

                    ] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [val] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - MarkupTextLiteral - [4..11)::7 - [?![more] - Gen - SpanEditHandler;Accepts:Any - QuestionMark;[?]; - Bang;[!]; - LeftBracket;[[]; - Text;[more]; - MarkupElement - [11..14)::3 - MarkupStartTag - [11..14)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.cspans.txt deleted file mode 100644 index 92bb2a98636..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -Code span at (1:0,1 [13] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [14] ) -Markup span at (14:0,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.stree.txt deleted file mode 100644 index ecec20e374a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..14)::14 - [@val![abc]![2]] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpImplicitExpression - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..14)::13 - CSharpCodeBlock - [1..14)::13 - CSharpExpressionLiteral - [1..14)::13 - [val![abc]![2]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - Not;[!]; - LeftBracket;[[]; - IntegerLiteral;[2]; - RightBracket;[]]; - MarkupTextLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.cspans.txt deleted file mode 100644 index 4afe3fa1bce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [22] ) -Code span at (1:0,1 [21] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.stree.txt deleted file mode 100644 index 17a068adda9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..22)::22 - [@val![abc]!.more![def]] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpImplicitExpression - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..22)::21 - CSharpCodeBlock - [1..22)::21 - CSharpExpressionLiteral - [1..22)::21 - [val![abc]!.more![def]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - Not;[!]; - Dot;[.]; - Identifier;[more]; - Not;[!]; - LeftBracket;[[]; - Identifier;[def]; - RightBracket;[]]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.cspans.txt deleted file mode 100644 index 03103a61c2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [21] ) -Code span at (1:0,1 [20] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.stree.txt deleted file mode 100644 index d730107178d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_MultipleMixed2.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..21)::21 - [@val![abc]!.more!.abc] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpImplicitExpression - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..21)::20 - CSharpCodeBlock - [1..21)::20 - CSharpExpressionLiteral - [1..21)::20 - [val![abc]!.more!.abc] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - Not;[!]; - Dot;[.]; - Identifier;[more]; - Not;[!]; - Dot;[.]; - Identifier;[abc]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.cspans.txt deleted file mode 100644 index 3f873f6ea4d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [15] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.diag.txt deleted file mode 100644 index a6129d65d73..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,12): Error RZ1027: An opening "[" is missing the corresponding closing "]". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.stree.txt deleted file mode 100644 index 0444d87d3f0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Multiple_Incomplete.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..15)::15 - [@val![abc]![def] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpImplicitExpression - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..15)::14 - CSharpCodeBlock - [1..15)::14 - CSharpExpressionLiteral - [1..15)::14 - [val![abc]![def] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[abc]; - RightBracket;[]]; - Not;[!]; - LeftBracket;[[]; - Identifier;[def]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.cspans.txt deleted file mode 100644 index 0b32c2fccc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.stree.txt deleted file mode 100644 index cc73e58118e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_Nested.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..20)::20 - [@val![abc!.gef![-1]]] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpImplicitExpression - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..20)::19 - CSharpCodeBlock - [1..20)::19 - CSharpExpressionLiteral - [1..20)::19 - [val![abc!.gef![-1]]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Identifier;[abc]; - Not;[!]; - Dot;[.]; - Identifier;[gef]; - Not;[!]; - LeftBracket;[[]; - Minus;[-]; - IntegerLiteral;[1]; - RightBracket;[]]; - RightBracket;[]]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.cspans.txt deleted file mode 100644 index f78a70b341a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Code span at (2:0,2 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Expression block at (3:0,3 [20] ) -Code span at (4:0,4 [19] ) (Accepts:NonWhitespace) - Parent: Expression block at (3:0,3 [20] ) -Code span at (23:0,23 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.stree.txt deleted file mode 100644 index 691b32aa9f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_NestedCodeBlock.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..25)::25 - [@{ @val!.Name![0]!?.Bar }] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - CSharpStatementLiteral - [2..3)::1 - [ ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - CSharpCodeBlock - [3..23)::20 - CSharpImplicitExpression - [3..23)::20 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [4..23)::19 - CSharpCodeBlock - [4..23)::19 - CSharpExpressionLiteral - [4..23)::19 - [val!.Name![0]!?.Bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Identifier;[val]; - Not;[!]; - Dot;[.]; - Identifier;[Name]; - Not;[!]; - LeftBracket;[[]; - IntegerLiteral;[0]; - RightBracket;[]]; - Not;[!]; - QuestionMark;[?]; - Dot;[.]; - Identifier;[Bar]; - CSharpStatementLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.cspans.txt deleted file mode 100644 index aaa7127537d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [9] ) -Code span at (1:0,1 [8] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [9] ) -Markup span at (9:0,9 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.stree.txt deleted file mode 100644 index 96a0b18ef26..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesNullForgivenessOperatorImplicitExpression_SingleOperator.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..10)::10 - [@val![-1]!] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..9)::9 - CSharpImplicitExpression - [0..9)::9 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..9)::8 - CSharpCodeBlock - [1..9)::8 - CSharpExpressionLiteral - [1..9)::8 - [val![-1]] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[val]; - Not;[!]; - LeftBracket;[[]; - Minus;[-]; - IntegerLiteral;[1]; - RightBracket;[]]; - MarkupTextLiteral - [9..10)::1 - [!] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.cspans.txt deleted file mode 100644 index 490eb4a82ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.stree.txt deleted file mode 100644 index 5215a832306..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ParsesSingleIdentifierAsImplicitExpression.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..4)::4 - [@foo] - MarkupBlock - [0..4)::4 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [4..4)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.cspans.txt deleted file mode 100644 index b0120744b1e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [34] ) -Code span at (1:0,1 [33] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.stree.txt deleted file mode 100644 index 119de13dfad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesBracketsAndBalancesThemInImplicitExpression.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..34)::34 - [@foo.bar[4 * (8 + 7)]["fo\"o"].baz] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpImplicitExpression - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..34)::33 - CSharpCodeBlock - [1..34)::33 - CSharpExpressionLiteral - [1..34)::33 - [foo.bar[4 * (8 + 7)]["fo\"o"].baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - LeftBracket;[[]; - IntegerLiteral;[4]; - Whitespace;[ ]; - Star;[*]; - Whitespace;[ ]; - LeftParenthesis;[(]; - IntegerLiteral;[8]; - Whitespace;[ ]; - Plus;[+]; - Whitespace;[ ]; - IntegerLiteral;[7]; - RightParenthesis;[)]; - RightBracket;[]]; - LeftBracket;[[]; - StringLiteral;["fo\"o"]; - RightBracket;[]]; - Dot;[.]; - Identifier;[baz]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.cspans.txt deleted file mode 100644 index c32f0128039..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [115] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [115] ) -Code span at (1:0,1 [114] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [115] ) -Markup span at (115:0,115 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [115] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.stree.txt deleted file mode 100644 index da9bcfb36f5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/ProperlyParsesParenthesesAndBalancesThemInImplicitExpression.stree.txt +++ /dev/null @@ -1,72 +0,0 @@ -RazorDocument - [0..115)::115 - [@foo().bar("bi\"z", 4)("chained method; call").baz(@"bo""z", '\'', () => { return 4; }, (4+5+new { foo = bar[4] }))] - MarkupBlock - [0..115)::115 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..115)::115 - CSharpImplicitExpression - [0..115)::115 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..115)::114 - CSharpCodeBlock - [1..115)::114 - CSharpExpressionLiteral - [1..115)::114 - [foo().bar("bi\"z", 4)("chained method; call").baz(@"bo""z", '\'', () => { return 4; }, (4+5+new { foo = bar[4] }))] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Dot;[.]; - Identifier;[bar]; - LeftParenthesis;[(]; - StringLiteral;["bi\"z"]; - Comma;[,]; - Whitespace;[ ]; - IntegerLiteral;[4]; - RightParenthesis;[)]; - LeftParenthesis;[(]; - StringLiteral;["chained method; call"]; - RightParenthesis;[)]; - Dot;[.]; - Identifier;[baz]; - LeftParenthesis;[(]; - StringLiteral;[@"bo""z"]; - Comma;[,]; - Whitespace;[ ]; - CharacterLiteral;['\'']; - Comma;[,]; - Whitespace;[ ]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Whitespace;[ ]; - GreaterThanEqual;[=>]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Keyword;[return]; - Whitespace;[ ]; - IntegerLiteral;[4]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Comma;[,]; - Whitespace;[ ]; - LeftParenthesis;[(]; - IntegerLiteral;[4]; - Plus;[+]; - IntegerLiteral;[5]; - Plus;[+]; - Keyword;[new]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - LeftBracket;[[]; - IntegerLiteral;[4]; - RightBracket;[]]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - RightParenthesis;[)]; - MarkupTextLiteral - [115..115)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.cspans.txt deleted file mode 100644 index fae6fdec1c1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -Code span at (1:0,1 [6] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.diag.txt deleted file mode 100644 index ade6c85b252..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.stree.txt deleted file mode 100644 index cecb589f6b9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/StopsBalancingParenthesesAtEOF.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..7)::7 - [@foo(()] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpImplicitExpression - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..7)::6 - CSharpCodeBlock - [1..7)::6 - CSharpExpressionLiteral - [1..7)::6 - [foo(()] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - LeftParenthesis;[(]; - RightParenthesis;[)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.cspans.txt deleted file mode 100644 index 4b9c5f71968..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [103] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [103] ) -Code span at (1:0,1 [102] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [103] ) -Markup span at (103:0,103 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [103] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.stree.txt deleted file mode 100644 index ec25b4c7500..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/SupportsSlashesWithinComplexImplicitExpressions.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..103)::103 - [@DataGridColumn.Template("Years of Service", e => (int)Math.Round((DateTime.Now - dt).TotalDays / 365))] - MarkupBlock - [0..103)::103 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..103)::103 - CSharpImplicitExpression - [0..103)::103 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..103)::102 - CSharpCodeBlock - [1..103)::102 - CSharpExpressionLiteral - [1..103)::102 - [DataGridColumn.Template("Years of Service", e => (int)Math.Round((DateTime.Now - dt).TotalDays / 365))] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DataGridColumn]; - Dot;[.]; - Identifier;[Template]; - LeftParenthesis;[(]; - StringLiteral;["Years of Service"]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[e]; - Whitespace;[ ]; - GreaterThanEqual;[=>]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[int]; - RightParenthesis;[)]; - Identifier;[Math]; - Dot;[.]; - Identifier;[Round]; - LeftParenthesis;[(]; - LeftParenthesis;[(]; - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - Whitespace;[ ]; - Minus;[-]; - Whitespace;[ ]; - Identifier;[dt]; - RightParenthesis;[)]; - Dot;[.]; - Identifier;[TotalDays]; - Whitespace;[ ]; - Slash;[/]; - Whitespace;[ ]; - IntegerLiteral;[365]; - RightParenthesis;[)]; - RightParenthesis;[)]; - MarkupTextLiteral - [103..103)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.cspans.txt deleted file mode 100644 index 47ae3df07e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.stree.txt deleted file mode 100644 index b6f3ffd4486..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesAfterIdentifierUnlessFollowedByDotOrParenInImplicitExpr.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..12)::12 - [@foo.bar

                    ] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [foo.bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - MarkupElement - [8..12)::4 - MarkupEndTag - [8..12)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.cspans.txt deleted file mode 100644 index de2f605a48c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -Code span at (1:0,1 [13] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [14] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.stree.txt deleted file mode 100644 index e7f6e178818..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExprBeforeDotIfDotNotFollowedByIdentifierStartChar.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..17)::17 - [@foo().bar.baz.42] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpImplicitExpression - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..14)::13 - CSharpCodeBlock - [1..14)::13 - CSharpExpressionLiteral - [1..14)::13 - [foo().bar.baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Dot;[.]; - Identifier;[bar]; - Dot;[.]; - Identifier;[baz]; - MarkupTextLiteral - [14..17)::3 - [.42] - Gen - SpanEditHandler;Accepts:Any - Text;[.42]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.cspans.txt deleted file mode 100644 index 7e4212394bb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -Code span at (1:0,1 [13] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [14] ) -Markup span at (14:0,14 [4] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [4] ) -Markup span at (18:0,18 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.stree.txt deleted file mode 100644 index bd0ea4ac3ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlEndTag.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..22)::22 - [@foo().bar.baz

                    zoop] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpImplicitExpression - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..14)::13 - CSharpCodeBlock - [1..14)::13 - CSharpExpressionLiteral - [1..14)::13 - [foo().bar.baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Dot;[.]; - Identifier;[bar]; - Dot;[.]; - Identifier;[baz]; - MarkupElement - [14..18)::4 - MarkupEndTag - [14..18)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [18..22)::4 - [zoop] - Gen - SpanEditHandler;Accepts:Any - Text;[zoop]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.cspans.txt deleted file mode 100644 index d1cd5261481..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [14] ) -Code span at (1:0,1 [13] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [14] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [3] ) -Markup span at (17:0,17 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.stree.txt deleted file mode 100644 index c0cc2a67882..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtHtmlStartTag.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..21)::21 - [@foo().bar.baz

                    zoop] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpImplicitExpression - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..14)::13 - CSharpCodeBlock - [1..14)::13 - CSharpExpressionLiteral - [1..14)::13 - [foo().bar.baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Dot;[.]; - Identifier;[bar]; - Dot;[.]; - Identifier;[baz]; - MarkupElement - [14..21)::7 - MarkupStartTag - [14..17)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [17..21)::4 - [zoop] - Gen - SpanEditHandler;Accepts:Any - Text;[zoop]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.cspans.txt deleted file mode 100644 index d5399075f6a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.stree.txt deleted file mode 100644 index 53ca571528a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionAtLastValidPointIfDotFollowedByWhitespace.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..17)::17 - [@foo. bar() (baz)] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [4..17)::13 - [. bar() (baz)] - Gen - SpanEditHandler;Accepts:Any - Text;[.]; - Whitespace;[ ]; - Text;[bar()]; - Whitespace;[ ]; - Text;[(baz)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.cspans.txt deleted file mode 100644 index 52d6a4d6122..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.stree.txt deleted file mode 100644 index dfaef5653f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfCloseParenFollowedByAnyWhiteSpace.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..16)::16 - [@foo.bar() (baz)] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [foo.bar()] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - Dot;[.]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - MarkupTextLiteral - [10..16)::6 - [ (baz)] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[(baz)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.cspans.txt deleted file mode 100644 index d5399075f6a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.stree.txt deleted file mode 100644 index baaaa2f4353..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpImplicitExpressionTest/TerminatesImplicitExpressionIfIdentifierFollowedByAnyWhiteSpace.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..17)::17 - [@foo .bar() (baz)] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [4..17)::13 - [ .bar() (baz)] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[.bar()]; - Whitespace;[ ]; - Text;[(baz)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.cspans.txt deleted file mode 100644 index dce52a5221b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Code span at (1:0,1 [34] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Markup span at (35:0,35 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.stree.txt deleted file mode 100644 index 08c7c801a92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedCodeBlock.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..35)::35 - [@while(true) { { { { foo(); } } } }] - MarkupBlock - [0..35)::35 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..35)::35 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..35)::34 - [while(true) { { { { foo(); } } } }] - Gen - SpanEditHandler;Accepts:None - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.cspans.txt deleted file mode 100644 index 67434c2daff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [6] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [6] ) -Code span at (17:0,17 [3] ) (Accepts:Any) - Parent: Expression block at (15:0,15 [6] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [6] ) -Code span at (21:0,21 [2] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.stree.txt deleted file mode 100644 index b0ff0f11478..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedExplicitExpression.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..23)::23 - [@while(true) { @(foo) }] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..15)::14 - [while(true) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [15..21)::6 - CSharpExplicitExpression - [15..21)::6 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [16..21)::5 - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [17..20)::3 - CSharpExpressionLiteral - [17..20)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - CSharpStatementLiteral - [21..23)::2 - [ }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.cspans.txt deleted file mode 100644 index 4ab605085c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [4] ) -Code span at (16:0,16 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (15:0,15 [4] ) -Code span at (19:0,19 [2] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.stree.txt deleted file mode 100644 index fa46e8b5298..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedImplicitExpression.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..21)::21 - [@while(true) { @foo }] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..15)::14 - [while(true) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [15..19)::4 - CSharpImplicitExpression - [15..19)::4 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [16..19)::3 - CSharpCodeBlock - [16..19)::3 - CSharpExpressionLiteral - [16..19)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Identifier;[foo]; - CSharpStatementLiteral - [19..21)::2 - [ }] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.cspans.txt deleted file mode 100644 index ad7d618e3fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Code span at (1:0,1 [54] ) (Accepts:None) - Parent: Statement block at (0:0,0 [55] ) -Markup span at (55:0,55 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.stree.txt deleted file mode 100644 index be2365d2d6e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedKeywordStatement.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..55)::55 - [@while(true) { for(int i = 0; i < 10; i++) { foo(); } }] - MarkupBlock - [0..55)::55 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..55)::55 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..55)::54 - [while(true) { for(int i = 0; i < 10; i++) { foo(); } }] - Gen - SpanEditHandler;Accepts:None - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Keyword;[for]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Increment;[++]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [55..55)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.cspans.txt deleted file mode 100644 index c56d0fd0f84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Code span at (1:0,1 [13] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [14] ) -Markup span at (15:0,15 [3] ) (Accepts:None) - Parent: Tag block at (15:0,15 [3] ) -Markup span at (18:0,18 [5] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [14] ) -Markup span at (23:0,23 [4] ) (Accepts:None) - Parent: Tag block at (23:0,23 [4] ) -Markup span at (27:0,27 [1] ) (Accepts:None) - Parent: Markup block at (14:0,14 [14] ) -Code span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.stree.txt deleted file mode 100644 index 93f13317591..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedMarkupBlock.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..29)::29 - [@while(true) {

                    Hello

                    }] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..14)::13 - [while(true) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [14..28)::14 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..27)::12 - MarkupStartTag - [15..18)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [18..23)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupEndTag - [23..27)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [28..29)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.cspans.txt deleted file mode 100644 index cdeba78164e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (1:0,1 [22] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.stree.txt deleted file mode 100644 index 4174c105bcd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpNestedStatementsTest/NestedSimpleStatement.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..23)::23 - [@while(true) { foo(); }] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..23)::22 - [while(true) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.cspans.txt deleted file mode 100644 index 2dcfb49765b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [4] ) -Comment span at (2:0,2 [0] ) (Accepts:Any) - Parent: Comment block at (0:0,0 [4] ) -MetaCode span at (2:0,2 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [4] ) -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [4] ) -Markup span at (4:0,4 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.stree.txt deleted file mode 100644 index 4ffe83985cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/EmptyRazorComment.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..4)::4 - [@**@] - MarkupBlock - [0..4)::4 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorComment - [0..4)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupTextLiteral - [4..4)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.cspans.txt deleted file mode 100644 index 290c5176951..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Markup span at (5:1,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (7:1,2 [1] ) (Accepts:None) - Parent: Comment block at (7:1,2 [4] ) -MetaCode span at (8:1,3 [1] ) (Accepts:None) - Parent: Comment block at (7:1,2 [4] ) -Comment span at (9:1,4 [0] ) (Accepts:Any) - Parent: Comment block at (7:1,2 [4] ) -MetaCode span at (9:1,4 [1] ) (Accepts:None) - Parent: Comment block at (7:1,2 [4] ) -Transition span at (10:1,5 [1] ) (Accepts:None) - Parent: Comment block at (7:1,2 [4] ) -Markup span at (11:1,6 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (15:2,0 [1] ) (Accepts:None) - Parent: Comment block at (15:2,0 [4] ) -MetaCode span at (16:2,1 [1] ) (Accepts:None) - Parent: Comment block at (15:2,0 [4] ) -Comment span at (17:2,2 [0] ) (Accepts:Any) - Parent: Comment block at (15:2,0 [4] ) -MetaCode span at (17:2,2 [1] ) (Accepts:None) - Parent: Comment block at (15:2,0 [4] ) -Transition span at (18:2,3 [1] ) (Accepts:None) - Parent: Comment block at (15:2,0 [4] ) -Markup span at (19:2,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Markup span at (21:3,0 [4] ) (Accepts:Any) - Parent: Tag block at (21:3,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.stree.txt deleted file mode 100644 index ea99cb2206e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentInMarkup.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..25)::25 - [

                    LF @**@ LF@**@LF

                    ] - MarkupBlock - [0..25)::25 - MarkupElement - [0..25)::25 - MarkupStartTag - [0..3)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..5)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEphemeralTextLiteral - [5..7)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [7..11)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [11..15)::4 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - RazorComment - [15..19)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [19..21)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [21..25)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.cspans.txt deleted file mode 100644 index 45659c7dad1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (5:1,0 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -MetaCode span at (6:1,1 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -Comment span at (7:1,2 [0] ) (Accepts:Any) - Parent: Comment block at (5:1,0 [4] ) -MetaCode span at (7:1,2 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -Transition span at (8:1,3 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -Markup span at (9:1,4 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Markup span at (9:1,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (11:1,6 [1] ) (Accepts:None) - Parent: Comment block at (11:1,6 [4] ) -MetaCode span at (12:1,7 [1] ) (Accepts:None) - Parent: Comment block at (11:1,6 [4] ) -Comment span at (13:1,8 [0] ) (Accepts:Any) - Parent: Comment block at (11:1,6 [4] ) -MetaCode span at (13:1,8 [1] ) (Accepts:None) - Parent: Comment block at (11:1,6 [4] ) -Transition span at (14:1,9 [1] ) (Accepts:None) - Parent: Comment block at (11:1,6 [4] ) -Markup span at (15:1,10 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Markup span at (17:2,0 [4] ) (Accepts:Any) - Parent: Tag block at (17:2,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.stree.txt deleted file mode 100644 index 4d29f49bef5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/MultipleRazorCommentsInSameLineInMarkup.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..21)::21 - [

                    LF@**@ @**@LF

                    ] - MarkupBlock - [0..21)::21 - MarkupElement - [0..21)::21 - MarkupStartTag - [0..3)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..5)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorComment - [5..9)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupTextLiteral - [9..9)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - MarkupEphemeralTextLiteral - [9..11)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [11..15)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [15..17)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [17..21)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.cspans.txt deleted file mode 100644 index c8b487fccb9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -Code span at (2:0,2 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (6:1,0 [1] ) (Accepts:None) - Parent: Comment block at (6:1,0 [17] ) -MetaCode span at (7:1,1 [1] ) (Accepts:None) - Parent: Comment block at (6:1,0 [17] ) -Comment span at (8:1,2 [13] ) (Accepts:Any) - Parent: Comment block at (6:1,0 [17] ) -MetaCode span at (21:1,15 [1] ) (Accepts:None) - Parent: Comment block at (6:1,0 [17] ) -Transition span at (22:1,16 [1] ) (Accepts:None) - Parent: Comment block at (6:1,0 [17] ) -Markup span at (23:1,17 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Markup span at (25:2,0 [5] ) (Accepts:Any) - Parent: Tag block at (25:2,0 [5] ) -Markup span at (30:2,5 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Markup span at (33:2,8 [6] ) (Accepts:Any) - Parent: Tag block at (33:2,8 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.stree.txt deleted file mode 100644 index 376b6017f9a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentBetweenCodeBlockAndMarkup.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..39)::39 - [@{ }LF@* Hello World *@LF
                    Foo
                    ] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpStatement - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..4)::3 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..3)::1 - CSharpStatementLiteral - [2..3)::1 - [ ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [4..6)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorComment - [6..23)::17 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ Hello World ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [23..25)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [25..39)::14 - MarkupStartTag - [25..30)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [30..33)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [33..39)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.cspans.txt deleted file mode 100644 index af3dd82d31d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [6] ) -Markup span at (6:0,6 [7] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [7] ) -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Comment block at (13:0,13 [19] ) -MetaCode span at (14:0,14 [1] ) (Accepts:None) - Parent: Comment block at (13:0,13 [19] ) -Comment span at (15:0,15 [15] ) (Accepts:Any) - Parent: Comment block at (13:0,13 [19] ) -MetaCode span at (30:0,30 [1] ) (Accepts:None) - Parent: Comment block at (13:0,13 [19] ) -Transition span at (31:0,31 [1] ) (Accepts:None) - Parent: Comment block at (13:0,13 [19] ) -Markup span at (32:0,32 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.stree.txt deleted file mode 100644 index 32cb55d39ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInClosingTagBlock.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..33)::33 - [] - MarkupBlock - [0..33)::33 - MarkupElement - [0..13)::13 - MarkupStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupEndTag - [6..13)::7 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - MarkupMiscAttributeContent - [12..13)::1 - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - RazorComment - [13..32)::19 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ razor comment ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupTextLiteral - [32..33)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.cspans.txt deleted file mode 100644 index 83bce06d39d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [13] ) -Code span at (1:0,1 [6] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [13] ) -Transition span at (7:1,0 [1] ) (Accepts:None) - Parent: Comment block at (7:1,0 [4] ) -MetaCode span at (8:1,1 [1] ) (Accepts:None) - Parent: Comment block at (7:1,0 [4] ) -Comment span at (9:1,2 [0] ) (Accepts:Any) - Parent: Comment block at (7:1,0 [4] ) -MetaCode span at (9:1,2 [1] ) (Accepts:None) - Parent: Comment block at (7:1,0 [4] ) -Transition span at (10:1,3 [1] ) (Accepts:None) - Parent: Comment block at (7:1,0 [4] ) -Code span at (11:1,4 [2] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.diag.txt deleted file mode 100644 index ade6c85b252..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.stree.txt deleted file mode 100644 index 59217177a62..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInImplicitExpressionMethodCall.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..13)::13 - [@foo(LF@**@LF] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..13)::13 - CSharpImplicitExpression - [0..13)::13 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..13)::12 - CSharpCodeBlock - [1..13)::12 - CSharpExpressionLiteral - [1..7)::6 - [foo(LF] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - NewLine;[LF]; - RazorComment - [7..11)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpExpressionLiteral - [11..13)::2 - [LF] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.cspans.txt deleted file mode 100644 index cca88e4c9f0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (5:1,0 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -MetaCode span at (6:1,1 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -Comment span at (7:1,2 [0] ) (Accepts:Any) - Parent: Comment block at (5:1,0 [4] ) -MetaCode span at (7:1,2 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -Transition span at (8:1,3 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [4] ) -Markup span at (9:1,4 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Markup span at (11:2,0 [4] ) (Accepts:Any) - Parent: Tag block at (11:2,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.stree.txt deleted file mode 100644 index 32cc8dfacef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInMarkup.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..15)::15 - [

                    LF@**@LF

                    ] - MarkupBlock - [0..15)::15 - MarkupElement - [0..15)::15 - MarkupStartTag - [0..3)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..5)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorComment - [5..9)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [9..11)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [11..15)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.cspans.txt deleted file mode 100644 index be8102eb0aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Transition span at (6:0,6 [1] ) (Accepts:None) - Parent: Comment block at (6:0,6 [19] ) -MetaCode span at (7:0,7 [1] ) (Accepts:None) - Parent: Comment block at (6:0,6 [19] ) -Comment span at (8:0,8 [15] ) (Accepts:Any) - Parent: Comment block at (6:0,6 [19] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Comment block at (6:0,6 [19] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Comment block at (6:0,6 [19] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (26:0,26 [7] ) (Accepts:Any) - Parent: Tag block at (26:0,26 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.stree.txt deleted file mode 100644 index 040888e6401..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInOpeningTagBlock.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..33)::33 - [] - MarkupBlock - [0..33)::33 - MarkupElement - [0..33)::33 - MarkupStartTag - [0..26)::26 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[text]; - MarkupMiscAttributeContent - [5..25)::20 - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [6..25)::19 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ razor comment ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CloseAngle;[>]; - MarkupEndTag - [26..33)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.cspans.txt deleted file mode 100644 index f9d14334131..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Transition span at (8:1,4 [5] ) (Accepts:Any) - Parent: Tag block at (8:1,4 [5] ) -Markup span at (13:1,9 [2] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [18] ) -Markup span at (15:2,0 [4] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [18] ) -Transition span at (19:2,4 [1] ) (Accepts:None) - Parent: Comment block at (19:2,4 [4] ) -MetaCode span at (20:2,5 [1] ) (Accepts:None) - Parent: Comment block at (19:2,4 [4] ) -Comment span at (21:2,6 [0] ) (Accepts:Any) - Parent: Comment block at (19:2,4 [4] ) -MetaCode span at (21:2,6 [1] ) (Accepts:None) - Parent: Comment block at (19:2,4 [4] ) -Transition span at (22:2,7 [1] ) (Accepts:None) - Parent: Comment block at (19:2,4 [4] ) -Markup span at (23:2,8 [2] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [18] ) -Markup span at (25:3,0 [1] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.diag.txt deleted file mode 100644 index 728d71fa464..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(2,6): Error RZ1023: "" and "" tags cannot contain attributes. -(2,6): Error RZ1025: The "text" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.stree.txt deleted file mode 100644 index 74cfd937ab2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentInVerbatimBlock.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..26)::26 - [@{LF - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [8..26)::18 - MarkupElement - [8..26)::18 - MarkupStartTag - [8..13)::5 - MarkupTransition - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[text]; - CloseAngle;[]; - MarkupTextLiteral - [13..15)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEphemeralTextLiteral - [15..19)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorComment - [19..23)::4 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [23..25)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [25..26)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [26..26)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.cspans.txt deleted file mode 100644 index d5a5996abb3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Transition span at (7:2,0 [1] ) (Accepts:None) - Parent: Comment block at (7:2,0 [13] ) -MetaCode span at (8:2,1 [1] ) (Accepts:None) - Parent: Comment block at (7:2,0 [13] ) -Comment span at (9:2,2 [9] ) (Accepts:Any) - Parent: Comment block at (7:2,0 [13] ) -MetaCode span at (18:2,11 [1] ) (Accepts:None) - Parent: Comment block at (7:2,0 [13] ) -Transition span at (19:2,12 [1] ) (Accepts:None) - Parent: Comment block at (7:2,0 [13] ) -Markup span at (20:2,13 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Transition span at (22:3,0 [1] ) (Accepts:None) - Parent: Comment block at (22:3,0 [15] ) -MetaCode span at (23:3,1 [1] ) (Accepts:None) - Parent: Comment block at (22:3,0 [15] ) -Comment span at (24:3,2 [11] ) (Accepts:Any) - Parent: Comment block at (22:3,0 [15] ) -MetaCode span at (35:5,0 [1] ) (Accepts:None) - Parent: Comment block at (22:3,0 [15] ) -Transition span at (36:5,1 [1] ) (Accepts:None) - Parent: Comment block at (22:3,0 [15] ) -Markup span at (37:5,2 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Markup span at (39:6,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Markup span at (41:7,0 [4] ) (Accepts:Any) - Parent: Tag block at (41:7,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.stree.txt deleted file mode 100644 index c671706a273..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentWithExtraNewLineInMarkup.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..45)::45 - [

                    LFLF@* content *@LF@*LFcontentLF*@LFLF

                    ] - MarkupBlock - [0..45)::45 - MarkupElement - [0..45)::45 - MarkupStartTag - [0..3)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..7)::4 - [LFLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - NewLine;[LF]; - RazorComment - [7..20)::13 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ content ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [20..22)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorComment - [22..37)::15 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[LFcontentLF]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [37..39)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [39..41)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [41..45)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.cspans.txt deleted file mode 100644 index 4c99d239629..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (5:1,0 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [11] ) -MetaCode span at (6:1,1 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [11] ) -Comment span at (7:1,2 [7] ) (Accepts:Any) - Parent: Comment block at (5:1,0 [11] ) -MetaCode span at (14:1,9 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [11] ) -Transition span at (15:1,10 [1] ) (Accepts:None) - Parent: Comment block at (5:1,0 [11] ) -Markup span at (16:1,11 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (25:1,20 [1] ) (Accepts:None) - Parent: Comment block at (25:1,20 [11] ) -MetaCode span at (26:1,21 [1] ) (Accepts:None) - Parent: Comment block at (25:1,20 [11] ) -Comment span at (27:1,22 [7] ) (Accepts:Any) - Parent: Comment block at (25:1,20 [11] ) -MetaCode span at (34:1,29 [1] ) (Accepts:None) - Parent: Comment block at (25:1,20 [11] ) -Transition span at (35:1,30 [1] ) (Accepts:None) - Parent: Comment block at (25:1,20 [11] ) -Markup span at (36:1,31 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Markup span at (38:2,0 [4] ) (Accepts:Any) - Parent: Tag block at (38:2,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.stree.txt deleted file mode 100644 index 54b44635ac3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorCommentsSurroundingMarkup.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..42)::42 - [

                    LF@* hello *@ content @* world *@LF

                    ] - MarkupBlock - [0..42)::42 - MarkupElement - [0..42)::42 - MarkupStartTag - [0..3)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..5)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorComment - [5..16)::11 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ hello ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupTextLiteral - [16..25)::9 - [ content ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[content]; - Whitespace;[ ]; - RazorComment - [25..36)::11 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ world ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupTextLiteral - [36..38)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [38..42)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.cspans.txt deleted file mode 100644 index 7f93c44b8fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Statement block at (2:1,0 [40] ) -MetaCode span at (3:1,1 [1] ) (Accepts:None) - Parent: Statement block at (2:1,0 [40] ) -Code span at (4:1,2 [6] ) (Accepts:Any) - Parent: Statement block at (2:1,0 [40] ) -Transition span at (10:2,4 [1] ) (Accepts:None) - Parent: Comment block at (10:2,4 [29] ) -MetaCode span at (11:2,5 [1] ) (Accepts:None) - Parent: Comment block at (10:2,4 [29] ) -Comment span at (12:2,6 [25] ) (Accepts:Any) - Parent: Comment block at (10:2,4 [29] ) -MetaCode span at (37:4,4 [1] ) (Accepts:None) - Parent: Comment block at (10:2,4 [29] ) -Transition span at (38:4,5 [1] ) (Accepts:None) - Parent: Comment block at (10:2,4 [29] ) -Code span at (39:4,6 [2] ) (Accepts:Any) - Parent: Statement block at (2:1,0 [40] ) -MetaCode span at (41:5,0 [1] ) (Accepts:None) - Parent: Statement block at (2:1,0 [40] ) -Markup span at (42:5,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.stree.txt deleted file mode 100644 index fa32dc202e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/RazorMultilineCommentInBlock.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..44)::44 - [LF@{LF @*LFThis is a commentLF *@LF}LF] - MarkupBlock - [0..44)::44 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..42)::40 - CSharpStatement - [2..42)::40 - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [3..42)::39 - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [4..41)::37 - CSharpStatementLiteral - [4..10)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - RazorComment - [10..39)::29 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[LFThis is a commentLF ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - CSharpStatementLiteral - [39..41)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [42..44)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.cspans.txt deleted file mode 100644 index c75c972a0b9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [2] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [2] ) -Comment span at (2:0,2 [0] ) (Accepts:Any) - Parent: Comment block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.diag.txt deleted file mode 100644 index 4f3108141da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,1): Error RZ1028: End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.stree.txt deleted file mode 100644 index 60adcc438ae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorComment.stree.txt +++ /dev/null @@ -1,10 +0,0 @@ -RazorDocument - [0..2)::2 - [@*] - MarkupBlock - [0..2)::2 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorComment - [0..2)::2 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[];RZ1028(0:0,0 [2] ) - RazorCommentTransition;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.cspans.txt deleted file mode 100644 index 3b417826e4f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [7] ) -Code span at (1:0,1 [4] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [7] ) -Transition span at (5:0,5 [1] ) (Accepts:None) - Parent: Comment block at (5:0,5 [2] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Comment block at (5:0,5 [2] ) -Comment span at (7:0,7 [0] ) (Accepts:Any) - Parent: Comment block at (5:0,5 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.diag.txt deleted file mode 100644 index 4369e7d5eb1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,5): Error RZ1027: An opening "(" is missing the corresponding closing ")". -(1,6): Error RZ1028: End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.stree.txt deleted file mode 100644 index dc61b633965..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInImplicitExpressionMethodCall.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..7)::7 - [@foo(@*] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpImplicitExpression - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..7)::6 - CSharpCodeBlock - [1..7)::6 - CSharpExpressionLiteral - [1..5)::4 - [foo(] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[foo]; - LeftParenthesis;[(]; - RazorComment - [5..7)::2 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[];RZ1028(5:0,5 [2] ) - RazorCommentTransition;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.cspans.txt deleted file mode 100644 index 3ad5a4a25d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [4] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Comment block at (2:0,2 [2] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Comment block at (2:0,2 [2] ) -Comment span at (4:0,4 [0] ) (Accepts:Any) - Parent: Comment block at (2:0,2 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.diag.txt deleted file mode 100644 index 5ab5182308d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,3): Error RZ1028: End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.stree.txt deleted file mode 100644 index 6e7b2b40578..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpRazorCommentsTest/UnterminatedRazorCommentInVerbatimBlock.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..4)::4 - [@{@*] - MarkupBlock - [0..4)::4 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpStatement - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..4)::3 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..4)::2 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - Marker;[]; - RazorComment - [2..4)::2 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[]; - RazorCommentStar;[];RZ1028(2:0,2 [2] ) - RazorCommentTransition;[]; - RazorMetaCode - [4..4)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.cspans.txt deleted file mode 100644 index 65fa84c6abc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [9] ) (Accepts:None) - Parent: Directive block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.diag.txt deleted file mode 100644 index a1c584f0d3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1007: "namespace" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.stree.txt deleted file mode 100644 index 76edc37a7fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWord.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..10)::10 - [@namespace] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - RazorDirective - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..10)::9 - RazorMetaCode - [1..10)::9 - Gen - SpanEditHandler;Accepts:None - Keyword;[namespace]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.cspans.txt deleted file mode 100644 index a3258870271..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [10] ) -Code span at (1:0,1 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.stree.txt deleted file mode 100644 index 8067d08e58c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpReservedWordsTest/ReservedWordIsCaseSensitive.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..10)::10 - [@NameSpace] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpImplicitExpression - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..10)::9 - CSharpCodeBlock - [1..10)::9 - CSharpExpressionLiteral - [1..10)::9 - [NameSpace] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[NameSpace]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.cspans.txt deleted file mode 100644 index 81c6af39356..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [46] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [46] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [46] ) -None span at (12:0,12 [18] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [46] ) -MetaCode span at (30:6,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [46] ) -Markup span at (31:6,1 [2] ) (Accepts:Any) - Parent: Markup block at (31:6,1 [14] ) -Markup span at (33:7,0 [3] ) (Accepts:Any) - Parent: Tag block at (33:7,0 [3] ) -Markup span at (36:7,3 [3] ) (Accepts:Any) - Parent: Markup block at (31:6,1 [14] ) -Markup span at (39:7,6 [4] ) (Accepts:Any) - Parent: Tag block at (39:7,6 [4] ) -Markup span at (43:7,10 [2] ) (Accepts:Any) - Parent: Markup block at (31:6,1 [14] ) -MetaCode span at (45:8,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [46] ) -Markup span at (46:8,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.stree.txt deleted file mode 100644 index bf7aa06f2c0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AcceptsOpenBraceMultipleLinesBelowSectionName.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..46)::46 - [@section foo LFLFLFLFLFLF{LF

                    Foo

                    LF}] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - RazorDirective - [0..46)::46 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..46)::45 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..46)::38 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..30)::18 - [ LFLFLFLFLFLF] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - NewLine;[LF]; - NewLine;[LF]; - NewLine;[LF]; - NewLine;[LF]; - NewLine;[LF]; - NewLine;[LF]; - RazorMetaCode - [30..31)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [31..45)::14 - MarkupTextLiteral - [31..33)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [33..43)::10 - MarkupStartTag - [33..36)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [36..39)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [39..43)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [43..45)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.cspans.txt deleted file mode 100644 index c3a621955f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [76] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [76] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [76] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [76] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [76] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [76] ) -Markup span at (14:0,14 [54] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [61] ) -Transition span at (68:0,68 [1] ) (Accepts:None) - Parent: Expression block at (68:0,68 [6] ) -MetaCode span at (69:0,69 [1] ) (Accepts:None) - Parent: Expression block at (68:0,68 [6] ) -Code span at (70:0,70 [3] ) (Accepts:Any) - Parent: Expression block at (68:0,68 [6] ) -MetaCode span at (73:0,73 [1] ) (Accepts:None) - Parent: Expression block at (68:0,68 [6] ) -Markup span at (74:0,74 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [61] ) -MetaCode span at (75:0,75 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [76] ) -Markup span at (76:0,76 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [76] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.stree.txt deleted file mode 100644 index 697f0d90a15..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/AllowsBracesInCSharpExpression.stree.txt +++ /dev/null @@ -1,65 +0,0 @@ -RazorDocument - [0..76)::76 - [@section foo { I really want to render a close brace, so here I go: @("}") }] - MarkupBlock - [0..76)::76 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..76)::76 - RazorDirective - [0..76)::76 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..76)::75 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..76)::68 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..75)::61 - MarkupTextLiteral - [14..68)::54 - [ I really want to render a close brace, so here I go: ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[I]; - Whitespace;[ ]; - Text;[really]; - Whitespace;[ ]; - Text;[want]; - Whitespace;[ ]; - Text;[to]; - Whitespace;[ ]; - Text;[render]; - Whitespace;[ ]; - Text;[a]; - Whitespace;[ ]; - Text;[close]; - Whitespace;[ ]; - Text;[brace,]; - Whitespace;[ ]; - Text;[so]; - Whitespace;[ ]; - Text;[here]; - Whitespace;[ ]; - Text;[I]; - Whitespace;[ ]; - Text;[go:]; - Whitespace;[ ]; - CSharpCodeBlock - [68..74)::6 - CSharpExplicitExpression - [68..74)::6 - CSharpTransition - [68..69)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [69..74)::5 - RazorMetaCode - [69..70)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [70..73)::3 - CSharpExpressionLiteral - [70..73)::3 - ["}"] - Gen - SpanEditHandler;Accepts:Any - StringLiteral;["}"]; - RazorMetaCode - [73..74)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [74..75)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [75..76)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [76..76)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.cspans.txt deleted file mode 100644 index 72e4322f982..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [67] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [67] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [67] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [67] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [67] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [67] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [67] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [52] ) -Markup span at (15:0,15 [8] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [8] ) -Markup span at (23:0,23 [33] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [52] ) -Markup span at (56:0,56 [9] ) (Accepts:Any) - Parent: Tag block at (56:0,56 [9] ) -Markup span at (65:0,65 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [52] ) -MetaCode span at (66:0,66 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [67] ) -Markup span at (67:0,67 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [67] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.stree.txt deleted file mode 100644 index e3247266751..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/BalancesBraces.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..67)::67 - [@section foo { }] - MarkupBlock - [0..67)::67 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..67)::67 - RazorDirective - [0..67)::67 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..67)::66 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..67)::59 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..66)::52 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..65)::50 - MarkupStartTag - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTextLiteral - [65..66)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [66..67)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [67..67)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.cspans.txt deleted file mode 100644 index ebd2ef19947..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.diag.txt deleted file mode 100644 index f15ab6ffa2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1015: The 'section' directive expects an identifier. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.stree.txt deleted file mode 100644 index b6a10e2a5e2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesNewlineImmediatelyFollowing.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..10)::10 - [@sectionLF] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{section;RazorBlock;Unrestricted} [RZ1015(8:0,8 [2] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..8)::0 - MarkupTextLiteral - [8..10)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.cspans.txt deleted file mode 100644 index 74bcdf61d75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Code span at (8:0,8 [9] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [17] ) -Code span at (17:0,17 [0] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (17:0,17 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.diag.txt deleted file mode 100644 index feec72ed8be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ1015: The 'section' directive expects an identifier. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.stree.txt deleted file mode 100644 index 7f547e81737..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingName.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..23)::23 - [@section LF ] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - Directive:{section;RazorBlock;Unrestricted} [RZ1015(17:0,17 [2] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..17)::9 - CSharpStatementLiteral - [8..17)::9 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [17..17)::0 - [] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Marker;[]; - MarkupTextLiteral - [17..23)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.cspans.txt deleted file mode 100644 index 294ddf8df04..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [27] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [27] ) -None span at (12:0,12 [15] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [27] ) -Markup span at (27:1,4 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.diag.txt deleted file mode 100644 index 498cbfed108..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,5): Error RZ1012: Unexpected end of file following the 'section' directive. Expected '{'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.stree.txt deleted file mode 100644 index 8120e55a8ed..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CapturesWhitespaceToEndOfLineInSectionStatementMissingOpenBrace.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..27)::27 - [@section Foo LF ] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - RazorDirective - [0..27)::27 - Directive:{section;RazorBlock;Unrestricted} [RZ1012(27:1,4 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..27)::26 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..27)::19 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Foo]; - UnclassifiedTextLiteral - [12..27)::15 - [ LF ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.cspans.txt deleted file mode 100644 index 00b79335efd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [33] ) -Code span at (9:0,9 [1] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [33] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (12:0,12 [2] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [20] ) -Markup span at (14:1,0 [4] ) (Accepts:Any) - Parent: Tag block at (14:1,0 [4] ) -Markup span at (18:2,0 [4] ) (Accepts:None) - Parent: HtmlComment block at (18:2,0 [14] ) -Markup span at (22:2,4 [7] ) (Accepts:Whitespace) - Parent: HtmlComment block at (18:2,0 [14] ) -Markup span at (29:2,11 [3] ) (Accepts:None) - Parent: HtmlComment block at (18:2,0 [14] ) -Markup span at (32:2,14 [0] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [20] ) -MetaCode span at (32:2,14 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (33:2,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.stree.txt deleted file mode 100644 index 6031164f1be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CommentRecoversFromUnclosedTag.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..33)::33 - [@section s {LF " '-->}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - RazorDirective - [0..33)::33 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..33)::32 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..33)::25 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..10)::1 - [s] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[s]; - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [12..32)::20 - MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [14..32)::18 - MarkupStartTag - [14..18)::4 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[a]; - MarkupMiscAttributeContent - [16..18)::2 - MarkupTextLiteral - [16..18)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CloseAngle;[]; - MarkupCommentBlock - [18..32)::14 - MarkupTextLiteral - [18..22)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.cspans.txt deleted file mode 100644 index 4373c216a28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [24] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [24] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [24] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [9] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -Markup span at (24:0,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.stree.txt deleted file mode 100644 index f1c57469169..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/CorrectlyTerminatesWhenCloseBraceImmediatelyFollowsMarkup.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..24)::24 - [@section foo {something}] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - RazorDirective - [0..24)::24 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..24)::23 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..24)::16 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..23)::9 - MarkupTextLiteral - [14..23)::9 - [something] - Gen - SpanEditHandler;Accepts:Any - Text;[something]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.cspans.txt deleted file mode 100644 index ecf1378f321..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [26] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [26] ) -MetaCode span at (12:0,12 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -Markup span at (13:0,13 [1] ) (Accepts:Any) - Parent: Markup block at (13:0,13 [12] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [3] ) -Markup span at (17:0,17 [3] ) (Accepts:Any) - Parent: Markup block at (13:0,13 [12] ) -Markup span at (20:0,20 [4] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [4] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Markup block at (13:0,13 [12] ) -MetaCode span at (25:0,25 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -Markup span at (26:0,26 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.stree.txt deleted file mode 100644 index ba64cef43eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/DoesNotRequireSpaceBetweenSectionNameAndOpenBrace.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..26)::26 - [@section foo{

                    Foo

                    }] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - RazorDirective - [0..26)::26 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..26)::25 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..26)::18 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - RazorMetaCode - [12..13)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [13..25)::12 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [14..24)::10 - MarkupStartTag - [14..17)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [20..24)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.cspans.txt deleted file mode 100644 index 074b66bfa38..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [14] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [14] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [14] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -Markup span at (14:0,14 [0] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [0] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.diag.txt deleted file mode 100644 index e1bd35fcb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.stree.txt deleted file mode 100644 index 8ced8d7768f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenBrace.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..14)::14 - [@section foo {] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - RazorDirective - [0..14)::14 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(13:0,13 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..14)::13 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..14)::6 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..14)::0 - MarkupTextLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [14..14)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.cspans.txt deleted file mode 100644 index c6e2742957a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [15] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [15] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [15] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.diag.txt deleted file mode 100644 index e1bd35fcb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.stree.txt deleted file mode 100644 index bf96aef3536..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent1.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..15)::15 - [@section foo { ] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - RazorDirective - [0..15)::15 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(13:0,13 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..15)::14 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..15)::7 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..15)::1 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [15..15)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.cspans.txt deleted file mode 100644 index 748a7fb61b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [16] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [16] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [16] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (14:0,14 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.diag.txt deleted file mode 100644 index e1bd35fcb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.stree.txt deleted file mode 100644 index c2addfe73df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent2.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..16)::16 - [@section foo {LF] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - RazorDirective - [0..16)::16 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(13:0,13 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..16)::15 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..16)::8 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..16)::2 - MarkupTextLiteral - [14..16)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [16..16)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.cspans.txt deleted file mode 100644 index 06a080b1a6b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [17] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [17] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.diag.txt deleted file mode 100644 index e1bd35fcb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.stree.txt deleted file mode 100644 index 291855088bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent3.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..17)::17 - [@section foo {abc] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(13:0,13 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..17)::9 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..17)::3 - MarkupTextLiteral - [14..17)::3 - [abc] - Gen - SpanEditHandler;Accepts:Any - Text;[abc]; - RazorMetaCode - [17..17)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.cspans.txt deleted file mode 100644 index 34f459da773..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [20] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [20] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [20] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (14:0,14 [6] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.diag.txt deleted file mode 100644 index e1bd35fcb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.stree.txt deleted file mode 100644 index ae074a707ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesEOFAfterOpenContent4.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..20)::20 - [@section foo {LF abc] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - RazorDirective - [0..20)::20 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(13:0,13 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..20)::19 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..20)::12 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..20)::6 - MarkupTextLiteral - [14..20)::6 - [LF abc] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[abc]; - RazorMetaCode - [20..20)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.cspans.txt deleted file mode 100644 index 5d0c1dc0cec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [27] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [27] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [27] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [13] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [3] ) -Markup span at (18:0,18 [5] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [13] ) -Markup span at (23:0,23 [4] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.diag.txt deleted file mode 100644 index e1bd35fcb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.stree.txt deleted file mode 100644 index 376832ecd90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSection.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..27)::27 - [@section foo {

                    Foo{}

                    ] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - RazorDirective - [0..27)::27 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(13:0,13 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..27)::26 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..27)::19 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..27)::13 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..27)::12 - MarkupStartTag - [15..18)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [18..23)::5 - [Foo{}] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Text;[{]; - Text;[}]; - MarkupEndTag - [23..27)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - RazorMetaCode - [27..27)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.cspans.txt deleted file mode 100644 index 638db09576b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [73] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [73] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [73] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [73] ) -Code span at (9:0,9 [4] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [73] ) -None span at (13:0,13 [2] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [73] ) -MetaCode span at (15:1,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [73] ) -Markup span at (16:1,1 [2] ) (Accepts:Any) - Parent: Markup block at (16:1,1 [57] ) -Code span at (18:2,0 [4] ) (Accepts:Any) - Parent: Statement block at (18:2,0 [55] ) -Transition span at (22:2,4 [1] ) (Accepts:None) - Parent: Statement block at (18:2,0 [55] ) -Code span at (23:2,5 [17] ) (Accepts:Any) - Parent: Statement block at (18:2,0 [55] ) -Markup span at (40:4,0 [8] ) (Accepts:Any) - Parent: Markup block at (40:4,0 [28] ) -Markup span at (48:4,8 [3] ) (Accepts:None) - Parent: Tag block at (48:4,8 [3] ) -Markup span at (51:4,11 [11] ) (Accepts:Any) - Parent: Markup block at (40:4,0 [28] ) -Markup span at (62:4,22 [4] ) (Accepts:None) - Parent: Tag block at (62:4,22 [4] ) -Markup span at (66:4,26 [2] ) (Accepts:None) - Parent: Markup block at (40:4,0 [28] ) -Code span at (68:5,0 [5] ) (Accepts:Any) - Parent: Statement block at (18:2,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.diag.txt deleted file mode 100644 index e1202f894a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,1): Error RZ1006: The section block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.stree.txt deleted file mode 100644 index 7152eb1c543..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/HandlesUnterminatedSectionWithNestedIf.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..73)::73 - [@section TestLF{LF @if(true)LF {LF

                    Hello World

                    LF }] - MarkupBlock - [0..73)::73 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..73)::73 - RazorDirective - [0..73)::73 - Directive:{section;RazorBlock;Unrestricted} [RZ1006(15:1,0 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..73)::72 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..73)::65 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..13)::4 - [Test] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Test]; - UnclassifiedTextLiteral - [13..15)::2 - [LF] - Gen - SpanEditHandler;Accepts:AllWhitespace - NewLine;[LF]; - RazorMetaCode - [15..16)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - MarkupBlock - [16..73)::57 - MarkupTextLiteral - [16..18)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [18..73)::55 - CSharpStatementLiteral - [18..22)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpTransition - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [23..40)::17 - [if(true)LF {LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [40..68)::28 - MarkupTextLiteral - [40..48)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [48..66)::18 - MarkupStartTag - [48..51)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [51..62)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupEndTag - [62..66)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [66..68)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [68..73)::5 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - RazorMetaCode - [73..73)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.cspans.txt deleted file mode 100644 index 500fddb951b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [8] ) -Code span at (1:0,1 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [8] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.stree.txt deleted file mode 100644 index 8f8cb089b82..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/IgnoresSectionUnlessAllLowerCase.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..12)::12 - [@Section foo] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpImplicitExpression - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..8)::7 - CSharpCodeBlock - [1..8)::7 - CSharpExpressionLiteral - [1..8)::7 - [Section] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[Section]; - MarkupTextLiteral - [8..12)::4 - [ foo] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[foo]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.cspans.txt deleted file mode 100644 index 8e87c7c6c99..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [30] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [30] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [30] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [15] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [14] ) -MetaCode span at (16:0,16 [8] ) (Accepts:None) - Parent: Directive block at (15:0,15 [14] ) -Code span at (24:0,24 [1] ) (Accepts:Whitespace) - Parent: Directive block at (15:0,15 [14] ) -Code span at (25:0,25 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (15:0,15 [14] ) -None span at (28:0,28 [1] ) (Accepts:Whitespace) - Parent: Directive block at (15:0,15 [14] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [15] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.diag.txt deleted file mode 100644 index 7f29e8edf5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,17): Error RZ2005: The 'inherits` directive must appear at the start of the line. -(1,30): Error RZ1017: Unexpected literal following the 'inherits' directive. Expected 'line break'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.stree.txt deleted file mode 100644 index 0a06cbca9af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserDoesNotOutputErrorOtherNestedDirectives.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..30)::30 - [@section foo { @inherits Bar }] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - RazorDirective - [0..30)::30 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..30)::29 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..30)::22 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..29)::15 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [15..29)::14 - RazorDirective - [15..29)::14 - Directive:{inherits;SingleLine;FileScopedSinglyOccurring} [RZ2005(16:0,16 [8] ), RZ1017(29:0,29 [1] )] - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [16..29)::13 - RazorMetaCode - [16..24)::8 - Gen - SpanEditHandler;Accepts:None - Identifier;[inherits]; - CSharpCodeBlock - [24..29)::5 - CSharpStatementLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [25..28)::3 - [Bar] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Bar]; - UnclassifiedTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.cspans.txt deleted file mode 100644 index 7b1ac91e413..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.cspans.txt +++ /dev/null @@ -1,32 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [61] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [61] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [61] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [61] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [61] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [61] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [61] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [46] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [44] ) -MetaCode span at (16:0,16 [7] ) (Accepts:None) - Parent: Directive block at (15:0,15 [44] ) -Code span at (23:0,23 [1] ) (Accepts:Whitespace) - Parent: Directive block at (15:0,15 [44] ) -Code span at (24:0,24 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (15:0,15 [44] ) -None span at (27:0,27 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (15:0,15 [44] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [44] ) -Markup span at (29:0,29 [1] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [29] ) -Markup span at (30:0,30 [3] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [3] ) -Markup span at (33:0,33 [3] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [29] ) -Markup span at (36:0,36 [4] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [4] ) -Markup span at (40:0,40 [1] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [29] ) -Transition span at (41:0,41 [1] ) (Accepts:None) - Parent: Directive block at (41:0,41 [16] ) -MetaCode span at (42:0,42 [7] ) (Accepts:None) - Parent: Directive block at (41:0,41 [16] ) -Code span at (49:0,49 [1] ) (Accepts:Whitespace) - Parent: Directive block at (41:0,41 [16] ) -Code span at (50:0,50 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (41:0,41 [16] ) -None span at (53:0,53 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (41:0,41 [16] ) -MetaCode span at (54:0,54 [1] ) (Accepts:None) - Parent: Directive block at (41:0,41 [16] ) -Markup span at (55:0,55 [1] ) (Accepts:Any) - Parent: Markup block at (55:0,55 [1] ) -MetaCode span at (56:0,56 [1] ) (Accepts:None) - Parent: Directive block at (41:0,41 [16] ) -Markup span at (57:0,57 [1] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [29] ) -MetaCode span at (58:0,58 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [44] ) -Markup span at (59:0,59 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [46] ) -MetaCode span at (60:0,60 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [61] ) -Markup span at (61:0,61 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [61] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.diag.txt deleted file mode 100644 index 5ba54f32e6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.diag.txt +++ /dev/null @@ -1,4 +0,0 @@ -(1,16): Error RZ2002: Section blocks ("@section Header { ... }") cannot be nested. Only one level of section blocks are allowed. -(1,17): Error RZ2005: The 'section` directive must appear at the start of the line. -(1,42): Error RZ2002: Section blocks ("@section Header { ... }") cannot be nested. Only one level of section blocks are allowed. -(1,43): Error RZ2005: The 'section` directive must appear at the start of the line. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.stree.txt deleted file mode 100644 index adfbb5aa6db..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnMultipleNestedSections.stree.txt +++ /dev/null @@ -1,87 +0,0 @@ -RazorDocument - [0..61)::61 - [@section foo { @section bar {

                    Foo

                    @section baz { } } }] - MarkupBlock - [0..61)::61 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..61)::61 - RazorDirective - [0..61)::61 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..61)::60 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..61)::53 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..60)::46 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [15..59)::44 - RazorDirective - [15..59)::44 - Directive:{section;RazorBlock;Unrestricted} [RZ2005(16:0,16 [7] ), RZ2002(15:0,15 [8] )] - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [16..59)::43 - RazorMetaCode - [16..23)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [23..59)::36 - CSharpStatementLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [24..27)::3 - [bar] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[bar]; - UnclassifiedTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [28..29)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [29..58)::29 - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [30..40)::10 - MarkupStartTag - [30..33)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [33..36)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [36..40)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [41..57)::16 - RazorDirective - [41..57)::16 - Directive:{section;RazorBlock;Unrestricted} [RZ2005(42:0,42 [7] ), RZ2002(41:0,41 [8] )] - CSharpTransition - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [42..57)::15 - RazorMetaCode - [42..49)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [49..57)::8 - CSharpStatementLiteral - [49..50)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [50..53)::3 - [baz] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[baz]; - UnclassifiedTextLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [54..55)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [55..56)::1 - MarkupTextLiteral - [55..56)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [56..57)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [57..58)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [58..59)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [59..60)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [60..61)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [61..61)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.cspans.txt deleted file mode 100644 index f4b0f08c70e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.cspans.txt +++ /dev/null @@ -1,23 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [44] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [29] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [27] ) -MetaCode span at (16:0,16 [7] ) (Accepts:None) - Parent: Directive block at (15:0,15 [27] ) -Code span at (23:0,23 [1] ) (Accepts:Whitespace) - Parent: Directive block at (15:0,15 [27] ) -Code span at (24:0,24 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (15:0,15 [27] ) -None span at (27:0,27 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (15:0,15 [27] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [27] ) -Markup span at (29:0,29 [1] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [12] ) -Markup span at (30:0,30 [3] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [3] ) -Markup span at (33:0,33 [3] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [12] ) -Markup span at (36:0,36 [4] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [4] ) -Markup span at (40:0,40 [1] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [12] ) -MetaCode span at (41:0,41 [1] ) (Accepts:None) - Parent: Directive block at (15:0,15 [27] ) -Markup span at (42:0,42 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [29] ) -MetaCode span at (43:0,43 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (44:0,44 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.diag.txt deleted file mode 100644 index 756b35bd862..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,16): Error RZ2002: Section blocks ("@section Header { ... }") cannot be nested. Only one level of section blocks are allowed. -(1,17): Error RZ2005: The 'section` directive must appear at the start of the line. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.stree.txt deleted file mode 100644 index 50696e68f58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParserOutputsErrorOnNestedSections.stree.txt +++ /dev/null @@ -1,64 +0,0 @@ -RazorDocument - [0..44)::44 - [@section foo { @section bar {

                    Foo

                    } }] - MarkupBlock - [0..44)::44 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - RazorDirective - [0..44)::44 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..44)::43 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..44)::36 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..43)::29 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [15..42)::27 - RazorDirective - [15..42)::27 - Directive:{section;RazorBlock;Unrestricted} [RZ2005(16:0,16 [7] ), RZ2002(15:0,15 [8] )] - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [16..42)::26 - RazorMetaCode - [16..23)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [23..42)::19 - CSharpStatementLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [24..27)::3 - [bar] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[bar]; - UnclassifiedTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [28..29)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [29..41)::12 - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [30..40)::10 - MarkupStartTag - [30..33)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [33..36)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [36..40)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.cspans.txt deleted file mode 100644 index 3128f77ff8a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [21] ) -Code span at (9:0,9 [1] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [21] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [21] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (12:0,12 [4] ) (Accepts:None) - Parent: HtmlComment block at (12:0,12 [8] ) -Markup span at (16:0,16 [1] ) (Accepts:Whitespace) - Parent: HtmlComment block at (12:0,12 [8] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: HtmlComment block at (12:0,12 [8] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [8] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.stree.txt deleted file mode 100644 index fe774d10477..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesComment.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..21)::21 - [@section s {}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - RazorDirective - [0..21)::21 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..21)::20 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..21)::13 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..10)::1 - [s] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[s]; - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [12..20)::8 - MarkupCommentBlock - [12..20)::8 - MarkupTextLiteral - [12..16)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.cspans.txt deleted file mode 100644 index 6303d19bfff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [26] ) -Code span at (9:0,9 [1] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [26] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [26] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -Markup span at (12:0,12 [4] ) (Accepts:None) - Parent: HtmlComment block at (12:0,12 [13] ) -Markup span at (16:0,16 [6] ) (Accepts:Whitespace) - Parent: HtmlComment block at (12:0,12 [13] ) -Markup span at (22:0,22 [3] ) (Accepts:None) - Parent: HtmlComment block at (12:0,12 [13] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [13] ) -MetaCode span at (25:0,25 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [26] ) -Markup span at (26:0,26 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.stree.txt deleted file mode 100644 index 3d67883302e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesCommentWithDelimiters.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..26)::26 - [@section s {}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - RazorDirective - [0..26)::26 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..26)::25 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..26)::18 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..10)::1 - [s] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[s]; - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [12..25)::13 - MarkupCommentBlock - [12..25)::13 - MarkupTextLiteral - [12..16)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.cspans.txt deleted file mode 100644 index 288a8a84471..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [27] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [27] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [27] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [12] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [3] ) -Markup span at (18:0,18 [3] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [12] ) -Markup span at (21:0,21 [4] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [4] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [12] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.stree.txt deleted file mode 100644 index 86825c5816e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesNamedSectionCorrectly.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..27)::27 - [@section foo {

                    Foo

                    }] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - RazorDirective - [0..27)::27 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..27)::26 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..27)::19 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..26)::12 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..25)::10 - MarkupStartTag - [15..18)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [18..21)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [21..25)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.cspans.txt deleted file mode 100644 index 468ea2f186d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [28] ) -Code span at (9:0,9 [1] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [28] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [28] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -Markup span at (12:0,12 [15] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [15] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.stree.txt deleted file mode 100644 index a18fe82823b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ParsesXmlProcessingInstruction.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..28)::28 - [@section s { }] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - RazorDirective - [0..28)::28 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..28)::27 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..28)::20 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..10)::1 - [s] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[s]; - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [12..27)::15 - MarkupTextLiteral - [12..27)::15 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - OpenAngle;[<]; - QuestionMark;[?]; - Whitespace;[ ]; - Text;[xml]; - Whitespace;[ ]; - Text;[bleh]; - Whitespace;[ ]; - QuestionMark;[?]; - CloseAngle;[>]; - RazorMetaCode - [27..28)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.cspans.txt deleted file mode 100644 index 0b57ebf59f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [20] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [20] ) -None span at (12:0,12 [8] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (20:1,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.diag.txt deleted file mode 100644 index 079c1c2fda9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,1): Error RZ1012: Unexpected end of file following the 'section' directive. Expected '{'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.stree.txt deleted file mode 100644 index 4aaa12bea36..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndAcceptsWhitespaceToEOLIfSectionNotFollowedByOpenBrace.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..20)::20 - [@section foo LF] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - RazorDirective - [0..20)::20 - Directive:{section;RazorBlock;Unrestricted} [RZ1012(20:1,0 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..20)::19 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..20)::12 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [12..20)::8 - [ LF] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.cspans.txt deleted file mode 100644 index 1b511f83f54..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [9] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [9] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [9] ) -Markup span at (9:0,9 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [3] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Markup span at (19:0,19 [4] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [4] ) -Markup span at (23:0,23 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.diag.txt deleted file mode 100644 index 81ec8bff110..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ1015: The 'section' directive expects an identifier. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.stree.txt deleted file mode 100644 index 7ce390e0b21..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfKeywordNotFollowedByIdentifierStartChar.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..25)::25 - [@section 9 {

                    Foo

                    }] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..9)::9 - RazorDirective - [0..9)::9 - Directive:{section;RazorBlock;Unrestricted} [RZ1015(9:0,9 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..9)::8 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..9)::1 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [9..13)::4 - [9 { ] - Gen - SpanEditHandler;Accepts:Any - Text;[9]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - MarkupElement - [13..23)::10 - MarkupStartTag - [13..16)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [16..19)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [19..23)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [23..25)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.cspans.txt deleted file mode 100644 index b1564f1bc86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [12] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [12] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [12] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [12] ) -Markup span at (12:0,12 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Markup span at (19:0,19 [3] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [3] ) -Markup span at (22:0,22 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Markup span at (25:0,25 [4] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [4] ) -Markup span at (29:0,29 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.diag.txt deleted file mode 100644 index fd83ce295ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,13): Error RZ1017: Unexpected literal following the 'section' directive. Expected '{'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.stree.txt deleted file mode 100644 index 6ba250ccaa1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/ReportsErrorAndTerminatesSectionBlockIfNameNotFollowedByOpenBrace.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..31)::31 - [@section foo-bar {

                    Foo

                    }] - MarkupBlock - [0..31)::31 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - RazorDirective - [0..12)::12 - Directive:{section;RazorBlock;Unrestricted} [RZ1017(12:0,12 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..12)::11 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..12)::4 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - MarkupTextLiteral - [12..19)::7 - [-bar { ] - Gen - SpanEditHandler;Accepts:Any - Text;[-bar]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - MarkupElement - [19..29)::10 - MarkupStartTag - [19..22)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [22..25)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [25..29)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [29..31)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.cspans.txt deleted file mode 100644 index 713abda61d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [31] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [31] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [31] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [31] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [31] ) -Markup span at (14:0,14 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [16] ) -Transition span at (16:1,0 [1] ) (Accepts:None) - Parent: Statement block at (16:1,0 [14] ) -Code span at (17:1,1 [13] ) (Accepts:Any) - Parent: Statement block at (16:1,0 [14] ) -MetaCode span at (30:2,1 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [31] ) -Markup span at (31:2,2 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.stree.txt deleted file mode 100644 index f6f748f9449..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionCorrectlyTerminatedWhenCloseBraceFollowsCodeBlockNoWhitespace.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..31)::31 - [@section Foo {LF@if(true) {LF}}] - MarkupBlock - [0..31)::31 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - RazorDirective - [0..31)::31 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..31)::30 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..31)::23 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..30)::16 - MarkupTextLiteral - [14..16)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [16..30)::14 - CSharpTransition - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [17..30)::13 - [if(true) {LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - RightBrace;[}]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.cspans.txt deleted file mode 100644 index 4ef0cf352d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [33] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [33] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (14:0,14 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [18] ) -Transition span at (16:1,0 [1] ) (Accepts:None) - Parent: Statement block at (16:1,0 [16] ) -Code span at (17:1,1 [15] ) (Accepts:Any) - Parent: Statement block at (16:1,0 [16] ) -MetaCode span at (32:3,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (33:3,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.stree.txt deleted file mode 100644 index 1dd0e697293..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/SectionIsCorrectlyTerminatedWhenCloseBraceImmediatelyFollowsCodeBlock.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..33)::33 - [@section Foo {LF@if(true) {LF}LF}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - RazorDirective - [0..33)::33 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..33)::32 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..33)::25 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..32)::18 - MarkupTextLiteral - [14..16)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [16..32)::16 - CSharpTransition - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [17..32)::15 - [if(true) {LF}LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.cspans.txt deleted file mode 100644 index fd7f466680d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [30] ) -Code span at (9:0,9 [1] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [30] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [30] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -Markup span at (12:0,12 [5] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [17] ) -Markup span at (17:0,17 [6] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [9] ) -Markup span at (23:0,23 [1] ) (Accepts:None) - Parent: Markup block at (23:0,23 [2] ) -Markup span at (24:0,24 [1] ) (Accepts:None) - Parent: Markup block at (23:0,23 [2] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [9] ) -Markup span at (26:0,26 [3] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [17] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [30] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt deleted file mode 100644 index bd38826bb75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..30)::30 - [@section s {}] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - RazorDirective - [0..30)::30 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..30)::29 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..30)::22 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..10)::1 - [s] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[s]; - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [12..29)::17 - MarkupElement - [12..29)::17 - MarkupStartTag - [12..29)::17 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [17..26)::9 - [ foo='@@'] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [23..25)::2 - MarkupBlock - [23..25)::2 - MarkupTextLiteral - [23..24)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [24..25)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [26..27)::1 - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.cspans.txt deleted file mode 100644 index 0a4a2f665f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Code span at (9:0,9 [1] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [44] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (12:0,12 [5] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [31] ) -Markup span at (17:0,17 [6] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [23] ) -Transition span at (23:0,23 [1] ) (Accepts:None) - Parent: Expression block at (23:0,23 [13] ) -Code span at (24:0,24 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (23:0,23 [13] ) -Markup span at (36:0,36 [2] ) (Accepts:None) - Parent: Markup block at (36:0,36 [3] ) -Markup span at (38:0,38 [1] ) (Accepts:None) - Parent: Markup block at (36:0,36 [3] ) -Markup span at (39:0,39 [1] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [23] ) -Markup span at (40:0,40 [3] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [31] ) -MetaCode span at (43:0,43 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (44:0,44 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt deleted file mode 100644 index 2bbe5cc9d9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt +++ /dev/null @@ -1,63 +0,0 @@ -RazorDocument - [0..44)::44 - [@section s {}] - MarkupBlock - [0..44)::44 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - RazorDirective - [0..44)::44 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..44)::43 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..44)::36 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..10)::1 - [s] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[s]; - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [12..43)::31 - MarkupElement - [12..43)::31 - MarkupStartTag - [12..43)::31 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [17..40)::23 - [ foo='@DateTime.Now @@'] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [23..39)::16 - MarkupDynamicAttributeValue - [23..36)::13 - [@DateTime.Now] - GenericBlock - [23..36)::13 - CSharpCodeBlock - [23..36)::13 - CSharpImplicitExpression - [23..36)::13 - CSharpTransition - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [24..36)::12 - CSharpCodeBlock - [24..36)::12 - CSharpExpressionLiteral - [24..36)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupBlock - [36..39)::3 - MarkupTextLiteral - [36..38)::2 - [ @] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Transition;[@]; - MarkupEphemeralTextLiteral - [38..39)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [40..41)::1 - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - RazorMetaCode - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.cspans.txt deleted file mode 100644 index 58aa7eca669..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -Code span at (2:0,2 [50] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [53] ) -MetaCode span at (52:0,52 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -Markup span at (53:0,53 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.stree.txt deleted file mode 100644 index 74ff9e617e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesBracesOutsideStringsIfFirstCharIsBraceAndReturnsSpanOfTypeCode.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..53)::53 - [@{foo"b}ar" if(condition) { string.Format("{0}"); } }] - MarkupBlock - [0..53)::53 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..53)::53 - CSharpStatement - [0..53)::53 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..53)::52 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..52)::50 - CSharpStatementLiteral - [2..52)::50 - [foo"b}ar" if(condition) { string.Format("{0}"); } ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Identifier;[foo]; - StringLiteral;["b}ar"]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[condition]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Keyword;[string]; - Dot;[.]; - Identifier;[Format]; - LeftParenthesis;[(]; - StringLiteral;["{0}"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [52..53)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [53..53)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.cspans.txt deleted file mode 100644 index 99411273661..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [53] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [53] ) -Code span at (2:0,2 [50] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [53] ) -MetaCode span at (52:0,52 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [53] ) -Markup span at (53:0,53 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.stree.txt deleted file mode 100644 index 63046166454..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/BalancesParensOutsideStringsIfFirstCharIsParenAndReturnsSpanOfTypeExpr.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..53)::53 - [@(foo"b)ar" if(condition) { string.Format("{0}"); } )] - MarkupBlock - [0..53)::53 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..53)::53 - CSharpExplicitExpression - [0..53)::53 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..53)::52 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..52)::50 - CSharpExpressionLiteral - [2..52)::50 - [foo"b)ar" if(condition) { string.Format("{0}"); } ] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - StringLiteral;["b)ar"]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[condition]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Keyword;[string]; - Dot;[.]; - Identifier;[Format]; - LeftParenthesis;[(]; - StringLiteral;["{0}"]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [52..53)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [53..53)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.cspans.txt deleted file mode 100644 index 5d386ce1bab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Code span at (2:0,2 [35] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (38:0,38 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.stree.txt deleted file mode 100644 index 14cc48739f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NamespaceImportInsideCodeBlockCausesError.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..38)::38 - [@{ using Foo.Bar.Baz; var foo = bar; }] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpStatement - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..38)::37 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..37)::35 - CSharpStatementLiteral - [2..37)::35 - [ using Foo.Bar.Baz; var foo = bar; ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[using]; - Whitespace;[ ]; - Identifier;[Foo]; - Dot;[.]; - Identifier;[Bar]; - Dot;[.]; - Identifier;[Baz]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.cspans.txt deleted file mode 100644 index 6e4138ea532..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Code span at (2:0,2 [54] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [57] ) -MetaCode span at (56:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Markup span at (57:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.stree.txt deleted file mode 100644 index bf39ca1547b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/NonKeywordStatementInCodeBlockIsHandledCorrectly.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..57)::57 - [@{LF List photos = gallery.Photo.ToList();LF}] - MarkupBlock - [0..57)::57 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..57)::57 - CSharpStatement - [0..57)::57 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..57)::56 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..56)::54 - CSharpStatementLiteral - [2..56)::54 - [LF List photos = gallery.Photo.ToList();LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[List]; - LessThan;[<]; - Identifier;[dynamic]; - GreaterThan;[>]; - Whitespace;[ ]; - Identifier;[photos]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[gallery]; - Dot;[.]; - Identifier;[Photo]; - Dot;[.]; - Identifier;[ToList]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [56..57)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [57..57)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.cspans.txt deleted file mode 100644 index 320067e5793..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.diag.txt deleted file mode 100644 index 6d8d0cd1bbc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1005: "/" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.stree.txt deleted file mode 100644 index f83ce55634a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockIgnoresSingleSlashAtStart.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..6)::6 - [@/ foo] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..6)::5 - [/ foo] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - Whitespace;[ ]; - Text;[foo]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.cspans.txt deleted file mode 100644 index 12ec38b2d10..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Code span at (1:0,1 [26] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [49] ) -Markup span at (27:2,0 [1] ) (Accepts:Any) - Parent: Markup block at (27:2,0 [21] ) -Markup span at (28:2,1 [3] ) (Accepts:None) - Parent: Tag block at (28:2,1 [3] ) -Markup span at (31:2,4 [11] ) (Accepts:Any) - Parent: Markup block at (27:2,0 [21] ) -Markup span at (42:2,15 [4] ) (Accepts:None) - Parent: Tag block at (42:2,15 [4] ) -Markup span at (46:2,19 [2] ) (Accepts:None) - Parent: Markup block at (27:2,0 [21] ) -Code span at (48:3,0 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.stree.txt deleted file mode 100644 index a97f0f58120..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/ParseBlockTerminatesSingleLineCommentAtEndOfLine.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..49)::49 - [@if(!false) {LF // FooLF

                    A real tag!

                    LF}] - MarkupBlock - [0..49)::49 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..49)::49 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..27)::26 - [if(!false) {LF // FooLF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Not;[!]; - Keyword;[false]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - CSharpComment;[// Foo]; - NewLine;[LF]; - MarkupBlock - [27..48)::21 - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [28..46)::18 - MarkupStartTag - [28..31)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [31..42)::11 - [A real tag!] - Gen - SpanEditHandler;Accepts:Any - Text;[A]; - Whitespace;[ ]; - Text;[real]; - Whitespace;[ ]; - Text;[tag]; - Bang;[!]; - MarkupEndTag - [42..46)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [46..48)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [48..49)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.cspans.txt deleted file mode 100644 index 15f7b3d5234..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Code span at (2:0,2 [37] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (39:0,39 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (40:0,40 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.stree.txt deleted file mode 100644 index 54a90a74b88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpSpecialBlockTest/TypeAliasInsideCodeBlockIsNotHandledSpecially.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..40)::40 - [@{ using Foo = Bar.Baz; var foo = bar; }] - MarkupBlock - [0..40)::40 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..40)::40 - CSharpStatement - [0..40)::40 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..40)::39 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..39)::37 - CSharpStatementLiteral - [2..39)::37 - [ using Foo = Bar.Baz; var foo = bar; ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[using]; - Whitespace;[ ]; - Identifier;[Foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[Bar]; - Dot;[.]; - Identifier;[Baz]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [39..40)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.cspans.txt deleted file mode 100644 index d4911d2950c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Code span at (1:0,1 [40] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (41:0,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.stree.txt deleted file mode 100644 index abd0bc235d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/AwaitForEachStatement.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..41)::41 - [@await foreach(var foo in bar) { foo(); }] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..41)::41 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..41)::40 - [await foreach(var foo in bar) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[await]; - Whitespace;[ ]; - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.cspans.txt deleted file mode 100644 index a01e4584d31..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [94] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [94] ) -Code span at (1:0,1 [93] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [94] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.stree.txt deleted file mode 100644 index d369b28d28a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/CatchClause.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..94)::94 - [@try { foo(); } catch(IOException ioex) { handleIO(); } catch(Exception ex) { handleOther(); }] - MarkupBlock - [0..94)::94 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..94)::94 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..94)::93 - [try { foo(); } catch(IOException ioex) { handleIO(); } catch(Exception ex) { handleOther(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[IOException]; - Whitespace;[ ]; - Identifier;[ioex]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[handleIO]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - Whitespace;[ ]; - Identifier;[ex]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[handleOther]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.cspans.txt deleted file mode 100644 index 0ef53c991b9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Code span at (1:0,1 [26] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.stree.txt deleted file mode 100644 index 2861b1c596d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/DoStatement.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..27)::27 - [@do { foo(); } while(true);] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..27)::26 - [do { foo(); } while(true);] - Gen - SpanEditHandler;Accepts:None - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.cspans.txt deleted file mode 100644 index 28d83350e9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Code span at (1:0,1 [35] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.stree.txt deleted file mode 100644 index fd032ca251e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseClause.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..36)::36 - [@if(true) { foo(); } else { foo(); }] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..36)::35 - [if(true) { foo(); } else { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.cspans.txt deleted file mode 100644 index aeec5c79f91..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [73] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [73] ) -Code span at (1:0,1 [72] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [73] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.stree.txt deleted file mode 100644 index ba0efa1002b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ElseIfClause.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..73)::73 - [@if(true) { foo(); } else if(false) { foo(); } else if(!false) { foo(); }] - MarkupBlock - [0..73)::73 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..73)::73 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..73)::72 - [if(true) { foo(); } else if(false) { foo(); } else if(!false) { foo(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Not;[!]; - Keyword;[false]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.cspans.txt deleted file mode 100644 index a4f84055200..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -Code span at (1:0,1 [52] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [53] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.diag.txt deleted file mode 100644 index 821f352b2c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,24): Error RZ1006: The catch block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.stree.txt deleted file mode 100644 index 4c3534f86f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteBody.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..53)::53 - [@try { someMethod(); } catch(Exception) when (true) {] - MarkupBlock - [0..53)::53 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..53)::53 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..53)::52 - [try { someMethod(); } catch(Exception) when (true) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.cspans.txt deleted file mode 100644 index 70b420119b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Code span at (1:0,1 [45] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.diag.txt deleted file mode 100644 index 33043e2030d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,46): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.stree.txt deleted file mode 100644 index c4d32daa6c6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilterError_TryCatchWhen_InCompleteCondition.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..46)::46 - [@try { someMethod(); } catch(Exception) when (] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..46)::45 - [try { someMethod(); } catch(Exception) when (] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.cspans.txt deleted file mode 100644 index 957b72bff83..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [65] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [65] ) -Code span at (1:0,1 [64] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [65] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.stree.txt deleted file mode 100644 index 7ca00fefc7f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchNoBodyWhen.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..65)::65 - [@try { someMethod(); } catch(Exception) when { anotherMethod(); }] - MarkupBlock - [0..65)::65 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..65)::65 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..65)::64 - [try { someMethod(); } catch(Exception) when { anotherMethod(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[anotherMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.cspans.txt deleted file mode 100644 index b12747ada56..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -Code span at (1:0,1 [43] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [44] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.stree.txt deleted file mode 100644 index adbef40a1de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhen.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..44)::44 - [@try { someMethod(); } catch(Exception) when] - MarkupBlock - [0..44)::44 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..44)::43 - [try { someMethod(); } catch(Exception) when] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.cspans.txt deleted file mode 100644 index 4b8a2bb802f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Code span at (1:0,1 [50] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.stree.txt deleted file mode 100644 index 8bd5aa4ee0a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryCatchWhenNoBodies.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..51)::51 - [@try { someMethod(); } catch(Exception) when (true)] - MarkupBlock - [0..51)::51 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..51)::51 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..51)::50 - [try { someMethod(); } catch(Exception) when (true)] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.cspans.txt deleted file mode 100644 index 70af370fb63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Code span at (1:0,1 [21] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:0,22 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.stree.txt deleted file mode 100644 index 9f1d3678206..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_IncompleteTryWhen.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..27)::27 - [@try { someMethod(); } when] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..22)::21 - [try { someMethod(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [22..27)::5 - [ when] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[when]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.cspans.txt deleted file mode 100644 index 1c9dd5a6591..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [103] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [103] ) -Code span at (1:0,1 [102] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [103] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.stree.txt deleted file mode 100644 index adbc2b8c66d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_MultiLine.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..103)::103 - [@tryLF{LFA();LF}LFcatch(Exception) when (true)LF{LFB();LF}LFcatch(IOException) when (false)LF{LFC();LF}] - MarkupBlock - [0..103)::103 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..103)::103 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..103)::102 - [tryLF{LFA();LF}LFcatch(Exception) when (true)LF{LFB();LF}LFcatch(IOException) when (false)LF{LFC();LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - NewLine;[LF]; - LeftBrace;[{]; - NewLine;[LF]; - Identifier;[A]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - NewLine;[LF]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - NewLine;[LF]; - LeftBrace;[{]; - NewLine;[LF]; - Identifier;[B]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; - NewLine;[LF]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[IOException]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - NewLine;[LF]; - LeftBrace;[{]; - NewLine;[LF]; - Identifier;[C]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.cspans.txt deleted file mode 100644 index 54e259787a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [69] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [69] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [69] ) -Code span at (2:0,2 [66] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [69] ) -MetaCode span at (68:0,68 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [69] ) -Markup span at (69:0,69 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [69] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.stree.txt deleted file mode 100644 index 8afdc4bc9d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_NestedTryCatchWhen.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..69)::69 - [@{try { someMethod(); } catch(Exception) when (true) { handleIO(); }}] - MarkupBlock - [0..69)::69 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..69)::69 - CSharpStatement - [0..69)::69 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..69)::68 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..68)::66 - CSharpStatementLiteral - [2..68)::66 - [try { someMethod(); } catch(Exception) when (true) { handleIO(); }] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[handleIO]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - RazorMetaCode - [68..69)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [69..69)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.cspans.txt deleted file mode 100644 index eaf9d4d8805..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [92] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [92] ) -Code span at (1:0,1 [91] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [92] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.stree.txt deleted file mode 100644 index 89d4307ace8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenCatchWhenComplete_SingleLine.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..92)::92 - [@try { A(); } catch(Exception) when (true) { B(); } catch(IOException) when (false) { C(); }] - MarkupBlock - [0..92)::92 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..92)::92 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..92)::91 - [try { A(); } catch(Exception) when (true) { B(); } catch(IOException) when (false) { C(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[A]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[B]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[IOException]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[C]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.cspans.txt deleted file mode 100644 index 2d883a5590b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [67] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [67] ) -Code span at (1:0,1 [66] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [67] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.stree.txt deleted file mode 100644 index 8a1e9740633..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenComplete_SingleLine.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..67)::67 - [@try { someMethod(); } catch(Exception) when (true) { handleIO(); }] - MarkupBlock - [0..67)::67 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..67)::67 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..67)::66 - [try { someMethod(); } catch(Exception) when (true) { handleIO(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someMethod]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[handleIO]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.cspans.txt deleted file mode 100644 index 4852e2bc047..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Code span at (1:0,1 [67] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Markup span at (68:0,68 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.stree.txt deleted file mode 100644 index 0a385e2668f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ExceptionFilter_TryCatchWhenFinallyComplete_SingleLine.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..68)::68 - [@try { A(); } catch(Exception) when (true) { B(); } finally { C(); }] - MarkupBlock - [0..68)::68 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..68)::68 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..68)::67 - [try { A(); } catch(Exception) when (true) { B(); } finally { C(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[A]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[catch]; - LeftParenthesis;[(]; - Identifier;[Exception]; - RightParenthesis;[)]; - Whitespace;[ ]; - Keyword;[when]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[B]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[C]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [68..68)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.cspans.txt deleted file mode 100644 index 0b4bcf4edfc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Code span at (1:0,1 [37] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (38:0,38 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.stree.txt deleted file mode 100644 index a954f77c660..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/FinallyClause.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..38)::38 - [@try { foo(); } finally { Dispose(); }] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..38)::37 - [try { foo(); } finally { Dispose(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[finally]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Dispose]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.cspans.txt deleted file mode 100644 index dce52a5221b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Code span at (1:0,1 [34] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Markup span at (35:0,35 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.stree.txt deleted file mode 100644 index 5bf4fcfbaff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForEachStatement.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..35)::35 - [@foreach(var foo in bar) { foo(); }] - MarkupBlock - [0..35)::35 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..35)::35 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..35)::34 - [foreach(var foo in bar) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.cspans.txt deleted file mode 100644 index 1c487bc0c6b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Code span at (1:0,1 [42] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (43:0,43 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.stree.txt deleted file mode 100644 index 12634efa7eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/ForStatement.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..43)::43 - [@for(int i = 0; i++; i < length) { foo(); }] - MarkupBlock - [0..43)::43 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..43)::43 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..43)::42 - [for(int i = 0; i++; i < length) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[for]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - Identifier;[length]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.cspans.txt deleted file mode 100644 index 887f311722e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.stree.txt deleted file mode 100644 index 70766aa364d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/IfStatement.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..20)::20 - [@if(true) { foo(); }] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..20)::19 - [if(true) { foo(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.cspans.txt deleted file mode 100644 index 33dc768c7d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Code span at (1:0,1 [20] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.stree.txt deleted file mode 100644 index 1bb156c26da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/LockStatement.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..21)::21 - [@lock(baz) { foo(); }] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..21)::20 - [lock(baz) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[lock]; - LeftParenthesis;[(]; - Identifier;[baz]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.cspans.txt deleted file mode 100644 index 2ed26af5984..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Code span at (1:0,1 [38] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [39] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.diag.txt deleted file mode 100644 index 994acd46f2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,15): Error RZ1027: An opening "(" is missing the corresponding closing ")". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.stree.txt deleted file mode 100644 index e0398c59233..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/MalformedAwaitForEachStatement.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..39)::39 - [@await foreach(var foo in bar { foo(); ] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..39)::39 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..39)::38 - [await foreach(var foo in bar { foo(); ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[await]; - Whitespace;[ ]; - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[bar]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.cspans.txt deleted file mode 100644 index 11ff79adf06..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [3] ) -Code span at (1:0,1 [2] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [3] ) -Markup span at (3:0,3 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.stree.txt deleted file mode 100644 index a55975b6136..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/NonBlockKeywordTreatedAsImplicitExpression.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..7)::7 - [@is foo] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..3)::3 - CSharpImplicitExpression - [0..3)::3 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..3)::2 - CSharpCodeBlock - [1..3)::2 - CSharpExpressionLiteral - [1..3)::2 - [is] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Keyword;[is]; - MarkupTextLiteral - [3..7)::4 - [ foo] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[foo]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.cspans.txt deleted file mode 100644 index 8ead4f60c21..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [40] ) -Code span at (1:0,1 [39] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [40] ) -Markup span at (40:0,40 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.stree.txt deleted file mode 100644 index 6769177337c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_Complete_Spaced.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..42)::42 - [@using static global::System.Console ] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..40)::40 - RazorDirective - [0..40)::40 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..40)::39 - CSharpStatementLiteral - [1..40)::39 - [using static global::System.Console] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Keyword;[static]; - Whitespace;[ ]; - Identifier;[global]; - DoubleColon;[::]; - Identifier;[System]; - Dot;[.]; - Identifier;[Console]; - MarkupTextLiteral - [40..42)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.cspans.txt deleted file mode 100644 index e4feb782e23..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [36] ) -Code span at (1:0,1 [35] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.stree.txt deleted file mode 100644 index 2944c79da19..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_GlobalPrefix.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..36)::36 - [@using static global::System.Console] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - RazorDirective - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..36)::35 - CSharpStatementLiteral - [1..36)::35 - [using static global::System.Console] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Keyword;[static]; - Whitespace;[ ]; - Identifier;[global]; - DoubleColon;[::]; - Identifier;[System]; - Dot;[.]; - Identifier;[Console]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.cspans.txt deleted file mode 100644 index 8510b2c37d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -Code span at (1:0,1 [27] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [28] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.stree.txt deleted file mode 100644 index 553f6174f22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_MultipleIdentifiers.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..28)::28 - [@using static System.Console] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - RazorDirective - [0..28)::28 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..28)::27 - CSharpStatementLiteral - [1..28)::27 - [using static System.Console] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Keyword;[static]; - Whitespace;[ ]; - Identifier;[System]; - Dot;[.]; - Identifier;[Console]; - MarkupTextLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.cspans.txt deleted file mode 100644 index 6baa3a6c93f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [13] ) -Code span at (1:0,1 [12] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [13] ) -Markup span at (13:0,13 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.stree.txt deleted file mode 100644 index 25a5facf95b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_NoUsing.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..13)::13 - [@using static] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..13)::13 - RazorDirective - [0..13)::13 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..13)::12 - CSharpStatementLiteral - [1..13)::12 - [using static] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Keyword;[static]; - MarkupTextLiteral - [13..13)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.cspans.txt deleted file mode 100644 index c2b5fb0a369..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Code span at (1:0,1 [19] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.stree.txt deleted file mode 100644 index 87f25da2f14..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/StaticUsing_SingleIdentifier.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..20)::20 - [@using static System] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - RazorDirective - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..20)::19 - CSharpStatementLiteral - [1..20)::19 - [using static System] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Keyword;[static]; - Whitespace;[ ]; - Identifier;[System]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.cspans.txt deleted file mode 100644 index cdeba78164e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (1:0,1 [22] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.stree.txt deleted file mode 100644 index 5ccdbf8b7ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/SwitchStatement.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..23)::23 - [@switch(foo) { foo(); }] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..23)::22 - [switch(foo) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[switch]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.cspans.txt deleted file mode 100644 index 11cc3bcb682..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Code span at (1:0,1 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.stree.txt deleted file mode 100644 index 9f95d564bfc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/TryStatement.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..15)::15 - [@try { foo(); }] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..15)::14 - [try { foo(); }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[try]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.cspans.txt deleted file mode 100644 index e3ee30b6829..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [41] ) -Code span at (1:0,1 [40] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [41] ) -Markup span at (41:0,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.stree.txt deleted file mode 100644 index a3d95afa7e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingNamespaceImport.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..41)::41 - [@using System.Text.Encoding.ASCIIEncoding] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..41)::41 - RazorDirective - [0..41)::41 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..41)::40 - CSharpStatementLiteral - [1..41)::40 - [using System.Text.Encoding.ASCIIEncoding] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupTextLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.cspans.txt deleted file mode 100644 index 6a5ad243c36..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Code span at (1:0,1 [41] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (42:0,42 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.stree.txt deleted file mode 100644 index 9747414ae43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingStatement.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..42)::42 - [@using(var foo = new Foo()) { foo.Bar(); }] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..42)::41 - [using(var foo = new Foo()) { foo.Bar(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[using]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[new]; - Whitespace;[ ]; - Identifier;[Foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - Dot;[.]; - Identifier;[Bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.cspans.txt deleted file mode 100644 index cde43d9d9b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [79] ) -Code span at (1:0,1 [78] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [79] ) -Markup span at (79:0,79 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [79] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.stree.txt deleted file mode 100644 index ea46ea988b2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/UsingTypeAlias.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..79)::79 - [@using StringDictionary = System.Collections.Generic.Dictionary] - MarkupBlock - [0..79)::79 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..79)::79 - RazorDirective - [0..79)::79 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..79)::78 - CSharpStatementLiteral - [1..79)::78 - [using StringDictionary = System.Collections.Generic.Dictionary] - Gen;> - SpanEditHandler;Accepts:AnyExceptNewline - Keyword;[using]; - Whitespace;[ ]; - Identifier;[StringDictionary]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[System]; - Dot;[.]; - Identifier;[Collections]; - Dot;[.]; - Identifier;[Generic]; - Dot;[.]; - Identifier;[Dictionary]; - LessThan;[<]; - Keyword;[string]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - GreaterThan;[>]; - MarkupTextLiteral - [79..79)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.cspans.txt deleted file mode 100644 index 8fd6b20bde9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [126] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [126] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [126] ) -Code span at (2:0,2 [123] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [126] ) -MetaCode span at (125:0,125 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [126] ) -Markup span at (126:0,126 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [126] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.stree.txt deleted file mode 100644 index a3eed94cbe2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Complex.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..126)::126 - [@{ using Some.Disposable.TypeName foo = GetDisposable(() => { using var bar = otherDisposable; }); }] - MarkupBlock - [0..126)::126 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..126)::126 - CSharpStatement - [0..126)::126 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..126)::125 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..125)::123 - CSharpStatementLiteral - [2..125)::123 - [ using Some.Disposable.TypeName foo = GetDisposable(() => { using var bar = otherDisposable; }); ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[using]; - Whitespace;[ ]; - Identifier;[Some]; - Dot;[.]; - Identifier;[Disposable]; - Dot;[.]; - Identifier;[TypeName]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[GetDisposable]; - LessThan;[<]; - Identifier;[Some]; - Dot;[.]; - Identifier;[Disposable]; - Dot;[.]; - Identifier;[TypeName]; - GreaterThan;[>]; - LeftParenthesis;[(]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Whitespace;[ ]; - GreaterThanEqual;[=>]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Keyword;[using]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[bar]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[otherDisposable]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [125..126)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [126..126)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.cspans.txt deleted file mode 100644 index 3b71285c088..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Code span at (2:0,2 [33] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (35:0,35 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.stree.txt deleted file mode 100644 index 3a8984ebc94..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/Using_VariableDeclaration_Simple.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..36)::36 - [@{ using var foo = someDisposable; }] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - CSharpStatement - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..36)::35 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..35)::33 - CSharpStatementLiteral - [2..35)::33 - [ using var foo = someDisposable; ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[using]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[someDisposable]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [35..36)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.cspans.txt deleted file mode 100644 index cdeba78164e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (1:0,1 [22] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.stree.txt deleted file mode 100644 index 4174c105bcd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpStatementTest/WhileStatement.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..23)::23 - [@while(true) { foo(); }] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..23)::22 - [while(true) { foo(); }] - Gen - SpanEditHandler;Accepts:None - Keyword;[while]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.cspans.txt deleted file mode 100644 index 91eb2c5b1de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [38] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [38] ) -Code span at (2:0,2 [16] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [38] ) -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Markup block at (18:0,18 [18] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (19:0,19 [3] ) -Markup span at (22:0,22 [5] ) (Accepts:Any) - Parent: Markup block at (18:0,18 [18] ) -Transition span at (27:0,27 [1] ) (Accepts:None) - Parent: Expression block at (27:0,27 [5] ) -Code span at (28:0,28 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (27:0,27 [5] ) -Markup span at (32:0,32 [4] ) (Accepts:None) - Parent: Tag block at (32:0,32 [4] ) -Code span at (36:0,36 [1] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [38] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [38] ) -Markup span at (38:0,38 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.stree.txt deleted file mode 100644 index d6482c071fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInExplicitExpressionParens.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..38)::38 - [@(Html.Repeat(10, @

                    Foo #@item

                    ))] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpExplicitExpression - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [1..38)::37 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [2..37)::35 - CSharpExpressionLiteral - [2..18)::16 - [Html.Repeat(10, ] - Gen - SpanEditHandler;Accepts:Any - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [18..36)::18 - MarkupBlock - [18..36)::18 - MarkupTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [19..36)::17 - MarkupStartTag - [19..22)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [22..27)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [27..32)::5 - CSharpImplicitExpression - [27..32)::5 - CSharpTransition - [27..28)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [28..32)::4 - CSharpCodeBlock - [28..32)::4 - CSharpExpressionLiteral - [28..32)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [32..36)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [36..37)::1 - [)] - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[)]; - RazorMetaCode - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.cspans.txt deleted file mode 100644 index 90df13237d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [36] ) -Code span at (1:0,1 [16] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [36] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (17:0,17 [18] ) -Markup span at (18:0,18 [3] ) (Accepts:None) - Parent: Tag block at (18:0,18 [3] ) -Markup span at (21:0,21 [5] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [18] ) -Transition span at (26:0,26 [1] ) (Accepts:None) - Parent: Expression block at (26:0,26 [5] ) -Code span at (27:0,27 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (26:0,26 [5] ) -Markup span at (31:0,31 [4] ) (Accepts:None) - Parent: Tag block at (31:0,31 [4] ) -Code span at (35:0,35 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.stree.txt deleted file mode 100644 index c12bad27f9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInImplicitExpressionParens.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..36)::36 - [@Html.Repeat(10, @

                    Foo #@item

                    )] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - CSharpImplicitExpression - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..36)::35 - CSharpCodeBlock - [1..36)::35 - CSharpExpressionLiteral - [1..17)::16 - [Html.Repeat(10, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [17..35)::18 - MarkupBlock - [17..35)::18 - MarkupTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [18..35)::17 - MarkupStartTag - [18..21)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [21..26)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [26..31)::5 - CSharpImplicitExpression - [26..31)::5 - CSharpTransition - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [27..31)::4 - CSharpCodeBlock - [27..31)::4 - CSharpExpressionLiteral - [27..31)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [31..35)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [35..36)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.cspans.txt deleted file mode 100644 index 185f8e0ad1c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [71] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [71] ) -Code span at (1:0,1 [48] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [71] ) -Transition span at (49:0,49 [1] ) (Accepts:None) - Parent: Markup block at (49:0,49 [18] ) -Markup span at (50:0,50 [3] ) (Accepts:None) - Parent: Tag block at (50:0,50 [3] ) -Markup span at (53:0,53 [5] ) (Accepts:Any) - Parent: Markup block at (49:0,49 [18] ) -Transition span at (58:0,58 [1] ) (Accepts:None) - Parent: Expression block at (58:0,58 [5] ) -Code span at (59:0,59 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (58:0,58 [5] ) -Markup span at (63:0,63 [4] ) (Accepts:None) - Parent: Tag block at (63:0,63 [4] ) -Code span at (67:0,67 [4] ) (Accepts:None) - Parent: Statement block at (0:0,0 [71] ) -Markup span at (71:0,71 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [71] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.stree.txt deleted file mode 100644 index c5e726c705b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinCodeBlock.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..71)::71 - [@foreach(foo in Bar) { Html.ExecuteTemplate(foo, @

                    Foo #@item

                    ); }] - MarkupBlock - [0..71)::71 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..71)::71 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..49)::48 - [foreach(foo in Bar) { Html.ExecuteTemplate(foo, ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [49..67)::18 - MarkupBlock - [49..67)::18 - MarkupTransition - [49..50)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [50..67)::17 - MarkupStartTag - [50..53)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [53..58)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [58..63)::5 - CSharpImplicitExpression - [58..63)::5 - CSharpTransition - [58..59)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [59..63)::4 - CSharpCodeBlock - [59..63)::4 - CSharpExpressionLiteral - [59..63)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [63..67)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [67..71)::4 - [); }] - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [71..71)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.cspans.txt deleted file mode 100644 index f0f818c60c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [66] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [66] ) -Code span at (2:0,2 [42] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [66] ) -Transition span at (44:0,44 [1] ) (Accepts:None) - Parent: Markup block at (44:0,44 [18] ) -Markup span at (45:0,45 [3] ) (Accepts:None) - Parent: Tag block at (45:0,45 [3] ) -Markup span at (48:0,48 [5] ) (Accepts:Any) - Parent: Markup block at (44:0,44 [18] ) -Transition span at (53:0,53 [1] ) (Accepts:None) - Parent: Expression block at (53:0,53 [5] ) -Code span at (54:0,54 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (53:0,53 [5] ) -Markup span at (58:0,58 [4] ) (Accepts:None) - Parent: Tag block at (58:0,58 [4] ) -Code span at (62:0,62 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [66] ) -MetaCode span at (65:0,65 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [66] ) -Markup span at (66:0,66 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.stree.txt deleted file mode 100644 index 2073b33dd27..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSimpleTemplateInStatementWithinStatementBlock.stree.txt +++ /dev/null @@ -1,64 +0,0 @@ -RazorDocument - [0..66)::66 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @

                    Foo #@item

                    ); }] - MarkupBlock - [0..66)::66 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..66)::66 - CSharpStatement - [0..66)::66 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..66)::65 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..65)::63 - CSharpStatementLiteral - [2..44)::42 - [ var foo = bar; Html.ExecuteTemplate(foo, ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [44..62)::18 - MarkupBlock - [44..62)::18 - MarkupTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [45..62)::17 - MarkupStartTag - [45..48)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [48..53)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [53..58)::5 - CSharpImplicitExpression - [53..58)::5 - CSharpTransition - [53..54)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [54..58)::4 - CSharpCodeBlock - [54..58)::4 - CSharpExpressionLiteral - [54..58)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [58..62)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [62..65)::3 - [); ] - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [65..66)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [66..66)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.cspans.txt deleted file mode 100644 index bd2c061107d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Code span at (2:0,2 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [12] ) -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Markup block at (3:0,3 [8] ) -MetaCode span at (4:0,4 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [8] ) -Markup span at (5:0,5 [6] ) (Accepts:None) - Parent: Markup block at (3:0,3 [8] ) -Code span at (11:1,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (11:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Markup span at (12:1,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.stree.txt deleted file mode 100644 index 6f9495273c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineImmediatelyFollowingStatementChar.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..12)::12 - [@{i@: barLF}] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - CSharpStatement - [0..12)::12 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..12)::11 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..11)::9 - CSharpStatementLiteral - [2..3)::1 - [i] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Identifier;[i]; - CSharpTemplateBlock - [3..11)::8 - MarkupBlock - [3..11)::8 - MarkupTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [4..5)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [5..11)::6 - [ barLF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[bar]; - NewLine;[LF]; - CSharpStatementLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [12..12)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.cspans.txt deleted file mode 100644 index 5c5175b1b78..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Code span at (2:0,2 [11] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Markup block at (13:0,13 [8] ) -MetaCode span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (13:0,13 [8] ) -Markup span at (15:0,15 [6] ) (Accepts:None) - Parent: Markup block at (13:0,13 [8] ) -Code span at (21:1,0 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (23:1,2 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (24:1,3 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.stree.txt deleted file mode 100644 index 986b3afba43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesSingleLineTemplate.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..24)::24 - [@{ var foo = @: barLF; }] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - CSharpStatementLiteral - [2..13)::11 - [ var foo = ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - CSharpTemplateBlock - [13..21)::8 - MarkupBlock - [13..21)::8 - MarkupTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [14..15)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [15..21)::6 - [ barLF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[bar]; - NewLine;[LF]; - CSharpStatementLiteral - [21..23)::2 - [; ] - Gen - SpanEditHandler;Accepts:Any - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.cspans.txt deleted file mode 100644 index f16349c57b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [56] ) -Code span at (1:0,1 [16] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [56] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (17:0,17 [18] ) -Markup span at (18:0,18 [3] ) (Accepts:None) - Parent: Tag block at (18:0,18 [3] ) -Markup span at (21:0,21 [5] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [18] ) -Transition span at (26:0,26 [1] ) (Accepts:None) - Parent: Expression block at (26:0,26 [5] ) -Code span at (27:0,27 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (26:0,26 [5] ) -Markup span at (31:0,31 [4] ) (Accepts:None) - Parent: Tag block at (31:0,31 [4] ) -Code span at (35:0,35 [2] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [56] ) -Transition span at (37:0,37 [1] ) (Accepts:None) - Parent: Markup block at (37:0,37 [18] ) -Markup span at (38:0,38 [3] ) (Accepts:None) - Parent: Tag block at (38:0,38 [3] ) -Markup span at (41:0,41 [5] ) (Accepts:Any) - Parent: Markup block at (37:0,37 [18] ) -Transition span at (46:0,46 [1] ) (Accepts:None) - Parent: Expression block at (46:0,46 [5] ) -Code span at (47:0,47 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (46:0,46 [5] ) -Markup span at (51:0,51 [4] ) (Accepts:None) - Parent: Tag block at (51:0,51 [4] ) -Code span at (55:0,55 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [56] ) -Markup span at (56:0,56 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.stree.txt deleted file mode 100644 index a14beedeabc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInImplicitExpressionParens.stree.txt +++ /dev/null @@ -1,77 +0,0 @@ -RazorDocument - [0..56)::56 - [@Html.Repeat(10, @

                    Foo #@item

                    , @

                    Foo #@item

                    )] - MarkupBlock - [0..56)::56 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..56)::56 - CSharpImplicitExpression - [0..56)::56 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..56)::55 - CSharpCodeBlock - [1..56)::55 - CSharpExpressionLiteral - [1..17)::16 - [Html.Repeat(10, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [17..35)::18 - MarkupBlock - [17..35)::18 - MarkupTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [18..35)::17 - MarkupStartTag - [18..21)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [21..26)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [26..31)::5 - CSharpImplicitExpression - [26..31)::5 - CSharpTransition - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [27..31)::4 - CSharpCodeBlock - [27..31)::4 - CSharpExpressionLiteral - [27..31)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [31..35)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [35..37)::2 - [, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [37..55)::18 - MarkupBlock - [37..55)::18 - MarkupTransition - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [38..55)::17 - MarkupStartTag - [38..41)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [41..46)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [46..51)::5 - CSharpImplicitExpression - [46..51)::5 - CSharpTransition - [46..47)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [47..51)::4 - CSharpCodeBlock - [47..51)::4 - CSharpExpressionLiteral - [47..51)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [51..55)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [55..56)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupTextLiteral - [56..56)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.cspans.txt deleted file mode 100644 index 995931257de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [91] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [91] ) -Code span at (1:0,1 [48] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [91] ) -Transition span at (49:0,49 [1] ) (Accepts:None) - Parent: Markup block at (49:0,49 [18] ) -Markup span at (50:0,50 [3] ) (Accepts:None) - Parent: Tag block at (50:0,50 [3] ) -Markup span at (53:0,53 [5] ) (Accepts:Any) - Parent: Markup block at (49:0,49 [18] ) -Transition span at (58:0,58 [1] ) (Accepts:None) - Parent: Expression block at (58:0,58 [5] ) -Code span at (59:0,59 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (58:0,58 [5] ) -Markup span at (63:0,63 [4] ) (Accepts:None) - Parent: Tag block at (63:0,63 [4] ) -Code span at (67:0,67 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [91] ) -Transition span at (69:0,69 [1] ) (Accepts:None) - Parent: Markup block at (69:0,69 [18] ) -Markup span at (70:0,70 [3] ) (Accepts:None) - Parent: Tag block at (70:0,70 [3] ) -Markup span at (73:0,73 [5] ) (Accepts:Any) - Parent: Markup block at (69:0,69 [18] ) -Transition span at (78:0,78 [1] ) (Accepts:None) - Parent: Expression block at (78:0,78 [5] ) -Code span at (79:0,79 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (78:0,78 [5] ) -Markup span at (83:0,83 [4] ) (Accepts:None) - Parent: Tag block at (83:0,83 [4] ) -Code span at (87:0,87 [4] ) (Accepts:None) - Parent: Statement block at (0:0,0 [91] ) -Markup span at (91:0,91 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [91] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.stree.txt deleted file mode 100644 index e304e697fff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlesTwoTemplatesInStatementWithinCodeBlock.stree.txt +++ /dev/null @@ -1,88 +0,0 @@ -RazorDocument - [0..91)::91 - [@foreach(foo in Bar) { Html.ExecuteTemplate(foo, @

                    Foo #@item

                    , @

                    Foo #@item

                    ); }] - MarkupBlock - [0..91)::91 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..91)::91 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..49)::48 - [foreach(foo in Bar) { Html.ExecuteTemplate(foo, ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [49..67)::18 - MarkupBlock - [49..67)::18 - MarkupTransition - [49..50)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [50..67)::17 - MarkupStartTag - [50..53)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [53..58)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [58..63)::5 - CSharpImplicitExpression - [58..63)::5 - CSharpTransition - [58..59)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [59..63)::4 - CSharpCodeBlock - [59..63)::4 - CSharpExpressionLiteral - [59..63)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [63..67)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [67..69)::2 - [, ] - Gen - SpanEditHandler;Accepts:Any - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [69..87)::18 - MarkupBlock - [69..87)::18 - MarkupTransition - [69..70)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [70..87)::17 - MarkupStartTag - [70..73)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [73..78)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [78..83)::5 - CSharpImplicitExpression - [78..83)::5 - CSharpTransition - [78..79)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [79..83)::4 - CSharpCodeBlock - [79..83)::4 - CSharpExpressionLiteral - [79..83)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [83..87)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [87..91)::4 - [); }] - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [91..91)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.cspans.txt deleted file mode 100644 index 217bee2ec1c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.cspans.txt +++ /dev/null @@ -1,20 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [86] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [86] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [86] ) -Code span at (2:0,2 [42] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [86] ) -Transition span at (44:0,44 [1] ) (Accepts:None) - Parent: Markup block at (44:0,44 [18] ) -Markup span at (45:0,45 [3] ) (Accepts:None) - Parent: Tag block at (45:0,45 [3] ) -Markup span at (48:0,48 [5] ) (Accepts:Any) - Parent: Markup block at (44:0,44 [18] ) -Transition span at (53:0,53 [1] ) (Accepts:None) - Parent: Expression block at (53:0,53 [5] ) -Code span at (54:0,54 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (53:0,53 [5] ) -Markup span at (58:0,58 [4] ) (Accepts:None) - Parent: Tag block at (58:0,58 [4] ) -Code span at (62:0,62 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [86] ) -Transition span at (64:0,64 [1] ) (Accepts:None) - Parent: Markup block at (64:0,64 [18] ) -Markup span at (65:0,65 [3] ) (Accepts:None) - Parent: Tag block at (65:0,65 [3] ) -Markup span at (68:0,68 [5] ) (Accepts:Any) - Parent: Markup block at (64:0,64 [18] ) -Transition span at (73:0,73 [1] ) (Accepts:None) - Parent: Expression block at (73:0,73 [5] ) -Code span at (74:0,74 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (73:0,73 [5] ) -Markup span at (78:0,78 [4] ) (Accepts:None) - Parent: Tag block at (78:0,78 [4] ) -Code span at (82:0,82 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [86] ) -MetaCode span at (85:0,85 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [86] ) -Markup span at (86:0,86 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [86] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.stree.txt deleted file mode 100644 index 3d0ccca4b4b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/HandlessTwoTemplatesInStatementWithinStatementBlock.stree.txt +++ /dev/null @@ -1,93 +0,0 @@ -RazorDocument - [0..86)::86 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @

                    Foo #@item

                    , @

                    Foo #@item

                    ); }] - MarkupBlock - [0..86)::86 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..86)::86 - CSharpStatement - [0..86)::86 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..86)::85 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..85)::83 - CSharpStatementLiteral - [2..44)::42 - [ var foo = bar; Html.ExecuteTemplate(foo, ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [44..62)::18 - MarkupBlock - [44..62)::18 - MarkupTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [45..62)::17 - MarkupStartTag - [45..48)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [48..53)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [53..58)::5 - CSharpImplicitExpression - [53..58)::5 - CSharpTransition - [53..54)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [54..58)::4 - CSharpCodeBlock - [54..58)::4 - CSharpExpressionLiteral - [54..58)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [58..62)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [62..64)::2 - [, ] - Gen - SpanEditHandler;Accepts:Any - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [64..82)::18 - MarkupBlock - [64..82)::18 - MarkupTransition - [64..65)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [65..82)::17 - MarkupStartTag - [65..68)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [68..73)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [73..78)::5 - CSharpImplicitExpression - [73..78)::5 - CSharpTransition - [73..74)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [74..78)::4 - CSharpCodeBlock - [74..78)::4 - CSharpExpressionLiteral - [74..78)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [78..82)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [82..85)::3 - [); ] - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [85..86)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [86..86)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.cspans.txt deleted file mode 100644 index c926c0bb0d3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [62] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [62] ) -Code span at (1:0,1 [16] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [62] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (17:0,17 [44] ) -Markup span at (18:0,18 [3] ) (Accepts:None) - Parent: Tag block at (18:0,18 [3] ) -Markup span at (21:0,21 [5] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [44] ) -Transition span at (26:0,26 [1] ) (Accepts:None) - Parent: Expression block at (26:0,26 [31] ) -Code span at (27:0,27 [16] ) (Accepts:Any) - Parent: Expression block at (26:0,26 [31] ) -Transition span at (43:0,43 [1] ) (Accepts:None) - Parent: Markup block at (43:0,43 [13] ) -Markup span at (44:0,44 [3] ) (Accepts:None) - Parent: Tag block at (44:0,44 [3] ) -Markup span at (47:0,47 [0] ) (Accepts:Any) - Parent: Markup block at (43:0,43 [13] ) -Transition span at (47:0,47 [1] ) (Accepts:None) - Parent: Expression block at (47:0,47 [5] ) -Code span at (48:0,48 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (47:0,47 [5] ) -Markup span at (52:0,52 [4] ) (Accepts:None) - Parent: Tag block at (52:0,52 [4] ) -Code span at (56:0,56 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (26:0,26 [31] ) -Markup span at (57:0,57 [4] ) (Accepts:None) - Parent: Tag block at (57:0,57 [4] ) -Code span at (61:0,61 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [62] ) -Markup span at (62:0,62 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [62] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.diag.txt deleted file mode 100644 index f634e63ad37..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,44): Error RZ2003: Inline markup blocks (@

                    Content

                    ) cannot be nested. Only one level of inline markup is allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.stree.txt deleted file mode 100644 index df8ed3f5c90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInImplicitExprParens.stree.txt +++ /dev/null @@ -1,80 +0,0 @@ -RazorDocument - [0..62)::62 - [@Html.Repeat(10, @

                    Foo #@Html.Repeat(10, @

                    @item

                    )

                    )] - MarkupBlock - [0..62)::62 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..62)::62 - CSharpImplicitExpression - [0..62)::62 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..62)::61 - CSharpCodeBlock - [1..62)::61 - CSharpExpressionLiteral - [1..17)::16 - [Html.Repeat(10, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [17..61)::44 - MarkupBlock - [17..61)::44 - MarkupTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [18..61)::43 - MarkupStartTag - [18..21)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [21..26)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [26..57)::31 - CSharpImplicitExpression - [26..57)::31 - CSharpTransition - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [27..57)::30 - CSharpCodeBlock - [27..57)::30 - CSharpExpressionLiteral - [27..43)::16 - [Html.Repeat(10, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [43..56)::13 - MarkupBlock - [43..56)::13 - MarkupTransition - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [44..56)::12 - MarkupStartTag - [44..47)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [47..52)::5 - CSharpImplicitExpression - [47..52)::5 - CSharpTransition - [47..48)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [48..52)::4 - CSharpCodeBlock - [48..52)::4 - CSharpExpressionLiteral - [48..52)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [52..56)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [56..57)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupEndTag - [57..61)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [61..62)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupTextLiteral - [62..62)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.cspans.txt deleted file mode 100644 index 338b4bec5d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [97] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [97] ) -Code span at (1:0,1 [48] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [97] ) -Transition span at (49:0,49 [1] ) (Accepts:None) - Parent: Markup block at (49:0,49 [44] ) -Markup span at (50:0,50 [3] ) (Accepts:None) - Parent: Tag block at (50:0,50 [3] ) -Markup span at (53:0,53 [5] ) (Accepts:Any) - Parent: Markup block at (49:0,49 [44] ) -Transition span at (58:0,58 [1] ) (Accepts:None) - Parent: Expression block at (58:0,58 [31] ) -Code span at (59:0,59 [16] ) (Accepts:Any) - Parent: Expression block at (58:0,58 [31] ) -Transition span at (75:0,75 [1] ) (Accepts:None) - Parent: Markup block at (75:0,75 [13] ) -Markup span at (76:0,76 [3] ) (Accepts:None) - Parent: Tag block at (76:0,76 [3] ) -Markup span at (79:0,79 [0] ) (Accepts:Any) - Parent: Markup block at (75:0,75 [13] ) -Transition span at (79:0,79 [1] ) (Accepts:None) - Parent: Expression block at (79:0,79 [5] ) -Code span at (80:0,80 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (79:0,79 [5] ) -Markup span at (84:0,84 [4] ) (Accepts:None) - Parent: Tag block at (84:0,84 [4] ) -Code span at (88:0,88 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (58:0,58 [31] ) -Markup span at (89:0,89 [4] ) (Accepts:None) - Parent: Tag block at (89:0,89 [4] ) -Code span at (93:0,93 [4] ) (Accepts:None) - Parent: Statement block at (0:0,0 [97] ) -Markup span at (97:0,97 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [97] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.diag.txt deleted file mode 100644 index 2f60746b35c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,76): Error RZ2003: Inline markup blocks (@

                    Content

                    ) cannot be nested. Only one level of inline markup is allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.stree.txt deleted file mode 100644 index f55be998e97..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinCodeBlock.stree.txt +++ /dev/null @@ -1,91 +0,0 @@ -RazorDocument - [0..97)::97 - [@foreach(foo in Bar) { Html.ExecuteTemplate(foo, @

                    Foo #@Html.Repeat(10, @

                    @item

                    )

                    ); }] - MarkupBlock - [0..97)::97 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..97)::97 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..49)::48 - [foreach(foo in Bar) { Html.ExecuteTemplate(foo, ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[foo]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [49..93)::44 - MarkupBlock - [49..93)::44 - MarkupTransition - [49..50)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [50..93)::43 - MarkupStartTag - [50..53)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [53..58)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [58..89)::31 - CSharpImplicitExpression - [58..89)::31 - CSharpTransition - [58..59)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [59..89)::30 - CSharpCodeBlock - [59..89)::30 - CSharpExpressionLiteral - [59..75)::16 - [Html.Repeat(10, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [75..88)::13 - MarkupBlock - [75..88)::13 - MarkupTransition - [75..76)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [76..88)::12 - MarkupStartTag - [76..79)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [79..79)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [79..84)::5 - CSharpImplicitExpression - [79..84)::5 - CSharpTransition - [79..80)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [80..84)::4 - CSharpCodeBlock - [80..84)::4 - CSharpExpressionLiteral - [80..84)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [84..88)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [88..89)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupEndTag - [89..93)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [93..97)::4 - [); }] - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [97..97)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.cspans.txt deleted file mode 100644 index 5ab2d1d1444..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.cspans.txt +++ /dev/null @@ -1,20 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [92] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [92] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [92] ) -Code span at (2:0,2 [42] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [92] ) -Transition span at (44:0,44 [1] ) (Accepts:None) - Parent: Markup block at (44:0,44 [44] ) -Markup span at (45:0,45 [3] ) (Accepts:None) - Parent: Tag block at (45:0,45 [3] ) -Markup span at (48:0,48 [5] ) (Accepts:Any) - Parent: Markup block at (44:0,44 [44] ) -Transition span at (53:0,53 [1] ) (Accepts:None) - Parent: Expression block at (53:0,53 [31] ) -Code span at (54:0,54 [16] ) (Accepts:Any) - Parent: Expression block at (53:0,53 [31] ) -Transition span at (70:0,70 [1] ) (Accepts:None) - Parent: Markup block at (70:0,70 [13] ) -Markup span at (71:0,71 [3] ) (Accepts:None) - Parent: Tag block at (71:0,71 [3] ) -Markup span at (74:0,74 [0] ) (Accepts:Any) - Parent: Markup block at (70:0,70 [13] ) -Transition span at (74:0,74 [1] ) (Accepts:None) - Parent: Expression block at (74:0,74 [5] ) -Code span at (75:0,75 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (74:0,74 [5] ) -Markup span at (79:0,79 [4] ) (Accepts:None) - Parent: Tag block at (79:0,79 [4] ) -Code span at (83:0,83 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (53:0,53 [31] ) -Markup span at (84:0,84 [4] ) (Accepts:None) - Parent: Tag block at (84:0,84 [4] ) -Code span at (88:0,88 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [92] ) -MetaCode span at (91:0,91 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [92] ) -Markup span at (92:0,92 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [92] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.diag.txt deleted file mode 100644 index 94b69b6efc6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,71): Error RZ2003: Inline markup blocks (@

                    Content

                    ) cannot be nested. Only one level of inline markup is allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.stree.txt deleted file mode 100644 index 23a9e765201..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/ProducesErrorButCorrectlyParsesNestedTemplateInStmtWithinStmtBlock.stree.txt +++ /dev/null @@ -1,96 +0,0 @@ -RazorDocument - [0..92)::92 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @

                    Foo #@Html.Repeat(10, @

                    @item

                    )

                    ); }] - MarkupBlock - [0..92)::92 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..92)::92 - CSharpStatement - [0..92)::92 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..92)::91 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..91)::89 - CSharpStatementLiteral - [2..44)::42 - [ var foo = bar; Html.ExecuteTemplate(foo, ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [44..88)::44 - MarkupBlock - [44..88)::44 - MarkupTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [45..88)::43 - MarkupStartTag - [45..48)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [48..53)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [53..84)::31 - CSharpImplicitExpression - [53..84)::31 - CSharpTransition - [53..54)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [54..84)::30 - CSharpCodeBlock - [54..84)::30 - CSharpExpressionLiteral - [54..70)::16 - [Html.Repeat(10, ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Html]; - Dot;[.]; - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [70..83)::13 - MarkupBlock - [70..83)::13 - MarkupTransition - [70..71)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [71..83)::12 - MarkupStartTag - [71..74)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [74..74)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [74..79)::5 - CSharpImplicitExpression - [74..79)::5 - CSharpTransition - [74..75)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [75..79)::4 - CSharpCodeBlock - [75..79)::4 - CSharpExpressionLiteral - [75..79)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [79..83)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [83..84)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupEndTag - [84..88)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [88..91)::3 - [); ] - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [91..92)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [92..92)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.cspans.txt deleted file mode 100644 index ccfd591f1bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [75] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [75] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [75] ) -Code span at (2:0,2 [42] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [75] ) -Transition span at (44:0,44 [1] ) (Accepts:None) - Parent: Markup block at (44:0,44 [27] ) -Markup span at (45:0,45 [2] ) (Accepts:Any) - Parent: Tag block at (45:0,45 [12] ) -Markup span at (47:0,47 [6] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [9] ) -Markup span at (53:0,53 [1] ) (Accepts:None) - Parent: Markup block at (53:0,53 [2] ) -Markup span at (54:0,54 [1] ) (Accepts:None) - Parent: Markup block at (53:0,53 [2] ) -Markup span at (55:0,55 [1] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [9] ) -Markup span at (56:0,56 [1] ) (Accepts:None) - Parent: Tag block at (45:0,45 [12] ) -Markup span at (57:0,57 [5] ) (Accepts:Any) - Parent: Markup block at (44:0,44 [27] ) -Transition span at (62:0,62 [1] ) (Accepts:None) - Parent: Expression block at (62:0,62 [5] ) -Code span at (63:0,63 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (62:0,62 [5] ) -Markup span at (67:0,67 [4] ) (Accepts:None) - Parent: Tag block at (67:0,67 [4] ) -Code span at (71:0,71 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [75] ) -MetaCode span at (74:0,74 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [75] ) -Markup span at (75:0,75 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [75] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt deleted file mode 100644 index bbd0281f2ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt +++ /dev/null @@ -1,80 +0,0 @@ -RazorDocument - [0..75)::75 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @

                    Foo #@item

                    ); }] - MarkupBlock - [0..75)::75 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..75)::75 - CSharpStatement - [0..75)::75 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..75)::74 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..74)::72 - CSharpStatementLiteral - [2..44)::42 - [ var foo = bar; Html.ExecuteTemplate(foo, ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[Html]; - Dot;[.]; - Identifier;[ExecuteTemplate]; - LeftParenthesis;[(]; - Identifier;[foo]; - Comma;[,]; - Whitespace;[ ]; - CSharpTemplateBlock - [44..71)::27 - MarkupBlock - [44..71)::27 - MarkupTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [45..71)::26 - MarkupStartTag - [45..57)::12 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupAttributeBlock - [47..56)::9 - [ foo='@@'] - MarkupTextLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [48..51)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Equals;[=]; - MarkupTextLiteral - [52..53)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [53..55)::2 - MarkupBlock - [53..55)::2 - MarkupTextLiteral - [53..54)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [54..55)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [57..62)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[#]; - CSharpCodeBlock - [62..67)::5 - CSharpImplicitExpression - [62..67)::5 - CSharpTransition - [62..63)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [63..67)::4 - CSharpCodeBlock - [63..67)::4 - CSharpExpressionLiteral - [63..67)::4 - [item] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[item]; - MarkupEndTag - [67..71)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [71..74)::3 - [); ] - Gen - SpanEditHandler;Accepts:Any - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [74..75)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [75..75)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.cspans.txt deleted file mode 100644 index ba8948b5ef0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.cspans.txt +++ /dev/null @@ -1,22 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [71] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [71] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [71] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:None) - Parent: Tag block at (11:0,11 [3] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [12] ) -Markup span at (17:0,17 [4] ) (Accepts:None) - Parent: Tag block at (17:0,17 [4] ) -Markup span at (21:0,21 [1] ) (Accepts:None) - Parent: Markup block at (10:0,10 [12] ) -Code span at (22:0,22 [16] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [71] ) -Markup span at (38:0,38 [1] ) (Accepts:Any) - Parent: Markup block at (38:0,38 [12] ) -Markup span at (39:0,39 [3] ) (Accepts:None) - Parent: Tag block at (39:0,39 [3] ) -Markup span at (42:0,42 [3] ) (Accepts:Any) - Parent: Markup block at (38:0,38 [12] ) -Markup span at (45:0,45 [4] ) (Accepts:None) - Parent: Tag block at (45:0,45 [4] ) -Markup span at (49:0,49 [1] ) (Accepts:None) - Parent: Markup block at (38:0,38 [12] ) -Code span at (50:0,50 [8] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [71] ) -Markup span at (58:0,58 [1] ) (Accepts:Any) - Parent: Markup block at (58:0,58 [12] ) -Markup span at (59:0,59 [3] ) (Accepts:None) - Parent: Tag block at (59:0,59 [3] ) -Markup span at (62:0,62 [3] ) (Accepts:Any) - Parent: Markup block at (58:0,58 [12] ) -Markup span at (65:0,65 [4] ) (Accepts:None) - Parent: Tag block at (65:0,65 [4] ) -Markup span at (69:0,69 [1] ) (Accepts:None) - Parent: Markup block at (58:0,58 [12] ) -Code span at (70:0,70 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [71] ) -Markup span at (71:0,71 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [71] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.stree.txt deleted file mode 100644 index c13cff25662..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBraces.stree.txt +++ /dev/null @@ -1,86 +0,0 @@ -RazorDocument - [0..71)::71 - [@if(foo) {

                    Bar

                    } else if(bar) {

                    Baz

                    } else {

                    Boz

                    }] - MarkupBlock - [0..71)::71 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..71)::71 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..10)::9 - [if(foo) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [10..22)::12 - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [11..21)::10 - MarkupStartTag - [11..14)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [14..17)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [17..21)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [22..38)::16 - [} else if(bar) {] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [38..50)::12 - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [39..49)::10 - MarkupStartTag - [39..42)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [42..45)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupEndTag - [45..49)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [49..50)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [50..58)::8 - [} else {] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [58..70)::12 - MarkupTextLiteral - [58..59)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [59..69)::10 - MarkupStartTag - [59..62)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [62..65)::3 - [Boz] - Gen - SpanEditHandler;Accepts:Any - Text;[Boz]; - MarkupEndTag - [65..69)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [69..70)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [70..71)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [71..71)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.cspans.txt deleted file mode 100644 index adb029e02ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.cspans.txt +++ /dev/null @@ -1,24 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [75] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [75] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [75] ) -Code span at (2:0,2 [10] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [75] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:None) - Parent: Tag block at (13:0,13 [3] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [12] ) -Markup span at (19:0,19 [4] ) (Accepts:None) - Parent: Tag block at (19:0,19 [4] ) -Markup span at (23:0,23 [1] ) (Accepts:None) - Parent: Markup block at (12:0,12 [12] ) -Code span at (24:0,24 [16] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [75] ) -Markup span at (40:0,40 [1] ) (Accepts:Any) - Parent: Markup block at (40:0,40 [12] ) -Markup span at (41:0,41 [3] ) (Accepts:None) - Parent: Tag block at (41:0,41 [3] ) -Markup span at (44:0,44 [3] ) (Accepts:Any) - Parent: Markup block at (40:0,40 [12] ) -Markup span at (47:0,47 [4] ) (Accepts:None) - Parent: Tag block at (47:0,47 [4] ) -Markup span at (51:0,51 [1] ) (Accepts:None) - Parent: Markup block at (40:0,40 [12] ) -Code span at (52:0,52 [8] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [75] ) -Markup span at (60:0,60 [1] ) (Accepts:Any) - Parent: Markup block at (60:0,60 [12] ) -Markup span at (61:0,61 [3] ) (Accepts:None) - Parent: Tag block at (61:0,61 [3] ) -Markup span at (64:0,64 [3] ) (Accepts:Any) - Parent: Markup block at (60:0,60 [12] ) -Markup span at (67:0,67 [4] ) (Accepts:None) - Parent: Tag block at (67:0,67 [4] ) -Markup span at (71:0,71 [1] ) (Accepts:None) - Parent: Markup block at (60:0,60 [12] ) -Code span at (72:0,72 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [75] ) -MetaCode span at (74:0,74 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [75] ) -Markup span at (75:0,75 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [75] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.stree.txt deleted file mode 100644 index 8caaea20972..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/AllowsMarkupInIfBodyWithBracesWithinCodeBlock.stree.txt +++ /dev/null @@ -1,95 +0,0 @@ -RazorDocument - [0..75)::75 - [@{ if(foo) {

                    Bar

                    } else if(bar) {

                    Baz

                    } else {

                    Boz

                    } }] - MarkupBlock - [0..75)::75 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..75)::75 - CSharpStatement - [0..75)::75 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..75)::74 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..74)::72 - CSharpStatementLiteral - [2..12)::10 - [ if(foo) {] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [12..24)::12 - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [13..23)::10 - MarkupStartTag - [13..16)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [16..19)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [19..23)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [24..40)::16 - [} else if(bar) {] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[bar]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [40..52)::12 - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [41..51)::10 - MarkupStartTag - [41..44)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [44..47)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupEndTag - [47..51)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [52..60)::8 - [} else {] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[else]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [60..72)::12 - MarkupTextLiteral - [60..61)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [61..71)::10 - MarkupStartTag - [61..64)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [64..67)::3 - [Boz] - Gen - SpanEditHandler;Accepts:Any - Text;[Boz]; - MarkupEndTag - [67..71)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [71..72)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [72..74)::2 - [} ] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [74..75)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [75..75)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.cspans.txt deleted file mode 100644 index b996780bfc4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Code span at (1:0,1 [13] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) -Transition span at (14:0,14 [6] ) (Accepts:None) - Parent: Tag block at (14:0,14 [6] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [14] ) -Transition span at (21:0,21 [7] ) (Accepts:None) - Parent: Tag block at (21:0,21 [7] ) -Code span at (28:0,28 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.stree.txt deleted file mode 100644 index bf3516ae2c1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTag.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..30)::30 - [@if (i > 0) { ; }] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..14)::13 - [if (i > 0) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[i]; - Whitespace;[ ]; - GreaterThan;[>]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - MarkupBlock - [14..28)::14 - MarkupElement - [14..28)::14 - MarkupStartTag - [14..20)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [20..21)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; - MarkupEndTag - [21..28)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [28..30)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.cspans.txt deleted file mode 100644 index 2c37a803343..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Code span at (2:0,2 [14] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -Transition span at (16:0,16 [6] ) (Accepts:None) - Parent: Tag block at (16:0,16 [6] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [14] ) -Transition span at (23:0,23 [7] ) (Accepts:None) - Parent: Tag block at (23:0,23 [7] ) -Code span at (30:0,30 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.stree.txt deleted file mode 100644 index 980017555f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/CorrectlyReturnsFromMarkupBlockWithPseudoTagInCodeBlock.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..34)::34 - [@{ if (i > 0) { ; } }] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - CSharpStatementLiteral - [2..16)::14 - [ if (i > 0) { ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[i]; - Whitespace;[ ]; - GreaterThan;[>]; - Whitespace;[ ]; - IntegerLiteral;[0]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - MarkupBlock - [16..30)::14 - MarkupElement - [16..30)::14 - MarkupStartTag - [16..22)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [22..23)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; - MarkupEndTag - [23..30)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [30..33)::3 - [ } ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.cspans.txt deleted file mode 100644 index 8ce52132ea8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [162] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [162] ) -Code span at (1:0,1 [80] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [162] ) -Markup span at (81:2,0 [4] ) (Accepts:Any) - Parent: Markup block at (81:2,0 [46] ) -Markup span at (85:2,4 [3] ) (Accepts:None) - Parent: Tag block at (85:2,4 [3] ) -Markup span at (88:2,7 [15] ) (Accepts:Any) - Parent: Markup block at (81:2,0 [46] ) -Code span at (103:4,0 [8] ) (Accepts:Any) - Parent: Statement block at (103:4,0 [12] ) -Transition span at (111:4,8 [1] ) (Accepts:None) - Parent: Expression block at (111:4,8 [4] ) -Code span at (112:4,9 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (111:4,8 [4] ) -Markup span at (115:4,12 [6] ) (Accepts:Any) - Parent: Markup block at (81:2,0 [46] ) -Markup span at (121:5,4 [4] ) (Accepts:None) - Parent: Tag block at (121:5,4 [4] ) -Markup span at (125:5,8 [2] ) (Accepts:None) - Parent: Markup block at (81:2,0 [46] ) -Markup span at (127:6,0 [4] ) (Accepts:Any) - Parent: Markup block at (127:6,0 [14] ) -Transition span at (131:6,4 [1] ) (Accepts:None) - Parent: Markup block at (127:6,0 [14] ) -MetaCode span at (132:6,5 [1] ) (Accepts:Any) - Parent: Markup block at (127:6,0 [14] ) -Markup span at (133:6,6 [8] ) (Accepts:None) - Parent: Markup block at (127:6,0 [14] ) -Code span at (141:7,0 [21] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [162] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.stree.txt deleted file mode 100644 index f9c1f89c55d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesAllWhitespaceOnSameLineWithTrailingNewLineToMarkupExclPreceedingNewline.stree.txt +++ /dev/null @@ -1,82 +0,0 @@ -RazorDocument - [0..162)::162 - [@if(foo) {LF var foo = "After this statement there are 10 spaces"; LF

                    LF FooLF @barLF

                    LF @:Hello!LF var biz = boz;LF}] - MarkupBlock - [0..162)::162 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..162)::162 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..81)::80 - [if(foo) {LF var foo = "After this statement there are 10 spaces"; LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - StringLiteral;["After this statement there are 10 spaces"]; - Semicolon;[;]; - Whitespace;[ ]; - NewLine;[LF]; - MarkupBlock - [81..127)::46 - MarkupTextLiteral - [81..85)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [85..125)::40 - MarkupStartTag - [85..88)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [88..103)::15 - [LF FooLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Foo]; - NewLine;[LF]; - CSharpCodeBlock - [103..115)::12 - CSharpStatementLiteral - [103..111)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpImplicitExpression - [111..115)::4 - CSharpTransition - [111..112)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [112..115)::3 - CSharpCodeBlock - [112..115)::3 - CSharpExpressionLiteral - [112..115)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [115..121)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupEndTag - [121..125)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [125..127)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [127..141)::14 - MarkupTextLiteral - [127..131)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [131..132)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [132..133)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [133..141)::8 - [Hello!LF] - Gen - SpanEditHandler;Accepts:None - Text;[Hello]; - Bang;[!]; - NewLine;[LF]; - CSharpStatementLiteral - [141..162)::21 - [ var biz = boz;LF}] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[biz]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[boz]; - Semicolon;[;]; - NewLine;[LF]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.cspans.txt deleted file mode 100644 index f1fa226b75c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [30] ) -Code span at (1:0,1 [10] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [30] ) -Transition span at (11:1,0 [1] ) (Accepts:None) - Parent: Markup block at (11:1,0 [18] ) -MetaCode span at (12:1,1 [1] ) (Accepts:Any) - Parent: Markup block at (11:1,0 [18] ) -Markup span at (13:1,2 [16] ) (Accepts:None) - Parent: Markup block at (11:1,0 [18] ) -Code span at (29:2,0 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [30] ) -Markup span at (30:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.stree.txt deleted file mode 100644 index 4e046e53ee9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTemplateTransitionInDesignTimeMode.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..30)::30 - [@Foo( LF@:

                    Foo

                    LF)] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpImplicitExpression - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..30)::29 - CSharpCodeBlock - [1..30)::29 - CSharpExpressionLiteral - [1..11)::10 - [Foo( LF] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - LeftParenthesis;[(]; - Whitespace;[ ]; - NewLine;[LF]; - CSharpTemplateBlock - [11..29)::18 - MarkupBlock - [11..29)::18 - MarkupTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [12..13)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [13..29)::16 - [

                    Foo

                    LF] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - Text;[Foo]; - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - Whitespace;[ ]; - NewLine;[LF]; - CSharpExpressionLiteral - [29..30)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.cspans.txt deleted file mode 100644 index 1bd9c8867a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -Transition span at (8:1,4 [1] ) (Accepts:None) - Parent: Markup block at (8:1,4 [18] ) -MetaCode span at (9:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [18] ) -Markup span at (10:1,6 [16] ) (Accepts:None) - Parent: Markup block at (8:1,4 [18] ) -Code span at (26:2,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.stree.txt deleted file mode 100644 index ec8316ecf81..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtColonTransitionInDesignTimeMode.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..27)::27 - [@{LF @:

                    Foo

                    LF}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [8..26)::18 - MarkupTransition - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [10..26)::16 - [

                    Foo

                    LF] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - Text;[Foo]; - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - Whitespace;[ ]; - NewLine;[LF]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.cspans.txt deleted file mode 100644 index a687eaf720d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [25] ) -Code span at (1:0,1 [8] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [25] ) -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Markup block at (9:0,9 [11] ) -Markup span at (10:0,10 [3] ) (Accepts:None) - Parent: Tag block at (10:0,10 [3] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (9:0,9 [11] ) -Markup span at (16:0,16 [4] ) (Accepts:None) - Parent: Tag block at (16:0,16 [4] ) -Code span at (20:0,20 [5] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.stree.txt deleted file mode 100644 index b2715865616..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnAtTagTemplateTransitionInDesignTimeMode.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..25)::25 - [@Foo( @

                    Foo

                    )] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpImplicitExpression - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..25)::24 - CSharpCodeBlock - [1..25)::24 - CSharpExpressionLiteral - [1..9)::8 - [Foo( ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - LeftParenthesis;[(]; - Whitespace;[ ]; - CSharpTemplateBlock - [9..20)::11 - MarkupBlock - [9..20)::11 - MarkupTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [10..20)::10 - MarkupStartTag - [10..13)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [13..16)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [16..20)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpExpressionLiteral - [20..25)::5 - [ )] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Whitespace;[ ]; - RightParenthesis;[)]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.cspans.txt deleted file mode 100644 index 5b0b2522772..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Transition span at (8:1,4 [1] ) (Accepts:None) - Parent: Markup block at (8:1,4 [11] ) -Markup span at (9:1,5 [3] ) (Accepts:None) - Parent: Tag block at (9:1,5 [3] ) -Markup span at (12:1,8 [3] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [11] ) -Markup span at (15:1,11 [4] ) (Accepts:None) - Parent: Tag block at (15:1,11 [4] ) -Code span at (19:1,15 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (25:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (26:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.diag.txt deleted file mode 100644 index fd4615efa69..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(2,5): Error RZ1009: The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example: - -@if(isLoggedIn) { -

                    Hello, @user!

                    -} diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.stree.txt deleted file mode 100644 index 630bd75bbbf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnInvalidAtTagTransitionInDesignTimeMode.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..26)::26 - [@{LF @

                    Foo

                    LF}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..25)::23 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [8..19)::11 - MarkupTransition - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupElement - [9..19)::10 - MarkupStartTag - [9..12)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [12..15)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [15..19)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..25)::6 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.cspans.txt deleted file mode 100644 index a8076b5e941..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (8:1,4 [3] ) (Accepts:None) - Parent: Tag block at (8:1,4 [3] ) -Markup span at (11:1,7 [3] ) (Accepts:Any) - Parent: Markup block at (8:1,4 [10] ) -Markup span at (14:1,10 [4] ) (Accepts:None) - Parent: Tag block at (14:1,10 [4] ) -Code span at (18:1,14 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (24:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.stree.txt deleted file mode 100644 index 736cbe95320..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/GivesSpacesToCodeOnTagTransitionInDesignTimeMode.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..25)::25 - [@{LF

                    Foo

                    LF}] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [8..18)::10 - MarkupElement - [8..18)::10 - MarkupStartTag - [8..11)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [11..14)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [14..18)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [18..24)::6 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.cspans.txt deleted file mode 100644 index 8d8980837d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Code span at (1:0,1 [29] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (30:0,30 [1] ) (Accepts:Any) - Parent: Markup block at (30:0,30 [12] ) -Markup span at (31:0,31 [3] ) (Accepts:None) - Parent: Tag block at (31:0,31 [3] ) -Markup span at (34:0,34 [3] ) (Accepts:Any) - Parent: Markup block at (30:0,30 [12] ) -Markup span at (37:0,37 [4] ) (Accepts:None) - Parent: Tag block at (37:0,37 [4] ) -Markup span at (41:0,41 [1] ) (Accepts:None) - Parent: Markup block at (30:0,30 [12] ) -Code span at (42:0,42 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (43:0,43 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.stree.txt deleted file mode 100644 index 831e37ead90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracket.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..43)::43 - [@for(int i = 0; i < 10; i++) {

                    Foo

                    }] - MarkupBlock - [0..43)::43 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..43)::43 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..30)::29 - [for(int i = 0; i < 10; i++) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[for]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Increment;[++]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [30..42)::12 - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [31..41)::10 - MarkupStartTag - [31..34)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [34..37)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [37..41)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [41..42)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [42..43)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.cspans.txt deleted file mode 100644 index 308cd5d14f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -Code span at (2:0,2 [30] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [47] ) -Markup span at (32:0,32 [1] ) (Accepts:Any) - Parent: Markup block at (32:0,32 [12] ) -Markup span at (33:0,33 [3] ) (Accepts:None) - Parent: Tag block at (33:0,33 [3] ) -Markup span at (36:0,36 [3] ) (Accepts:Any) - Parent: Markup block at (32:0,32 [12] ) -Markup span at (39:0,39 [4] ) (Accepts:None) - Parent: Tag block at (39:0,39 [4] ) -Markup span at (43:0,43 [1] ) (Accepts:None) - Parent: Markup block at (32:0,32 [12] ) -Code span at (44:0,44 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [47] ) -MetaCode span at (46:0,46 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -Markup span at (47:0,47 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.stree.txt deleted file mode 100644 index 338f7b10223..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnOpenAngleBracketInCodeBlock.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..47)::47 - [@{ for(int i = 0; i < 10; i++) {

                    Foo

                    } }] - MarkupBlock - [0..47)::47 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..47)::47 - CSharpStatement - [0..47)::47 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..47)::46 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..46)::44 - CSharpStatementLiteral - [2..32)::30 - [ for(int i = 0; i < 10; i++) {] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[for]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Whitespace;[ ]; - LessThan;[<]; - Whitespace;[ ]; - IntegerLiteral;[10]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[i]; - Increment;[++]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [32..44)::12 - MarkupTextLiteral - [32..33)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [33..43)::10 - MarkupStartTag - [33..36)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [36..39)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [39..43)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [44..46)::2 - [} ] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [46..47)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.cspans.txt deleted file mode 100644 index e759ba2bed7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [8] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Markup block at (10:0,10 [8] ) -MetaCode span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [8] ) -Markup span at (13:0,13 [5] ) (Accepts:None) - Parent: Markup block at (10:0,10 [8] ) -Code span at (18:1,0 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (19:1,1 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.stree.txt deleted file mode 100644 index be98669bd53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColon.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..24)::24 - [@if(foo) { @:BarLF} zoop] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..10)::9 - [if(foo) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [10..18)::8 - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [12..13)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [13..18)::5 - [BarLF] - Gen - SpanEditHandler;Accepts:None - Text;[Bar]; - NewLine;[LF]; - CSharpStatementLiteral - [18..19)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - MarkupTextLiteral - [19..24)::5 - [ zoop] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[zoop]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.cspans.txt deleted file mode 100644 index 985b278a3a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (2:0,2 [10] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [8] ) -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Markup block at (12:0,12 [8] ) -MetaCode span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [8] ) -Markup span at (15:0,15 [5] ) (Accepts:None) - Parent: Markup block at (12:0,12 [8] ) -Code span at (20:1,0 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:1,2 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:1,3 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.stree.txt deleted file mode 100644 index 6b53cd40f96..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByColonInCodeBlock.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..28)::28 - [@{ if(foo) { @:BarLF} } zoop] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - CSharpStatementLiteral - [2..12)::10 - [ if(foo) {] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [12..20)::8 - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [14..15)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [15..20)::5 - [BarLF] - Gen - SpanEditHandler;Accepts:None - Text;[Bar]; - NewLine;[LF]; - CSharpStatementLiteral - [20..22)::2 - [} ] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..28)::5 - [ zoop] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[zoop]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.cspans.txt deleted file mode 100644 index 8ca4ca163f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [14] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Markup block at (10:0,10 [14] ) -MetaCode span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [14] ) -Markup span at (13:0,13 [11] ) (Accepts:None) - Parent: Markup block at (10:0,10 [14] ) -Code span at (24:1,0 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.stree.txt deleted file mode 100644 index a495874e270..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByDoubleColon.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..25)::25 - [@if(foo) { @::SometextLF}] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..10)::9 - [if(foo) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [10..24)::14 - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [12..13)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [13..24)::11 - [:SometextLF] - Gen - SpanEditHandler;Accepts:None - Text;[:Sometext]; - NewLine;[LF]; - CSharpStatementLiteral - [24..25)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.cspans.txt deleted file mode 100644 index 284bead87a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (1:0,1 [9] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [15] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Markup block at (10:0,10 [15] ) -MetaCode span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [15] ) -Markup span at (13:0,13 [12] ) (Accepts:None) - Parent: Markup block at (10:0,10 [15] ) -Code span at (25:1,0 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.stree.txt deleted file mode 100644 index 64cf48ac222..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ParsesMarkupStatementOnSwitchCharacterFollowedByTripleColon.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..26)::26 - [@if(foo) { @:::SometextLF}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..10)::9 - [if(foo) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [10..25)::15 - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [12..13)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [13..25)::12 - [::SometextLF] - Gen - SpanEditHandler;Accepts:None - Text;[::Sometext]; - NewLine;[LF]; - CSharpStatementLiteral - [25..26)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.cspans.txt deleted file mode 100644 index ba66ea2b8fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Code span at (1:0,1 [33] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [68] ) -Transition span at (34:3,0 [1] ) (Accepts:None) - Parent: Markup block at (34:3,0 [7] ) -MetaCode span at (35:3,1 [1] ) (Accepts:Any) - Parent: Markup block at (34:3,0 [7] ) -Markup span at (36:3,2 [5] ) (Accepts:None) - Parent: Markup block at (34:3,0 [7] ) -Markup span at (41:4,0 [5] ) (Accepts:None) - Parent: Tag block at (41:4,0 [5] ) -Markup span at (46:4,5 [2] ) (Accepts:None) - Parent: Markup block at (41:4,0 [7] ) -Markup span at (48:5,0 [3] ) (Accepts:None) - Parent: Tag block at (48:5,0 [3] ) -Markup span at (51:5,3 [3] ) (Accepts:Any) - Parent: Markup block at (48:5,0 [12] ) -Markup span at (54:5,6 [4] ) (Accepts:None) - Parent: Tag block at (54:5,6 [4] ) -Markup span at (58:5,10 [2] ) (Accepts:None) - Parent: Markup block at (48:5,0 [12] ) -Transition span at (60:6,0 [1] ) (Accepts:None) - Parent: Markup block at (60:6,0 [7] ) -MetaCode span at (61:6,1 [1] ) (Accepts:Any) - Parent: Markup block at (60:6,0 [7] ) -Markup span at (62:6,2 [5] ) (Accepts:None) - Parent: Markup block at (60:6,0 [7] ) -Code span at (67:7,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Markup span at (68:7,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.stree.txt deleted file mode 100644 index bb699f4b933..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportMarkupWithoutPreceedingWhitespace.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..68)::68 - [@foreach(var file in files){LFLFLF@:BazLF
                    LFFooLF@:BarLF}] - MarkupBlock - [0..68)::68 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..68)::68 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..34)::33 - [foreach(var file in files){LFLFLF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[file]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[files]; - RightParenthesis;[)]; - LeftBrace;[{]; - NewLine;[LF]; - NewLine;[LF]; - NewLine;[LF]; - MarkupBlock - [34..41)::7 - MarkupTransition - [34..35)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [35..36)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [36..41)::5 - [BazLF] - Gen - SpanEditHandler;Accepts:None - Text;[Baz]; - NewLine;[LF]; - MarkupBlock - [41..48)::7 - MarkupElement - [41..46)::5 - MarkupStartTag - [41..46)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[br]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [46..48)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [48..60)::12 - MarkupElement - [48..58)::10 - MarkupStartTag - [48..51)::3 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - CloseAngle;[>]; - MarkupTextLiteral - [51..54)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [54..58)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[a]; - CloseAngle;[>]; - MarkupTextLiteral - [58..60)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [60..67)::7 - MarkupTransition - [60..61)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [61..62)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [62..67)::5 - [BarLF] - Gen - SpanEditHandler;Accepts:None - Text;[Bar]; - NewLine;[LF]; - CSharpStatementLiteral - [67..68)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [68..68)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.cspans.txt deleted file mode 100644 index 1bc4567d7f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [26] ) -Code span at (1:0,1 [16] ) (Accepts:Any) - Parent: Expression block at (0:0,0 [26] ) -Transition span at (17:1,4 [1] ) (Accepts:None) - Parent: Markup block at (17:1,4 [8] ) -MetaCode span at (18:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (17:1,4 [8] ) -Markup span at (19:1,6 [1] ) (Accepts:Any) - Parent: Markup block at (17:1,4 [8] ) -Transition span at (20:1,7 [1] ) (Accepts:None) - Parent: Statement block at (20:1,7 [3] ) -MetaCode span at (21:1,8 [1] ) (Accepts:None) - Parent: Statement block at (20:1,7 [3] ) -Code span at (22:1,9 [0] ) (Accepts:Any) - Parent: Statement block at (20:1,7 [3] ) -MetaCode span at (22:1,9 [1] ) (Accepts:None) - Parent: Statement block at (20:1,7 [3] ) -Markup span at (23:1,10 [2] ) (Accepts:None) - Parent: Markup block at (17:1,4 [8] ) -Code span at (25:2,0 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [26] ) -Markup span at (26:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.stree.txt deleted file mode 100644 index 63d7684102c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/ShouldSupportSingleLineMarkupContainingStatementBlock.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..26)::26 - [@Repeat(10,LF @: @{}LF)] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpImplicitExpression - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..26)::25 - CSharpCodeBlock - [1..26)::25 - CSharpExpressionLiteral - [1..17)::16 - [Repeat(10,LF ] - Gen - ImplicitExpressionEditHandler;Accepts:Any;ImplicitExpression[RTD];K14 - Identifier;[Repeat]; - LeftParenthesis;[(]; - IntegerLiteral;[10]; - Comma;[,]; - NewLine;[LF]; - Whitespace;[ ]; - CSharpTemplateBlock - [17..25)::8 - MarkupBlock - [17..25)::8 - MarkupTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [18..19)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [20..23)::3 - CSharpStatement - [20..23)::3 - CSharpTransition - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [21..23)::2 - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [22..22)::0 - CSharpStatementLiteral - [22..22)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..25)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpExpressionLiteral - [25..26)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - RightParenthesis;[)]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.cspans.txt deleted file mode 100644 index 71420aa95e2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Code span at (2:0,2 [7] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.stree.txt deleted file mode 100644 index 9cd8630955f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SingleAngleBracketDoesNotCauseSwitchIfOuterBlockIsTerminated.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..10)::10 - [@{ List< }] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - CSharpStatementLiteral - [2..9)::7 - [ List< ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[List]; - LessThan;[<]; - Whitespace;[ ]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.cspans.txt deleted file mode 100644 index df3f1268524..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.cspans.txt +++ /dev/null @@ -1,23 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [207] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [207] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [207] ) -Code span at (2:0,2 [18] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [207] ) -Markup span at (20:2,0 [8] ) (Accepts:Any) - Parent: Markup block at (20:2,0 [30] ) -Transition span at (28:2,8 [1] ) (Accepts:None) - Parent: Markup block at (20:2,0 [30] ) -MetaCode span at (29:2,9 [1] ) (Accepts:Any) - Parent: Markup block at (20:2,0 [30] ) -Markup span at (30:2,10 [20] ) (Accepts:None) - Parent: Markup block at (20:2,0 [30] ) -Code span at (50:3,0 [65] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [207] ) -Transition span at (115:5,8 [6] ) (Accepts:None) - Parent: Tag block at (115:5,8 [6] ) -Markup span at (121:5,14 [14] ) (Accepts:Any) - Parent: Markup block at (115:5,8 [29] ) -Transition span at (135:5,28 [1] ) (Accepts:None) - Parent: Expression block at (135:5,28 [2] ) -Code span at (136:5,29 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (135:5,28 [2] ) -Transition span at (137:5,30 [7] ) (Accepts:None) - Parent: Tag block at (137:5,30 [7] ) -Code span at (144:5,37 [27] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [207] ) -Markup span at (171:8,0 [8] ) (Accepts:Any) - Parent: Markup block at (171:8,0 [28] ) -Markup span at (179:8,8 [3] ) (Accepts:None) - Parent: Tag block at (179:8,8 [3] ) -Markup span at (182:8,11 [11] ) (Accepts:Any) - Parent: Markup block at (171:8,0 [28] ) -Markup span at (193:8,22 [4] ) (Accepts:None) - Parent: Tag block at (193:8,22 [4] ) -Markup span at (197:8,26 [2] ) (Accepts:None) - Parent: Markup block at (171:8,0 [28] ) -Code span at (199:9,0 [7] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [207] ) -MetaCode span at (206:10,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [207] ) -Markup span at (207:10,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [207] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.stree.txt deleted file mode 100644 index 020255d2f78..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsAllKindsOfImplicitMarkupInCodeBlock.stree.txt +++ /dev/null @@ -1,134 +0,0 @@ -RazorDocument - [0..207)::207 - [@{LF if(true) {LF @:Single Line MarkupLF }LF foreach (var p in Enumerable.Range(1, 10)) {LF The number is @pLF }LF if(!false) {LF

                    A real tag!

                    LF }LF}] - MarkupBlock - [0..207)::207 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..207)::207 - CSharpStatement - [0..207)::207 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..207)::206 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..206)::204 - CSharpStatementLiteral - [2..20)::18 - [LF if(true) {LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [20..50)::30 - MarkupTextLiteral - [20..28)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTransition - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [30..50)::20 - [Single Line MarkupLF] - Gen - SpanEditHandler;Accepts:None - Text;[Single]; - Whitespace;[ ]; - Text;[Line]; - Whitespace;[ ]; - Text;[Markup]; - NewLine;[LF]; - CSharpStatementLiteral - [50..115)::65 - [ }LF foreach (var p in Enumerable.Range(1, 10)) {LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[foreach]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[p]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Enumerable]; - Dot;[.]; - Identifier;[Range]; - LeftParenthesis;[(]; - IntegerLiteral;[1]; - Comma;[,]; - Whitespace;[ ]; - IntegerLiteral;[10]; - RightParenthesis;[)]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [115..144)::29 - MarkupElement - [115..144)::29 - MarkupStartTag - [115..121)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [121..135)::14 - [The number is ] - Gen - SpanEditHandler;Accepts:Any - Text;[The]; - Whitespace;[ ]; - Text;[number]; - Whitespace;[ ]; - Text;[is]; - Whitespace;[ ]; - CSharpCodeBlock - [135..137)::2 - CSharpImplicitExpression - [135..137)::2 - CSharpTransition - [135..136)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [136..137)::1 - CSharpCodeBlock - [136..137)::1 - CSharpExpressionLiteral - [136..137)::1 - [p] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[p]; - MarkupEndTag - [137..144)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [144..171)::27 - [LF }LF if(!false) {LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[if]; - LeftParenthesis;[(]; - Not;[!]; - Keyword;[false]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [171..199)::28 - MarkupTextLiteral - [171..179)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [179..197)::18 - MarkupStartTag - [179..182)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [182..193)::11 - [A real tag!] - Gen - SpanEditHandler;Accepts:Any - Text;[A]; - Whitespace;[ ]; - Text;[real]; - Whitespace;[ ]; - Text;[tag]; - Bang;[!]; - MarkupEndTag - [193..197)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [197..199)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [199..206)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - RazorMetaCode - [206..207)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [207..207)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.cspans.txt deleted file mode 100644 index 08846c99c56..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.cspans.txt +++ /dev/null @@ -1,33 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [233] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [233] ) -Code span at (1:0,1 [28] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [233] ) -Markup span at (29:2,0 [8] ) (Accepts:Any) - Parent: Markup block at (29:2,0 [20] ) -Markup span at (37:2,8 [3] ) (Accepts:None) - Parent: Tag block at (37:2,8 [3] ) -Markup span at (40:2,11 [3] ) (Accepts:Any) - Parent: Markup block at (29:2,0 [20] ) -Markup span at (43:2,14 [4] ) (Accepts:None) - Parent: Tag block at (43:2,14 [4] ) -Markup span at (47:2,18 [2] ) (Accepts:None) - Parent: Markup block at (29:2,0 [20] ) -Code span at (49:3,0 [29] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [233] ) -Markup span at (78:5,0 [8] ) (Accepts:Any) - Parent: Markup block at (78:5,0 [20] ) -Markup span at (86:5,8 [3] ) (Accepts:None) - Parent: Tag block at (86:5,8 [3] ) -Markup span at (89:5,11 [3] ) (Accepts:Any) - Parent: Markup block at (78:5,0 [20] ) -Markup span at (92:5,14 [4] ) (Accepts:None) - Parent: Tag block at (92:5,14 [4] ) -Markup span at (96:5,18 [2] ) (Accepts:None) - Parent: Markup block at (78:5,0 [20] ) -Code span at (98:6,0 [41] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [233] ) -Markup span at (139:9,0 [12] ) (Accepts:Any) - Parent: Markup block at (139:9,0 [24] ) -Markup span at (151:9,12 [3] ) (Accepts:None) - Parent: Tag block at (151:9,12 [3] ) -Markup span at (154:9,15 [3] ) (Accepts:Any) - Parent: Markup block at (139:9,0 [24] ) -Markup span at (157:9,18 [4] ) (Accepts:None) - Parent: Tag block at (157:9,18 [4] ) -Markup span at (161:9,22 [2] ) (Accepts:None) - Parent: Markup block at (139:9,0 [24] ) -Markup span at (163:10,0 [12] ) (Accepts:Any) - Parent: Markup block at (163:10,0 [24] ) -Markup span at (175:10,12 [3] ) (Accepts:None) - Parent: Tag block at (175:10,12 [3] ) -Markup span at (178:10,15 [3] ) (Accepts:Any) - Parent: Markup block at (163:10,0 [24] ) -Markup span at (181:10,18 [4] ) (Accepts:None) - Parent: Tag block at (181:10,18 [4] ) -Markup span at (185:10,22 [2] ) (Accepts:None) - Parent: Markup block at (163:10,0 [24] ) -Code span at (187:11,0 [25] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [233] ) -Markup span at (212:13,0 [8] ) (Accepts:Any) - Parent: Markup block at (212:13,0 [20] ) -Markup span at (220:13,8 [3] ) (Accepts:None) - Parent: Tag block at (220:13,8 [3] ) -Markup span at (223:13,11 [3] ) (Accepts:Any) - Parent: Markup block at (212:13,0 [20] ) -Markup span at (226:13,14 [4] ) (Accepts:None) - Parent: Tag block at (226:13,14 [4] ) -Markup span at (230:13,18 [2] ) (Accepts:None) - Parent: Markup block at (212:13,0 [20] ) -Code span at (232:14,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [233] ) -Markup span at (233:14,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [233] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.stree.txt deleted file mode 100644 index 7f17709368c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitch.stree.txt +++ /dev/null @@ -1,143 +0,0 @@ -RazorDocument - [0..233)::233 - [@switch(foo) {LF case 0:LF

                    Foo

                    LF break;LF case 1:LF

                    Bar

                    LF return;LF case 2:LF {LF

                    Baz

                    LF

                    Boz

                    LF }LF default:LF

                    Biz

                    LF}] - MarkupBlock - [0..233)::233 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..233)::233 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..29)::28 - [switch(foo) {LF case 0:LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[switch]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Colon;[:]; - NewLine;[LF]; - MarkupBlock - [29..49)::20 - MarkupTextLiteral - [29..37)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [37..47)::10 - MarkupStartTag - [37..40)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [40..43)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [43..47)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [47..49)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [49..78)::29 - [ break;LF case 1:LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Keyword;[break]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[1]; - Colon;[:]; - NewLine;[LF]; - MarkupBlock - [78..98)::20 - MarkupTextLiteral - [78..86)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [86..96)::10 - MarkupStartTag - [86..89)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [89..92)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [92..96)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [96..98)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [98..139)::41 - [ return;LF case 2:LF {LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Keyword;[return]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[2]; - Colon;[:]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [139..163)::24 - MarkupTextLiteral - [139..151)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [151..161)::10 - MarkupStartTag - [151..154)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [154..157)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupEndTag - [157..161)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [161..163)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [163..187)::24 - MarkupTextLiteral - [163..175)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [175..185)::10 - MarkupStartTag - [175..178)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [178..181)::3 - [Boz] - Gen - SpanEditHandler;Accepts:Any - Text;[Boz]; - MarkupEndTag - [181..185)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [185..187)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [187..212)::25 - [ }LF default:LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[default]; - Colon;[:]; - NewLine;[LF]; - MarkupBlock - [212..232)::20 - MarkupTextLiteral - [212..220)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [220..230)::10 - MarkupStartTag - [220..223)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [223..226)::3 - [Biz] - Gen - SpanEditHandler;Accepts:Any - Text;[Biz]; - MarkupEndTag - [226..230)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [230..232)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [232..233)::1 - [}] - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [233..233)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.cspans.txt deleted file mode 100644 index 371412c07f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.cspans.txt +++ /dev/null @@ -1,35 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [237] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [237] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [237] ) -Code span at (2:0,2 [29] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [237] ) -Markup span at (31:2,0 [8] ) (Accepts:Any) - Parent: Markup block at (31:2,0 [20] ) -Markup span at (39:2,8 [3] ) (Accepts:None) - Parent: Tag block at (39:2,8 [3] ) -Markup span at (42:2,11 [3] ) (Accepts:Any) - Parent: Markup block at (31:2,0 [20] ) -Markup span at (45:2,14 [4] ) (Accepts:None) - Parent: Tag block at (45:2,14 [4] ) -Markup span at (49:2,18 [2] ) (Accepts:None) - Parent: Markup block at (31:2,0 [20] ) -Code span at (51:3,0 [29] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [237] ) -Markup span at (80:5,0 [8] ) (Accepts:Any) - Parent: Markup block at (80:5,0 [20] ) -Markup span at (88:5,8 [3] ) (Accepts:None) - Parent: Tag block at (88:5,8 [3] ) -Markup span at (91:5,11 [3] ) (Accepts:Any) - Parent: Markup block at (80:5,0 [20] ) -Markup span at (94:5,14 [4] ) (Accepts:None) - Parent: Tag block at (94:5,14 [4] ) -Markup span at (98:5,18 [2] ) (Accepts:None) - Parent: Markup block at (80:5,0 [20] ) -Code span at (100:6,0 [41] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [237] ) -Markup span at (141:9,0 [12] ) (Accepts:Any) - Parent: Markup block at (141:9,0 [24] ) -Markup span at (153:9,12 [3] ) (Accepts:None) - Parent: Tag block at (153:9,12 [3] ) -Markup span at (156:9,15 [3] ) (Accepts:Any) - Parent: Markup block at (141:9,0 [24] ) -Markup span at (159:9,18 [4] ) (Accepts:None) - Parent: Tag block at (159:9,18 [4] ) -Markup span at (163:9,22 [2] ) (Accepts:None) - Parent: Markup block at (141:9,0 [24] ) -Markup span at (165:10,0 [12] ) (Accepts:Any) - Parent: Markup block at (165:10,0 [24] ) -Markup span at (177:10,12 [3] ) (Accepts:None) - Parent: Tag block at (177:10,12 [3] ) -Markup span at (180:10,15 [3] ) (Accepts:Any) - Parent: Markup block at (165:10,0 [24] ) -Markup span at (183:10,18 [4] ) (Accepts:None) - Parent: Tag block at (183:10,18 [4] ) -Markup span at (187:10,22 [2] ) (Accepts:None) - Parent: Markup block at (165:10,0 [24] ) -Code span at (189:11,0 [25] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [237] ) -Markup span at (214:13,0 [8] ) (Accepts:Any) - Parent: Markup block at (214:13,0 [20] ) -Markup span at (222:13,8 [3] ) (Accepts:None) - Parent: Tag block at (222:13,8 [3] ) -Markup span at (225:13,11 [3] ) (Accepts:Any) - Parent: Markup block at (214:13,0 [20] ) -Markup span at (228:13,14 [4] ) (Accepts:None) - Parent: Tag block at (228:13,14 [4] ) -Markup span at (232:13,18 [2] ) (Accepts:None) - Parent: Markup block at (214:13,0 [20] ) -Code span at (234:14,0 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [237] ) -MetaCode span at (236:14,2 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [237] ) -Markup span at (237:14,3 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [237] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.stree.txt deleted file mode 100644 index 63e92358d11..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpToMarkupSwitchTest/SupportsMarkupInCaseAndDefaultBranchesOfSwitchInCodeBlock.stree.txt +++ /dev/null @@ -1,152 +0,0 @@ -RazorDocument - [0..237)::237 - [@{ switch(foo) {LF case 0:LF

                    Foo

                    LF break;LF case 1:LF

                    Bar

                    LF return;LF case 2:LF {LF

                    Baz

                    LF

                    Boz

                    LF }LF default:LF

                    Biz

                    LF} }] - MarkupBlock - [0..237)::237 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..237)::237 - CSharpStatement - [0..237)::237 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..237)::236 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..236)::234 - CSharpStatementLiteral - [2..31)::29 - [ switch(foo) {LF case 0:LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[switch]; - LeftParenthesis;[(]; - Identifier;[foo]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Colon;[:]; - NewLine;[LF]; - MarkupBlock - [31..51)::20 - MarkupTextLiteral - [31..39)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [39..49)::10 - MarkupStartTag - [39..42)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [42..45)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [45..49)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [49..51)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [51..80)::29 - [ break;LF case 1:LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Keyword;[break]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[1]; - Colon;[:]; - NewLine;[LF]; - MarkupBlock - [80..100)::20 - MarkupTextLiteral - [80..88)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [88..98)::10 - MarkupStartTag - [88..91)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [91..94)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [94..98)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [98..100)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [100..141)::41 - [ return;LF case 2:LF {LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Keyword;[return]; - Semicolon;[;]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[case]; - Whitespace;[ ]; - IntegerLiteral;[2]; - Colon;[:]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [141..165)::24 - MarkupTextLiteral - [141..153)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [153..163)::10 - MarkupStartTag - [153..156)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [156..159)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupEndTag - [159..163)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [163..165)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [165..189)::24 - MarkupTextLiteral - [165..177)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [177..187)::10 - MarkupStartTag - [177..180)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [180..183)::3 - [Boz] - Gen - SpanEditHandler;Accepts:Any - Text;[Boz]; - MarkupEndTag - [183..187)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [187..189)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [189..214)::25 - [ }LF default:LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - Whitespace;[ ]; - Keyword;[default]; - Colon;[:]; - NewLine;[LF]; - MarkupBlock - [214..234)::20 - MarkupTextLiteral - [214..222)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [222..232)::10 - MarkupStartTag - [222..225)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [225..228)::3 - [Biz] - Gen - SpanEditHandler;Accepts:Any - Text;[Biz]; - MarkupEndTag - [228..232)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [232..234)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [234..236)::2 - [} ] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - Whitespace;[ ]; - RazorMetaCode - [236..237)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [237..237)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.cspans.txt deleted file mode 100644 index 73d431f67ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Expression block at (2:0,2 [5] ) -Code span at (3:0,3 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (2:0,2 [5] ) -Code span at (7:0,7 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (9:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:1,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.stree.txt deleted file mode 100644 index 537ca2fd707..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprAcceptsTrailingNewlineInDesignTimeMode.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..10)::10 - [@{@foo.LF}] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - CSharpCodeBlock - [2..7)::5 - CSharpImplicitExpression - [2..7)::5 - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [3..7)::4 - CSharpCodeBlock - [3..7)::4 - CSharpExpressionLiteral - [3..7)::4 - [foo.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Identifier;[foo]; - Dot;[.]; - CSharpStatementLiteral - [7..9)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.cspans.txt deleted file mode 100644 index 2caa075c0c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Expression block at (2:0,2 [1] ) -Code span at (3:0,3 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (2:0,2 [1] ) -Code span at (3:0,3 [1] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (4:0,4 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (5:0,5 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.diag.txt deleted file mode 100644 index af4954d89ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1005: "." is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.stree.txt deleted file mode 100644 index 6efc85bc183..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptDotAfterAt.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..5)::5 - [@{@.}] - MarkupBlock - [0..5)::5 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..4)::2 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - CSharpCodeBlock - [2..3)::1 - CSharpImplicitExpression - [2..3)::1 - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [3..3)::0 - CSharpCodeBlock - [3..3)::0 - CSharpExpressionLiteral - [3..3)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Marker;[]; - CSharpStatementLiteral - [3..4)::1 - [.] - Gen - SpanEditHandler;Accepts:Any - Dot;[.]; - RazorMetaCode - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [5..5)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.cspans.txt deleted file mode 100644 index 73d431f67ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Expression block at (2:0,2 [5] ) -Code span at (3:0,3 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (2:0,2 [5] ) -Code span at (7:0,7 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (9:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:1,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.stree.txt deleted file mode 100644 index 537ca2fd707..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprDoesNotAcceptTrailingNewlineInRunTimeMode.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..10)::10 - [@{@foo.LF}] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - CSharpCodeBlock - [2..7)::5 - CSharpImplicitExpression - [2..7)::5 - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [3..7)::4 - CSharpCodeBlock - [3..7)::4 - CSharpExpressionLiteral - [3..7)::4 - [foo.] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Identifier;[foo]; - Dot;[.]; - CSharpStatementLiteral - [7..9)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.cspans.txt deleted file mode 100644 index cfb01939e7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Code span at (2:0,2 [6] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [12] ) -Transition span at (8:1,4 [1] ) (Accepts:None) - Parent: Expression block at (8:1,4 [1] ) -Code span at (9:1,5 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (8:1,4 [1] ) -Code span at (9:1,5 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (11:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Markup span at (12:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.diag.txt deleted file mode 100644 index a8f6dc0930d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,6): Error RZ1003: A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following "@" with no space in between. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.stree.txt deleted file mode 100644 index a83496ddd11..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtAcceptsSingleSpaceOrNewlineAtDesignTime.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..12)::12 - [@{LF @LF}] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - CSharpStatement - [0..12)::12 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..12)::11 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..11)::9 - CSharpStatementLiteral - [2..8)::6 - [LF ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - Whitespace;[ ]; - CSharpCodeBlock - [8..9)::1 - CSharpImplicitExpression - [8..9)::1 - CSharpTransition - [8..9)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [9..9)::0 - CSharpCodeBlock - [9..9)::0 - CSharpExpressionLiteral - [9..9)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Marker;[]; - CSharpStatementLiteral - [9..11)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [12..12)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.cspans.txt deleted file mode 100644 index 38b8899f161..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [4] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Expression block at (2:0,2 [1] ) -Code span at (3:0,3 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (2:0,2 [1] ) -Code span at (3:0,3 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [4] ) -Markup span at (4:0,4 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.diag.txt deleted file mode 100644 index ca1dc596abb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1005: "}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.stree.txt deleted file mode 100644 index 7d2bc1804c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/InnerImplicitExprWithOnlySingleAtOutputsZeroLengthCodeSpan.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..4)::4 - [@{@}] - MarkupBlock - [0..4)::4 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpStatement - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..4)::3 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..3)::1 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - CSharpCodeBlock - [2..3)::1 - CSharpImplicitExpression - [2..3)::1 - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [3..3)::0 - CSharpCodeBlock - [3..3)::0 - CSharpExpressionLiteral - [3..3)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[ATD];K14 - Marker;[]; - CSharpStatementLiteral - [3..3)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [4..4)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.cspans.txt deleted file mode 100644 index d86374cf4e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Code span at (2:0,2 [8] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.stree.txt deleted file mode 100644 index fed47f72882..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpVerbatimBlockTest/VerbatimBlock.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..11)::11 - [@{ foo(); }] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpStatement - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..10)::8 - CSharpStatementLiteral - [2..10)::8 - [ foo(); ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.cspans.txt deleted file mode 100644 index 86b0e40245b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [19] ) -MetaCode span at (3:0,3 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Transition span at (5:0,5 [1] ) (Accepts:None) - Parent: Statement block at (5:0,5 [14] ) -Code span at (6:0,6 [13] ) (Accepts:Any) - Parent: Statement block at (5:0,5 [14] ) -Markup span at (19:0,19 [2] ) (Accepts:None) - Parent: Markup block at (2:0,2 [19] ) -Code span at (21:1,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:1,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.stree.txt deleted file mode 100644 index b40e6c93fd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/CSharpWhitespaceHandlingTest/StmtBlockDoesNotAcceptTrailingNewlineIfTheyAreSignificantToAncestor.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..22)::22 - [@{@: @if (true) { }LF}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [5..19)::14 - CSharpTransition - [5..6)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [6..19)::13 - [if (true) { }] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [19..21)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.cspans.txt deleted file mode 100644 index 9832cbfec6d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [20] ) -Markup span at (5:0,5 [9] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [14] ) -Transition span at (14:0,14 [1] ) (Accepts:None) - Parent: Expression block at (14:0,14 [4] ) -Code span at (15:0,15 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (14:0,14 [4] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [14] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [20] ) -Markup span at (20:0,20 [7] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt deleted file mode 100644 index e8c4ec10954..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..27)::27 - [] - MarkupBlock - [0..27)::27 - MarkupElement - [0..27)::27 - MarkupStartTag - [0..20)::20 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [5..19)::14 - [ @class='@foo'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..12)::6 - [@class] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [14..18)::4 - MarkupDynamicAttributeValue - [14..18)::4 - [@foo] - GenericBlock - [14..18)::4 - CSharpCodeBlock - [14..18)::4 - CSharpImplicitExpression - [14..18)::4 - CSharpTransition - [14..15)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [15..18)::3 - CSharpCodeBlock - [15..18)::3 - CSharpExpressionLiteral - [15..18)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [20..27)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.cspans.txt deleted file mode 100644 index 94b56eaa833..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (5:0,5 [15] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [20] ) -Transition span at (20:0,20 [1] ) (Accepts:None) - Parent: Expression block at (20:0,20 [4] ) -Code span at (21:0,21 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (20:0,20 [4] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [20] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (26:0,26 [7] ) (Accepts:Any) - Parent: Tag block at (26:0,26 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt deleted file mode 100644 index 4742d0f6c36..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..33)::33 - [] - MarkupBlock - [0..33)::33 - MarkupElement - [0..33)::33 - MarkupStartTag - [0..26)::26 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [5..25)::20 - [ @class:param='@foo'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..18)::12 - [@class:param] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Text;[class:param]; - Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [20..24)::4 - MarkupDynamicAttributeValue - [20..24)::4 - [@foo] - GenericBlock - [20..24)::4 - CSharpCodeBlock - [20..24)::4 - CSharpImplicitExpression - [20..24)::4 - CSharpTransition - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [21..24)::3 - CSharpCodeBlock - [21..24)::3 - CSharpExpressionLiteral - [21..24)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [26..33)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.cspans.txt deleted file mode 100644 index afd40eccabb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (7:0,7 [11] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [16] ) -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Expression block at (18:0,18 [4] ) -Code span at (19:0,19 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (18:0,18 [4] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [16] ) -Markup span at (23:0,23 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (24:0,24 [7] ) (Accepts:None) - Parent: Tag block at (24:0,24 [7] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.stree.txt deleted file mode 100644 index 4e4b3a1ee0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInBlock.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupElement - [2..31)::29 - MarkupStartTag - [2..24)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..23)::16 - [ data-foo='@foo'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any - Text;[data-foo]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [18..22)::4 - CSharpCodeBlock - [18..22)::4 - CSharpImplicitExpression - [18..22)::4 - CSharpTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [19..22)::3 - CSharpCodeBlock - [19..22)::3 - CSharpExpressionLiteral - [19..22)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [24..31)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.cspans.txt deleted file mode 100644 index afd40eccabb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (7:0,7 [11] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [16] ) -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Expression block at (18:0,18 [4] ) -Code span at (19:0,19 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (18:0,18 [4] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [16] ) -Markup span at (23:0,23 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (24:0,24 [7] ) (Accepts:None) - Parent: Tag block at (24:0,24 [7] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.stree.txt deleted file mode 100644 index 4e4b3a1ee0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreDisabledForDataAttributesInDocument.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupElement - [2..31)::29 - MarkupStartTag - [2..24)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..23)::16 - [ data-foo='@foo'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any - Text;[data-foo]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [18..22)::4 - CSharpCodeBlock - [18..22)::4 - CSharpImplicitExpression - [18..22)::4 - CSharpTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [19..22)::3 - CSharpCodeBlock - [19..22)::3 - CSharpExpressionLiteral - [19..22)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [24..31)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.cspans.txt deleted file mode 100644 index afd40eccabb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (7:0,7 [11] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [16] ) -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Expression block at (18:0,18 [4] ) -Code span at (19:0,19 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (18:0,18 [4] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [16] ) -Markup span at (23:0,23 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (24:0,24 [7] ) (Accepts:None) - Parent: Tag block at (24:0,24 [7] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt deleted file mode 100644 index dcab17b5697..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupElement - [2..31)::29 - MarkupStartTag - [2..24)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..23)::16 - [ data-foo='@foo'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any - Text;[data-foo]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [18..22)::4 - MarkupDynamicAttributeValue - [18..22)::4 - [@foo] - GenericBlock - [18..22)::4 - CSharpCodeBlock - [18..22)::4 - CSharpImplicitExpression - [18..22)::4 - CSharpTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [19..22)::3 - CSharpCodeBlock - [19..22)::3 - CSharpExpressionLiteral - [19..22)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [24..31)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.cspans.txt deleted file mode 100644 index d4c9ee0a569..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [26] ) -Markup span at (7:0,7 [15] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [20] ) -Transition span at (22:0,22 [1] ) (Accepts:None) - Parent: Expression block at (22:0,22 [4] ) -Code span at (23:0,23 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (22:0,22 [4] ) -Markup span at (26:0,26 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [20] ) -Markup span at (27:0,27 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [26] ) -Markup span at (28:0,28 [7] ) (Accepts:None) - Parent: Tag block at (28:0,28 [7] ) -Code span at (35:0,35 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (35:0,35 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.stree.txt deleted file mode 100644 index f4602b1fdef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInBlock.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..36)::36 - [@{}] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - CSharpStatement - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..36)::35 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..35)::33 - MarkupBlock - [2..35)::33 - MarkupElement - [2..35)::33 - MarkupStartTag - [2..28)::26 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..27)::20 - [ data-foo = '@foo'] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any - Text;[data-foo]; - MarkupTextLiteral - [16..18)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Equals;[=]; - MarkupTextLiteral - [19..22)::3 - [ '] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - SingleQuote;[']; - GenericBlock - [22..26)::4 - CSharpCodeBlock - [22..26)::4 - CSharpImplicitExpression - [22..26)::4 - CSharpTransition - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [23..26)::3 - CSharpCodeBlock - [23..26)::3 - CSharpExpressionLiteral - [23..26)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [28..35)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - CSharpStatementLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [35..36)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.cspans.txt deleted file mode 100644 index b00cc5d9fa4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [21] ) -Markup span at (7:0,7 [10] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [14] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Expression block at (17:0,17 [4] ) -Code span at (18:0,18 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (17:0,17 [4] ) -Markup span at (21:0,21 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [21] ) -Markup span at (23:0,23 [7] ) (Accepts:None) - Parent: Tag block at (23:0,23 [7] ) -Code span at (30:0,30 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (30:0,30 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (31:0,31 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.stree.txt deleted file mode 100644 index 77907906b9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesWithWeirdSpacingAreDisabledForDataAttributesInDocument.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..31)::31 - [@{}] - MarkupBlock - [0..31)::31 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - CSharpStatement - [0..31)::31 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..31)::30 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - MarkupBlock - [2..30)::28 - MarkupElement - [2..30)::28 - MarkupStartTag - [2..23)::21 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[span]; - MarkupAttributeBlock - [7..21)::14 - [ data-foo=@foo] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any - Text;[data-foo]; - Equals;[=]; - GenericBlock - [17..21)::4 - CSharpCodeBlock - [17..21)::4 - CSharpImplicitExpression - [17..21)::4 - CSharpTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [18..21)::3 - CSharpCodeBlock - [18..21)::3 - CSharpExpressionLiteral - [18..21)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupMiscAttributeContent - [21..22)::1 - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupEndTag - [23..30)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - CSharpStatementLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.cspans.txt deleted file mode 100644 index d2e1dc16d58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [24] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (14:0,14 [4] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (18:0,18 [4] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (23:0,23 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [24] ) -Code span at (26:0,26 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt deleted file mode 100644 index 522918f3b35..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..27)::27 - [@{}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..26)::24 - MarkupElement - [2..26)::24 - MarkupStartTag - [2..26)::24 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..23)::19 - [ href="Foo Bar Baz"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..22)::11 - MarkupLiteralAttributeValue - [11..14)::3 - [Foo] - MarkupTextLiteral - [11..14)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupLiteralAttributeValue - [14..18)::4 - [ Bar] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..18)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupLiteralAttributeValue - [18..22)::4 - [ Baz] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..22)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [23..24)::1 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.cspans.txt deleted file mode 100644 index 2b04b0aff14..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [23] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Transition span at (17:2,1 [1] ) (Accepts:None) - Parent: Expression block at (17:2,1 [4] ) -Code span at (18:2,2 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (17:2,1 [4] ) -Markup span at (21:2,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (22:2,6 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [23] ) -Code span at (25:2,9 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (25:2,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (26:2,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt deleted file mode 100644 index 59949b3f820..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..26)::26 - [@{}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..25)::23 - MarkupBlock - [2..25)::23 - MarkupElement - [2..25)::23 - MarkupStartTag - [2..25)::23 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..22)::18 - [ href LF= LF'@Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - MarkupTextLiteral - [9..12)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [13..17)::4 - [ LF'] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [17..21)::4 - MarkupDynamicAttributeValue - [17..21)::4 - [@Foo] - GenericBlock - [17..21)::4 - CSharpCodeBlock - [17..21)::4 - CSharpImplicitExpression - [17..21)::4 - CSharpTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [18..21)::3 - CSharpCodeBlock - [18..21)::3 - CSharpExpressionLiteral - [18..21)::3 - [Foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[Foo]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [22..23)::1 - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.cspans.txt deleted file mode 100644 index d2e1dc16d58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [24] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (14:0,14 [4] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (18:0,18 [4] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (23:0,23 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [24] ) -Code span at (26:0,26 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt deleted file mode 100644 index 449c6e679dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..27)::27 - [@{}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..26)::24 - MarkupElement - [2..26)::24 - MarkupStartTag - [2..26)::24 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..23)::19 - [ href='Foo Bar Baz'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..22)::11 - MarkupLiteralAttributeValue - [11..14)::3 - [Foo] - MarkupTextLiteral - [11..14)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupLiteralAttributeValue - [14..18)::4 - [ Bar] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..18)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupLiteralAttributeValue - [18..22)::4 - [ Baz] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..22)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [23..24)::1 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.cspans.txt deleted file mode 100644 index a859fd716ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [26] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [21] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [4] ) -Code span at (12:0,12 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (11:0,11 [4] ) -Markup span at (15:0,15 [4] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [21] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (19:0,19 [5] ) -Transition span at (20:0,20 [1] ) (Accepts:None) - Parent: Expression block at (20:0,20 [4] ) -Code span at (21:0,21 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (20:0,20 [4] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [21] ) -Markup span at (25:0,25 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [26] ) -Code span at (28:0,28 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt deleted file mode 100644 index 9a528190d39..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..29)::29 - [@{}] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpStatement - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..29)::28 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..28)::26 - MarkupBlock - [2..28)::26 - MarkupElement - [2..28)::26 - MarkupStartTag - [2..28)::26 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..25)::21 - [ href='@foo bar @baz'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..24)::13 - MarkupDynamicAttributeValue - [11..15)::4 - [@foo] - GenericBlock - [11..15)::4 - CSharpCodeBlock - [11..15)::4 - CSharpImplicitExpression - [11..15)::4 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [12..15)::3 - CSharpCodeBlock - [12..15)::3 - CSharpExpressionLiteral - [12..15)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupLiteralAttributeValue - [15..19)::4 - [ bar] - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [16..19)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - MarkupDynamicAttributeValue - [19..24)::5 - [ @baz] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - GenericBlock - [20..24)::4 - CSharpCodeBlock - [20..24)::4 - CSharpImplicitExpression - [20..24)::4 - CSharpTransition - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [21..24)::3 - CSharpCodeBlock - [21..24)::3 - CSharpExpressionLiteral - [21..24)::3 - [baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[baz]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [25..26)::1 - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.cspans.txt deleted file mode 100644 index 4ec6f65e2f0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [29] ) -Markup span at (4:0,4 [8] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (12:1,6 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (15:1,9 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (16:1,10 [8] ) (Accepts:Any) - Parent: Markup block at (16:1,10 [12] ) -Markup span at (24:2,6 [3] ) (Accepts:Any) - Parent: Markup block at (16:1,10 [12] ) -Markup span at (27:2,9 [1] ) (Accepts:Any) - Parent: Markup block at (16:1,10 [12] ) -Markup span at (28:2,10 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [29] ) -Code span at (31:2,13 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:2,13 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:2,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt deleted file mode 100644 index 9284b6d6e4c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt +++ /dev/null @@ -1,56 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupElement - [2..31)::29 - MarkupStartTag - [2..31)::29 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..16)::12 - [LFhref='Foo'] - MarkupTextLiteral - [4..6)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [6..10)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [Foo] - MarkupTextLiteral - [12..15)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [16..28)::12 - [LFabcd='Bar'] - MarkupTextLiteral - [16..18)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [18..22)::4 - [abcd] - Gen - SpanEditHandler;Accepts:Any - Text;[abcd]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [24..27)::3 - MarkupLiteralAttributeValue - [24..27)::3 - [Bar] - MarkupTextLiteral - [24..27)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.cspans.txt deleted file mode 100644 index abb2545da49..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [17] ) -Markup span at (4:0,4 [8] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (12:1,6 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (15:1,9 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (16:1,10 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [17] ) -Code span at (19:1,13 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (19:1,13 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (20:1,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt deleted file mode 100644 index c50f1edec6b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..20)::20 - [@{}] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..19)::17 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..16)::12 - [LFhref='Foo'] - MarkupTextLiteral - [4..6)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [6..10)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [Foo] - MarkupTextLiteral - [12..15)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [19..20)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.cspans.txt deleted file mode 100644 index d427da460be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [17] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [4] ) -Code span at (12:0,12 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (11:0,11 [4] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [17] ) -Code span at (19:0,19 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (19:0,19 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt deleted file mode 100644 index f62fcea9b0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..20)::20 - [@{}] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..19)::17 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..16)::12 - [ href='@foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..15)::4 - MarkupDynamicAttributeValue - [11..15)::4 - [@foo] - GenericBlock - [11..15)::4 - CSharpCodeBlock - [11..15)::4 - CSharpImplicitExpression - [11..15)::4 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [12..15)::3 - CSharpCodeBlock - [12..15)::3 - CSharpExpressionLiteral - [12..15)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [19..20)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.cspans.txt deleted file mode 100644 index ef0c16944f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [11] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [11] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [11] ) -Markup span at (15:0,15 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Code span at (18:0,18 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (18:0,18 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt deleted file mode 100644 index 71e57bd7e4a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..19)::19 - [@{}] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpStatement - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..19)::18 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..18)::16 - MarkupBlock - [2..18)::16 - MarkupElement - [2..18)::16 - MarkupStartTag - [2..18)::16 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..15)::11 - [ href='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [Foo] - MarkupTextLiteral - [11..14)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [15..16)::1 - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.cspans.txt deleted file mode 100644 index 1cbe6752deb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [24] ) -Markup span at (4:0,4 [15] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (19:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (22:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (23:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [24] ) -Code span at (26:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt deleted file mode 100644 index 3363750b09d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..27)::27 - [@{}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..26)::24 - MarkupElement - [2..26)::24 - MarkupStartTag - [2..26)::24 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..23)::19 - [ href LF= LF'Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - MarkupTextLiteral - [9..13)::4 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [14..19)::5 - [ LF'] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [19..22)::3 - MarkupLiteralAttributeValue - [19..22)::3 - [Foo] - MarkupTextLiteral - [19..22)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [23..24)::1 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.cspans.txt deleted file mode 100644 index 10b7d1d16f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (4:0,4 [9] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [13] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [13] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [13] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [18] ) -Code span at (20:0,20 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt deleted file mode 100644 index dc163ac41b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..21)::21 - [@{}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..20)::18 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..17)::13 - [ [item]='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..11)::6 - [[item]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[item]; - RightBracket;[]]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [Foo] - MarkupTextLiteral - [13..16)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.cspans.txt deleted file mode 100644 index e1faf07262f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [10] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (18:0,18 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Code span at (21:0,21 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt deleted file mode 100644 index b35f0032827..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..22)::22 - [@{}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupElement - [2..21)::19 - MarkupStartTag - [2..21)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..18)::14 - [ [(item,='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..12)::7 - [[(item,] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[(item,]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [14..17)::3 - MarkupLiteralAttributeValue - [14..17)::3 - [Foo] - MarkupTextLiteral - [14..17)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [18..19)::1 - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.cspans.txt deleted file mode 100644 index e1faf07262f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [10] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (18:0,18 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Code span at (21:0,21 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt deleted file mode 100644 index 14dbd17409c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..22)::22 - [@{}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupElement - [2..21)::19 - MarkupStartTag - [2..21)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..18)::14 - [ (click)='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..12)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(click)]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [14..17)::3 - MarkupLiteralAttributeValue - [14..17)::3 - [Foo] - MarkupTextLiteral - [14..17)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [18..19)::1 - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.cspans.txt deleted file mode 100644 index 13c38bf9439..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [20] ) -Markup span at (4:0,4 [11] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [20] ) -Code span at (22:0,22 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt deleted file mode 100644 index b7b93fab262..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..23)::23 - [@{}] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupElement - [2..22)::20 - MarkupStartTag - [2..22)::20 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..19)::15 - [ (^click)='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..13)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(^click)]; - Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [15..18)::3 - MarkupLiteralAttributeValue - [15..18)::3 - [Foo] - MarkupTextLiteral - [15..18)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.cspans.txt deleted file mode 100644 index 680860b7d8e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (17:0,17 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (21:0,21 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [22] ) -Code span at (24:0,24 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt deleted file mode 100644 index 51a3ab853ef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..25)::25 - [@{}] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - MarkupBlock - [2..24)::22 - MarkupElement - [2..24)::22 - MarkupStartTag - [2..24)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..21)::17 - [ *something='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..15)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any - Text;[*something]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [17..20)::3 - MarkupLiteralAttributeValue - [17..20)::3 - [Foo] - MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [21..22)::1 - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.cspans.txt deleted file mode 100644 index 10b7d1d16f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (4:0,4 [9] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [13] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [13] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [13] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [18] ) -Code span at (20:0,20 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt deleted file mode 100644 index c257aeddefa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..21)::21 - [@{}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..20)::18 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..17)::13 - [ #local='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..11)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any - Text;[#local]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [Foo] - MarkupTextLiteral - [13..16)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.cspans.txt deleted file mode 100644 index a20afccd166..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [35] ) -Markup span at (4:0,4 [11] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (15:1,2 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (18:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (19:1,6 [11] ) (Accepts:Any) - Parent: Markup block at (19:1,6 [15] ) -Markup span at (30:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (19:1,6 [15] ) -Markup span at (33:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (19:1,6 [15] ) -Markup span at (34:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [35] ) -Code span at (37:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (37:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (38:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt deleted file mode 100644 index 2dd3fffe2c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt +++ /dev/null @@ -1,63 +0,0 @@ -RazorDocument - [0..38)::38 - [@{}] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpStatement - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..38)::37 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..37)::35 - MarkupBlock - [2..37)::35 - MarkupElement - [2..37)::35 - MarkupStartTag - [2..37)::35 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..19)::15 - [ [item]LF='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..11)::6 - [[item]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[item]; - RightBracket;[]]; - MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [15..18)::3 - MarkupLiteralAttributeValue - [15..18)::3 - [Foo] - MarkupTextLiteral - [15..18)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [19..34)::15 - [ [item]=LF'Bar'] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..26)::6 - [[item]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[item]; - RightBracket;[]]; - Equals;[=]; - MarkupTextLiteral - [27..30)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [30..33)::3 - MarkupLiteralAttributeValue - [30..33)::3 - [Bar] - MarkupTextLiteral - [30..33)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [34..35)::1 - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [37..37)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.cspans.txt deleted file mode 100644 index 83bb3afe4da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [37] ) -Markup span at (4:0,4 [12] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [16] ) -Markup span at (16:1,2 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [16] ) -Markup span at (19:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [16] ) -Markup span at (20:1,6 [12] ) (Accepts:Any) - Parent: Markup block at (20:1,6 [16] ) -Markup span at (32:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (20:1,6 [16] ) -Markup span at (35:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (20:1,6 [16] ) -Markup span at (36:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [37] ) -Code span at (39:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (39:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (40:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt deleted file mode 100644 index c020e7c836a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..40)::40 - [@{}] - MarkupBlock - [0..40)::40 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..40)::40 - CSharpStatement - [0..40)::40 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..40)::39 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..39)::37 - MarkupBlock - [2..39)::37 - MarkupElement - [2..39)::37 - MarkupStartTag - [2..39)::37 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..20)::16 - [ [(item,LF='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..12)::7 - [[(item,] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[(item,]; - MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [Foo] - MarkupTextLiteral - [16..19)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [20..36)::16 - [ [(item,=LF'Bar'] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..28)::7 - [[(item,] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[(item,]; - Equals;[=]; - MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [32..35)::3 - MarkupLiteralAttributeValue - [32..35)::3 - [Bar] - MarkupTextLiteral - [32..35)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [36..37)::1 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [39..39)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [39..40)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.cspans.txt deleted file mode 100644 index 83bb3afe4da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [37] ) -Markup span at (4:0,4 [12] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [16] ) -Markup span at (16:1,2 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [16] ) -Markup span at (19:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [16] ) -Markup span at (20:1,6 [12] ) (Accepts:Any) - Parent: Markup block at (20:1,6 [16] ) -Markup span at (32:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (20:1,6 [16] ) -Markup span at (35:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (20:1,6 [16] ) -Markup span at (36:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [37] ) -Code span at (39:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (39:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (40:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt deleted file mode 100644 index 403687e9a12..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..40)::40 - [@{}] - MarkupBlock - [0..40)::40 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..40)::40 - CSharpStatement - [0..40)::40 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..40)::39 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..39)::37 - MarkupBlock - [2..39)::37 - MarkupElement - [2..39)::37 - MarkupStartTag - [2..39)::37 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..20)::16 - [ (click)LF='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..12)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(click)]; - MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [Foo] - MarkupTextLiteral - [16..19)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [20..36)::16 - [ (click)=LF'Bar'] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..28)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(click)]; - Equals;[=]; - MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [32..35)::3 - MarkupLiteralAttributeValue - [32..35)::3 - [Bar] - MarkupTextLiteral - [32..35)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [36..37)::1 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [39..39)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [39..40)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.cspans.txt deleted file mode 100644 index fbac8eaab7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [39] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (17:1,2 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (20:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (21:1,6 [13] ) (Accepts:Any) - Parent: Markup block at (21:1,6 [17] ) -Markup span at (34:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (21:1,6 [17] ) -Markup span at (37:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (21:1,6 [17] ) -Markup span at (38:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [39] ) -Code span at (41:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (41:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (42:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt deleted file mode 100644 index 3a677aa3dbf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..42)::42 - [@{}] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpStatement - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..42)::41 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..41)::39 - MarkupBlock - [2..41)::39 - MarkupElement - [2..41)::39 - MarkupStartTag - [2..41)::39 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..21)::17 - [ (^click)LF='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..13)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(^click)]; - MarkupTextLiteral - [13..15)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [17..20)::3 - MarkupLiteralAttributeValue - [17..20)::3 - [Foo] - MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [21..38)::17 - [ (^click)=LF'Bar'] - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [22..30)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(^click)]; - Equals;[=]; - MarkupTextLiteral - [31..34)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [34..37)::3 - MarkupLiteralAttributeValue - [34..37)::3 - [Bar] - MarkupTextLiteral - [34..37)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [38..39)::1 - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.cspans.txt deleted file mode 100644 index 38ddcc3004d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [43] ) -Markup span at (4:0,4 [15] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (19:1,2 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (22:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (23:1,6 [15] ) (Accepts:Any) - Parent: Markup block at (23:1,6 [19] ) -Markup span at (38:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (23:1,6 [19] ) -Markup span at (41:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (23:1,6 [19] ) -Markup span at (42:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [43] ) -Code span at (45:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (45:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (46:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt deleted file mode 100644 index 4b9f7e3f7b4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..46)::46 - [@{}] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpStatement - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..46)::45 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - MarkupBlock - [2..45)::43 - MarkupElement - [2..45)::43 - MarkupStartTag - [2..45)::43 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..23)::19 - [ *somethingLF='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..15)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any - Text;[*something]; - MarkupTextLiteral - [15..17)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [19..22)::3 - MarkupLiteralAttributeValue - [19..22)::3 - [Foo] - MarkupTextLiteral - [19..22)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [23..42)::19 - [ *something=LF'Bar'] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..34)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any - Text;[*something]; - Equals;[=]; - MarkupTextLiteral - [35..38)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [38..41)::3 - MarkupLiteralAttributeValue - [38..41)::3 - [Bar] - MarkupTextLiteral - [38..41)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [42..43)::1 - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.cspans.txt deleted file mode 100644 index a20afccd166..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [35] ) -Markup span at (4:0,4 [11] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (15:1,2 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (18:1,5 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [15] ) -Markup span at (19:1,6 [11] ) (Accepts:Any) - Parent: Markup block at (19:1,6 [15] ) -Markup span at (30:2,1 [3] ) (Accepts:Any) - Parent: Markup block at (19:1,6 [15] ) -Markup span at (33:2,4 [1] ) (Accepts:Any) - Parent: Markup block at (19:1,6 [15] ) -Markup span at (34:2,5 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [35] ) -Code span at (37:2,8 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (37:2,8 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (38:2,9 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt deleted file mode 100644 index bf93ad7e283..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..38)::38 - [@{}] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpStatement - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..38)::37 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..37)::35 - MarkupBlock - [2..37)::35 - MarkupElement - [2..37)::35 - MarkupStartTag - [2..37)::35 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..19)::15 - [ #localLF='Foo'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..11)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any - Text;[#local]; - MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [15..18)::3 - MarkupLiteralAttributeValue - [15..18)::3 - [Foo] - MarkupTextLiteral - [15..18)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [19..34)::15 - [ #local=LF'Bar'] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..26)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any - Text;[#local]; - Equals;[=]; - MarkupTextLiteral - [27..30)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - SingleQuote;[']; - GenericBlock - [30..33)::3 - MarkupLiteralAttributeValue - [30..33)::3 - [Bar] - MarkupTextLiteral - [30..33)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [34..35)::1 - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [37..37)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.cspans.txt deleted file mode 100644 index 58b825a0925..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [37] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (17:1,10 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (20:1,13 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (21:1,14 [11] ) (Accepts:Any) - Parent: Markup block at (21:1,14 [15] ) -Markup span at (32:2,8 [3] ) (Accepts:Any) - Parent: Markup block at (21:1,14 [15] ) -Markup span at (35:2,11 [1] ) (Accepts:Any) - Parent: Markup block at (21:1,14 [15] ) -Markup span at (36:2,12 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [37] ) -Code span at (39:2,15 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (39:2,15 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (40:2,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt deleted file mode 100644 index 241683bef10..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt +++ /dev/null @@ -1,63 +0,0 @@ -RazorDocument - [0..40)::40 - [@{}] - MarkupBlock - [0..40)::40 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..40)::40 - CSharpStatement - [0..40)::40 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..40)::39 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..39)::37 - MarkupBlock - [2..39)::37 - MarkupElement - [2..39)::37 - MarkupStartTag - [2..39)::37 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..21)::17 - [ LF [item]='Foo'] - MarkupTextLiteral - [4..9)::5 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [9..15)::6 - [[item]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[item]; - RightBracket;[]]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [17..20)::3 - MarkupLiteralAttributeValue - [17..20)::3 - [Foo] - MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [21..36)::15 - [ LF[item]='Bar'] - MarkupTextLiteral - [21..24)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [24..30)::6 - [[item]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[item]; - RightBracket;[]]; - Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [32..35)::3 - MarkupLiteralAttributeValue - [32..35)::3 - [Bar] - MarkupTextLiteral - [32..35)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [36..37)::1 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [39..39)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [39..40)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.cspans.txt deleted file mode 100644 index a3d88947559..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [39] ) -Markup span at (4:0,4 [14] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (18:1,11 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (21:1,14 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (22:1,15 [12] ) (Accepts:Any) - Parent: Markup block at (22:1,15 [16] ) -Markup span at (34:2,9 [3] ) (Accepts:Any) - Parent: Markup block at (22:1,15 [16] ) -Markup span at (37:2,12 [1] ) (Accepts:Any) - Parent: Markup block at (22:1,15 [16] ) -Markup span at (38:2,13 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [39] ) -Code span at (41:2,16 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (41:2,16 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (42:2,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt deleted file mode 100644 index 993f446d3e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..42)::42 - [@{}] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpStatement - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..42)::41 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..41)::39 - MarkupBlock - [2..41)::39 - MarkupElement - [2..41)::39 - MarkupStartTag - [2..41)::39 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..22)::18 - [ LF [(item,='Foo'] - MarkupTextLiteral - [4..9)::5 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [9..16)::7 - [[(item,] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[(item,]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [18..21)::3 - MarkupLiteralAttributeValue - [18..21)::3 - [Foo] - MarkupTextLiteral - [18..21)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [22..38)::16 - [ LF[(item,='Bar'] - MarkupTextLiteral - [22..25)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [25..32)::7 - [[(item,] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[(item,]; - Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [34..37)::3 - MarkupLiteralAttributeValue - [34..37)::3 - [Bar] - MarkupTextLiteral - [34..37)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [38..39)::1 - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.cspans.txt deleted file mode 100644 index a3d88947559..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [39] ) -Markup span at (4:0,4 [14] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (18:1,11 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (21:1,14 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [18] ) -Markup span at (22:1,15 [12] ) (Accepts:Any) - Parent: Markup block at (22:1,15 [16] ) -Markup span at (34:2,9 [3] ) (Accepts:Any) - Parent: Markup block at (22:1,15 [16] ) -Markup span at (37:2,12 [1] ) (Accepts:Any) - Parent: Markup block at (22:1,15 [16] ) -Markup span at (38:2,13 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [39] ) -Code span at (41:2,16 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (41:2,16 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (42:2,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt deleted file mode 100644 index 09be6b80eb6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..42)::42 - [@{}] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpStatement - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..42)::41 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..41)::39 - MarkupBlock - [2..41)::39 - MarkupElement - [2..41)::39 - MarkupStartTag - [2..41)::39 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..22)::18 - [ LF (click)='Foo'] - MarkupTextLiteral - [4..9)::5 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [9..16)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(click)]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [18..21)::3 - MarkupLiteralAttributeValue - [18..21)::3 - [Foo] - MarkupTextLiteral - [18..21)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [22..38)::16 - [ LF(click)='Bar'] - MarkupTextLiteral - [22..25)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [25..32)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(click)]; - Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [34..37)::3 - MarkupLiteralAttributeValue - [34..37)::3 - [Bar] - MarkupTextLiteral - [34..37)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [38..39)::1 - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.cspans.txt deleted file mode 100644 index 294e7d4526b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [41] ) -Markup span at (4:0,4 [15] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (19:1,12 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (22:1,15 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [19] ) -Markup span at (23:1,16 [13] ) (Accepts:Any) - Parent: Markup block at (23:1,16 [17] ) -Markup span at (36:2,10 [3] ) (Accepts:Any) - Parent: Markup block at (23:1,16 [17] ) -Markup span at (39:2,13 [1] ) (Accepts:Any) - Parent: Markup block at (23:1,16 [17] ) -Markup span at (40:2,14 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [41] ) -Code span at (43:2,17 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [44] ) -MetaCode span at (43:2,17 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -Markup span at (44:2,18 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt deleted file mode 100644 index 9024fc2d73e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..44)::44 - [@{}] - MarkupBlock - [0..44)::44 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - CSharpStatement - [0..44)::44 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..44)::43 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..43)::41 - MarkupBlock - [2..43)::41 - MarkupElement - [2..43)::41 - MarkupStartTag - [2..43)::41 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..23)::19 - [ LF (^click)='Foo'] - MarkupTextLiteral - [4..9)::5 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [9..17)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(^click)]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [19..22)::3 - MarkupLiteralAttributeValue - [19..22)::3 - [Foo] - MarkupTextLiteral - [19..22)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [23..40)::17 - [ LF(^click)='Bar'] - MarkupTextLiteral - [23..26)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [26..34)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any - Text;[(^click)]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [36..39)::3 - MarkupLiteralAttributeValue - [36..39)::3 - [Bar] - MarkupTextLiteral - [36..39)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [40..41)::1 - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.cspans.txt deleted file mode 100644 index 3c145a84695..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [45] ) -Markup span at (4:0,4 [17] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [21] ) -Markup span at (21:1,14 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [21] ) -Markup span at (24:1,17 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [21] ) -Markup span at (25:1,18 [15] ) (Accepts:Any) - Parent: Markup block at (25:1,18 [19] ) -Markup span at (40:2,12 [3] ) (Accepts:Any) - Parent: Markup block at (25:1,18 [19] ) -Markup span at (43:2,15 [1] ) (Accepts:Any) - Parent: Markup block at (25:1,18 [19] ) -Markup span at (44:2,16 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [45] ) -Code span at (47:2,19 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [48] ) -MetaCode span at (47:2,19 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -Markup span at (48:2,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt deleted file mode 100644 index 6ab9b95ff05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..48)::48 - [@{}] - MarkupBlock - [0..48)::48 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..48)::48 - CSharpStatement - [0..48)::48 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..48)::47 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..47)::45 - MarkupBlock - [2..47)::45 - MarkupElement - [2..47)::45 - MarkupStartTag - [2..47)::45 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..25)::21 - [ LF *something='Foo'] - MarkupTextLiteral - [4..9)::5 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [9..19)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any - Text;[*something]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [Foo] - MarkupTextLiteral - [21..24)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [25..44)::19 - [ LF*something='Bar'] - MarkupTextLiteral - [25..28)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [28..38)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any - Text;[*something]; - Equals;[=]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [40..43)::3 - MarkupLiteralAttributeValue - [40..43)::3 - [Bar] - MarkupTextLiteral - [40..43)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [43..44)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [44..45)::1 - MarkupTextLiteral - [44..45)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [47..48)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [48..48)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.cspans.txt deleted file mode 100644 index 58b825a0925..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [37] ) -Markup span at (4:0,4 [13] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (17:1,10 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (20:1,13 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [17] ) -Markup span at (21:1,14 [11] ) (Accepts:Any) - Parent: Markup block at (21:1,14 [15] ) -Markup span at (32:2,8 [3] ) (Accepts:Any) - Parent: Markup block at (21:1,14 [15] ) -Markup span at (35:2,11 [1] ) (Accepts:Any) - Parent: Markup block at (21:1,14 [15] ) -Markup span at (36:2,12 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [37] ) -Code span at (39:2,15 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [40] ) -MetaCode span at (39:2,15 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [40] ) -Markup span at (40:2,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt deleted file mode 100644 index d60bd004374..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..40)::40 - [@{}] - MarkupBlock - [0..40)::40 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..40)::40 - CSharpStatement - [0..40)::40 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..40)::39 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..39)::37 - MarkupBlock - [2..39)::37 - MarkupElement - [2..39)::37 - MarkupStartTag - [2..39)::37 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..21)::17 - [ LF #local='Foo'] - MarkupTextLiteral - [4..9)::5 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupTextLiteral - [9..15)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any - Text;[#local]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [17..20)::3 - MarkupLiteralAttributeValue - [17..20)::3 - [Foo] - MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [21..36)::15 - [ LF#local='Bar'] - MarkupTextLiteral - [21..24)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [24..30)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any - Text;[#local]; - Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [32..35)::3 - MarkupLiteralAttributeValue - [32..35)::3 - [Bar] - MarkupTextLiteral - [32..35)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [36..37)::1 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [39..39)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [39..40)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.cspans.txt deleted file mode 100644 index 5869ff5ca4f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (2:0,2 [6] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [20] ) -Markup span at (8:0,8 [7] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [11] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [4] ) -Code span at (16:0,16 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (15:0,15 [4] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [20] ) -Code span at (22:0,22 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.stree.txt deleted file mode 100644 index 0afdde8d784..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInBlock.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..23)::23 - [@{}] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupElement - [2..22)::20 - MarkupStartTag - [2..22)::20 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupAttributeBlock - [8..19)::11 - [ value=@foo] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [value] - Gen - SpanEditHandler;Accepts:Any - Text;[value]; - Equals;[=]; - GenericBlock - [15..19)::4 - MarkupDynamicAttributeValue - [15..19)::4 - [@foo] - GenericBlock - [15..19)::4 - CSharpCodeBlock - [15..19)::4 - CSharpImplicitExpression - [15..19)::4 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [16..19)::3 - CSharpCodeBlock - [16..19)::3 - CSharpExpressionLiteral - [16..19)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.cspans.txt deleted file mode 100644 index 764f3bb0e8d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [20] ) -Markup span at (6:0,6 [7] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [11] ) -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Expression block at (13:0,13 [4] ) -Code span at (14:0,14 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (13:0,13 [4] ) -Markup span at (17:0,17 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [20] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.stree.txt deleted file mode 100644 index cd4499af20e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedAttributeWithCodeWithSpacesInDocument.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..21)::21 - [}] - MarkupBlock - [0..21)::21 - MarkupElement - [0..20)::20 - MarkupStartTag - [0..20)::20 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupAttributeBlock - [6..17)::11 - [ value=@foo] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [value] - Gen - SpanEditHandler;Accepts:Any - Text;[value]; - Equals;[=]; - GenericBlock - [13..17)::4 - MarkupDynamicAttributeValue - [13..17)::4 - [@foo] - GenericBlock - [13..17)::4 - CSharpCodeBlock - [13..17)::4 - CSharpImplicitExpression - [13..17)::4 - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [14..17)::3 - CSharpCodeBlock - [14..17)::3 - CSharpExpressionLiteral - [14..17)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [20..21)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.cspans.txt deleted file mode 100644 index ea9b1b25c84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [22] ) -Markup span at (4:0,4 [6] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [9] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [9] ) -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Markup block at (13:0,13 [4] ) -Markup span at (17:0,17 [4] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [4] ) -Markup span at (21:0,21 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [22] ) -Code span at (24:0,24 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt deleted file mode 100644 index f080505b4b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..25)::25 - [@{}] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - MarkupBlock - [2..24)::22 - MarkupElement - [2..24)::22 - MarkupStartTag - [2..24)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..13)::9 - [ href=Foo] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - GenericBlock - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [Foo] - MarkupTextLiteral - [10..13)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupMinimizedAttributeBlock - [13..17)::4 - [ Bar] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..17)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupMinimizedAttributeBlock - [17..21)::4 - [ Baz] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..21)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any - Text;[Baz]; - MarkupMiscAttributeContent - [21..22)::1 - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.cspans.txt deleted file mode 100644 index 0fa9f90bf0e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [27] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [22] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [4] ) -Code span at (12:0,12 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (11:0,11 [4] ) -Markup span at (15:0,15 [10] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [22] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [22] ) -Markup span at (26:0,26 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [27] ) -Code span at (29:0,29 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt deleted file mode 100644 index 6d3e5ff3270..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..30)::30 - [@{}] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpStatement - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..30)::29 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..29)::27 - MarkupBlock - [2..29)::27 - MarkupElement - [2..29)::27 - MarkupStartTag - [2..29)::27 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..26)::22 - [ href='@foo ~/Foo/Bar'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..25)::14 - MarkupDynamicAttributeValue - [11..15)::4 - [@foo] - GenericBlock - [11..15)::4 - CSharpCodeBlock - [11..15)::4 - CSharpImplicitExpression - [11..15)::4 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [12..15)::3 - CSharpCodeBlock - [12..15)::3 - CSharpExpressionLiteral - [12..15)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupLiteralAttributeValue - [15..25)::10 - [ ~/Foo/Bar] - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [16..25)::9 - [~/Foo/Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[~]; - ForwardSlash;[/]; - Text;[Foo]; - ForwardSlash;[/]; - Text;[Bar]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [26..27)::1 - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.cspans.txt deleted file mode 100644 index 0a74de6c35c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [10] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (14:1,6 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (17:1,9 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [14] ) -Markup span at (18:1,10 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Code span at (21:1,13 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:1,13 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:1,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt deleted file mode 100644 index c0f11eea563..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..22)::22 - [@{}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupElement - [2..21)::19 - MarkupStartTag - [2..21)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..18)::14 - [ LFhref='Foo'] - MarkupTextLiteral - [4..8)::4 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupTextLiteral - [8..12)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [14..17)::3 - MarkupLiteralAttributeValue - [14..17)::3 - [Foo] - MarkupTextLiteral - [14..17)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [18..19)::1 - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.cspans.txt deleted file mode 100644 index 0bd53ac932d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Transition span at (2:0,2 [7] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Code span at (9:0,9 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.stree.txt deleted file mode 100644 index 1d3c357c030..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsEmptyTextTag.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..10)::10 - [@{}] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - MarkupBlock - [2..9)::7 - MarkupElement - [2..9)::7 - MarkupStartTag - [2..9)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [9..9)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.cspans.txt deleted file mode 100644 index 07d11db7953..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [30] ) -Markup span at (16:0,16 [5] ) (Accepts:None) - Parent: Tag block at (16:0,16 [5] ) -Markup span at (21:0,21 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [30] ) -Transition span at (25:0,25 [7] ) (Accepts:None) - Parent: Tag block at (25:0,25 [7] ) -Code span at (32:0,32 [5] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [38] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [38] ) -Markup span at (38:0,38 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.stree.txt deleted file mode 100644 index 59086b2f9a8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AcceptsTextTagAsOuterTagButDoesNotRender.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..38)::38 - [@{Foo Bar Baz zoop}] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..38)::38 - CSharpStatement - [0..38)::38 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..38)::37 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..37)::35 - MarkupBlock - [2..32)::30 - MarkupElement - [2..32)::30 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [8..16)::8 - [Foo Bar ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[Bar]; - Whitespace;[ ]; - MarkupElement - [16..25)::9 - MarkupStartTag - [16..21)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [21..25)::4 - [ Baz] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Baz]; - MarkupEndTag - [25..32)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..37)::5 - [ zoop] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Identifier;[zoop]; - RazorMetaCode - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.cspans.txt deleted file mode 100644 index 2573b6dc226..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [4] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [15] ) -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (7:0,7 [15] ) -Markup span at (22:0,22 [6] ) (Accepts:None) - Parent: Tag block at (22:0,22 [6] ) -Code span at (28:0,28 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt deleted file mode 100644 index 032272b7d48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..29)::29 - [@{}] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpStatement - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..29)::28 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..28)::26 - MarkupBlock - [2..28)::26 - MarkupElement - [2..28)::26 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..22)::15 - MarkupStartTag - [7..22)::15 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - MarkupAttributeBlock - [11..19)::8 - [ baz=">"] - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [17..18)::1 - MarkupLiteralAttributeValue - [17..18)::1 - [>] - MarkupTextLiteral - [17..18)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupEndTag - [22..28)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.cspans.txt deleted file mode 100644 index 2573b6dc226..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [4] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [15] ) -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: Tag block at (7:0,7 [15] ) -Markup span at (22:0,22 [6] ) (Accepts:None) - Parent: Tag block at (22:0,22 [6] ) -Code span at (28:0,28 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt deleted file mode 100644 index 167959449bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..29)::29 - [@{}] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpStatement - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..29)::28 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..28)::26 - MarkupBlock - [2..28)::26 - MarkupElement - [2..28)::26 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..22)::15 - MarkupStartTag - [7..22)::15 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - MarkupAttributeBlock - [11..19)::8 - [ baz='>'] - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [17..18)::1 - MarkupLiteralAttributeValue - [17..18)::1 - [>] - MarkupTextLiteral - [17..18)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupEndTag - [22..28)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.cspans.txt deleted file mode 100644 index 8fee8f2662c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [4] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [13] ) -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (19:0,19 [1] ) (Accepts:None) - Parent: Tag block at (7:0,7 [13] ) -Markup span at (20:0,20 [6] ) (Accepts:None) - Parent: Tag block at (20:0,20 [6] ) -Markup span at (26:0,26 [6] ) (Accepts:None) - Parent: Tag block at (26:0,26 [6] ) -Code span at (32:0,32 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt deleted file mode 100644 index 71b793bf6fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..33)::33 - [@{}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - CSharpStatement - [0..33)::33 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..33)::32 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..32)::30 - MarkupBlock - [2..32)::30 - MarkupElement - [2..32)::30 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..26)::19 - MarkupStartTag - [7..20)::13 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - MarkupAttributeBlock - [11..19)::8 - [ baz="/"] - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [17..18)::1 - MarkupLiteralAttributeValue - [17..18)::1 - [/] - MarkupTextLiteral - [17..18)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[bar]; - CloseAngle;[>]; - MarkupEndTag - [26..32)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.cspans.txt deleted file mode 100644 index 8fee8f2662c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [4] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [13] ) -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (11:0,11 [8] ) -Markup span at (19:0,19 [1] ) (Accepts:None) - Parent: Tag block at (7:0,7 [13] ) -Markup span at (20:0,20 [6] ) (Accepts:None) - Parent: Tag block at (20:0,20 [6] ) -Markup span at (26:0,26 [6] ) (Accepts:None) - Parent: Tag block at (26:0,26 [6] ) -Code span at (32:0,32 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt deleted file mode 100644 index 91929b7c24c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..33)::33 - [@{}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - CSharpStatement - [0..33)::33 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..33)::32 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..32)::30 - MarkupBlock - [2..32)::30 - MarkupElement - [2..32)::30 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..26)::19 - MarkupStartTag - [7..20)::13 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - MarkupAttributeBlock - [11..19)::8 - [ baz='/'] - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [17..18)::1 - MarkupLiteralAttributeValue - [17..18)::1 - [/] - MarkupTextLiteral - [17..18)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[bar]; - CloseAngle;[>]; - MarkupEndTag - [26..32)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.cspans.txt deleted file mode 100644 index f7d0febda1e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [4] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (6:0,6 [3] ) (Accepts:None) - Parent: Tag block at (6:0,6 [3] ) -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (12:0,12 [4] ) (Accepts:None) - Parent: Tag block at (12:0,12 [4] ) -Markup span at (16:0,16 [5] ) (Accepts:None) - Parent: Tag block at (16:0,16 [5] ) -Code span at (21:0,21 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.stree.txt deleted file mode 100644 index 39206aa1d86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsStartAndEndTagsToDifferInCase.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..22)::22 - [@{
                  • Foo

                  • }] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupElement - [2..21)::19 - MarkupStartTag - [2..6)::4 - [
                  • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - MarkupElement - [6..16)::10 - MarkupStartTag - [6..9)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [9..12)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [12..16)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[P]; - CloseAngle;[>]; - MarkupEndTag - [16..21)::5 - [
                  • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[lI]; - CloseAngle;[>]; - CSharpStatementLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.cspans.txt deleted file mode 100644 index 755c699fd45..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [5] ) (Accepts:None) - Parent: Tag block at (7:0,7 [5] ) -Markup span at (12:0,12 [5] ) (Accepts:None) - Parent: Tag block at (12:0,12 [5] ) -Markup span at (17:0,17 [6] ) (Accepts:None) - Parent: Tag block at (17:0,17 [6] ) -Code span at (23:0,23 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (24:0,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.stree.txt deleted file mode 100644 index 977c4f3c70c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/AllowsUnclosedTagsAsLongAsItCanRecoverToAnExpectedEndTag.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..24)::24 - [@{}] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - MarkupBlock - [2..23)::21 - MarkupElement - [2..23)::21 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..17)::10 - MarkupStartTag - [7..12)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - CloseAngle;[>]; - MarkupElement - [12..17)::5 - MarkupStartTag - [12..17)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[baz]; - CloseAngle;[>]; - MarkupEndTag - [17..23)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.cspans.txt deleted file mode 100644 index 815df70ed1f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [7] ) (Accepts:None) - Parent: Tag block at (7:0,7 [7] ) -Markup span at (14:0,14 [6] ) (Accepts:None) - Parent: Tag block at (14:0,14 [6] ) -Code span at (20:0,20 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.stree.txt deleted file mode 100644 index 589ca4a47b2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CanHandleSelfClosingTagsWithinBlock.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..21)::21 - [@{}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..14)::7 - MarkupStartTag - [7..14)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - MarkupMiscAttributeContent - [11..12)::1 - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupEndTag - [14..20)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt deleted file mode 100644 index 8f124b66de1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [31] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Statement block at (11:0,11 [12] ) -Code span at (12:0,12 [11] ) (Accepts:Any) - Parent: Statement block at (11:0,11 [12] ) -Markup span at (23:0,23 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [31] ) -Markup span at (27:0,27 [6] ) (Accepts:None) - Parent: Tag block at (27:0,27 [6] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt deleted file mode 100644 index 27ac92cec86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..34)::34 - [@{
                    Foo @if(true) {} Bar
                    }] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..11)::4 - [Foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - CSharpCodeBlock - [11..23)::12 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [12..23)::11 - [if(true) {}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - RightBrace;[}]; - MarkupTextLiteral - [23..27)::4 - [ Bar] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Bar]; - MarkupEndTag - [27..33)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.cspans.txt deleted file mode 100644 index 63a6914d4e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [6] ) (Accepts:None) - Parent: Tag block at (7:0,7 [6] ) -Markup span at (13:0,13 [5] ) (Accepts:None) - Parent: Tag block at (13:0,13 [5] ) -Markup span at (18:0,18 [6] ) (Accepts:None) - Parent: Tag block at (18:0,18 [6] ) -Markup span at (24:0,24 [6] ) (Accepts:None) - Parent: Tag block at (24:0,24 [6] ) -Code span at (30:0,30 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (30:0,30 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (31:0,31 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.stree.txt deleted file mode 100644 index 3efea968b36..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotConsiderPsuedoTagWithinMarkupBlock.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..31)::31 - [@{}] - MarkupBlock - [0..31)::31 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - CSharpStatement - [0..31)::31 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..31)::30 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - MarkupBlock - [2..30)::28 - MarkupElement - [2..30)::28 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..24)::17 - MarkupStartTag - [7..13)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupElement - [13..24)::11 - MarkupStartTag - [13..18)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[bar]; - CloseAngle;[>]; - MarkupEndTag - [18..24)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[bar]; - CloseAngle;[>]; - MarkupEndTag - [24..30)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.cspans.txt deleted file mode 100644 index 4cb009f651f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [20] ) (Accepts:None) - Parent: Markup block at (2:0,2 [31] ) -Markup span at (27:0,27 [6] ) (Accepts:None) - Parent: Tag block at (27:0,27 [6] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.stree.txt deleted file mode 100644 index 2f2e4f47259..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/DoesNotTerminateXMLProcInstrAtCloseAngleUnlessPreceededByQuestionMark.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..34)::34 - [@{ baz?>}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..27)::20 - [ baz?>] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - Text;[bar]; - CloseAngle;[>]; - Whitespace;[ ]; - Text;[baz]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupEndTag - [27..33)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.cspans.txt deleted file mode 100644 index 5f1b93ed738..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (2:0,2 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [17] ) -Markup span at (6:0,6 [7] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [10] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [10] ) -Markup span at (16:0,16 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [17] ) -Code span at (19:0,19 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (19:0,19 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt deleted file mode 100644 index 769a3401e63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..20)::20 - [@{

                    }] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..19)::17 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [4..5)::1 - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [5..6)::1 - MarkupTextLiteral - [5..6)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupAttributeBlock - [6..16)::10 - [ class=foo] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [foo] - MarkupTextLiteral - [13..16)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [19..20)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.cspans.txt deleted file mode 100644 index b0e0c19ca5d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (4:1,0 [1] ) (Accepts:Any) - Parent: Tag block at (4:1,0 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.diag.txt deleted file mode 100644 index 1b72b90879b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(2,1): Error RZ1024: End of file or an unexpected character was reached before the "" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                    ") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.stree.txt deleted file mode 100644 index 93a2e245cda..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleAtEof.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..5)::5 - [@{LF<] - MarkupBlock - [0..5)::5 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..5)::3 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - NewLine;[LF]; - MarkupBlock - [4..5)::1 - MarkupElement - [4..5)::1 - MarkupStartTag - [4..5)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - RazorMetaCode - [5..5)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.cspans.txt deleted file mode 100644 index 2a8d6265898..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [14] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [14] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [14] ) -Markup span at (4:1,0 [3] ) (Accepts:Any) - Parent: Tag block at (4:1,0 [3] ) -Markup span at (7:2,0 [7] ) (Accepts:None) - Parent: Tag block at (7:2,0 [7] ) -Code span at (14:2,7 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.diag.txt deleted file mode 100644 index 16d45eb0abf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(2,1): Error RZ1024: End of file or an unexpected character was reached before the "" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                    ") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. -(3,3): Error RZ1026: Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.stree.txt deleted file mode 100644 index b5394236301..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesOpenAngleWithProperTagFollowingIt.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..14)::14 - [@{LF] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - CSharpStatement - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..14)::13 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..14)::12 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - NewLine;[LF]; - MarkupBlock - [4..7)::3 - MarkupElement - [4..7)::3 - MarkupStartTag - [4..7)::3 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMiscAttributeContent - [5..7)::2 - MarkupTextLiteral - [5..7)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [7..14)::7 - MarkupElement - [7..14)::7 - MarkupEndTag - [7..14)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[html]; - CloseAngle;[>]; - CSharpStatementLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [14..14)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.cspans.txt deleted file mode 100644 index aaf4fd258dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [68] ) -Markup span at (4:1,0 [4] ) (Accepts:Any) - Parent: Markup block at (4:1,0 [63] ) -Markup span at (8:1,4 [4] ) (Accepts:None) - Parent: HtmlComment block at (8:1,4 [57] ) -Markup span at (12:1,8 [50] ) (Accepts:Whitespace) - Parent: HtmlComment block at (8:1,4 [57] ) -Markup span at (62:1,58 [3] ) (Accepts:None) - Parent: HtmlComment block at (8:1,4 [57] ) -Markup span at (65:1,61 [2] ) (Accepts:None) - Parent: Markup block at (4:1,0 [63] ) -Code span at (67:2,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [68] ) -MetaCode span at (67:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [68] ) -Markup span at (68:2,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.stree.txt deleted file mode 100644 index d6c3b6a1b31..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HandlesUnbalancedTripleDashHTMLComments.stree.txt +++ /dev/null @@ -1,56 +0,0 @@ -RazorDocument - [0..68)::68 - [@{LF LF}] - MarkupBlock - [0..68)::68 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..68)::68 - CSharpStatement - [0..68)::68 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..68)::67 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..67)::65 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [4..67)::63 - MarkupTextLiteral - [4..8)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupCommentBlock - [8..65)::57 - MarkupTextLiteral - [8..12)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [65..67)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [67..67)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [67..68)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [68..68)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.cspans.txt deleted file mode 100644 index e1fed0e5a63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.cspans.txt +++ /dev/null @@ -1,24 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [4] ) (Accepts:None) - Parent: HtmlComment block at (5:0,5 [22] ) -Markup span at (9:0,9 [15] ) (Accepts:Whitespace) - Parent: HtmlComment block at (5:0,5 [22] ) -Markup span at (24:0,24 [3] ) (Accepts:None) - Parent: HtmlComment block at (5:0,5 [22] ) -Markup span at (27:0,27 [6] ) (Accepts:Any) - Parent: Tag block at (27:0,27 [6] ) -Markup span at (33:0,33 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [165] ) -Markup span at (35:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (35:1,0 [5] ) -Markup span at (40:1,5 [4] ) (Accepts:None) - Parent: HtmlComment block at (40:1,5 [24] ) -Markup span at (44:1,9 [17] ) (Accepts:Whitespace) - Parent: HtmlComment block at (40:1,5 [24] ) -Markup span at (61:1,26 [3] ) (Accepts:None) - Parent: HtmlComment block at (40:1,5 [24] ) -Markup span at (64:1,29 [6] ) (Accepts:Any) - Parent: Tag block at (64:1,29 [6] ) -Markup span at (70:1,35 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [165] ) -Markup span at (72:2,0 [5] ) (Accepts:Any) - Parent: Tag block at (72:2,0 [5] ) -Markup span at (77:2,5 [4] ) (Accepts:None) - Parent: HtmlComment block at (77:2,5 [26] ) -Markup span at (81:2,9 [19] ) (Accepts:Whitespace) - Parent: HtmlComment block at (77:2,5 [26] ) -Markup span at (100:2,28 [3] ) (Accepts:None) - Parent: HtmlComment block at (77:2,5 [26] ) -Markup span at (103:2,31 [6] ) (Accepts:Any) - Parent: Tag block at (103:2,31 [6] ) -Markup span at (109:2,37 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [165] ) -Markup span at (111:3,0 [5] ) (Accepts:Any) - Parent: Tag block at (111:3,0 [5] ) -Markup span at (116:3,5 [4] ) (Accepts:None) - Parent: HtmlComment block at (116:3,5 [41] ) -Markup span at (120:3,9 [34] ) (Accepts:Whitespace) - Parent: HtmlComment block at (116:3,5 [41] ) -Markup span at (154:3,43 [3] ) (Accepts:None) - Parent: HtmlComment block at (116:3,5 [41] ) -Markup span at (157:3,46 [6] ) (Accepts:Any) - Parent: Tag block at (157:3,46 [6] ) -Markup span at (163:3,52 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [165] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.stree.txt deleted file mode 100644 index 84453954c43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/HtmlCommentSupportsMultipleDashes.stree.txt +++ /dev/null @@ -1,130 +0,0 @@ -RazorDocument - [0..165)::165 - [
                    LF
                    LF
                    LF
                    LF] - MarkupBlock - [0..165)::165 - MarkupElement - [0..33)::33 - MarkupStartTag - [0..5)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupCommentBlock - [5..27)::22 - MarkupTextLiteral - [5..9)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [27..33)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [33..35)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [35..70)::35 - MarkupStartTag - [35..40)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupCommentBlock - [40..64)::24 - MarkupTextLiteral - [40..44)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [64..70)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [70..72)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [72..109)::37 - MarkupStartTag - [72..77)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupCommentBlock - [77..103)::26 - MarkupTextLiteral - [77..81)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [103..109)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [109..111)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [111..163)::52 - MarkupStartTag - [111..116)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupCommentBlock - [116..157)::41 - MarkupTextLiteral - [116..120)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [157..163)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [163..165)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.cspans.txt deleted file mode 100644 index 10075460dbb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Markup span at (2:0,2 [8] ) (Accepts:None) - Parent: Tag block at (2:0,2 [8] ) -Markup span at (10:0,10 [13] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [36] ) -Transition span at (23:0,23 [1] ) (Accepts:None) - Parent: Expression block at (23:0,23 [4] ) -Code span at (24:0,24 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (23:0,23 [4] ) -Markup span at (27:0,27 [2] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [36] ) -Markup span at (29:0,29 [9] ) (Accepts:None) - Parent: Tag block at (29:0,29 [9] ) -Code span at (38:0,38 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [39] ) -MetaCode span at (38:0,38 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Markup span at (39:0,39 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.stree.txt deleted file mode 100644 index d90490cb938..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/IgnoresTagsInContentsOfScriptTag.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..39)::39 - [@{}] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..39)::39 - CSharpStatement - [0..39)::39 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..39)::38 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..38)::36 - MarkupBlock - [2..38)::36 - MarkupElement - [2..38)::36 - MarkupStartTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - CSharpStatementLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [38..39)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [39..39)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.cspans.txt deleted file mode 100644 index 4ca3454d277..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (2:0,2 [4] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [20] ) -Markup span at (6:0,6 [13] ) (Accepts:Whitespace) - Parent: HtmlComment block at (2:0,2 [20] ) -Markup span at (19:0,19 [3] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [20] ) -Code span at (22:0,22 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.stree.txt deleted file mode 100644 index b1bfd1c1aa0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/OnlyTerminatesCommentOnFullEndSequence.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..23)::23 - [@{}] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupCommentBlock - [2..22)::20 - MarkupTextLiteral - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - CSharpStatementLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.cspans.txt deleted file mode 100644 index b4f323eb1af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [22] ) (Accepts:None) - Parent: Markup block at (2:0,2 [33] ) -Markup span at (29:0,29 [6] ) (Accepts:None) - Parent: Tag block at (29:0,29 [6] ) -Code span at (35:0,35 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (35:0,35 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.stree.txt deleted file mode 100644 index 23ebc364bef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesSGMLDeclarationAsEmptyTag.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..36)::36 - [@{}] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - CSharpStatement - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..36)::35 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..35)::33 - MarkupBlock - [2..35)::33 - MarkupElement - [2..35)::33 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..29)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[DOCTYPE]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - Text;[bar]; - Whitespace;[ ]; - Text;[baz]; - CloseAngle;[>]; - MarkupEndTag - [29..35)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [35..36)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.cspans.txt deleted file mode 100644 index de508231ca8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [5] ) (Accepts:None) - Parent: Tag block at (7:0,7 [5] ) -Markup span at (12:0,12 [5] ) (Accepts:None) - Parent: Tag block at (12:0,12 [5] ) -Markup span at (17:0,17 [6] ) (Accepts:None) - Parent: Tag block at (17:0,17 [6] ) -Markup span at (23:0,23 [6] ) (Accepts:None) - Parent: Tag block at (23:0,23 [6] ) -Markup span at (29:0,29 [6] ) (Accepts:None) - Parent: Tag block at (29:0,29 [6] ) -Code span at (35:0,35 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [36] ) -MetaCode span at (35:0,35 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.stree.txt deleted file mode 100644 index a95f5309e88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesUntilMatchingEndTagIfFirstNonWhitespaceCharacterIsStartTag.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..36)::36 - [@{}] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - CSharpStatement - [0..36)::36 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..36)::35 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..35)::33 - MarkupBlock - [2..35)::33 - MarkupElement - [2..35)::33 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[baz]; - CloseAngle;[>]; - MarkupElement - [7..29)::22 - MarkupStartTag - [7..12)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[boz]; - CloseAngle;[>]; - MarkupElement - [12..23)::11 - MarkupStartTag - [12..17)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[biz]; - CloseAngle;[>]; - MarkupEndTag - [17..23)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[biz]; - CloseAngle;[>]; - MarkupEndTag - [23..29)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[boz]; - CloseAngle;[>]; - MarkupEndTag - [29..35)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[baz]; - CloseAngle;[>]; - CSharpStatementLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [35..36)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.cspans.txt deleted file mode 100644 index 852b2391557..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [19] ) (Accepts:None) - Parent: Markup block at (2:0,2 [30] ) -Markup span at (26:0,26 [6] ) (Accepts:None) - Parent: Tag block at (26:0,26 [6] ) -Code span at (32:0,32 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.stree.txt deleted file mode 100644 index e9f7c9e1a87..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ParsesXMLProcessingInstructionAsEmptyTag.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..33)::33 - [@{}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - CSharpStatement - [0..33)::33 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..33)::32 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..32)::30 - MarkupBlock - [2..32)::30 - MarkupElement - [2..32)::30 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..26)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - Text;[bar]; - Whitespace;[ ]; - Text;[baz]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupEndTag - [26..32)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.cspans.txt deleted file mode 100644 index 5c14032f926..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [4] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [18] ) -Markup span at (6:0,6 [11] ) (Accepts:Whitespace) - Parent: HtmlComment block at (2:0,2 [18] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [18] ) -Code span at (20:0,20 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.stree.txt deleted file mode 100644 index dfc7e9d6313..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ProperlyBalancesCommentStartAndEndTags.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..21)::21 - [@{}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupCommentBlock - [2..20)::18 - MarkupTextLiteral - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - CSharpStatementLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.cspans.txt deleted file mode 100644 index 3c96f3b336c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [19] ) -MetaCode span at (3:0,3 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (4:0,4 [17] ) (Accepts:None) - Parent: Markup block at (2:0,2 [19] ) -Code span at (21:1,0 [4] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (25:1,4 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (26:1,5 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.stree.txt deleted file mode 100644 index bf557127e86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/ReadsToEndOfLineIfFirstCharacterAfterTransitionIsColon.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..26)::26 - [@{@:
                  • Foo Bar BazLFbork}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..25)::23 - MarkupBlock - [2..21)::19 - MarkupTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [4..21)::17 - [
                  • Foo Bar BazLF] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - Text;[Foo]; - Whitespace;[ ]; - Text;[Bar]; - Whitespace;[ ]; - Text;[Baz]; - NewLine;[LF]; - CSharpStatementLiteral - [21..25)::4 - [bork] - Gen - SpanEditHandler;Accepts:Any - Identifier;[bork]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.cspans.txt deleted file mode 100644 index eec6718ce65..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [6] ) (Accepts:None) - Parent: Tag block at (8:0,8 [6] ) -Markup span at (14:0,14 [8] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [43] ) -Markup span at (22:0,22 [5] ) (Accepts:None) - Parent: Tag block at (22:0,22 [5] ) -Markup span at (27:0,27 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [43] ) -Markup span at (31:0,31 [7] ) (Accepts:None) - Parent: Tag block at (31:0,31 [7] ) -Transition span at (38:0,38 [7] ) (Accepts:None) - Parent: Tag block at (38:0,38 [7] ) -Code span at (45:0,45 [5] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [51] ) -MetaCode span at (50:0,50 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Markup span at (51:0,51 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.stree.txt deleted file mode 100644 index 1c91b94c212..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/RendersLiteralTextTagIfDoubled.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..51)::51 - [@{Foo Bar Baz zoop}] - MarkupBlock - [0..51)::51 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..51)::51 - CSharpStatement - [0..51)::51 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..51)::50 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..50)::48 - MarkupBlock - [2..45)::43 - MarkupElement - [2..45)::43 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupElement - [8..38)::30 - MarkupStartTag - [8..14)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [14..22)::8 - [Foo Bar ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - Text;[Bar]; - Whitespace;[ ]; - MarkupElement - [22..31)::9 - MarkupStartTag - [22..27)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [27..31)::4 - [ Baz] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Baz]; - MarkupEndTag - [31..38)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - MarkupEndTag - [38..45)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..50)::5 - [ zoop] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Identifier;[zoop]; - RazorMetaCode - [50..51)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [51..51)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.cspans.txt deleted file mode 100644 index 232818d1f8e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (2:0,2 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [3] ) -Markup span at (5:0,5 [3] ) (Accepts:None) - Parent: Tag block at (5:0,5 [3] ) -Markup span at (8:0,8 [4] ) (Accepts:None) - Parent: Tag block at (8:0,8 [4] ) -Markup span at (12:0,12 [4] ) (Accepts:None) - Parent: Tag block at (12:0,12 [4] ) -Markup span at (16:0,16 [3] ) (Accepts:None) - Parent: Tag block at (16:0,16 [3] ) -Markup span at (19:0,19 [4] ) (Accepts:None) - Parent: Tag block at (19:0,19 [4] ) -Code span at (23:0,23 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (24:0,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.stree.txt deleted file mode 100644 index 8e19b5c2aca..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsAtMatchingCloseTagToStartTag.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..24)::24 - [@{}] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - MarkupBlock - [2..16)::14 - MarkupElement - [2..16)::14 - MarkupStartTag - [2..5)::3 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - CloseAngle;[>]; - MarkupElement - [5..12)::7 - MarkupStartTag - [5..8)::3 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[b]; - CloseAngle;[>]; - MarkupEndTag - [8..12)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[b]; - CloseAngle;[>]; - MarkupEndTag - [12..16)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[a]; - CloseAngle;[>]; - MarkupBlock - [16..23)::7 - MarkupElement - [16..23)::7 - MarkupStartTag - [16..19)::3 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[c]; - CloseAngle;[>]; - MarkupEndTag - [19..23)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[c]; - CloseAngle;[>]; - CSharpStatementLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.cspans.txt deleted file mode 100644 index d91425cc171..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -Markup span at (2:0,2 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -Markup span at (7:0,7 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.diag.txt deleted file mode 100644 index cca79a11822..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "br" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                    ") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.stree.txt deleted file mode 100644 index d1385dbe43e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingMidEmptyTagIfEOFReached.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..7)::7 - [@{
                    - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpStatement - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..7)::6 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..6)::4 - MarkupBlock - [2..6)::4 - MarkupElement - [2..6)::4 - MarkupStartTag - [2..6)::4 - [
                    - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - ForwardSlash;[/]; - CloseAngle;[]; - RazorMetaCode - [6..7)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [7..7)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.cspans.txt deleted file mode 100644 index 513e5e1227e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [9] ) -MetaCode span at (3:0,3 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [9] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.diag.txt deleted file mode 100644 index 1ced8c1b883..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.stree.txt deleted file mode 100644 index 0dcd4b3227d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/StopsParsingSingleLineBlockAtEOFIfNoEOLReached.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..11)::11 - [@{@:foo bar] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpStatement - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..11)::9 - MarkupBlock - [2..11)::9 - MarkupTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [4..11)::7 - [foo bar] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Whitespace;[ ]; - Text;[bar]; - RazorMetaCode - [11..11)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.cspans.txt deleted file mode 100644 index 66f57861835..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Markup span at (2:0,2 [4] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [12] ) -Markup span at (6:0,6 [5] ) (Accepts:Whitespace) - Parent: HtmlComment block at (2:0,2 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [12] ) -Code span at (14:0,14 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [15] ) -MetaCode span at (14:0,14 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Markup span at (15:0,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.stree.txt deleted file mode 100644 index c857f00bc75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentAsBlock.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..15)::15 - [@{}] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpStatement - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..15)::14 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..14)::12 - MarkupBlock - [2..14)::12 - MarkupCommentBlock - [2..14)::12 - MarkupTextLiteral - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - CSharpStatementLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [14..15)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.cspans.txt deleted file mode 100644 index 960fc76d403..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (2:0,2 [4] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [13] ) -Markup span at (6:0,6 [6] ) (Accepts:Whitespace) - Parent: HtmlComment block at (2:0,2 [13] ) -Markup span at (12:0,12 [3] ) (Accepts:None) - Parent: HtmlComment block at (2:0,2 [13] ) -Code span at (15:0,15 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (16:0,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.stree.txt deleted file mode 100644 index a9736e44dfd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithExtraDashAsBlock.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..16)::16 - [@{}] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - CSharpStatement - [0..16)::16 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..16)::15 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..15)::13 - MarkupBlock - [2..15)::13 - MarkupCommentBlock - [2..15)::13 - MarkupTextLiteral - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - CSharpStatementLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.cspans.txt deleted file mode 100644 index 76cea803fe2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [30] ) -Markup span at (10:0,10 [4] ) (Accepts:None) - Parent: HtmlComment block at (10:0,10 [13] ) -Markup span at (14:0,14 [6] ) (Accepts:Whitespace) - Parent: HtmlComment block at (10:0,10 [13] ) -Markup span at (20:0,20 [3] ) (Accepts:None) - Parent: HtmlComment block at (10:0,10 [13] ) -Markup span at (23:0,23 [3] ) (Accepts:None) - Parent: Markup block at (2:0,2 [30] ) -Markup span at (26:0,26 [6] ) (Accepts:None) - Parent: Tag block at (26:0,26 [6] ) -Code span at (32:0,32 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.stree.txt deleted file mode 100644 index 6bb5a51f007..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsCommentWithinBlock.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..33)::33 - [@{barbaz}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - CSharpStatement - [0..33)::33 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..33)::32 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..32)::30 - MarkupBlock - [2..32)::30 - MarkupElement - [2..32)::30 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..10)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - MarkupCommentBlock - [10..23)::13 - MarkupTextLiteral - [10..14)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [23..26)::3 - [baz] - Gen - SpanEditHandler;Accepts:None - Text;[baz]; - MarkupEndTag - [26..32)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.cspans.txt deleted file mode 100644 index 308cb7122f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -Markup span at (2:0,2 [8] ) (Accepts:None) - Parent: Tag block at (2:0,2 [8] ) -Markup span at (10:0,10 [28] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [45] ) -Markup span at (38:0,38 [9] ) (Accepts:None) - Parent: Tag block at (38:0,38 [9] ) -Code span at (47:0,47 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [48] ) -MetaCode span at (47:0,47 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [48] ) -Markup span at (48:0,48 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.stree.txt deleted file mode 100644 index 76e144c7aec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithLessThanSignsInThem.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..48)::48 - [@{}] - MarkupBlock - [0..48)::48 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..48)::48 - CSharpStatement - [0..48)::48 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..48)::47 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..47)::45 - MarkupBlock - [2..47)::45 - MarkupElement - [2..47)::45 - MarkupStartTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - CSharpStatementLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [47..48)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [48..48)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.cspans.txt deleted file mode 100644 index 111203fb082..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [50] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [50] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [50] ) -Markup span at (2:0,2 [8] ) (Accepts:None) - Parent: Tag block at (2:0,2 [8] ) -Markup span at (10:0,10 [30] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [47] ) -Markup span at (40:0,40 [9] ) (Accepts:None) - Parent: Tag block at (40:0,40 [9] ) -Code span at (49:0,49 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [50] ) -MetaCode span at (49:0,49 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [50] ) -Markup span at (50:0,50 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [50] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.stree.txt deleted file mode 100644 index bac6484d918..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsScriptTagsWithSpacedLessThanSignsInThem.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..50)::50 - [@{}] - MarkupBlock - [0..50)::50 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..50)::50 - CSharpStatement - [0..50)::50 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..50)::49 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..49)::47 - MarkupBlock - [2..49)::47 - MarkupElement - [2..49)::47 - MarkupStartTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - CSharpStatementLiteral - [49..49)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [49..50)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [50..50)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.cspans.txt deleted file mode 100644 index 04325a68b00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Markup span at (2:0,2 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [15] ) -Markup span at (6:0,6 [6] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [10] ) -Markup span at (12:0,12 [3] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [10] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [10] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [15] ) -Markup span at (17:0,17 [5] ) (Accepts:None) - Parent: Tag block at (17:0,17 [5] ) -Markup span at (22:0,22 [4] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [16] ) -Markup span at (26:0,26 [6] ) (Accepts:Any) - Parent: Markup block at (26:0,26 [10] ) -Markup span at (32:0,32 [4] ) (Accepts:Any) - Parent: Markup block at (26:0,26 [10] ) -Markup span at (36:0,36 [2] ) (Accepts:None) - Parent: Tag block at (22:0,22 [16] ) -Markup span at (38:0,38 [6] ) (Accepts:None) - Parent: Tag block at (38:0,38 [6] ) -Markup span at (44:0,44 [6] ) (Accepts:None) - Parent: Tag block at (44:0,44 [6] ) -Code span at (50:0,50 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [51] ) -MetaCode span at (50:0,50 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Markup span at (51:0,51 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt deleted file mode 100644 index cec5e67cac7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt +++ /dev/null @@ -1,69 +0,0 @@ -RazorDocument - [0..51)::51 - [@{}] - MarkupBlock - [0..51)::51 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..51)::51 - CSharpStatement - [0..51)::51 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..51)::50 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..50)::48 - MarkupBlock - [2..50)::48 - MarkupElement - [2..50)::48 - MarkupStartTag - [2..17)::15 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - MarkupAttributeBlock - [6..16)::10 - [ bar="baz"] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..10)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [baz] - MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any - Text;[baz]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [17..44)::27 - MarkupStartTag - [17..22)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[biz]; - CloseAngle;[>]; - MarkupElement - [22..38)::16 - MarkupStartTag - [22..38)::16 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[boz]; - MarkupAttributeBlock - [26..36)::10 - [ zoop=zork] - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [27..31)::4 - [zoop] - Gen - SpanEditHandler;Accepts:Any - Text;[zoop]; - Equals;[=]; - GenericBlock - [32..36)::4 - MarkupLiteralAttributeValue - [32..36)::4 - [zork] - MarkupTextLiteral - [32..36)::4 - [zork] - Gen - SpanEditHandler;Accepts:Any - Text;[zork]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupEndTag - [38..44)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[biz]; - CloseAngle;[>]; - MarkupEndTag - [44..50)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [50..50)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [50..51)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [51..51)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.cspans.txt deleted file mode 100644 index 33bfa139cf8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (2:0,2 [28] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.diag.txt deleted file mode 100644 index 5c6d4706b6f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,3): Error RZ1024: End of file or an unexpected character was reached before the "" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                    ") or have matching end tags ("

                    Hello

                    "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.stree.txt deleted file mode 100644 index 9d0b8c5e643..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TagWithoutCloseAngleDoesNotTerminateBlock.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..30)::30 - [@{< LF ] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpStatement - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..30)::29 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - MarkupBlock - [2..30)::28 - MarkupElement - [2..30)::28 - MarkupStartTag - [2..30)::28 - [< LF ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMiscAttributeContent - [3..30)::27 - MarkupTextLiteral - [3..30)::27 - [ LF ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - Whitespace;[ ]; - CloseAngle;[]; - RazorMetaCode - [30..30)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.cspans.txt deleted file mode 100644 index 4f1792ca17e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Code span at (7:0,7 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.diag.txt deleted file mode 100644 index f87f5f62ada..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "foo" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.stree.txt deleted file mode 100644 index 2bce5971f79..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOF.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..7)::7 - [@{] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpStatement - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..7)::6 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..7)::5 - MarkupBlock - [2..7)::5 - MarkupElement - [2..7)::5 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [7..7)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [7..7)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.cspans.txt deleted file mode 100644 index 1886686774d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (2:0,2 [9] ) (Accepts:None) - Parent: Markup block at (2:0,2 [9] ) -Code span at (11:0,11 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.diag.txt deleted file mode 100644 index 1ced8c1b883..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.stree.txt deleted file mode 100644 index 41cb0f1c0a8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesAtEOFWhenParsingComment.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..11)::11 - [@{-->}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupCommentBlock - [7..24)::17 - MarkupTextLiteral - [7..11)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [24..27)::3 - [-->] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [27..33)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.cspans.txt deleted file mode 100644 index 88839eca6a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [18] ) (Accepts:None) - Parent: Markup block at (2:0,2 [34] ) -Markup span at (25:0,25 [5] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [34] ) -Markup span at (30:0,30 [6] ) (Accepts:None) - Parent: Tag block at (30:0,30 [6] ) -Code span at (36:0,36 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [37] ) -MetaCode span at (36:0,36 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -Markup span at (37:0,37 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.stree.txt deleted file mode 100644 index 628b15a7afc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesSGMLDeclarationAtFirstCloseAngle.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..37)::37 - [@{ baz>}] - MarkupBlock - [0..37)::37 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..37)::37 - CSharpStatement - [0..37)::37 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..37)::36 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..36)::34 - MarkupBlock - [2..36)::34 - MarkupElement - [2..36)::34 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..25)::18 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[DOCTYPE]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - Text;[bar]; - CloseAngle;[>]; - MarkupTextLiteral - [25..30)::5 - [ baz>] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[baz]; - CloseAngle;[>]; - MarkupEndTag - [30..36)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [37..37)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.cspans.txt deleted file mode 100644 index 5d7825701c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [19] ) (Accepts:None) - Parent: Markup block at (2:0,2 [34] ) -Markup span at (26:0,26 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [34] ) -Markup span at (30:0,30 [6] ) (Accepts:None) - Parent: Tag block at (30:0,30 [6] ) -Code span at (36:0,36 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [37] ) -MetaCode span at (36:0,36 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -Markup span at (37:0,37 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.stree.txt deleted file mode 100644 index 3b00cf06f20..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TerminatesXMLProcessingInstructionAtQuestionMarkCloseAnglePair.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..37)::37 - [@{ baz}] - MarkupBlock - [0..37)::37 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..37)::37 - CSharpStatement - [0..37)::37 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..37)::36 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..36)::34 - MarkupBlock - [2..36)::34 - MarkupElement - [2..36)::34 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..26)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - Text;[bar]; - Whitespace;[ ]; - Text;[baz]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupTextLiteral - [26..30)::4 - [ baz] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[baz]; - MarkupEndTag - [30..36)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [37..37)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.cspans.txt deleted file mode 100644 index 2a4e59b07de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [13] ) (Accepts:None) - Parent: Tag block at (7:0,7 [13] ) -Markup span at (20:0,20 [6] ) (Accepts:None) - Parent: Tag block at (20:0,20 [6] ) -Code span at (26:0,26 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.diag.txt deleted file mode 100644 index 628d44579e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,4): Error RZ1025: The "foo" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,23): Error RZ1026: Encountered end tag "foo" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.stree.txt deleted file mode 100644 index 4d2b3bc02d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/TreatsMalformedTagsAsContent.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..27)::27 - [@{}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupElement - [7..20)::13 - MarkupEndTag - [7..20)::13 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - MarkupMiscAttributeContent - [9..19)::10 - MarkupTextLiteral - [9..19)::10 - [!-- bar --] - Gen - SpanEditHandler;Accepts:Any - Bang;[!]; - DoubleHyphen;[--]; - Whitespace;[ ]; - Text;[bar]; - Whitespace;[ ]; - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupBlock - [20..26)::6 - MarkupElement - [20..26)::6 - MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.cspans.txt deleted file mode 100644 index a94530c9bc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (2:0,2 [7] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Code span at (9:0,9 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.stree.txt deleted file mode 100644 index 948a2dc1f53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlBlockTest/WithSelfClosingTagJustEmitsTag.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..10)::10 - [@{}] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - MarkupBlock - [2..9)::7 - MarkupElement - [2..9)::7 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [9..9)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.cspans.txt deleted file mode 100644 index aa2e0c80e13..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Markup span at (4:0,4 [6] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [6] ) -Markup span at (10:0,10 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.stree.txt deleted file mode 100644 index da9b272fd03..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsEndTagWithNoMatchingStartTag.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..14)::14 - [Foo
                  • Bar] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..4)::4 - [Foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - MarkupElement - [4..10)::6 - MarkupEndTag - [4..10)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [10..14)::4 - [ Bar] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Bar]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.cspans.txt deleted file mode 100644 index cd03a1193cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [1] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [1] ) -Code span at (1:0,1 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [1] ) -Markup span at (1:0,1 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.diag.txt deleted file mode 100644 index c6d6925451d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1004: End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.stree.txt deleted file mode 100644 index 1b3a186cb62..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/AcceptsSwapTokenAtEndOfFileAndOutputsZeroLengthCodeSpan.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..1)::1 - [@] - MarkupBlock - [0..1)::1 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..1)::1 - CSharpImplicitExpression - [0..1)::1 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..1)::0 - CSharpCodeBlock - [1..1)::0 - CSharpExpressionLiteral - [1..1)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [1..1)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.cspans.txt deleted file mode 100644 index d0a7399fbbc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [6] ) -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [17] ) -Markup span at (8:0,8 [10] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [14] ) -Markup span at (18:0,18 [3] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [14] ) -Markup span at (21:0,21 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [14] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [17] ) -Markup span at (23:0,23 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Markup span at (28:0,28 [4] ) (Accepts:Any) - Parent: Tag block at (28:0,28 [4] ) -Markup span at (32:0,32 [7] ) (Accepts:Any) - Parent: Tag block at (32:0,32 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt deleted file mode 100644 index 22a277385de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..39)::39 - [

                    Foo

                    ] - MarkupBlock - [0..39)::39 - MarkupElement - [0..39)::39 - MarkupStartTag - [0..6)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupMiscAttributeContent - [4..5)::1 - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupElement - [6..32)::26 - MarkupStartTag - [6..23)::17 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupAttributeBlock - [8..22)::14 - [ class = 'bar'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Equals;[=]; - MarkupTextLiteral - [16..18)::2 - [ '] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - SingleQuote;[']; - GenericBlock - [18..21)::3 - MarkupLiteralAttributeValue - [18..21)::3 - [bar] - MarkupTextLiteral - [18..21)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [23..28)::5 - [ Foo ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Foo]; - Whitespace;[ ]; - MarkupEndTag - [28..32)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [32..39)::7 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - MarkupMiscAttributeContent - [37..38)::1 - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt deleted file mode 100644 index 5d0ddc2940d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (9:0,9 [12] ) -Code span at (10:0,10 [11] ) (Accepts:Any) - Parent: Statement block at (9:0,9 [12] ) -Markup span at (21:0,21 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Markup span at (25:0,25 [6] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt deleted file mode 100644 index 259ac75bfb8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesSingleLineOfMarkupWithEmbeddedStatement.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..31)::31 - [
                    Foo @if(true) {} Bar
                    ] - MarkupBlock - [0..31)::31 - MarkupElement - [0..31)::31 - MarkupStartTag - [0..5)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [5..9)::4 - [Foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - CSharpCodeBlock - [9..21)::12 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [10..21)::11 - [if(true) {}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - RightBrace;[}]; - MarkupTextLiteral - [21..25)::4 - [ Bar] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Bar]; - MarkupEndTag - [25..31)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.cspans.txt deleted file mode 100644 index bc666a56c0b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (5:1,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Markup span at (7:2,0 [6] ) (Accepts:Any) - Parent: Tag block at (7:2,0 [6] ) -Markup span at (13:2,6 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.stree.txt deleted file mode 100644 index fabfa3c78f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreNewLineAtTheEndOfMarkupBlock.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..15)::15 - [@{LF}LFLF] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..4)::2 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - RazorMetaCode - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [5..7)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [7..15)::8 - MarkupStartTag - [7..13)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; - MarkupTextLiteral - [13..15)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.cspans.txt deleted file mode 100644 index dc0d803ccaa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (5:1,1 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Markup span at (9:1,5 [6] ) (Accepts:Any) - Parent: Tag block at (9:1,5 [6] ) -Markup span at (15:1,11 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.stree.txt deleted file mode 100644 index 2e72f13a9fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotIgnoreWhitespaceAtTheEndOfVerbatimBlockIfNoNewlinePresent.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..17)::17 - [@{LF} LF] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..4)::2 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - RazorMetaCode - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [5..9)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [9..17)::8 - MarkupStartTag - [9..15)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; - MarkupTextLiteral - [15..17)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.cspans.txt deleted file mode 100644 index 3377e6030e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (5:1,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Markup span at (7:2,0 [6] ) (Accepts:Any) - Parent: Tag block at (7:2,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.stree.txt deleted file mode 100644 index 851d431f021..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraNewLineAtTheEndOfVerbatimBlock.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..13)::13 - [@{LF}LF] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..4)::2 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - RazorMetaCode - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [5..7)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [7..13)::6 - MarkupStartTag - [7..13)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.cspans.txt deleted file mode 100644 index f0a0bcd1d06..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (5:1,1 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Markup span at (9:2,0 [6] ) (Accepts:Any) - Parent: Tag block at (9:2,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.stree.txt deleted file mode 100644 index 33396e0ba8f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderExtraWhitespaceAndNewLineAtTheEndOfVerbatimBlock.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..15)::15 - [@{LF} LF] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..4)::2 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - RazorMetaCode - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [5..9)::4 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupElement - [9..15)::6 - MarkupStartTag - [9..15)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.cspans.txt deleted file mode 100644 index 64066d47634..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [17] ) -Transition span at (12:0,12 [7] ) (Accepts:None) - Parent: Tag block at (12:0,12 [7] ) -Code span at (19:0,19 [4] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (23:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (24:2,1 [6] ) (Accepts:Any) - Parent: Tag block at (24:2,1 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.stree.txt deleted file mode 100644 index b1b8a4a26fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotRenderNewlineAfterTextTagInVerbatimBlockIfFollowedByCSharp.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..30)::30 - [@{BlahLFLF}] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [8..12)::4 - [Blah] - Gen - SpanEditHandler;Accepts:Any - Text;[Blah]; - MarkupEndTag - [12..19)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..23)::4 - [LFLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - NewLine;[LF]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupElement - [24..30)::6 - MarkupStartTag - [24..30)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.cspans.txt deleted file mode 100644 index 171db96fabc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Markup span at (4:0,4 [5] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [5] ) -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [3] ) -Markup span at (12:0,12 [4] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [4] ) -Markup span at (16:0,16 [4] ) (Accepts:Any) - Parent: Tag block at (16:0,16 [4] ) -Markup span at (20:0,20 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.stree.txt deleted file mode 100644 index 8943facbf62..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotReturnErrorOnMismatchedTags.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..24)::24 - [Foo

                    Baz] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..4)::4 - [Foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - MarkupElement - [4..24)::20 - MarkupStartTag - [4..9)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupElement - [9..16)::7 - MarkupStartTag - [9..12)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [12..16)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [16..20)::4 - MarkupEndTag - [16..20)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [20..24)::4 - [ Baz] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt deleted file mode 100644 index 00a1a77d557..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [39] ) -Markup span at (2:0,2 [7] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [36] ) -Markup span at (9:0,9 [28] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [36] ) -Markup span at (37:0,37 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [36] ) -Markup span at (38:0,38 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [39] ) -Markup span at (39:0,39 [8] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Markup span at (47:0,47 [4] ) (Accepts:Any) - Parent: Tag block at (47:0,47 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt deleted file mode 100644 index e311d83d19f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..51)::51 - [Email me] - MarkupBlock - [0..51)::51 - MarkupElement - [0..51)::51 - MarkupStartTag - [0..39)::39 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [2..38)::36 - [ href="mailto:example@microsoft.com"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..7)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [8..9)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [9..37)::28 - MarkupLiteralAttributeValue - [9..37)::28 - [mailto:example@microsoft.com] - MarkupTextLiteral - [9..37)::28 - [mailto:example@microsoft.com] - Gen - SpanEditHandler;Accepts:Any - Text;[mailto:example@microsoft.com]; - MarkupTextLiteral - [37..38)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [39..47)::8 - [Email me] - Gen - SpanEditHandler;Accepts:Any - Text;[Email]; - Whitespace;[ ]; - Text;[me]; - MarkupEndTag - [47..51)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[a]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.cspans.txt deleted file mode 100644 index 88ff1547774..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (4:0,4 [1] ) (Accepts:None) - Parent: Expression block at (4:0,4 [1] ) -Code span at (5:0,5 [0] ) (Accepts:NonWhitespace) - Parent: Expression block at (4:0,4 [1] ) -Markup span at (5:0,5 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.diag.txt deleted file mode 100644 index bc2525ce531..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1004: End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@" diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.stree.txt deleted file mode 100644 index 5f52cafebab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsAtSignAsMarkupIfAtEndOfFile.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..5)::5 - [foo @] - MarkupBlock - [0..5)::5 - MarkupTextLiteral - [0..4)::4 - [foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Whitespace;[ ]; - CSharpCodeBlock - [4..5)::1 - CSharpImplicitExpression - [4..5)::1 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [5..5)::0 - CSharpCodeBlock - [5..5)::0 - CSharpExpressionLiteral - [5..5)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Marker;[]; - MarkupTextLiteral - [5..5)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.cspans.txt deleted file mode 100644 index 490eb4a82ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Expression block at (0:0,0 [4] ) -Code span at (1:0,1 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (0:0,0 [4] ) -Markup span at (4:0,4 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.stree.txt deleted file mode 100644 index 14decc3757f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/EmitsCodeBlockIfFirstCharacterIsSwapCharacter.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..4)::4 - [@bar] - MarkupBlock - [0..4)::4 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..4)::4 - CSharpImplicitExpression - [0..4)::4 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [1..4)::3 - CSharpCodeBlock - [1..4)::3 - CSharpExpressionLiteral - [1..4)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [4..4)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.cspans.txt deleted file mode 100644 index 7217cc651e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -Transition span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (4:1,0 [13] ) -Code span at (5:1,1 [12] ) (Accepts:Any) - Parent: Statement block at (4:1,0 [13] ) -Code span at (17:2,1 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (20:3,0 [7] ) (Accepts:None) - Parent: Tag block at (20:3,0 [7] ) -Markup span at (27:3,7 [3] ) (Accepts:None) - Parent: Markup block at (20:3,0 [10] ) -Code span at (30:4,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (30:4,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (31:4,1 [6] ) (Accepts:Any) - Parent: Tag block at (31:4,1 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.stree.txt deleted file mode 100644 index 99d6c80a8ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesExtraNewLineBeforeMarkupInNestedBlock.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..37)::37 - [@{LF@if(true){LF} LF LF}] - MarkupBlock - [0..37)::37 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - CSharpStatement - [0..31)::31 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..31)::30 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - CSharpCodeBlock - [4..17)::13 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [5..17)::12 - [if(true){LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - LeftBrace;[{]; - NewLine;[LF]; - RightBrace;[}]; - CSharpStatementLiteral - [17..20)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - MarkupBlock - [20..30)::10 - MarkupElement - [20..27)::7 - MarkupStartTag - [20..27)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTextLiteral - [27..30)::3 - [ LF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - NewLine;[LF]; - CSharpStatementLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupElement - [31..37)::6 - MarkupStartTag - [31..37)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.cspans.txt deleted file mode 100644 index a77a720a46f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -Transition span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (4:1,0 [13] ) -Code span at (5:1,1 [12] ) (Accepts:Any) - Parent: Statement block at (4:1,0 [13] ) -Markup span at (17:2,1 [1] ) (Accepts:Any) - Parent: Markup block at (17:2,1 [9] ) -Markup span at (18:2,2 [7] ) (Accepts:None) - Parent: Tag block at (18:2,2 [7] ) -Markup span at (25:2,9 [1] ) (Accepts:None) - Parent: Markup block at (17:2,1 [9] ) -Code span at (26:2,10 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:2,10 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:2,11 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.stree.txt deleted file mode 100644 index fe8f98cf283..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineAndMarkupInNestedBlock.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..27)::27 - [@{LF@if(true){LF} }] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - CSharpCodeBlock - [4..17)::13 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [5..17)::12 - [if(true){LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - LeftBrace;[{]; - NewLine;[LF]; - RightBrace;[}]; - MarkupBlock - [17..26)::9 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [18..25)::7 - MarkupStartTag - [18..25)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.cspans.txt deleted file mode 100644 index bcf75ec2535..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -Transition span at (4:1,0 [1] ) (Accepts:None) - Parent: Statement block at (4:1,0 [13] ) -Code span at (5:1,1 [12] ) (Accepts:Any) - Parent: Statement block at (4:1,0 [13] ) -Code span at (17:2,1 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:3,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:3,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Markup span at (23:4,0 [6] ) (Accepts:Any) - Parent: Tag block at (23:4,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.stree.txt deleted file mode 100644 index 8e2d0051438..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandlesNewLineInNestedBlock.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..29)::29 - [@{LF@if(true){LF} LF}LF] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - CSharpCodeBlock - [4..17)::13 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [5..17)::12 - [if(true){LF}] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - LeftBrace;[{]; - NewLine;[LF]; - RightBrace;[}]; - CSharpStatementLiteral - [17..20)::3 - [ LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - NewLine;[LF]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [21..23)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [23..29)::6 - MarkupStartTag - [23..29)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.cspans.txt deleted file mode 100644 index 55bb03e4942..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (4:0,4 [1] ) (Accepts:None) - Parent: Expression block at (4:0,4 [4] ) -Code span at (5:0,5 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (4:0,4 [4] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.stree.txt deleted file mode 100644 index 112b5dc4630..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/HandsParsingOverToCodeParserWhenAtSignEncounteredAndEmitsOutput.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..12)::12 - [foo @bar baz] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..4)::4 - [foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Whitespace;[ ]; - CSharpCodeBlock - [4..8)::4 - CSharpImplicitExpression - [4..8)::4 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [5..8)::3 - CSharpCodeBlock - [5..8)::3 - CSharpExpressionLiteral - [5..8)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [8..12)::4 - [ baz] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.cspans.txt deleted file mode 100644 index 5d433efd319..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [13] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [4] ) -Code span at (22:0,22 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [4] ) -Markup span at (25:0,25 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Markup span at (27:0,27 [9] ) (Accepts:Any) - Parent: Tag block at (27:0,27 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.stree.txt deleted file mode 100644 index 1bade1e9888..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/IgnoresTagsInContentsOfScriptTag.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..36)::36 - [] - MarkupBlock - [0..36)::36 - MarkupElement - [0..36)::36 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.cspans.txt deleted file mode 100644 index ae1f1aa184f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [52] ) -Code span at (1:0,1 [12] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [52] ) -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Statement block at (13:0,13 [37] ) -Code span at (14:0,14 [11] ) (Accepts:Any) - Parent: Statement block at (13:0,13 [37] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Markup block at (25:0,25 [24] ) -Markup span at (26:0,26 [5] ) (Accepts:None) - Parent: Tag block at (26:0,26 [5] ) -Markup span at (31:0,31 [0] ) (Accepts:Any) - Parent: Markup block at (25:0,25 [24] ) -Transition span at (31:0,31 [1] ) (Accepts:None) - Parent: Expression block at (31:0,31 [10] ) -Code span at (32:0,32 [9] ) (Accepts:NonWhitespace) - Parent: Expression block at (31:0,31 [10] ) -Markup span at (41:0,41 [1] ) (Accepts:Any) - Parent: Markup block at (25:0,25 [24] ) -Markup span at (42:0,42 [6] ) (Accepts:None) - Parent: Tag block at (42:0,42 [6] ) -Markup span at (48:0,48 [1] ) (Accepts:None) - Parent: Markup block at (25:0,25 [24] ) -Code span at (49:0,49 [1] ) (Accepts:Any) - Parent: Statement block at (13:0,13 [37] ) -Code span at (50:0,50 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [52] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.stree.txt deleted file mode 100644 index 3ad32ce552a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NestedCodeBlockWithMarkupSetsDotAsMarkup.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..52)::52 - [@if (true) { @if(false) {
                    @something.
                    } }] - MarkupBlock - [0..52)::52 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..52)::52 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [1..13)::12 - [if (true) { ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [13..50)::37 - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [14..25)::11 - [if(false) {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - LeftParenthesis;[(]; - Keyword;[false]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - MarkupBlock - [25..49)::24 - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [26..48)::22 - MarkupStartTag - [26..31)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [31..41)::10 - CSharpImplicitExpression - [31..41)::10 - CSharpTransition - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [32..41)::9 - CSharpCodeBlock - [32..41)::9 - CSharpExpressionLiteral - [32..41)::9 - [something] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[something]; - MarkupTextLiteral - [41..42)::1 - [.] - Gen - SpanEditHandler;Accepts:Any - Text;[.]; - MarkupEndTag - [42..48)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [48..49)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [49..50)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - RightBrace;[}]; - CSharpStatementLiteral - [50..52)::2 - [ }] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBrace;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.cspans.txt deleted file mode 100644 index 8a3272c5b7e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.stree.txt deleted file mode 100644 index b636dfcedc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/NoLongerSupportsDollarOpenBraceCombination.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..17)::17 - [${bar}] - MarkupBlock - [0..17)::17 - MarkupElement - [0..17)::17 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..11)::6 - [${bar}] - Gen - SpanEditHandler;Accepts:Any - Text;[${bar}]; - MarkupEndTag - [11..17)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.cspans.txt deleted file mode 100644 index a7687acf26f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [0] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.stree.txt deleted file mode 100644 index dcd6e30919d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsEmptyBlockWithEmptyMarkupSpanIfContentIsEmptyString.stree.txt +++ /dev/null @@ -1,4 +0,0 @@ -RazorDocument - [0..0)::0 - [] - MarkupBlock - [0..0)::0 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.cspans.txt deleted file mode 100644 index 24b53ba184e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [10] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.stree.txt deleted file mode 100644 index 8ba87c13e55..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/OutputsWhitespaceOnlyContentAsSingleWhitespaceMarkupSpan.stree.txt +++ /dev/null @@ -1,4 +0,0 @@ -RazorDocument - [0..10)::10 - [ ] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..10)::10 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.cspans.txt deleted file mode 100644 index fdb12c7ba56..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [21] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.stree.txt deleted file mode 100644 index d745d521628..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseDocumentDoesNotSwitchToCodeOnEmailAddressInText.stree.txt +++ /dev/null @@ -1,4 +0,0 @@ -RazorDocument - [0..21)::21 - [example@microsoft.com] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..21)::21 - [example@microsoft.com] - Gen - SpanEditHandler;Accepts:Any - Text;[example@microsoft.com]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.cspans.txt deleted file mode 100644 index 3b00db28355..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [53] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [53] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [53] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [53] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [53] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [53] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [38] ) -Markup span at (15:0,15 [8] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [8] ) -Markup span at (23:0,23 [13] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [38] ) -Transition span at (36:0,36 [1] ) (Accepts:None) - Parent: Expression block at (36:0,36 [4] ) -Code span at (37:0,37 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (36:0,36 [4] ) -Markup span at (40:0,40 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [38] ) -Markup span at (42:0,42 [9] ) (Accepts:Any) - Parent: Tag block at (42:0,42 [9] ) -Markup span at (51:0,51 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [38] ) -MetaCode span at (52:0,52 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [53] ) -Markup span at (53:0,53 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.stree.txt deleted file mode 100644 index 6d1d25d3887..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParseSectionIgnoresTagsInContentsOfScriptTag.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..53)::53 - [@section Foo { }] - MarkupBlock - [0..53)::53 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..53)::53 - RazorDirective - [0..53)::53 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..53)::52 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..53)::45 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..52)::38 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..51)::36 - MarkupStartTag - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTextLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [52..53)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [53..53)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.cspans.txt deleted file mode 100644 index 5b9dbcd8aa3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.stree.txt deleted file mode 100644 index 30659bb00bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ParsesWholeContentAsOneSpanIfNoSwapCharacterEncountered.stree.txt +++ /dev/null @@ -1,6 +0,0 @@ -RazorDocument - [0..7)::7 - [foo baz] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..7)::7 - [foo baz] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - Whitespace;[ ]; - Text;[baz]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.cspans.txt deleted file mode 100644 index f77279dbd94..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [38] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Transition span at (12:0,12 [7] ) (Accepts:None) - Parent: Tag block at (12:0,12 [7] ) -Markup span at (19:0,19 [2] ) (Accepts:None) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (21:1,0 [8] ) (Accepts:None) - Parent: Tag block at (21:1,0 [8] ) -Markup span at (29:1,8 [2] ) (Accepts:None) - Parent: Markup block at (21:1,0 [10] ) -Code span at (31:2,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:2,1 [6] ) (Accepts:Any) - Parent: Tag block at (32:2,1 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.stree.txt deleted file mode 100644 index c9a55ee938a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersExtraNewlineAtTheEndTextTagInVerbatimBlockIfFollowedByHtml.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..38)::38 - [@{BlahLFLF}] - MarkupBlock - [0..38)::38 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..21)::19 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [8..12)::4 - [Blah] - Gen - SpanEditHandler;Accepts:Any - Text;[Blah]; - MarkupEndTag - [12..19)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [19..21)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [21..31)::10 - MarkupElement - [21..29)::8 - MarkupStartTag - [21..29)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [29..31)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupElement - [32..38)::6 - MarkupStartTag - [32..38)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.cspans.txt deleted file mode 100644 index 74b05993f01..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Transition span at (12:0,12 [7] ) (Accepts:None) - Parent: Tag block at (12:0,12 [7] ) -Markup span at (19:0,19 [2] ) (Accepts:None) - Parent: Markup block at (2:0,2 [19] ) -Transition span at (21:1,0 [1] ) (Accepts:None) - Parent: Markup block at (21:1,0 [9] ) -MetaCode span at (22:1,1 [1] ) (Accepts:Any) - Parent: Markup block at (21:1,0 [9] ) -Markup span at (23:1,2 [7] ) (Accepts:None) - Parent: Markup block at (21:1,0 [9] ) -Code span at (30:2,0 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (30:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (31:2,1 [6] ) (Accepts:Any) - Parent: Tag block at (31:2,1 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.stree.txt deleted file mode 100644 index 66dd22c8add..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersNewlineAfterTextTagInVerbatimBlockIfFollowedByMarkupTransition.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..37)::37 - [@{BlahLF@: BlehLF}] - MarkupBlock - [0..37)::37 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - CSharpStatement - [0..31)::31 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..31)::30 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - MarkupBlock - [2..21)::19 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [8..12)::4 - [Blah] - Gen - SpanEditHandler;Accepts:Any - Text;[Blah]; - MarkupEndTag - [12..19)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [19..21)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - MarkupBlock - [21..30)::9 - MarkupTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [23..30)::7 - [ BlehLF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[Bleh]; - NewLine;[LF]; - CSharpStatementLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupElement - [31..37)::6 - MarkupStartTag - [31..37)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[html]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.cspans.txt deleted file mode 100644 index 4df286098a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Markup span at (4:0,4 [6] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [6] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Markup span at (13:0,13 [7] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.stree.txt deleted file mode 100644 index 668a7dba338..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/RendersTextPseudoTagAsMarkup.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..20)::20 - [Foo Foo] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..4)::4 - [Foo ] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - Whitespace;[ ]; - MarkupElement - [4..20)::16 - MarkupStartTag - [4..10)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [10..13)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [13..20)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.cspans.txt deleted file mode 100644 index 056f638ae37..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (7:0,7 [4] ) (Accepts:None) - Parent: HtmlComment block at (7:0,7 [10] ) -Markup span at (11:0,11 [3] ) (Accepts:Whitespace) - Parent: HtmlComment block at (7:0,7 [10] ) -Markup span at (14:0,14 [3] ) (Accepts:None) - Parent: HtmlComment block at (7:0,7 [10] ) -Markup span at (17:0,17 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (20:0,20 [10] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.stree.txt deleted file mode 100644 index e9fd31b9455..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlDocumentTest/ReturnsOneMarkupSegmentIfNoCodeBlocksEncountered.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..30)::30 - [Foo BazBar] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [17..20)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupTextLiteral - [20..30)::10 - [ Bar}] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpStatement - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..17)::16 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..16)::14 - MarkupBlock - [2..13)::11 - MarkupCommentBlock - [2..12)::10 - MarkupTextLiteral - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [13..16)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Identifier;[Bar]; - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.cspans.txt deleted file mode 100644 index 597866b0ef6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [15] ) (Accepts:None) - Parent: Markup block at (2:0,2 [16] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [16] ) -Code span at (18:0,18 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.stree.txt deleted file mode 100644 index e5d4508525f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/DocTypeTag.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..22)::22 - [@{ foo}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..18)::16 - MarkupTextLiteral - [2..17)::15 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[DOCTYPE]; - Whitespace;[ ]; - Text;[html]; - CloseAngle;[>]; - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.cspans.txt deleted file mode 100644 index 539ba5c3839..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (2:0,2 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [3] ) -Markup span at (5:0,5 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [11] ) -Markup span at (8:0,8 [4] ) (Accepts:None) - Parent: Tag block at (8:0,8 [4] ) -Markup span at (12:0,12 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [11] ) -Code span at (13:0,13 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.stree.txt deleted file mode 100644 index c864f0ee6fc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ElementTags.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..17)::17 - [@{

                    Foo

                    Bar}] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpStatement - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..17)::16 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..16)::14 - MarkupBlock - [2..13)::11 - MarkupElement - [2..12)::10 - MarkupStartTag - [2..5)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [5..8)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [8..12)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [13..16)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Identifier;[Bar]; - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.cspans.txt deleted file mode 100644 index 134c16b6eee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Markup span at (2:0,2 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [2] ) -Markup span at (4:0,4 [3] ) (Accepts:None) - Parent: Tag block at (4:0,4 [3] ) -Markup span at (7:0,7 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [6] ) -Code span at (8:0,8 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.stree.txt deleted file mode 100644 index 8f2dd2a56cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTag.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..12)::12 - [@{<> Bar}] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - CSharpStatement - [0..12)::12 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..12)::11 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..11)::9 - MarkupBlock - [2..8)::6 - MarkupElement - [2..7)::5 - MarkupStartTag - [2..4)::2 - [<>] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[]; - CloseAngle;[>]; - MarkupEndTag - [4..7)::3 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[>]; - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [8..11)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Identifier;[Bar]; - RazorMetaCode - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [12..12)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.cspans.txt deleted file mode 100644 index dc05e218a97..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [13] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [13] ) -Markup span at (2:0,2 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [3] ) -Markup span at (5:0,5 [3] ) (Accepts:None) - Parent: Tag block at (5:0,5 [3] ) -Markup span at (8:0,8 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [7] ) -Code span at (9:0,9 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [13] ) -MetaCode span at (12:0,12 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [13] ) -Markup span at (13:0,13 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.diag.txt deleted file mode 100644 index 6c6136553e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1025: The "p" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.stree.txt deleted file mode 100644 index 52be2f619c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/EmptyTagNestsLikeNormalTag.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..13)::13 - [@{

                    Bar}] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..13)::13 - CSharpStatement - [0..13)::13 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..13)::12 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..12)::10 - MarkupBlock - [2..9)::7 - MarkupElement - [2..8)::6 - MarkupStartTag - [2..5)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [5..8)::3 - MarkupEndTag - [5..8)::3 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[>]; - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Identifier;[Bar]; - RazorMetaCode - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [13..13)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.cspans.txt deleted file mode 100644 index 12cae5de6f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.cspans.txt +++ /dev/null @@ -1,36 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [344] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [344] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [344] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [344] ) -Markup span at (4:1,0 [6] ) (Accepts:None) - Parent: Tag block at (4:1,0 [6] ) -Markup span at (10:1,6 [15] ) (Accepts:Any) - Parent: Tag block at (10:1,6 [15] ) -Markup span at (25:4,0 [6] ) (Accepts:None) - Parent: Tag block at (25:4,0 [6] ) -Markup span at (31:4,6 [15] ) (Accepts:Any) - Parent: Tag block at (31:4,6 [15] ) -Markup span at (46:7,0 [4] ) (Accepts:None) - Parent: Tag block at (46:7,0 [4] ) -Markup span at (50:7,4 [13] ) (Accepts:Any) - Parent: Tag block at (50:7,4 [13] ) -Markup span at (63:10,0 [5] ) (Accepts:None) - Parent: Tag block at (63:10,0 [5] ) -Markup span at (68:10,5 [14] ) (Accepts:Any) - Parent: Tag block at (68:10,5 [14] ) -Markup span at (82:13,0 [9] ) (Accepts:None) - Parent: Tag block at (82:13,0 [9] ) -Markup span at (91:13,9 [18] ) (Accepts:Any) - Parent: Tag block at (91:13,9 [18] ) -Markup span at (109:16,0 [7] ) (Accepts:None) - Parent: Tag block at (109:16,0 [7] ) -Markup span at (116:16,7 [16] ) (Accepts:Any) - Parent: Tag block at (116:16,7 [16] ) -Markup span at (132:19,0 [4] ) (Accepts:None) - Parent: Tag block at (132:19,0 [4] ) -Markup span at (136:19,4 [13] ) (Accepts:Any) - Parent: Tag block at (136:19,4 [13] ) -Markup span at (149:22,0 [5] ) (Accepts:None) - Parent: Tag block at (149:22,0 [5] ) -Markup span at (154:22,5 [14] ) (Accepts:Any) - Parent: Tag block at (154:22,5 [14] ) -Markup span at (168:25,0 [7] ) (Accepts:None) - Parent: Tag block at (168:25,0 [7] ) -Markup span at (175:25,7 [16] ) (Accepts:Any) - Parent: Tag block at (175:25,7 [16] ) -Markup span at (191:28,0 [8] ) (Accepts:None) - Parent: Tag block at (191:28,0 [8] ) -Markup span at (199:28,8 [17] ) (Accepts:Any) - Parent: Tag block at (199:28,8 [17] ) -Markup span at (216:31,0 [6] ) (Accepts:None) - Parent: Tag block at (216:31,0 [6] ) -Markup span at (222:31,6 [15] ) (Accepts:Any) - Parent: Tag block at (222:31,6 [15] ) -Markup span at (237:34,0 [6] ) (Accepts:None) - Parent: Tag block at (237:34,0 [6] ) -Markup span at (243:34,6 [15] ) (Accepts:Any) - Parent: Tag block at (243:34,6 [15] ) -Markup span at (258:37,0 [7] ) (Accepts:None) - Parent: Tag block at (258:37,0 [7] ) -Markup span at (265:37,7 [16] ) (Accepts:Any) - Parent: Tag block at (265:37,7 [16] ) -Markup span at (281:40,0 [8] ) (Accepts:None) - Parent: Tag block at (281:40,0 [8] ) -Markup span at (289:40,8 [17] ) (Accepts:Any) - Parent: Tag block at (289:40,8 [17] ) -Markup span at (306:43,0 [7] ) (Accepts:None) - Parent: Tag block at (306:43,0 [7] ) -Markup span at (313:43,7 [16] ) (Accepts:Any) - Parent: Tag block at (313:43,7 [16] ) -Markup span at (329:46,0 [5] ) (Accepts:None) - Parent: Tag block at (329:46,0 [5] ) -Markup span at (334:46,5 [10] ) (Accepts:Any) - Parent: Tag block at (334:46,5 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.diag.txt deleted file mode 100644 index 1ced8c1b883..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.stree.txt deleted file mode 100644 index c130d59e5d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/IncompleteVoidElementEndTag.stree.txt +++ /dev/null @@ -1,317 +0,0 @@ -RazorDocument - [0..344)::344 - [@{LF - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..344)::344 - CSharpStatement - [0..344)::344 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..344)::343 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..344)::342 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[}];AtEOL - NewLine;[LF]; - MarkupBlock - [4..25)::21 - MarkupElement - [4..25)::21 - MarkupStartTag - [4..10)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[area]; - CloseAngle;[>]; - MarkupEndTag - [10..25)::15 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[area]; - MarkupMiscAttributeContent - [16..25)::9 - MarkupTextLiteral - [16..25)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [25..46)::21 - MarkupElement - [25..46)::21 - MarkupStartTag - [25..31)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[base]; - CloseAngle;[>]; - MarkupEndTag - [31..46)::15 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[base]; - MarkupMiscAttributeContent - [37..46)::9 - MarkupTextLiteral - [37..46)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [46..63)::17 - MarkupElement - [46..63)::17 - MarkupStartTag - [46..50)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupEndTag - [50..63)::13 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[br]; - MarkupMiscAttributeContent - [54..63)::9 - MarkupTextLiteral - [54..63)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [63..82)::19 - MarkupElement - [63..82)::19 - MarkupStartTag - [63..68)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[col]; - CloseAngle;[>]; - MarkupEndTag - [68..82)::14 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[col]; - MarkupMiscAttributeContent - [73..82)::9 - MarkupTextLiteral - [73..82)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [82..109)::27 - MarkupElement - [82..109)::27 - MarkupStartTag - [82..91)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[command]; - CloseAngle;[>]; - MarkupEndTag - [91..109)::18 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[command]; - MarkupMiscAttributeContent - [100..109)::9 - MarkupTextLiteral - [100..109)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [109..132)::23 - MarkupElement - [109..132)::23 - MarkupStartTag - [109..116)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[embed]; - CloseAngle;[>]; - MarkupEndTag - [116..132)::16 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[embed]; - MarkupMiscAttributeContent - [123..132)::9 - MarkupTextLiteral - [123..132)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [132..149)::17 - MarkupElement - [132..149)::17 - MarkupStartTag - [132..136)::4 - [


                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[hr]; - CloseAngle;[>]; - MarkupEndTag - [136..149)::13 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[hr]; - MarkupMiscAttributeContent - [140..149)::9 - MarkupTextLiteral - [140..149)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [149..168)::19 - MarkupElement - [149..168)::19 - MarkupStartTag - [149..154)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[img]; - CloseAngle;[>]; - MarkupEndTag - [154..168)::14 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[img]; - MarkupMiscAttributeContent - [159..168)::9 - MarkupTextLiteral - [159..168)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [168..191)::23 - MarkupElement - [168..191)::23 - MarkupStartTag - [168..175)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupEndTag - [175..191)::16 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - MarkupMiscAttributeContent - [182..191)::9 - MarkupTextLiteral - [182..191)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [191..216)::25 - MarkupElement - [191..216)::25 - MarkupStartTag - [191..199)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[keygen]; - CloseAngle;[>]; - MarkupEndTag - [199..216)::17 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[keygen]; - MarkupMiscAttributeContent - [207..216)::9 - MarkupTextLiteral - [207..216)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [216..237)::21 - MarkupElement - [216..237)::21 - MarkupStartTag - [216..222)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[link]; - CloseAngle;[>]; - MarkupEndTag - [222..237)::15 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[link]; - MarkupMiscAttributeContent - [228..237)::9 - MarkupTextLiteral - [228..237)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [237..258)::21 - MarkupElement - [237..258)::21 - MarkupStartTag - [237..243)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[meta]; - CloseAngle;[>]; - MarkupEndTag - [243..258)::15 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[meta]; - MarkupMiscAttributeContent - [249..258)::9 - MarkupTextLiteral - [249..258)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [258..281)::23 - MarkupElement - [258..281)::23 - MarkupStartTag - [258..265)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[param]; - CloseAngle;[>]; - MarkupEndTag - [265..281)::16 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[param]; - MarkupMiscAttributeContent - [272..281)::9 - MarkupTextLiteral - [272..281)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [281..306)::25 - MarkupElement - [281..306)::25 - MarkupStartTag - [281..289)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[source]; - CloseAngle;[>]; - MarkupEndTag - [289..306)::17 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[source]; - MarkupMiscAttributeContent - [297..306)::9 - MarkupTextLiteral - [297..306)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [306..329)::23 - MarkupElement - [306..329)::23 - MarkupStartTag - [306..313)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[track]; - CloseAngle;[>]; - MarkupEndTag - [313..329)::16 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[track]; - MarkupMiscAttributeContent - [320..329)::9 - MarkupTextLiteral - [320..329)::9 - [LF}LF@{LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Transition;[@]; - Text;[{]; - NewLine;[LF]; - CloseAngle;[]; - MarkupBlock - [329..344)::15 - MarkupElement - [329..344)::15 - MarkupStartTag - [329..334)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[wbr]; - CloseAngle;[>]; - MarkupEndTag - [334..344)::10 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[wbr]; - MarkupMiscAttributeContent - [339..344)::5 - MarkupTextLiteral - [339..344)::5 - [LF}LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - CloseAngle;[]; - RazorMetaCode - [344..344)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.cspans.txt deleted file mode 100644 index 88fd9b67b64..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (2:0,2 [22] ) (Accepts:None) - Parent: Markup block at (2:0,2 [23] ) -Markup span at (24:0,24 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [23] ) -Code span at (25:0,25 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.stree.txt deleted file mode 100644 index e4bedcf75e7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ProcessingInstructionTag.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..29)::29 - [@{ foo}] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpStatement - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..29)::28 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..28)::26 - MarkupBlock - [2..25)::23 - MarkupTextLiteral - [2..24)::22 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - Text;[version]; - Equals;[=]; - DoubleQuote;["]; - Text;[1.0]; - DoubleQuote;["]; - Whitespace;[ ]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [25..28)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Identifier;[foo]; - RazorMetaCode - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.cspans.txt deleted file mode 100644 index aa831f9744b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [51] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [68] ) -Markup span at (59:0,59 [9] ) (Accepts:Any) - Parent: Tag block at (59:0,59 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.stree.txt deleted file mode 100644 index 4db3b756733..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..68)::68 - [] - MarkupBlock - [0..68)::68 - MarkupElement - [0..68)::68 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.cspans.txt deleted file mode 100644 index e0d652c62fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [13] ) -Markup span at (7:0,7 [6] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt deleted file mode 100644 index ba558cdc922..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..13)::13 - [ }] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - MarkupBlock - [2..24)::22 - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [3..23)::20 - MarkupStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - MarkupMiscAttributeContent - [19..22)::3 - MarkupTextLiteral - [19..22)::3 - [ @ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Transition;[@]; - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.cspans.txt deleted file mode 100644 index 1ef22bf26d0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Markup span at (11:0,11 [9] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.stree.txt deleted file mode 100644 index f0836786703..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedBeginTag.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..20)::20 - [] - MarkupBlock - [0..20)::20 - MarkupElement - [0..20)::20 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.cspans.txt deleted file mode 100644 index 57d975f8cdd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Markup span at (12:0,12 [9] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.stree.txt deleted file mode 100644 index 1c46bd12be7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedEndTag.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..21)::21 - [] - MarkupBlock - [0..21)::21 - MarkupElement - [0..21)::21 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.cspans.txt deleted file mode 100644 index b041429d2d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Markup span at (30:0,30 [9] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.stree.txt deleted file mode 100644 index 28f8e4f59ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedMalformedTag.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..39)::39 - [] - MarkupBlock - [0..39)::39 - MarkupElement - [0..39)::39 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.cspans.txt deleted file mode 100644 index be319647e0e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Markup span at (15:0,15 [9] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.stree.txt deleted file mode 100644 index b9e7bb86253..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_WithNestedTag.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupElement - [0..24)::24 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.cspans.txt deleted file mode 100644 index b1018a5336f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [16] ) -Transition span at (11:0,11 [7] ) (Accepts:None) - Parent: Tag block at (11:0,11 [7] ) -Code span at (18:0,18 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (18:0,18 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.stree.txt deleted file mode 100644 index 1cad8510ca8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/TextTags.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..19)::19 - [@{Foo}] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpStatement - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..19)::18 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..18)::16 - MarkupBlock - [2..18)::16 - MarkupElement - [2..18)::16 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [8..11)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [11..18)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.cspans.txt deleted file mode 100644 index 20e96c95953..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.cspans.txt +++ /dev/null @@ -1,145 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (4:1,0 [6] ) (Accepts:None) - Parent: Tag block at (4:1,0 [6] ) -Markup span at (10:1,6 [1] ) (Accepts:Any) - Parent: Markup block at (4:1,0 [14] ) -Markup span at (11:1,7 [7] ) (Accepts:None) - Parent: Tag block at (11:1,7 [7] ) -Code span at (18:1,14 [15] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:2,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (36:3,0 [1] ) (Accepts:None) - Parent: Statement block at (36:3,0 [34] ) -MetaCode span at (37:3,1 [1] ) (Accepts:None) - Parent: Statement block at (36:3,0 [34] ) -Code span at (38:3,2 [2] ) (Accepts:Any) - Parent: Statement block at (36:3,0 [34] ) -Markup span at (40:4,0 [6] ) (Accepts:None) - Parent: Tag block at (40:4,0 [6] ) -Markup span at (46:4,6 [1] ) (Accepts:Any) - Parent: Markup block at (40:4,0 [14] ) -Markup span at (47:4,7 [7] ) (Accepts:None) - Parent: Tag block at (47:4,7 [7] ) -Code span at (54:4,14 [15] ) (Accepts:Any) - Parent: Statement block at (36:3,0 [34] ) -MetaCode span at (69:5,0 [1] ) (Accepts:None) - Parent: Statement block at (36:3,0 [34] ) -Markup span at (70:5,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (72:6,0 [1] ) (Accepts:None) - Parent: Statement block at (72:6,0 [30] ) -MetaCode span at (73:6,1 [1] ) (Accepts:None) - Parent: Statement block at (72:6,0 [30] ) -Code span at (74:6,2 [2] ) (Accepts:Any) - Parent: Statement block at (72:6,0 [30] ) -Markup span at (76:7,0 [4] ) (Accepts:None) - Parent: Tag block at (76:7,0 [4] ) -Markup span at (80:7,4 [1] ) (Accepts:Any) - Parent: Markup block at (76:7,0 [10] ) -Markup span at (81:7,5 [5] ) (Accepts:None) - Parent: Tag block at (81:7,5 [5] ) -Code span at (86:7,10 [15] ) (Accepts:Any) - Parent: Statement block at (72:6,0 [30] ) -MetaCode span at (101:8,0 [1] ) (Accepts:None) - Parent: Statement block at (72:6,0 [30] ) -Markup span at (102:8,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (104:9,0 [1] ) (Accepts:None) - Parent: Statement block at (104:9,0 [32] ) -MetaCode span at (105:9,1 [1] ) (Accepts:None) - Parent: Statement block at (104:9,0 [32] ) -Code span at (106:9,2 [2] ) (Accepts:Any) - Parent: Statement block at (104:9,0 [32] ) -Markup span at (108:10,0 [5] ) (Accepts:None) - Parent: Tag block at (108:10,0 [5] ) -Markup span at (113:10,5 [1] ) (Accepts:Any) - Parent: Markup block at (108:10,0 [12] ) -Markup span at (114:10,6 [6] ) (Accepts:None) - Parent: Tag block at (114:10,6 [6] ) -Code span at (120:10,12 [15] ) (Accepts:Any) - Parent: Statement block at (104:9,0 [32] ) -MetaCode span at (135:11,0 [1] ) (Accepts:None) - Parent: Statement block at (104:9,0 [32] ) -Markup span at (136:11,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (138:12,0 [1] ) (Accepts:None) - Parent: Statement block at (138:12,0 [40] ) -MetaCode span at (139:12,1 [1] ) (Accepts:None) - Parent: Statement block at (138:12,0 [40] ) -Code span at (140:12,2 [2] ) (Accepts:Any) - Parent: Statement block at (138:12,0 [40] ) -Markup span at (142:13,0 [9] ) (Accepts:None) - Parent: Tag block at (142:13,0 [9] ) -Markup span at (151:13,9 [1] ) (Accepts:Any) - Parent: Markup block at (142:13,0 [20] ) -Markup span at (152:13,10 [10] ) (Accepts:None) - Parent: Tag block at (152:13,10 [10] ) -Code span at (162:13,20 [15] ) (Accepts:Any) - Parent: Statement block at (138:12,0 [40] ) -MetaCode span at (177:14,0 [1] ) (Accepts:None) - Parent: Statement block at (138:12,0 [40] ) -Markup span at (178:14,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (180:15,0 [1] ) (Accepts:None) - Parent: Statement block at (180:15,0 [36] ) -MetaCode span at (181:15,1 [1] ) (Accepts:None) - Parent: Statement block at (180:15,0 [36] ) -Code span at (182:15,2 [2] ) (Accepts:Any) - Parent: Statement block at (180:15,0 [36] ) -Markup span at (184:16,0 [7] ) (Accepts:None) - Parent: Tag block at (184:16,0 [7] ) -Markup span at (191:16,7 [1] ) (Accepts:Any) - Parent: Markup block at (184:16,0 [16] ) -Markup span at (192:16,8 [8] ) (Accepts:None) - Parent: Tag block at (192:16,8 [8] ) -Code span at (200:16,16 [15] ) (Accepts:Any) - Parent: Statement block at (180:15,0 [36] ) -MetaCode span at (215:17,0 [1] ) (Accepts:None) - Parent: Statement block at (180:15,0 [36] ) -Markup span at (216:17,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (218:18,0 [1] ) (Accepts:None) - Parent: Statement block at (218:18,0 [30] ) -MetaCode span at (219:18,1 [1] ) (Accepts:None) - Parent: Statement block at (218:18,0 [30] ) -Code span at (220:18,2 [2] ) (Accepts:Any) - Parent: Statement block at (218:18,0 [30] ) -Markup span at (222:19,0 [4] ) (Accepts:None) - Parent: Tag block at (222:19,0 [4] ) -Markup span at (226:19,4 [1] ) (Accepts:Any) - Parent: Markup block at (222:19,0 [10] ) -Markup span at (227:19,5 [5] ) (Accepts:None) - Parent: Tag block at (227:19,5 [5] ) -Code span at (232:19,10 [15] ) (Accepts:Any) - Parent: Statement block at (218:18,0 [30] ) -MetaCode span at (247:20,0 [1] ) (Accepts:None) - Parent: Statement block at (218:18,0 [30] ) -Markup span at (248:20,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (250:21,0 [1] ) (Accepts:None) - Parent: Statement block at (250:21,0 [32] ) -MetaCode span at (251:21,1 [1] ) (Accepts:None) - Parent: Statement block at (250:21,0 [32] ) -Code span at (252:21,2 [2] ) (Accepts:Any) - Parent: Statement block at (250:21,0 [32] ) -Markup span at (254:22,0 [5] ) (Accepts:None) - Parent: Tag block at (254:22,0 [5] ) -Markup span at (259:22,5 [1] ) (Accepts:Any) - Parent: Markup block at (254:22,0 [12] ) -Markup span at (260:22,6 [6] ) (Accepts:None) - Parent: Tag block at (260:22,6 [6] ) -Code span at (266:22,12 [15] ) (Accepts:Any) - Parent: Statement block at (250:21,0 [32] ) -MetaCode span at (281:23,0 [1] ) (Accepts:None) - Parent: Statement block at (250:21,0 [32] ) -Markup span at (282:23,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (284:24,0 [1] ) (Accepts:None) - Parent: Statement block at (284:24,0 [36] ) -MetaCode span at (285:24,1 [1] ) (Accepts:None) - Parent: Statement block at (284:24,0 [36] ) -Code span at (286:24,2 [2] ) (Accepts:Any) - Parent: Statement block at (284:24,0 [36] ) -Markup span at (288:25,0 [7] ) (Accepts:None) - Parent: Tag block at (288:25,0 [7] ) -Markup span at (295:25,7 [1] ) (Accepts:Any) - Parent: Markup block at (288:25,0 [16] ) -Markup span at (296:25,8 [8] ) (Accepts:None) - Parent: Tag block at (296:25,8 [8] ) -Code span at (304:25,16 [15] ) (Accepts:Any) - Parent: Statement block at (284:24,0 [36] ) -MetaCode span at (319:26,0 [1] ) (Accepts:None) - Parent: Statement block at (284:24,0 [36] ) -Markup span at (320:26,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (322:27,0 [1] ) (Accepts:None) - Parent: Statement block at (322:27,0 [38] ) -MetaCode span at (323:27,1 [1] ) (Accepts:None) - Parent: Statement block at (322:27,0 [38] ) -Code span at (324:27,2 [2] ) (Accepts:Any) - Parent: Statement block at (322:27,0 [38] ) -Markup span at (326:28,0 [8] ) (Accepts:None) - Parent: Tag block at (326:28,0 [8] ) -Markup span at (334:28,8 [1] ) (Accepts:Any) - Parent: Markup block at (326:28,0 [18] ) -Markup span at (335:28,9 [9] ) (Accepts:None) - Parent: Tag block at (335:28,9 [9] ) -Code span at (344:28,18 [15] ) (Accepts:Any) - Parent: Statement block at (322:27,0 [38] ) -MetaCode span at (359:29,0 [1] ) (Accepts:None) - Parent: Statement block at (322:27,0 [38] ) -Markup span at (360:29,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (362:30,0 [1] ) (Accepts:None) - Parent: Statement block at (362:30,0 [34] ) -MetaCode span at (363:30,1 [1] ) (Accepts:None) - Parent: Statement block at (362:30,0 [34] ) -Code span at (364:30,2 [2] ) (Accepts:Any) - Parent: Statement block at (362:30,0 [34] ) -Markup span at (366:31,0 [6] ) (Accepts:None) - Parent: Tag block at (366:31,0 [6] ) -Markup span at (372:31,6 [1] ) (Accepts:Any) - Parent: Markup block at (366:31,0 [14] ) -Markup span at (373:31,7 [7] ) (Accepts:None) - Parent: Tag block at (373:31,7 [7] ) -Code span at (380:31,14 [15] ) (Accepts:Any) - Parent: Statement block at (362:30,0 [34] ) -MetaCode span at (395:32,0 [1] ) (Accepts:None) - Parent: Statement block at (362:30,0 [34] ) -Markup span at (396:32,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (398:33,0 [1] ) (Accepts:None) - Parent: Statement block at (398:33,0 [34] ) -MetaCode span at (399:33,1 [1] ) (Accepts:None) - Parent: Statement block at (398:33,0 [34] ) -Code span at (400:33,2 [2] ) (Accepts:Any) - Parent: Statement block at (398:33,0 [34] ) -Markup span at (402:34,0 [6] ) (Accepts:None) - Parent: Tag block at (402:34,0 [6] ) -Markup span at (408:34,6 [1] ) (Accepts:Any) - Parent: Markup block at (402:34,0 [14] ) -Markup span at (409:34,7 [7] ) (Accepts:None) - Parent: Tag block at (409:34,7 [7] ) -Code span at (416:34,14 [15] ) (Accepts:Any) - Parent: Statement block at (398:33,0 [34] ) -MetaCode span at (431:35,0 [1] ) (Accepts:None) - Parent: Statement block at (398:33,0 [34] ) -Markup span at (432:35,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (434:36,0 [1] ) (Accepts:None) - Parent: Statement block at (434:36,0 [36] ) -MetaCode span at (435:36,1 [1] ) (Accepts:None) - Parent: Statement block at (434:36,0 [36] ) -Code span at (436:36,2 [2] ) (Accepts:Any) - Parent: Statement block at (434:36,0 [36] ) -Markup span at (438:37,0 [7] ) (Accepts:None) - Parent: Tag block at (438:37,0 [7] ) -Markup span at (445:37,7 [1] ) (Accepts:Any) - Parent: Markup block at (438:37,0 [16] ) -Markup span at (446:37,8 [8] ) (Accepts:None) - Parent: Tag block at (446:37,8 [8] ) -Code span at (454:37,16 [15] ) (Accepts:Any) - Parent: Statement block at (434:36,0 [36] ) -MetaCode span at (469:38,0 [1] ) (Accepts:None) - Parent: Statement block at (434:36,0 [36] ) -Markup span at (470:38,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (472:39,0 [1] ) (Accepts:None) - Parent: Statement block at (472:39,0 [38] ) -MetaCode span at (473:39,1 [1] ) (Accepts:None) - Parent: Statement block at (472:39,0 [38] ) -Code span at (474:39,2 [2] ) (Accepts:Any) - Parent: Statement block at (472:39,0 [38] ) -Markup span at (476:40,0 [8] ) (Accepts:None) - Parent: Tag block at (476:40,0 [8] ) -Markup span at (484:40,8 [1] ) (Accepts:Any) - Parent: Markup block at (476:40,0 [18] ) -Markup span at (485:40,9 [9] ) (Accepts:None) - Parent: Tag block at (485:40,9 [9] ) -Code span at (494:40,18 [15] ) (Accepts:Any) - Parent: Statement block at (472:39,0 [38] ) -MetaCode span at (509:41,0 [1] ) (Accepts:None) - Parent: Statement block at (472:39,0 [38] ) -Markup span at (510:41,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (512:42,0 [1] ) (Accepts:None) - Parent: Statement block at (512:42,0 [36] ) -MetaCode span at (513:42,1 [1] ) (Accepts:None) - Parent: Statement block at (512:42,0 [36] ) -Code span at (514:42,2 [2] ) (Accepts:Any) - Parent: Statement block at (512:42,0 [36] ) -Markup span at (516:43,0 [7] ) (Accepts:None) - Parent: Tag block at (516:43,0 [7] ) -Markup span at (523:43,7 [1] ) (Accepts:Any) - Parent: Markup block at (516:43,0 [16] ) -Markup span at (524:43,8 [8] ) (Accepts:None) - Parent: Tag block at (524:43,8 [8] ) -Code span at (532:43,16 [15] ) (Accepts:Any) - Parent: Statement block at (512:42,0 [36] ) -MetaCode span at (547:44,0 [1] ) (Accepts:None) - Parent: Statement block at (512:42,0 [36] ) -Markup span at (548:44,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) -Transition span at (550:45,0 [1] ) (Accepts:None) - Parent: Statement block at (550:45,0 [32] ) -MetaCode span at (551:45,1 [1] ) (Accepts:None) - Parent: Statement block at (550:45,0 [32] ) -Code span at (552:45,2 [2] ) (Accepts:Any) - Parent: Statement block at (550:45,0 [32] ) -Markup span at (554:46,0 [5] ) (Accepts:None) - Parent: Tag block at (554:46,0 [5] ) -Markup span at (559:46,5 [1] ) (Accepts:Any) - Parent: Markup block at (554:46,0 [12] ) -Markup span at (560:46,6 [6] ) (Accepts:None) - Parent: Tag block at (560:46,6 [6] ) -Code span at (566:46,12 [15] ) (Accepts:Any) - Parent: Statement block at (550:45,0 [32] ) -MetaCode span at (581:47,0 [1] ) (Accepts:None) - Parent: Statement block at (550:45,0 [32] ) -Markup span at (582:47,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [584] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.stree.txt deleted file mode 100644 index 35aacfaf7ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByCloseTag.stree.txt +++ /dev/null @@ -1,596 +0,0 @@ -RazorDocument - [0..584)::584 - [@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF

                    var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF
                    var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF@{LF var x = true;LF}LF] - MarkupBlock - [0..584)::584 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [4..18)::14 - MarkupElement - [4..18)::14 - MarkupStartTag - [4..10)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[area]; - CloseAngle;[>]; - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [11..18)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[area]; - CloseAngle;[>]; - CSharpStatementLiteral - [18..33)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [34..36)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [36..70)::34 - CSharpStatement - [36..70)::34 - CSharpTransition - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [37..70)::33 - RazorMetaCode - [37..38)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [38..69)::31 - CSharpStatementLiteral - [38..40)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [40..54)::14 - MarkupElement - [40..54)::14 - MarkupStartTag - [40..46)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[base]; - CloseAngle;[>]; - MarkupTextLiteral - [46..47)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [47..54)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[base]; - CloseAngle;[>]; - CSharpStatementLiteral - [54..69)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [69..70)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [70..72)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [72..102)::30 - CSharpStatement - [72..102)::30 - CSharpTransition - [72..73)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [73..102)::29 - RazorMetaCode - [73..74)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [74..101)::27 - CSharpStatementLiteral - [74..76)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [76..86)::10 - MarkupElement - [76..86)::10 - MarkupStartTag - [76..80)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTextLiteral - [80..81)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [81..86)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[br]; - CloseAngle;[>]; - CSharpStatementLiteral - [86..101)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [101..102)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [102..104)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [104..136)::32 - CSharpStatement - [104..136)::32 - CSharpTransition - [104..105)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [105..136)::31 - RazorMetaCode - [105..106)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [106..135)::29 - CSharpStatementLiteral - [106..108)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [108..120)::12 - MarkupElement - [108..120)::12 - MarkupStartTag - [108..113)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[col]; - CloseAngle;[>]; - MarkupTextLiteral - [113..114)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [114..120)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[col]; - CloseAngle;[>]; - CSharpStatementLiteral - [120..135)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [135..136)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [136..138)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [138..178)::40 - CSharpStatement - [138..178)::40 - CSharpTransition - [138..139)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [139..178)::39 - RazorMetaCode - [139..140)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [140..177)::37 - CSharpStatementLiteral - [140..142)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [142..162)::20 - MarkupElement - [142..162)::20 - MarkupStartTag - [142..151)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[command]; - CloseAngle;[>]; - MarkupTextLiteral - [151..152)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [152..162)::10 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[command]; - CloseAngle;[>]; - CSharpStatementLiteral - [162..177)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [177..178)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [178..180)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [180..216)::36 - CSharpStatement - [180..216)::36 - CSharpTransition - [180..181)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [181..216)::35 - RazorMetaCode - [181..182)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [182..215)::33 - CSharpStatementLiteral - [182..184)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [184..200)::16 - MarkupElement - [184..200)::16 - MarkupStartTag - [184..191)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[embed]; - CloseAngle;[>]; - MarkupTextLiteral - [191..192)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [192..200)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[embed]; - CloseAngle;[>]; - CSharpStatementLiteral - [200..215)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [215..216)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [216..218)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [218..248)::30 - CSharpStatement - [218..248)::30 - CSharpTransition - [218..219)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [219..248)::29 - RazorMetaCode - [219..220)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [220..247)::27 - CSharpStatementLiteral - [220..222)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [222..232)::10 - MarkupElement - [222..232)::10 - MarkupStartTag - [222..226)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[hr]; - CloseAngle;[>]; - MarkupTextLiteral - [226..227)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [227..232)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[hr]; - CloseAngle;[>]; - CSharpStatementLiteral - [232..247)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [247..248)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [248..250)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [250..282)::32 - CSharpStatement - [250..282)::32 - CSharpTransition - [250..251)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [251..282)::31 - RazorMetaCode - [251..252)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [252..281)::29 - CSharpStatementLiteral - [252..254)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [254..266)::12 - MarkupElement - [254..266)::12 - MarkupStartTag - [254..259)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[img]; - CloseAngle;[>]; - MarkupTextLiteral - [259..260)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [260..266)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[img]; - CloseAngle;[>]; - CSharpStatementLiteral - [266..281)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [281..282)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [282..284)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [284..320)::36 - CSharpStatement - [284..320)::36 - CSharpTransition - [284..285)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [285..320)::35 - RazorMetaCode - [285..286)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [286..319)::33 - CSharpStatementLiteral - [286..288)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [288..304)::16 - MarkupElement - [288..304)::16 - MarkupStartTag - [288..295)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTextLiteral - [295..296)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [296..304)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; - CSharpStatementLiteral - [304..319)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [319..320)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [320..322)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [322..360)::38 - CSharpStatement - [322..360)::38 - CSharpTransition - [322..323)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [323..360)::37 - RazorMetaCode - [323..324)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [324..359)::35 - CSharpStatementLiteral - [324..326)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [326..344)::18 - MarkupElement - [326..344)::18 - MarkupStartTag - [326..334)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[keygen]; - CloseAngle;[>]; - MarkupTextLiteral - [334..335)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [335..344)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[keygen]; - CloseAngle;[>]; - CSharpStatementLiteral - [344..359)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [359..360)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [360..362)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [362..396)::34 - CSharpStatement - [362..396)::34 - CSharpTransition - [362..363)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [363..396)::33 - RazorMetaCode - [363..364)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [364..395)::31 - CSharpStatementLiteral - [364..366)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [366..380)::14 - MarkupElement - [366..380)::14 - MarkupStartTag - [366..372)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[link]; - CloseAngle;[>]; - MarkupTextLiteral - [372..373)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [373..380)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[link]; - CloseAngle;[>]; - CSharpStatementLiteral - [380..395)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [395..396)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [396..398)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [398..432)::34 - CSharpStatement - [398..432)::34 - CSharpTransition - [398..399)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [399..432)::33 - RazorMetaCode - [399..400)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [400..431)::31 - CSharpStatementLiteral - [400..402)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [402..416)::14 - MarkupElement - [402..416)::14 - MarkupStartTag - [402..408)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[meta]; - CloseAngle;[>]; - MarkupTextLiteral - [408..409)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [409..416)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[meta]; - CloseAngle;[>]; - CSharpStatementLiteral - [416..431)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [431..432)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [432..434)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [434..470)::36 - CSharpStatement - [434..470)::36 - CSharpTransition - [434..435)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [435..470)::35 - RazorMetaCode - [435..436)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [436..469)::33 - CSharpStatementLiteral - [436..438)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [438..454)::16 - MarkupElement - [438..454)::16 - MarkupStartTag - [438..445)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[param]; - CloseAngle;[>]; - MarkupTextLiteral - [445..446)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [446..454)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[param]; - CloseAngle;[>]; - CSharpStatementLiteral - [454..469)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [469..470)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [470..472)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [472..510)::38 - CSharpStatement - [472..510)::38 - CSharpTransition - [472..473)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [473..510)::37 - RazorMetaCode - [473..474)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [474..509)::35 - CSharpStatementLiteral - [474..476)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [476..494)::18 - MarkupElement - [476..494)::18 - MarkupStartTag - [476..484)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[source]; - CloseAngle;[>]; - MarkupTextLiteral - [484..485)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [485..494)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[source]; - CloseAngle;[>]; - CSharpStatementLiteral - [494..509)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [509..510)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [510..512)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [512..548)::36 - CSharpStatement - [512..548)::36 - CSharpTransition - [512..513)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [513..548)::35 - RazorMetaCode - [513..514)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [514..547)::33 - CSharpStatementLiteral - [514..516)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [516..532)::16 - MarkupElement - [516..532)::16 - MarkupStartTag - [516..523)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[track]; - CloseAngle;[>]; - MarkupTextLiteral - [523..524)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [524..532)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[track]; - CloseAngle;[>]; - CSharpStatementLiteral - [532..547)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [547..548)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [548..550)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [550..582)::32 - CSharpStatement - [550..582)::32 - CSharpTransition - [550..551)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [551..582)::31 - RazorMetaCode - [551..552)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [552..581)::29 - CSharpStatementLiteral - [552..554)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [554..566)::12 - MarkupElement - [554..566)::12 - MarkupStartTag - [554..559)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[wbr]; - CloseAngle;[>]; - MarkupTextLiteral - [559..560)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [560..566)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[wbr]; - CloseAngle;[>]; - CSharpStatementLiteral - [566..581)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [581..582)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [582..584)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.cspans.txt deleted file mode 100644 index 162d793f47f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.cspans.txt +++ /dev/null @@ -1,113 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (2:0,2 [2] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (4:1,0 [6] ) (Accepts:None) - Parent: Tag block at (4:1,0 [6] ) -Code span at (10:1,6 [15] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (25:2,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (26:2,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (28:3,0 [1] ) (Accepts:None) - Parent: Statement block at (28:3,0 [26] ) -MetaCode span at (29:3,1 [1] ) (Accepts:None) - Parent: Statement block at (28:3,0 [26] ) -Code span at (30:3,2 [2] ) (Accepts:Any) - Parent: Statement block at (28:3,0 [26] ) -Markup span at (32:4,0 [6] ) (Accepts:None) - Parent: Tag block at (32:4,0 [6] ) -Code span at (38:4,6 [15] ) (Accepts:Any) - Parent: Statement block at (28:3,0 [26] ) -MetaCode span at (53:5,0 [1] ) (Accepts:None) - Parent: Statement block at (28:3,0 [26] ) -Markup span at (54:5,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (56:6,0 [1] ) (Accepts:None) - Parent: Statement block at (56:6,0 [24] ) -MetaCode span at (57:6,1 [1] ) (Accepts:None) - Parent: Statement block at (56:6,0 [24] ) -Code span at (58:6,2 [2] ) (Accepts:Any) - Parent: Statement block at (56:6,0 [24] ) -Markup span at (60:7,0 [4] ) (Accepts:None) - Parent: Tag block at (60:7,0 [4] ) -Code span at (64:7,4 [15] ) (Accepts:Any) - Parent: Statement block at (56:6,0 [24] ) -MetaCode span at (79:8,0 [1] ) (Accepts:None) - Parent: Statement block at (56:6,0 [24] ) -Markup span at (80:8,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (82:9,0 [1] ) (Accepts:None) - Parent: Statement block at (82:9,0 [25] ) -MetaCode span at (83:9,1 [1] ) (Accepts:None) - Parent: Statement block at (82:9,0 [25] ) -Code span at (84:9,2 [2] ) (Accepts:Any) - Parent: Statement block at (82:9,0 [25] ) -Markup span at (86:10,0 [5] ) (Accepts:None) - Parent: Tag block at (86:10,0 [5] ) -Code span at (91:10,5 [15] ) (Accepts:Any) - Parent: Statement block at (82:9,0 [25] ) -MetaCode span at (106:11,0 [1] ) (Accepts:None) - Parent: Statement block at (82:9,0 [25] ) -Markup span at (107:11,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (109:12,0 [1] ) (Accepts:None) - Parent: Statement block at (109:12,0 [29] ) -MetaCode span at (110:12,1 [1] ) (Accepts:None) - Parent: Statement block at (109:12,0 [29] ) -Code span at (111:12,2 [2] ) (Accepts:Any) - Parent: Statement block at (109:12,0 [29] ) -Markup span at (113:13,0 [9] ) (Accepts:None) - Parent: Tag block at (113:13,0 [9] ) -Code span at (122:13,9 [15] ) (Accepts:Any) - Parent: Statement block at (109:12,0 [29] ) -MetaCode span at (137:14,0 [1] ) (Accepts:None) - Parent: Statement block at (109:12,0 [29] ) -Markup span at (138:14,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (140:15,0 [1] ) (Accepts:None) - Parent: Statement block at (140:15,0 [27] ) -MetaCode span at (141:15,1 [1] ) (Accepts:None) - Parent: Statement block at (140:15,0 [27] ) -Code span at (142:15,2 [2] ) (Accepts:Any) - Parent: Statement block at (140:15,0 [27] ) -Markup span at (144:16,0 [7] ) (Accepts:None) - Parent: Tag block at (144:16,0 [7] ) -Code span at (151:16,7 [15] ) (Accepts:Any) - Parent: Statement block at (140:15,0 [27] ) -MetaCode span at (166:17,0 [1] ) (Accepts:None) - Parent: Statement block at (140:15,0 [27] ) -Markup span at (167:17,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (169:18,0 [1] ) (Accepts:None) - Parent: Statement block at (169:18,0 [24] ) -MetaCode span at (170:18,1 [1] ) (Accepts:None) - Parent: Statement block at (169:18,0 [24] ) -Code span at (171:18,2 [2] ) (Accepts:Any) - Parent: Statement block at (169:18,0 [24] ) -Markup span at (173:19,0 [4] ) (Accepts:None) - Parent: Tag block at (173:19,0 [4] ) -Code span at (177:19,4 [15] ) (Accepts:Any) - Parent: Statement block at (169:18,0 [24] ) -MetaCode span at (192:20,0 [1] ) (Accepts:None) - Parent: Statement block at (169:18,0 [24] ) -Markup span at (193:20,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (195:21,0 [1] ) (Accepts:None) - Parent: Statement block at (195:21,0 [25] ) -MetaCode span at (196:21,1 [1] ) (Accepts:None) - Parent: Statement block at (195:21,0 [25] ) -Code span at (197:21,2 [2] ) (Accepts:Any) - Parent: Statement block at (195:21,0 [25] ) -Markup span at (199:22,0 [5] ) (Accepts:None) - Parent: Tag block at (199:22,0 [5] ) -Code span at (204:22,5 [15] ) (Accepts:Any) - Parent: Statement block at (195:21,0 [25] ) -MetaCode span at (219:23,0 [1] ) (Accepts:None) - Parent: Statement block at (195:21,0 [25] ) -Markup span at (220:23,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (222:24,0 [1] ) (Accepts:None) - Parent: Statement block at (222:24,0 [27] ) -MetaCode span at (223:24,1 [1] ) (Accepts:None) - Parent: Statement block at (222:24,0 [27] ) -Code span at (224:24,2 [2] ) (Accepts:Any) - Parent: Statement block at (222:24,0 [27] ) -Markup span at (226:25,0 [7] ) (Accepts:None) - Parent: Tag block at (226:25,0 [7] ) -Code span at (233:25,7 [15] ) (Accepts:Any) - Parent: Statement block at (222:24,0 [27] ) -MetaCode span at (248:26,0 [1] ) (Accepts:None) - Parent: Statement block at (222:24,0 [27] ) -Markup span at (249:26,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (251:27,0 [1] ) (Accepts:None) - Parent: Statement block at (251:27,0 [28] ) -MetaCode span at (252:27,1 [1] ) (Accepts:None) - Parent: Statement block at (251:27,0 [28] ) -Code span at (253:27,2 [2] ) (Accepts:Any) - Parent: Statement block at (251:27,0 [28] ) -Markup span at (255:28,0 [8] ) (Accepts:None) - Parent: Tag block at (255:28,0 [8] ) -Code span at (263:28,8 [15] ) (Accepts:Any) - Parent: Statement block at (251:27,0 [28] ) -MetaCode span at (278:29,0 [1] ) (Accepts:None) - Parent: Statement block at (251:27,0 [28] ) -Markup span at (279:29,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (281:30,0 [1] ) (Accepts:None) - Parent: Statement block at (281:30,0 [26] ) -MetaCode span at (282:30,1 [1] ) (Accepts:None) - Parent: Statement block at (281:30,0 [26] ) -Code span at (283:30,2 [2] ) (Accepts:Any) - Parent: Statement block at (281:30,0 [26] ) -Markup span at (285:31,0 [6] ) (Accepts:None) - Parent: Tag block at (285:31,0 [6] ) -Code span at (291:31,6 [15] ) (Accepts:Any) - Parent: Statement block at (281:30,0 [26] ) -MetaCode span at (306:32,0 [1] ) (Accepts:None) - Parent: Statement block at (281:30,0 [26] ) -Markup span at (307:32,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (309:33,0 [1] ) (Accepts:None) - Parent: Statement block at (309:33,0 [26] ) -MetaCode span at (310:33,1 [1] ) (Accepts:None) - Parent: Statement block at (309:33,0 [26] ) -Code span at (311:33,2 [2] ) (Accepts:Any) - Parent: Statement block at (309:33,0 [26] ) -Markup span at (313:34,0 [6] ) (Accepts:None) - Parent: Tag block at (313:34,0 [6] ) -Code span at (319:34,6 [15] ) (Accepts:Any) - Parent: Statement block at (309:33,0 [26] ) -MetaCode span at (334:35,0 [1] ) (Accepts:None) - Parent: Statement block at (309:33,0 [26] ) -Markup span at (335:35,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (337:36,0 [1] ) (Accepts:None) - Parent: Statement block at (337:36,0 [27] ) -MetaCode span at (338:36,1 [1] ) (Accepts:None) - Parent: Statement block at (337:36,0 [27] ) -Code span at (339:36,2 [2] ) (Accepts:Any) - Parent: Statement block at (337:36,0 [27] ) -Markup span at (341:37,0 [7] ) (Accepts:None) - Parent: Tag block at (341:37,0 [7] ) -Code span at (348:37,7 [15] ) (Accepts:Any) - Parent: Statement block at (337:36,0 [27] ) -MetaCode span at (363:38,0 [1] ) (Accepts:None) - Parent: Statement block at (337:36,0 [27] ) -Markup span at (364:38,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (366:39,0 [1] ) (Accepts:None) - Parent: Statement block at (366:39,0 [28] ) -MetaCode span at (367:39,1 [1] ) (Accepts:None) - Parent: Statement block at (366:39,0 [28] ) -Code span at (368:39,2 [2] ) (Accepts:Any) - Parent: Statement block at (366:39,0 [28] ) -Markup span at (370:40,0 [8] ) (Accepts:None) - Parent: Tag block at (370:40,0 [8] ) -Code span at (378:40,8 [15] ) (Accepts:Any) - Parent: Statement block at (366:39,0 [28] ) -MetaCode span at (393:41,0 [1] ) (Accepts:None) - Parent: Statement block at (366:39,0 [28] ) -Markup span at (394:41,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (396:42,0 [1] ) (Accepts:None) - Parent: Statement block at (396:42,0 [27] ) -MetaCode span at (397:42,1 [1] ) (Accepts:None) - Parent: Statement block at (396:42,0 [27] ) -Code span at (398:42,2 [2] ) (Accepts:Any) - Parent: Statement block at (396:42,0 [27] ) -Markup span at (400:43,0 [7] ) (Accepts:None) - Parent: Tag block at (400:43,0 [7] ) -Code span at (407:43,7 [15] ) (Accepts:Any) - Parent: Statement block at (396:42,0 [27] ) -MetaCode span at (422:44,0 [1] ) (Accepts:None) - Parent: Statement block at (396:42,0 [27] ) -Markup span at (423:44,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) -Transition span at (425:45,0 [1] ) (Accepts:None) - Parent: Statement block at (425:45,0 [25] ) -MetaCode span at (426:45,1 [1] ) (Accepts:None) - Parent: Statement block at (425:45,0 [25] ) -Code span at (427:45,2 [2] ) (Accepts:Any) - Parent: Statement block at (425:45,0 [25] ) -Markup span at (429:46,0 [5] ) (Accepts:None) - Parent: Tag block at (429:46,0 [5] ) -Code span at (434:46,5 [15] ) (Accepts:Any) - Parent: Statement block at (425:45,0 [25] ) -MetaCode span at (449:47,0 [1] ) (Accepts:None) - Parent: Statement block at (425:45,0 [25] ) -Markup span at (450:47,1 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [452] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.stree.txt deleted file mode 100644 index 3f081bc0726..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByContent.stree.txt +++ /dev/null @@ -1,484 +0,0 @@ -RazorDocument - [0..452)::452 - [@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LF
                    var x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LF
                    var x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF@{LFvar x = true;LF}LF] - MarkupBlock - [0..452)::452 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..25)::23 - CSharpStatementLiteral - [2..4)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [4..10)::6 - MarkupElement - [4..10)::6 - MarkupStartTag - [4..10)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[area]; - CloseAngle;[>]; - CSharpStatementLiteral - [10..25)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [26..28)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [28..54)::26 - CSharpStatement - [28..54)::26 - CSharpTransition - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [29..54)::25 - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [30..53)::23 - CSharpStatementLiteral - [30..32)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [32..38)::6 - MarkupElement - [32..38)::6 - MarkupStartTag - [32..38)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[base]; - CloseAngle;[>]; - CSharpStatementLiteral - [38..53)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [53..54)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [54..56)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [56..80)::24 - CSharpStatement - [56..80)::24 - CSharpTransition - [56..57)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [57..80)::23 - RazorMetaCode - [57..58)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [58..79)::21 - CSharpStatementLiteral - [58..60)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [60..64)::4 - MarkupElement - [60..64)::4 - MarkupStartTag - [60..64)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - CSharpStatementLiteral - [64..79)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [79..80)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [80..82)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [82..107)::25 - CSharpStatement - [82..107)::25 - CSharpTransition - [82..83)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [83..107)::24 - RazorMetaCode - [83..84)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [84..106)::22 - CSharpStatementLiteral - [84..86)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [86..91)::5 - MarkupElement - [86..91)::5 - MarkupStartTag - [86..91)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[col]; - CloseAngle;[>]; - CSharpStatementLiteral - [91..106)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [106..107)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [107..109)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [109..138)::29 - CSharpStatement - [109..138)::29 - CSharpTransition - [109..110)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [110..138)::28 - RazorMetaCode - [110..111)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [111..137)::26 - CSharpStatementLiteral - [111..113)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [113..122)::9 - MarkupElement - [113..122)::9 - MarkupStartTag - [113..122)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[command]; - CloseAngle;[>]; - CSharpStatementLiteral - [122..137)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [137..138)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [138..140)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [140..167)::27 - CSharpStatement - [140..167)::27 - CSharpTransition - [140..141)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [141..167)::26 - RazorMetaCode - [141..142)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [142..166)::24 - CSharpStatementLiteral - [142..144)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [144..151)::7 - MarkupElement - [144..151)::7 - MarkupStartTag - [144..151)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[embed]; - CloseAngle;[>]; - CSharpStatementLiteral - [151..166)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [166..167)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [167..169)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [169..193)::24 - CSharpStatement - [169..193)::24 - CSharpTransition - [169..170)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [170..193)::23 - RazorMetaCode - [170..171)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [171..192)::21 - CSharpStatementLiteral - [171..173)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [173..177)::4 - MarkupElement - [173..177)::4 - MarkupStartTag - [173..177)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[hr]; - CloseAngle;[>]; - CSharpStatementLiteral - [177..192)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [192..193)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [193..195)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [195..220)::25 - CSharpStatement - [195..220)::25 - CSharpTransition - [195..196)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [196..220)::24 - RazorMetaCode - [196..197)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [197..219)::22 - CSharpStatementLiteral - [197..199)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [199..204)::5 - MarkupElement - [199..204)::5 - MarkupStartTag - [199..204)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[img]; - CloseAngle;[>]; - CSharpStatementLiteral - [204..219)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [219..220)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [220..222)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [222..249)::27 - CSharpStatement - [222..249)::27 - CSharpTransition - [222..223)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [223..249)::26 - RazorMetaCode - [223..224)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [224..248)::24 - CSharpStatementLiteral - [224..226)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [226..233)::7 - MarkupElement - [226..233)::7 - MarkupStartTag - [226..233)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - CSharpStatementLiteral - [233..248)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [248..249)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [249..251)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [251..279)::28 - CSharpStatement - [251..279)::28 - CSharpTransition - [251..252)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [252..279)::27 - RazorMetaCode - [252..253)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [253..278)::25 - CSharpStatementLiteral - [253..255)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [255..263)::8 - MarkupElement - [255..263)::8 - MarkupStartTag - [255..263)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[keygen]; - CloseAngle;[>]; - CSharpStatementLiteral - [263..278)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [278..279)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [279..281)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [281..307)::26 - CSharpStatement - [281..307)::26 - CSharpTransition - [281..282)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [282..307)::25 - RazorMetaCode - [282..283)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [283..306)::23 - CSharpStatementLiteral - [283..285)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [285..291)::6 - MarkupElement - [285..291)::6 - MarkupStartTag - [285..291)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[link]; - CloseAngle;[>]; - CSharpStatementLiteral - [291..306)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [306..307)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [307..309)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [309..335)::26 - CSharpStatement - [309..335)::26 - CSharpTransition - [309..310)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [310..335)::25 - RazorMetaCode - [310..311)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [311..334)::23 - CSharpStatementLiteral - [311..313)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [313..319)::6 - MarkupElement - [313..319)::6 - MarkupStartTag - [313..319)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[meta]; - CloseAngle;[>]; - CSharpStatementLiteral - [319..334)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [334..335)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [335..337)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [337..364)::27 - CSharpStatement - [337..364)::27 - CSharpTransition - [337..338)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [338..364)::26 - RazorMetaCode - [338..339)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [339..363)::24 - CSharpStatementLiteral - [339..341)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [341..348)::7 - MarkupElement - [341..348)::7 - MarkupStartTag - [341..348)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[param]; - CloseAngle;[>]; - CSharpStatementLiteral - [348..363)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [363..364)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [364..366)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [366..394)::28 - CSharpStatement - [366..394)::28 - CSharpTransition - [366..367)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [367..394)::27 - RazorMetaCode - [367..368)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [368..393)::25 - CSharpStatementLiteral - [368..370)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [370..378)::8 - MarkupElement - [370..378)::8 - MarkupStartTag - [370..378)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[source]; - CloseAngle;[>]; - CSharpStatementLiteral - [378..393)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [393..394)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [394..396)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [396..423)::27 - CSharpStatement - [396..423)::27 - CSharpTransition - [396..397)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [397..423)::26 - RazorMetaCode - [397..398)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [398..422)::24 - CSharpStatementLiteral - [398..400)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [400..407)::7 - MarkupElement - [400..407)::7 - MarkupStartTag - [400..407)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[track]; - CloseAngle;[>]; - CSharpStatementLiteral - [407..422)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [422..423)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [423..425)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [425..450)::25 - CSharpStatement - [425..450)::25 - CSharpTransition - [425..426)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [426..450)::24 - RazorMetaCode - [426..427)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [427..449)::22 - CSharpStatementLiteral - [427..429)::2 - [LF] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - NewLine;[LF]; - MarkupBlock - [429..434)::5 - MarkupElement - [429..434)::5 - MarkupStartTag - [429..434)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[wbr]; - CloseAngle;[>]; - CSharpStatementLiteral - [434..449)::15 - [var x = true;LF] - Gen - SpanEditHandler;Accepts:Any - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Keyword;[true]; - Semicolon;[;]; - NewLine;[LF]; - RazorMetaCode - [449..450)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [450..452)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.cspans.txt deleted file mode 100644 index 22605d5bf17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.cspans.txt +++ /dev/null @@ -1,49 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (3:1,0 [6] ) (Accepts:Any) - Parent: Tag block at (3:1,0 [6] ) -Markup span at (9:1,6 [7] ) (Accepts:Any) - Parent: Tag block at (9:1,6 [7] ) -Markup span at (16:1,13 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (38:4,0 [6] ) (Accepts:Any) - Parent: Tag block at (38:4,0 [6] ) -Markup span at (44:4,6 [7] ) (Accepts:Any) - Parent: Tag block at (44:4,6 [7] ) -Markup span at (51:4,13 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (73:7,0 [4] ) (Accepts:Any) - Parent: Tag block at (73:7,0 [4] ) -Markup span at (77:7,4 [7] ) (Accepts:Any) - Parent: Tag block at (77:7,4 [7] ) -Markup span at (84:7,11 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (106:10,0 [5] ) (Accepts:Any) - Parent: Tag block at (106:10,0 [5] ) -Markup span at (111:10,5 [7] ) (Accepts:Any) - Parent: Tag block at (111:10,5 [7] ) -Markup span at (118:10,12 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (140:13,0 [9] ) (Accepts:Any) - Parent: Tag block at (140:13,0 [9] ) -Markup span at (149:13,9 [7] ) (Accepts:Any) - Parent: Tag block at (149:13,9 [7] ) -Markup span at (156:13,16 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (178:16,0 [7] ) (Accepts:Any) - Parent: Tag block at (178:16,0 [7] ) -Markup span at (185:16,7 [7] ) (Accepts:Any) - Parent: Tag block at (185:16,7 [7] ) -Markup span at (192:16,14 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (214:19,0 [4] ) (Accepts:Any) - Parent: Tag block at (214:19,0 [4] ) -Markup span at (218:19,4 [7] ) (Accepts:Any) - Parent: Tag block at (218:19,4 [7] ) -Markup span at (225:19,11 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (247:22,0 [5] ) (Accepts:Any) - Parent: Tag block at (247:22,0 [5] ) -Markup span at (252:22,5 [7] ) (Accepts:Any) - Parent: Tag block at (252:22,5 [7] ) -Markup span at (259:22,12 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (281:25,0 [7] ) (Accepts:Any) - Parent: Tag block at (281:25,0 [7] ) -Markup span at (288:25,7 [7] ) (Accepts:Any) - Parent: Tag block at (288:25,7 [7] ) -Markup span at (295:25,14 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (317:28,0 [8] ) (Accepts:Any) - Parent: Tag block at (317:28,0 [8] ) -Markup span at (325:28,8 [7] ) (Accepts:Any) - Parent: Tag block at (325:28,8 [7] ) -Markup span at (332:28,15 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (354:31,0 [6] ) (Accepts:Any) - Parent: Tag block at (354:31,0 [6] ) -Markup span at (360:31,6 [7] ) (Accepts:Any) - Parent: Tag block at (360:31,6 [7] ) -Markup span at (367:31,13 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (389:34,0 [6] ) (Accepts:Any) - Parent: Tag block at (389:34,0 [6] ) -Markup span at (395:34,6 [7] ) (Accepts:Any) - Parent: Tag block at (395:34,6 [7] ) -Markup span at (402:34,13 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (424:37,0 [7] ) (Accepts:Any) - Parent: Tag block at (424:37,0 [7] ) -Markup span at (431:37,7 [7] ) (Accepts:Any) - Parent: Tag block at (431:37,7 [7] ) -Markup span at (438:37,14 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (460:40,0 [8] ) (Accepts:Any) - Parent: Tag block at (460:40,0 [8] ) -Markup span at (468:40,8 [7] ) (Accepts:Any) - Parent: Tag block at (468:40,8 [7] ) -Markup span at (475:40,15 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (497:43,0 [7] ) (Accepts:Any) - Parent: Tag block at (497:43,0 [7] ) -Markup span at (504:43,7 [7] ) (Accepts:Any) - Parent: Tag block at (504:43,7 [7] ) -Markup span at (511:43,14 [22] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) -Markup span at (533:46,0 [5] ) (Accepts:Any) - Parent: Tag block at (533:46,0 [5] ) -Markup span at (538:46,5 [7] ) (Accepts:Any) - Parent: Tag block at (538:46,5 [7] ) -Markup span at (545:46,12 [19] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [564] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.stree.txt deleted file mode 100644 index d323273f6b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlTagsTest/VoidElementFollowedByOtherTag.stree.txt +++ /dev/null @@ -1,387 +0,0 @@ -RazorDocument - [0..564)::564 - [{LF var x = true;LF}LF{LF var x = true;LF}LF{LF
                    var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF
                    var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF{LF var x = true;LF}LF] - MarkupBlock - [0..564)::564 - MarkupTextLiteral - [0..3)::3 - [{LF] - Gen - SpanEditHandler;Accepts:Any - Text;[{]; - NewLine;[LF]; - MarkupElement - [3..9)::6 - MarkupStartTag - [3..9)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[area]; - CloseAngle;[>]; - MarkupElement - [9..564)::555 - MarkupStartTag - [9..16)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [16..38)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [38..44)::6 - MarkupStartTag - [38..44)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[base]; - CloseAngle;[>]; - MarkupElement - [44..564)::520 - MarkupStartTag - [44..51)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [51..73)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [73..77)::4 - MarkupStartTag - [73..77)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupElement - [77..564)::487 - MarkupStartTag - [77..84)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [84..106)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [106..111)::5 - MarkupStartTag - [106..111)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[col]; - CloseAngle;[>]; - MarkupElement - [111..564)::453 - MarkupStartTag - [111..118)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [118..140)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [140..149)::9 - MarkupStartTag - [140..149)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[command]; - CloseAngle;[>]; - MarkupElement - [149..564)::415 - MarkupStartTag - [149..156)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [156..178)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [178..185)::7 - MarkupStartTag - [178..185)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[embed]; - CloseAngle;[>]; - MarkupElement - [185..564)::379 - MarkupStartTag - [185..192)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [192..214)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [214..218)::4 - MarkupStartTag - [214..218)::4 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[hr]; - CloseAngle;[>]; - MarkupElement - [218..564)::346 - MarkupStartTag - [218..225)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [225..247)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [247..252)::5 - MarkupStartTag - [247..252)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[img]; - CloseAngle;[>]; - MarkupElement - [252..564)::312 - MarkupStartTag - [252..259)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [259..281)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [281..288)::7 - MarkupStartTag - [281..288)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupElement - [288..564)::276 - MarkupStartTag - [288..295)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [295..317)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [317..325)::8 - MarkupStartTag - [317..325)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[keygen]; - CloseAngle;[>]; - MarkupElement - [325..564)::239 - MarkupStartTag - [325..332)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [332..354)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [354..360)::6 - MarkupStartTag - [354..360)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[link]; - CloseAngle;[>]; - MarkupElement - [360..564)::204 - MarkupStartTag - [360..367)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [367..389)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [389..395)::6 - MarkupStartTag - [389..395)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[meta]; - CloseAngle;[>]; - MarkupElement - [395..564)::169 - MarkupStartTag - [395..402)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [402..424)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [424..431)::7 - MarkupStartTag - [424..431)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[param]; - CloseAngle;[>]; - MarkupElement - [431..564)::133 - MarkupStartTag - [431..438)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [438..460)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [460..468)::8 - MarkupStartTag - [460..468)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[source]; - CloseAngle;[>]; - MarkupElement - [468..564)::96 - MarkupStartTag - [468..475)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [475..497)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [497..504)::7 - MarkupStartTag - [497..504)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[track]; - CloseAngle;[>]; - MarkupElement - [504..564)::60 - MarkupStartTag - [504..511)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [511..533)::22 - [ var x = true;LF}LF{LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; - Text;[{]; - NewLine;[LF]; - MarkupElement - [533..538)::5 - MarkupStartTag - [533..538)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[wbr]; - CloseAngle;[>]; - MarkupElement - [538..564)::26 - MarkupStartTag - [538..545)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[other]; - CloseAngle;[>]; - MarkupTextLiteral - [545..564)::19 - [ var x = true;LF}LF] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[var]; - Whitespace;[ ]; - Text;[x]; - Whitespace;[ ]; - Equals;[=]; - Whitespace;[ ]; - Text;[true;]; - NewLine;[LF]; - Text;[}]; - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.cspans.txt deleted file mode 100644 index 8e11fb5c0be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.cspans.txt +++ /dev/null @@ -1,19 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [98] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [98] ) -Code span at (2:0,2 [3] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [98] ) -Markup span at (5:0,5 [4] ) (Accepts:None) - Parent: Tag block at (5:0,5 [4] ) -Markup span at (9:0,9 [6] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [92] ) -Transition span at (15:1,4 [1] ) (Accepts:None) - Parent: Statement block at (15:1,4 [71] ) -Code span at (16:1,5 [38] ) (Accepts:Any) - Parent: Statement block at (15:1,4 [71] ) -Markup span at (54:2,8 [4] ) (Accepts:None) - Parent: Tag block at (54:2,8 [4] ) -Markup span at (58:2,12 [9] ) (Accepts:Any) - Parent: Markup block at (54:2,8 [25] ) -Transition span at (67:2,21 [1] ) (Accepts:None) - Parent: Expression block at (67:2,21 [7] ) -Code span at (68:2,22 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (67:2,21 [7] ) -Markup span at (74:2,28 [5] ) (Accepts:None) - Parent: Tag block at (74:2,28 [5] ) -Code span at (79:2,33 [7] ) (Accepts:None) - Parent: Statement block at (15:1,4 [71] ) -Markup span at (86:3,5 [6] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [92] ) -Markup span at (92:4,4 [5] ) (Accepts:None) - Parent: Tag block at (92:4,4 [5] ) -Code span at (97:4,9 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [98] ) -MetaCode span at (97:4,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [98] ) -Markup span at (98:4,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.stree.txt deleted file mode 100644 index a29f4be9a5c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/CSharpCodeParserDoesNotAcceptLeadingOrTrailingWhitespaceInDesignMode.stree.txt +++ /dev/null @@ -1,83 +0,0 @@ -RazorDocument - [0..98)::98 - [@{
                      LF @foreach(var p in Products) {LF
                    • Product: @p.Name
                    • LF }LF
                    }] - MarkupBlock - [0..98)::98 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..98)::98 - CSharpStatement - [0..98)::98 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..98)::97 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..97)::95 - CSharpStatementLiteral - [2..5)::3 - [ ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - MarkupBlock - [5..97)::92 - MarkupElement - [5..97)::92 - MarkupStartTag - [5..9)::4 - [
                      ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[ul]; - CloseAngle;[>]; - MarkupTextLiteral - [9..15)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - CSharpCodeBlock - [15..86)::71 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [16..54)::38 - [foreach(var p in Products) {LF ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[p]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Products]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupBlock - [54..79)::25 - MarkupElement - [54..79)::25 - MarkupStartTag - [54..58)::4 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [58..67)::9 - [Product: ] - Gen - SpanEditHandler;Accepts:Any - Text;[Product:]; - Whitespace;[ ]; - CSharpCodeBlock - [67..74)::7 - CSharpImplicitExpression - [67..74)::7 - CSharpTransition - [67..68)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [68..74)::6 - CSharpCodeBlock - [68..74)::6 - CSharpExpressionLiteral - [68..74)::6 - [p.Name] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[p]; - Dot;[.]; - Identifier;[Name]; - MarkupEndTag - [74..79)::5 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[li]; - CloseAngle;[>]; - CSharpStatementLiteral - [79..86)::7 - [LF }] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - MarkupTextLiteral - [86..92)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupEndTag - [92..97)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; - CSharpStatementLiteral - [97..97)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [97..98)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [98..98)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt deleted file mode 100644 index cba8fd92de1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [38] ) -Markup span at (4:0,4 [7] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [35] ) -Markup span at (11:0,11 [27] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [35] ) -Markup span at (38:0,38 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [35] ) -Markup span at (39:0,39 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [38] ) -Markup span at (40:0,40 [8] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [50] ) -Markup span at (48:0,48 [4] ) (Accepts:None) - Parent: Tag block at (48:0,48 [4] ) -Code span at (52:0,52 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [53] ) -MetaCode span at (52:0,52 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [53] ) -Markup span at (53:0,53 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt deleted file mode 100644 index 99335b990d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..53)::53 - [@{Email me}] - MarkupBlock - [0..53)::53 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..53)::53 - CSharpStatement - [0..53)::53 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..53)::52 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..52)::50 - MarkupBlock - [2..52)::50 - MarkupElement - [2..52)::50 - MarkupStartTag - [2..40)::38 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[a]; - MarkupAttributeBlock - [4..39)::35 - [ href="mailto:anurse@microsoft.com"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any - Text;[href]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..38)::27 - MarkupLiteralAttributeValue - [11..38)::27 - [mailto:anurse@microsoft.com] - MarkupTextLiteral - [11..38)::27 - [mailto:anurse@microsoft.com] - Gen - SpanEditHandler;Accepts:Any - Text;[mailto:anurse@microsoft.com]; - MarkupTextLiteral - [38..39)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [40..48)::8 - [Email me] - Gen - SpanEditHandler;Accepts:Any - Text;[Email]; - Whitespace;[ ]; - Text;[me]; - MarkupEndTag - [48..52)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[a]; - CloseAngle;[>]; - CSharpStatementLiteral - [52..52)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [52..53)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [53..53)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.cspans.txt deleted file mode 100644 index c0bfd264c04..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [20] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [31] ) -Markup span at (27:0,27 [6] ) (Accepts:None) - Parent: Tag block at (27:0,27 [6] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.stree.txt deleted file mode 100644 index 41310fb85e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/DoesNotSwitchToCodeOnEmailAddressInText.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..34)::34 - [@{anurse@microsoft.com}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..27)::20 - [anurse@microsoft.com] - Gen - SpanEditHandler;Accepts:Any - Text;[anurse@microsoft.com]; - MarkupEndTag - [27..33)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt deleted file mode 100644 index 769e4eeb3ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt +++ /dev/null @@ -1,22 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [98] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [98] ) -Markup span at (2:0,2 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [95] ) -Markup span at (5:0,5 [4] ) (Accepts:None) - Parent: Tag block at (5:0,5 [4] ) -Markup span at (9:0,9 [2] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [95] ) -Code span at (11:1,0 [4] ) (Accepts:Any) - Parent: Statement block at (11:1,0 [77] ) -Transition span at (15:1,4 [1] ) (Accepts:None) - Parent: Statement block at (11:1,0 [77] ) -Code span at (16:1,5 [30] ) (Accepts:Any) - Parent: Statement block at (11:1,0 [77] ) -Markup span at (46:2,0 [8] ) (Accepts:Any) - Parent: Markup block at (46:2,0 [35] ) -Markup span at (54:2,8 [4] ) (Accepts:None) - Parent: Tag block at (54:2,8 [4] ) -Markup span at (58:2,12 [9] ) (Accepts:Any) - Parent: Markup block at (46:2,0 [35] ) -Transition span at (67:2,21 [1] ) (Accepts:None) - Parent: Expression block at (67:2,21 [7] ) -Code span at (68:2,22 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (67:2,21 [7] ) -Markup span at (74:2,28 [5] ) (Accepts:None) - Parent: Tag block at (74:2,28 [5] ) -Markup span at (79:2,33 [2] ) (Accepts:None) - Parent: Markup block at (46:2,0 [35] ) -Code span at (81:3,0 [7] ) (Accepts:None) - Parent: Statement block at (11:1,0 [77] ) -Markup span at (88:4,0 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [95] ) -Markup span at (92:4,4 [5] ) (Accepts:None) - Parent: Tag block at (92:4,4 [5] ) -Code span at (97:4,9 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [98] ) -MetaCode span at (97:4,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [98] ) -Markup span at (98:4,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [98] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt deleted file mode 100644 index 1025586c6da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/GivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt +++ /dev/null @@ -1,86 +0,0 @@ -RazorDocument - [0..98)::98 - [@{
                      LF @foreach(var p in Products) {LF
                    • Product: @p.Name
                    • LF }LF
                    }] - MarkupBlock - [0..98)::98 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..98)::98 - CSharpStatement - [0..98)::98 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..98)::97 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..97)::95 - MarkupBlock - [2..97)::95 - MarkupTextLiteral - [2..5)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [5..97)::92 - MarkupStartTag - [5..9)::4 - [
                      ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[ul]; - CloseAngle;[>]; - MarkupTextLiteral - [9..11)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [11..88)::77 - CSharpStatementLiteral - [11..15)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [16..46)::30 - [foreach(var p in Products) {LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[p]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Products]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [46..81)::35 - MarkupTextLiteral - [46..54)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [54..79)::25 - MarkupStartTag - [54..58)::4 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [58..67)::9 - [Product: ] - Gen - SpanEditHandler;Accepts:Any - Text;[Product:]; - Whitespace;[ ]; - CSharpCodeBlock - [67..74)::7 - CSharpImplicitExpression - [67..74)::7 - CSharpTransition - [67..68)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [68..74)::6 - CSharpCodeBlock - [68..74)::6 - CSharpExpressionLiteral - [68..74)::6 - [p.Name] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[p]; - Dot;[.]; - Identifier;[Name]; - MarkupEndTag - [74..79)::5 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [79..81)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [81..88)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [88..92)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [92..97)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; - CSharpStatementLiteral - [97..97)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [97..98)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [98..98)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt deleted file mode 100644 index 5b382487b7e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [95] ) -Markup span at (3:0,3 [4] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) -Markup span at (7:0,7 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [95] ) -Code span at (9:1,0 [4] ) (Accepts:Any) - Parent: Statement block at (9:1,0 [77] ) -Transition span at (13:1,4 [1] ) (Accepts:None) - Parent: Statement block at (9:1,0 [77] ) -Code span at (14:1,5 [30] ) (Accepts:Any) - Parent: Statement block at (9:1,0 [77] ) -Markup span at (44:2,0 [8] ) (Accepts:Any) - Parent: Markup block at (44:2,0 [35] ) -Markup span at (52:2,8 [4] ) (Accepts:None) - Parent: Tag block at (52:2,8 [4] ) -Markup span at (56:2,12 [9] ) (Accepts:Any) - Parent: Markup block at (44:2,0 [35] ) -Transition span at (65:2,21 [1] ) (Accepts:None) - Parent: Expression block at (65:2,21 [7] ) -Code span at (66:2,22 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (65:2,21 [7] ) -Markup span at (72:2,28 [5] ) (Accepts:None) - Parent: Tag block at (72:2,28 [5] ) -Markup span at (77:2,33 [2] ) (Accepts:None) - Parent: Markup block at (44:2,0 [35] ) -Code span at (79:3,0 [7] ) (Accepts:None) - Parent: Statement block at (9:1,0 [77] ) -Markup span at (86:4,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [95] ) -Markup span at (90:4,4 [5] ) (Accepts:Any) - Parent: Tag block at (90:4,4 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt deleted file mode 100644 index bdb122a3091..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt +++ /dev/null @@ -1,69 +0,0 @@ -RazorDocument - [0..95)::95 - [
                      LF @foreach(var p in Products) {LF
                    • Product: @p.Name
                    • LF }LF
                    ] - MarkupBlock - [0..95)::95 - MarkupTextLiteral - [0..3)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [3..95)::92 - MarkupStartTag - [3..7)::4 - [
                      ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[ul]; - CloseAngle;[>]; - MarkupTextLiteral - [7..9)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [9..86)::77 - CSharpStatementLiteral - [9..13)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [14..44)::30 - [foreach(var p in Products) {LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[p]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Products]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [44..79)::35 - MarkupTextLiteral - [44..52)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [52..77)::25 - MarkupStartTag - [52..56)::4 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [56..65)::9 - [Product: ] - Gen - SpanEditHandler;Accepts:Any - Text;[Product:]; - Whitespace;[ ]; - CSharpCodeBlock - [65..72)::7 - CSharpImplicitExpression - [65..72)::7 - CSharpTransition - [65..66)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [66..72)::6 - CSharpCodeBlock - [66..72)::6 - CSharpExpressionLiteral - [66..72)::6 - [p.Name] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[p]; - Dot;[.]; - Identifier;[Name]; - MarkupEndTag - [72..77)::5 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [77..79)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [79..86)::7 - [ }LF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [86..90)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [90..95)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt deleted file mode 100644 index f524279da09..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Markup span at (6:0,6 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Markup span at (7:0,7 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Markup span at (8:0,8 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Expression block at (9:0,9 [4] ) -Code span at (10:0,10 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (9:0,9 [4] ) -Markup span at (13:0,13 [6] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.stree.txt deleted file mode 100644 index 66e1ca4faa1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsPairsOfAtSignsAsEscapeSequence.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..19)::19 - [@@@@@bar] - MarkupBlock - [0..19)::19 - MarkupElement - [0..19)::19 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupEphemeralTextLiteral - [5..6)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [6..7)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupEphemeralTextLiteral - [7..8)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [8..9)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - CSharpCodeBlock - [9..13)::4 - CSharpImplicitExpression - [9..13)::4 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [10..13)::3 - CSharpCodeBlock - [10..13)::3 - CSharpExpressionLiteral - [10..13)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupEndTag - [13..19)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.cspans.txt deleted file mode 100644 index beb66d05e59..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Markup span at (6:0,6 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Markup span at (10:0,10 [6] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.stree.txt deleted file mode 100644 index 9408db763de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParseDocumentTreatsTwoAtSignsAsEscapeSequence.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..16)::16 - [@@bar] - MarkupBlock - [0..16)::16 - MarkupElement - [0..16)::16 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupEphemeralTextLiteral - [5..6)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [6..10)::4 - [@bar] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Text;[bar]; - MarkupEndTag - [10..16)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.cspans.txt deleted file mode 100644 index a25c9be4579..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Markup block at (2:0,2 [20] ) -MetaCode span at (3:0,3 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [20] ) -Markup span at (4:0,4 [8] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [20] ) -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [4] ) -Code span at (13:0,13 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [4] ) -Markup span at (16:0,16 [6] ) (Accepts:None) - Parent: Markup block at (2:0,2 [20] ) -Code span at (22:1,0 [4] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:1,4 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:1,5 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.stree.txt deleted file mode 100644 index 20c3e121d38..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/ParsesCodeWithinSingleLineMarkup.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..27)::27 - [@{@:
                  • Foo @Bar BazLFbork}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..22)::20 - MarkupTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorMetaCode - [3..4)::1 - Gen - SpanEditHandler;Accepts:Any - Colon;[:]; - MarkupTextLiteral - [4..12)::8 - [
                  • Foo ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - Text;[Foo]; - Whitespace;[ ]; - CSharpCodeBlock - [12..16)::4 - CSharpImplicitExpression - [12..16)::4 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..16)::3 - CSharpCodeBlock - [13..16)::3 - CSharpExpressionLiteral - [13..16)::3 - [Bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[Bar]; - MarkupTextLiteral - [16..22)::6 - [ BazLF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[Baz]; - NewLine;[LF]; - CSharpStatementLiteral - [22..26)::4 - [bork] - Gen - SpanEditHandler;Accepts:Any - Identifier;[bork]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt deleted file mode 100644 index 27a97571b57..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.cspans.txt +++ /dev/null @@ -1,19 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [36] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [36] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [36] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [36] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [36] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [36] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [21] ) -Markup span at (15:0,15 [5] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [5] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [21] ) -Markup span at (21:0,21 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [21] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [21] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [21] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Expression block at (24:0,24 [4] ) -Code span at (25:0,25 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (24:0,24 [4] ) -Markup span at (28:0,28 [6] ) (Accepts:Any) - Parent: Tag block at (28:0,28 [6] ) -Markup span at (34:0,34 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [21] ) -MetaCode span at (35:0,35 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [36] ) -Markup span at (36:0,36 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.stree.txt deleted file mode 100644 index e490f7e1317..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsPairsOfAtSignsAsEscapeSequence.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..36)::36 - [@section Foo { @@@@@bar }] - MarkupBlock - [0..36)::36 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..36)::36 - RazorDirective - [0..36)::36 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..36)::35 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..36)::28 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..35)::21 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..34)::19 - MarkupStartTag - [15..20)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupEphemeralTextLiteral - [20..21)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [21..22)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupEphemeralTextLiteral - [22..23)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [23..24)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - CSharpCodeBlock - [24..28)::4 - CSharpImplicitExpression - [24..28)::4 - CSharpTransition - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [25..28)::3 - CSharpCodeBlock - [25..28)::3 - CSharpExpressionLiteral - [25..28)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[bar]; - MarkupEndTag - [28..34)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [35..36)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.cspans.txt deleted file mode 100644 index f9668013383..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [33] ) -Code span at (9:0,9 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [33] ) -None span at (12:0,12 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [18] ) -Markup span at (15:0,15 [5] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [5] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [18] ) -Markup span at (21:0,21 [4] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [18] ) -Markup span at (25:0,25 [6] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [6] ) -Markup span at (31:0,31 [1] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [18] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.stree.txt deleted file mode 100644 index eb51d6aa1f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionBodyTreatsTwoAtSignsAsEscapeSequence.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..33)::33 - [@section Foo { @@bar }] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - RazorDirective - [0..33)::33 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..33)::32 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..33)::25 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..12)::3 - [Foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Foo]; - UnclassifiedTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [14..32)::18 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [15..31)::16 - MarkupStartTag - [15..20)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupEphemeralTextLiteral - [20..21)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [21..25)::4 - [@bar] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Text;[bar]; - MarkupEndTag - [25..31)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt deleted file mode 100644 index 3529ce293f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.cspans.txt +++ /dev/null @@ -1,31 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [130] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [130] ) -Code span at (2:0,2 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [130] ) -Transition span at (2:0,2 [1] ) (Accepts:None) - Parent: Directive block at (2:0,2 [127] ) -MetaCode span at (3:0,3 [7] ) (Accepts:None) - Parent: Directive block at (2:0,2 [127] ) -Code span at (10:0,10 [1] ) (Accepts:Whitespace) - Parent: Directive block at (2:0,2 [127] ) -Code span at (11:0,11 [3] ) (Accepts:NonWhitespace) - Parent: Directive block at (2:0,2 [127] ) -None span at (14:0,14 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (2:0,2 [127] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Directive block at (2:0,2 [127] ) -Markup span at (16:0,16 [6] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [112] ) -Markup span at (22:1,4 [4] ) (Accepts:Any) - Parent: Tag block at (22:1,4 [4] ) -Markup span at (26:1,8 [2] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [112] ) -Code span at (28:2,0 [8] ) (Accepts:Any) - Parent: Statement block at (28:2,0 [89] ) -Transition span at (36:2,8 [1] ) (Accepts:None) - Parent: Statement block at (28:2,0 [89] ) -Code span at (37:2,9 [30] ) (Accepts:Any) - Parent: Statement block at (28:2,0 [89] ) -Markup span at (67:3,0 [12] ) (Accepts:Any) - Parent: Markup block at (67:3,0 [39] ) -Markup span at (79:3,12 [4] ) (Accepts:None) - Parent: Tag block at (79:3,12 [4] ) -Markup span at (83:3,16 [9] ) (Accepts:Any) - Parent: Markup block at (67:3,0 [39] ) -Transition span at (92:3,25 [1] ) (Accepts:None) - Parent: Expression block at (92:3,25 [7] ) -Code span at (93:3,26 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (92:3,25 [7] ) -Markup span at (99:3,32 [5] ) (Accepts:None) - Parent: Tag block at (99:3,32 [5] ) -Markup span at (104:3,37 [2] ) (Accepts:None) - Parent: Markup block at (67:3,0 [39] ) -Code span at (106:4,0 [11] ) (Accepts:None) - Parent: Statement block at (28:2,0 [89] ) -Markup span at (117:5,0 [4] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [112] ) -Markup span at (121:5,4 [5] ) (Accepts:Any) - Parent: Tag block at (121:5,4 [5] ) -Markup span at (126:5,9 [2] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [112] ) -MetaCode span at (128:6,0 [1] ) (Accepts:None) - Parent: Directive block at (2:0,2 [127] ) -Code span at (129:6,1 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [130] ) -MetaCode span at (129:6,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [130] ) -Markup span at (130:6,2 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.diag.txt deleted file mode 100644 index 82834fee1b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2005: The 'section` directive must appear at the start of the line. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt deleted file mode 100644 index 3f3c9337784..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SectionContextGivesWhitespacePreceedingToCodeIfThereIsNoMarkupOnThatLine.stree.txt +++ /dev/null @@ -1,109 +0,0 @@ -RazorDocument - [0..130)::130 - [@{@section foo {LF
                      LF @foreach(var p in Products) {LF
                    • Product: @p.Name
                    • LF }LF
                    LF}}] - MarkupBlock - [0..130)::130 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..130)::130 - CSharpStatement - [0..130)::130 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..130)::129 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..129)::127 - CSharpStatementLiteral - [2..2)::0 - [] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Marker;[]; - CSharpCodeBlock - [2..129)::127 - RazorDirective - [2..129)::127 - Directive:{section;RazorBlock;Unrestricted} [RZ2005(3:0,3 [7] )] - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..129)::126 - RazorMetaCode - [3..10)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [10..129)::119 - CSharpStatementLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [11..14)::3 - [foo] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[foo]; - UnclassifiedTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [15..16)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [16..128)::112 - MarkupTextLiteral - [16..22)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [22..126)::104 - MarkupStartTag - [22..26)::4 - [
                      ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[ul]; - CloseAngle;[>]; - MarkupTextLiteral - [26..28)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [28..117)::89 - CSharpStatementLiteral - [28..36)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpTransition - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [37..67)::30 - [foreach(var p in Products) {LF] - Gen - SpanEditHandler;Accepts:Any - Keyword;[foreach]; - LeftParenthesis;[(]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[p]; - Whitespace;[ ]; - Keyword;[in]; - Whitespace;[ ]; - Identifier;[Products]; - RightParenthesis;[)]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - MarkupBlock - [67..106)::39 - MarkupTextLiteral - [67..79)::12 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [79..104)::25 - MarkupStartTag - [79..83)::4 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [83..92)::9 - [Product: ] - Gen - SpanEditHandler;Accepts:Any - Text;[Product:]; - Whitespace;[ ]; - CSharpCodeBlock - [92..99)::7 - CSharpImplicitExpression - [92..99)::7 - CSharpTransition - [92..93)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [93..99)::6 - CSharpCodeBlock - [93..99)::6 - CSharpExpressionLiteral - [93..99)::6 - [p.Name] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K15 - Identifier;[p]; - Dot;[.]; - Identifier;[Name]; - MarkupEndTag - [99..104)::5 - [
                    • ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[li]; - CloseAngle;[>]; - MarkupTextLiteral - [104..106)::2 - [LF] - Gen - SpanEditHandler;Accepts:None - NewLine;[LF]; - CSharpStatementLiteral - [106..117)::11 - [ }LF] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [117..121)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupEndTag - [121..126)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; - MarkupTextLiteral - [126..128)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - RazorMetaCode - [128..129)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - CSharpStatementLiteral - [129..129)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [129..130)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [130..130)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.cspans.txt deleted file mode 100644 index 371d673f227..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [14] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [36] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [4] ) -Code span at (22:0,22 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [4] ) -Markup span at (25:0,25 [7] ) (Accepts:None) - Parent: Markup block at (2:0,2 [36] ) -Markup span at (32:0,32 [6] ) (Accepts:None) - Parent: Tag block at (32:0,32 [6] ) -Code span at (38:0,38 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [39] ) -MetaCode span at (38:0,38 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [39] ) -Markup span at (39:0,39 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.stree.txt deleted file mode 100644 index 4a63f88741b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinCDataDeclaration.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..39)::39 - [@{}] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..39)::39 - CSharpStatement - [0..39)::39 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..39)::38 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..38)::36 - MarkupBlock - [2..38)::36 - MarkupElement - [2..38)::36 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..21)::14 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - LeftBracket;[[]; - Text;[CDATA]; - LeftBracket;[[]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - CSharpCodeBlock - [21..25)::4 - CSharpImplicitExpression - [21..25)::4 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..25)::3 - CSharpCodeBlock - [22..25)::3 - CSharpExpressionLiteral - [22..25)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [25..32)::7 - [ baz]]>] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[baz]; - RightBracket;[]]; - RightBracket;[]]; - CloseAngle;[>]; - MarkupEndTag - [32..38)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [38..38)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [38..39)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [39..39)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.cspans.txt deleted file mode 100644 index d8bbd6e4655..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [4] ) (Accepts:None) - Parent: HtmlComment block at (7:0,7 [13] ) -Markup span at (11:0,11 [1] ) (Accepts:Whitespace) - Parent: HtmlComment block at (7:0,7 [13] ) -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [4] ) -Code span at (13:0,13 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [4] ) -Markup span at (16:0,16 [1] ) (Accepts:Whitespace) - Parent: HtmlComment block at (7:0,7 [13] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: HtmlComment block at (7:0,7 [13] ) -Markup span at (20:0,20 [6] ) (Accepts:None) - Parent: Tag block at (20:0,20 [6] ) -Code span at (26:0,26 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.stree.txt deleted file mode 100644 index ae10fe3b1b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinComment.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..27)::27 - [@{}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..26)::24 - MarkupElement - [2..26)::24 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupCommentBlock - [7..20)::13 - MarkupTextLiteral - [7..11)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.cspans.txt deleted file mode 100644 index 154020ea7cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [14] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [34] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [4] ) -Code span at (22:0,22 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [4] ) -Markup span at (25:0,25 [5] ) (Accepts:None) - Parent: Markup block at (2:0,2 [34] ) -Markup span at (30:0,30 [6] ) (Accepts:None) - Parent: Tag block at (30:0,30 [6] ) -Code span at (36:0,36 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [37] ) -MetaCode span at (36:0,36 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [37] ) -Markup span at (37:0,37 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.stree.txt deleted file mode 100644 index 72803b9925b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinSGMLDeclaration.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..37)::37 - [@{}] - MarkupBlock - [0..37)::37 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..37)::37 - CSharpStatement - [0..37)::37 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..37)::36 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..36)::34 - MarkupBlock - [2..36)::34 - MarkupElement - [2..36)::34 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..21)::14 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[DOCTYPE]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - CSharpCodeBlock - [21..25)::4 - CSharpImplicitExpression - [21..25)::4 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..25)::3 - CSharpCodeBlock - [22..25)::3 - CSharpExpressionLiteral - [22..25)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [25..30)::5 - [ baz>] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[baz]; - CloseAngle;[>]; - MarkupEndTag - [30..36)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [36..36)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [37..37)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.cspans.txt deleted file mode 100644 index a1e6d33dbaf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [10] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [31] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Expression block at (17:0,17 [4] ) -Code span at (18:0,18 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (17:0,17 [4] ) -Markup span at (21:0,21 [6] ) (Accepts:None) - Parent: Markup block at (2:0,2 [31] ) -Markup span at (27:0,27 [6] ) (Accepts:None) - Parent: Tag block at (27:0,27 [6] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.stree.txt deleted file mode 100644 index 9a734b0002f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SupportsCodeWithinXMLProcessingInstruction.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..34)::34 - [@{}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..17)::10 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - Text;[foo]; - Whitespace;[ ]; - CSharpCodeBlock - [17..21)::4 - CSharpImplicitExpression - [17..21)::4 - CSharpTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [18..21)::3 - CSharpCodeBlock - [18..21)::3 - CSharpExpressionLiteral - [18..21)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [21..27)::6 - [ baz?>] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Text;[baz]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupEndTag - [27..33)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.cspans.txt deleted file mode 100644 index 90f540af15d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (6:0,6 [6] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [11] ) -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [4] ) -Code span at (13:0,13 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [4] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (6:0,6 [11] ) -Markup span at (17:0,17 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [18] ) -Code span at (20:0,20 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.stree.txt deleted file mode 100644 index bd98e054cb0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInAttributeValue.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..21)::21 - [@{}] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..20)::18 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - MarkupAttributeBlock - [6..17)::11 - [ bar="@baz"] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..10)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [12..16)::4 - MarkupDynamicAttributeValue - [12..16)::4 - [@baz] - GenericBlock - [12..16)::4 - CSharpCodeBlock - [12..16)::4 - CSharpImplicitExpression - [12..16)::4 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..16)::3 - CSharpCodeBlock - [13..16)::3 - CSharpExpressionLiteral - [13..16)::3 - [baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[baz]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.cspans.txt deleted file mode 100644 index 5cd3fa4a4e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [0] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [30] ) -Transition span at (7:0,7 [1] ) (Accepts:None) - Parent: Expression block at (7:0,7 [4] ) -Code span at (8:0,8 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (7:0,7 [4] ) -Markup span at (11:0,11 [5] ) (Accepts:None) - Parent: Tag block at (11:0,11 [5] ) -Markup span at (16:0,16 [0] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [30] ) -Transition span at (16:0,16 [1] ) (Accepts:None) - Parent: Expression block at (16:0,16 [4] ) -Code span at (17:0,17 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (16:0,16 [4] ) -Markup span at (20:0,20 [6] ) (Accepts:None) - Parent: Tag block at (20:0,20 [6] ) -Markup span at (26:0,26 [6] ) (Accepts:None) - Parent: Tag block at (26:0,26 [6] ) -Code span at (32:0,32 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.stree.txt deleted file mode 100644 index 2b06ed1e3a8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredInTagContent.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..33)::33 - [@{@bar@boz}] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - CSharpStatement - [0..33)::33 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..33)::32 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..32)::30 - MarkupBlock - [2..32)::30 - MarkupElement - [2..32)::30 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [7..7)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [7..11)::4 - CSharpImplicitExpression - [7..11)::4 - CSharpTransition - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [8..11)::3 - CSharpCodeBlock - [8..11)::3 - CSharpExpressionLiteral - [8..11)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupElement - [11..26)::15 - MarkupStartTag - [11..16)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[baz]; - CloseAngle;[>]; - MarkupTextLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [16..20)::4 - CSharpImplicitExpression - [16..20)::4 - CSharpTransition - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [17..20)::3 - CSharpCodeBlock - [17..20)::3 - CSharpExpressionLiteral - [17..20)::3 - [boz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[boz]; - MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[baz]; - CloseAngle;[>]; - MarkupEndTag - [26..32)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.cspans.txt deleted file mode 100644 index d760958c1ae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Markup span at (2:0,2 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [12] ) -Transition span at (7:0,7 [1] ) (Accepts:None) - Parent: Expression block at (7:0,7 [4] ) -Code span at (8:0,8 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (7:0,7 [4] ) -Markup span at (11:0,11 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [12] ) -Code span at (14:0,14 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [15] ) -MetaCode span at (14:0,14 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Markup span at (15:0,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.stree.txt deleted file mode 100644 index 96573d5697a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesToCodeWhenSwapCharacterEncounteredMidTag.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..15)::15 - [@{}] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpStatement - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..15)::14 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..14)::12 - MarkupBlock - [2..14)::12 - MarkupElement - [2..14)::12 - MarkupStartTag - [2..14)::12 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - MarkupMiscAttributeContent - [6..12)::6 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [7..11)::4 - CSharpImplicitExpression - [7..11)::4 - CSharpTransition - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [8..11)::3 - CSharpCodeBlock - [8..11)::3 - CSharpExpressionLiteral - [8..11)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [14..15)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.cspans.txt deleted file mode 100644 index 3286136c589..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (2:0,2 [3] ) (Accepts:None) - Parent: Tag block at (2:0,2 [3] ) -Markup span at (5:0,5 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [13] ) -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Expression block at (9:0,9 [2] ) -Code span at (10:0,10 [1] ) (Accepts:NonWhitespace) - Parent: Expression block at (9:0,9 [2] ) -Markup span at (11:0,11 [4] ) (Accepts:None) - Parent: Tag block at (11:0,11 [4] ) -Code span at (15:0,15 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (16:0,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.stree.txt deleted file mode 100644 index 6f286f4bb45..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/SwitchesWhenCharacterBeforeSwapIsNonAlphanumeric.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..16)::16 - [@{

                    foo#@i

                    }] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - CSharpStatement - [0..16)::16 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..16)::15 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..15)::13 - MarkupBlock - [2..15)::13 - MarkupElement - [2..15)::13 - MarkupStartTag - [2..5)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [5..9)::4 - [foo#] - Gen - SpanEditHandler;Accepts:Any - Text;[foo#]; - CSharpCodeBlock - [9..11)::2 - CSharpImplicitExpression - [9..11)::2 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [10..11)::1 - CSharpCodeBlock - [10..11)::1 - CSharpExpressionLiteral - [10..11)::1 - [i] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[i]; - MarkupEndTag - [11..15)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.cspans.txt deleted file mode 100644 index 5a030d3cd86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (8:0,8 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (9:0,9 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [19] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [4] ) -Code span at (12:0,12 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (11:0,11 [4] ) -Markup span at (15:0,15 [6] ) (Accepts:None) - Parent: Tag block at (15:0,15 [6] ) -Code span at (21:0,21 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (21:0,21 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.stree.txt deleted file mode 100644 index e90372344a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsPairsOfAtSignsAsEscapeSequence.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..22)::22 - [@{@@@@@bar}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupElement - [2..21)::19 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupEphemeralTextLiteral - [7..8)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [8..9)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupEphemeralTextLiteral - [9..10)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [10..11)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - CSharpCodeBlock - [11..15)::4 - CSharpImplicitExpression - [11..15)::4 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [12..15)::3 - CSharpCodeBlock - [12..15)::3 - CSharpExpressionLiteral - [12..15)::3 - [bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[bar]; - MarkupEndTag - [15..21)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.cspans.txt deleted file mode 100644 index 5f80e5cc3e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (2:0,2 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (7:0,7 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [16] ) -Markup span at (8:0,8 [4] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [16] ) -Markup span at (12:0,12 [6] ) (Accepts:None) - Parent: Tag block at (12:0,12 [6] ) -Code span at (18:0,18 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (18:0,18 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.stree.txt deleted file mode 100644 index a71a04cfefc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/HtmlToCodeSwitchTest/TreatsTwoAtSignsAsEscapeSequence.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..19)::19 - [@{@@bar}] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpStatement - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..19)::18 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..18)::16 - MarkupBlock - [2..18)::16 - MarkupElement - [2..18)::16 - MarkupStartTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupEphemeralTextLiteral - [7..8)::1 - [@] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - MarkupTextLiteral - [8..12)::4 - [@bar] - Gen - SpanEditHandler;Accepts:Any - Transition;[@]; - Text;[bar]; - MarkupEndTag - [12..18)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; - CSharpStatementLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.cspans.txt deleted file mode 100644 index d9ab213c73c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Markup span at (2:1,0 [7] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [7] ) -Markup span at (9:1,7 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Markup span at (12:1,10 [8] ) (Accepts:Any) - Parent: Tag block at (12:1,10 [8] ) -Markup span at (20:1,18 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.stree.txt deleted file mode 100644 index 62169fa2eaa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_DoesNotSpecialCase_VoidTags.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..22)::22 - [LFFooLF] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..20)::18 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTextLiteral - [9..12)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [12..20)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; - MarkupTextLiteral - [20..22)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.cspans.txt deleted file mode 100644 index 017a6ad437c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Markup span at (5:1,3 [6] ) (Accepts:Any) - Parent: Tag block at (5:1,3 [6] ) -Markup span at (11:1,9 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.stree.txt deleted file mode 100644 index 1f16c2f83bb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_EndTagsWithMissingStartTags.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..13)::13 - [LFFoo
                  • LF] - MarkupBlock - [0..13)::13 - MarkupTextLiteral - [0..5)::5 - [LFFoo] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Text;[Foo]; - MarkupElement - [5..11)::6 - MarkupEndTag - [5..11)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.cspans.txt deleted file mode 100644 index 245badb59b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Markup span at (2:1,0 [1] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [1] ) -Markup span at (3:1,1 [5] ) (Accepts:Any) - Parent: Tag block at (3:1,1 [5] ) -Markup span at (8:1,6 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Markup span at (12:1,10 [2] ) (Accepts:Any) - Parent: Tag block at (12:1,10 [2] ) -Markup span at (14:1,12 [6] ) (Accepts:Any) - Parent: Tag block at (14:1,12 [6] ) -Markup span at (20:1,18 [5] ) (Accepts:Any) - Parent: Tag block at (20:1,18 [5] ) -Markup span at (25:1,23 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.stree.txt deleted file mode 100644 index 3d6e74006fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_IncompleteTags.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..27)::27 - [LF<
                    >Foo< >LF] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..3)::1 - MarkupStartTag - [2..3)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupElement - [3..20)::17 - MarkupStartTag - [3..8)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [8..12)::4 - [>Foo] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; - Text;[Foo]; - MarkupElement - [12..14)::2 - MarkupEndTag - [12..14)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupEndTag - [14..20)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupElement - [20..27)::7 - MarkupStartTag - [20..25)::5 - [< >] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMiscAttributeContent - [21..24)::3 - MarkupTextLiteral - [21..24)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [25..27)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.cspans.txt deleted file mode 100644 index 616773a7c78..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Markup span at (14:1,12 [7] ) (Accepts:Any) - Parent: Tag block at (14:1,12 [7] ) -Markup span at (21:1,19 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Markup span at (27:1,25 [6] ) (Accepts:Any) - Parent: Tag block at (27:1,25 [6] ) -Markup span at (33:1,31 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.stree.txt deleted file mode 100644 index 156d6a1813a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MalformedTags_RecoversSuccessfully.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..35)::35 - [LF
                    contentfooter
                    LF] - MarkupBlock - [0..35)::35 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..33)::31 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..14)::7 - [content] - Gen - SpanEditHandler;Accepts:Any - Text;[content]; - MarkupElement - [14..21)::7 - MarkupEndTag - [14..21)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - MarkupTextLiteral - [21..27)::6 - [footer] - Gen - SpanEditHandler;Accepts:Any - Text;[footer]; - MarkupEndTag - [27..33)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [33..35)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.cspans.txt deleted file mode 100644 index d19254baf9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Markup span at (14:1,12 [6] ) (Accepts:Any) - Parent: Tag block at (14:1,12 [6] ) -Markup span at (20:1,18 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Markup span at (26:1,24 [6] ) (Accepts:Any) - Parent: Tag block at (26:1,24 [6] ) -Markup span at (32:1,30 [7] ) (Accepts:Any) - Parent: Tag block at (32:1,30 [7] ) -Markup span at (39:1,37 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.stree.txt deleted file mode 100644 index b85048c9f3b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_MisplacedEndTags_RecoversSuccessfully.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..41)::41 - [LF
                    contentfooter
                    LF] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..32)::30 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..14)::7 - [content] - Gen - SpanEditHandler;Accepts:Any - Text;[content]; - MarkupElement - [14..26)::12 - MarkupStartTag - [14..20)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - CloseAngle;[>]; - MarkupTextLiteral - [20..26)::6 - [footer] - Gen - SpanEditHandler;Accepts:Any - Text;[footer]; - MarkupEndTag - [26..32)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupElement - [32..39)::7 - MarkupEndTag - [32..39)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - MarkupTextLiteral - [39..41)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.cspans.txt deleted file mode 100644 index 68917ae59c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Markup span at (10:1,8 [10] ) (Accepts:Any) - Parent: Tag block at (10:1,8 [10] ) -Markup span at (20:1,18 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.stree.txt deleted file mode 100644 index 06c963307cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SelfClosingTags.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..22)::22 - [LF
                    FooLF] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..7)::5 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [7..10)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupElement - [10..20)::10 - MarkupStartTag - [10..20)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[custom]; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [20..22)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.cspans.txt deleted file mode 100644 index 621dae62c64..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (2:1,0 [6] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [6] ) -Markup span at (8:1,6 [6] ) (Accepts:Any) - Parent: Tag block at (8:1,6 [6] ) -Markup span at (14:1,12 [1] ) (Accepts:Any) - Parent: Tag block at (14:1,12 [7] ) -MetaCode span at (15:1,13 [1] ) (Accepts:None) - Parent: Tag block at (14:1,12 [7] ) -Markup span at (16:1,14 [5] ) (Accepts:Any) - Parent: Tag block at (14:1,12 [7] ) -Markup span at (21:1,19 [7] ) (Accepts:Any) - Parent: Tag block at (21:1,19 [7] ) -Markup span at (28:1,26 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.stree.txt deleted file mode 100644 index 2aa331e1653..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_SpecialCasesVoidTags_WithNoEndTags.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..30)::30 - [LFLF] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..28)::26 - MarkupStartTag - [2..8)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[head]; - CloseAngle;[>]; - MarkupElement - [8..14)::6 - MarkupStartTag - [8..14)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[meta]; - CloseAngle;[>]; - MarkupElement - [14..21)::7 - MarkupStartTag - [14..21)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[meta]; - CloseAngle;[>]; - MarkupEndTag - [21..28)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[head]; - CloseAngle;[>]; - MarkupTextLiteral - [28..30)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.cspans.txt deleted file mode 100644 index 23600f15fe1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [15] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Markup span at (22:3,4 [3] ) (Accepts:Any) - Parent: Tag block at (22:3,4 [3] ) -Markup span at (25:3,7 [23] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Markup span at (48:5,8 [9] ) (Accepts:Any) - Parent: Tag block at (48:5,8 [9] ) -Markup span at (57:5,17 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.stree.txt deleted file mode 100644 index e71d6cf18d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_StartTagsWithMissingEndTags.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..59)::59 - [LF
                    LF FooLF

                    LF BarLF LF] - MarkupBlock - [0..59)::59 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..59)::57 - MarkupStartTag - [2..7)::5 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..22)::15 - [LF FooLF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Foo]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [22..59)::37 - MarkupStartTag - [22..25)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [25..48)::23 - [LF BarLF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Bar]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [48..57)::9 - MarkupEndTag - [48..57)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [57..59)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.cspans.txt deleted file mode 100644 index 63be5f5b102..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [15] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Markup span at (22:3,4 [3] ) (Accepts:Any) - Parent: Tag block at (22:3,4 [3] ) -Markup span at (25:3,7 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Markup span at (28:3,10 [4] ) (Accepts:Any) - Parent: Tag block at (28:3,10 [4] ) -Markup span at (32:3,14 [11] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Markup span at (43:5,0 [6] ) (Accepts:Any) - Parent: Tag block at (43:5,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.stree.txt deleted file mode 100644 index f25fd6b5483..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTags.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..49)::49 - [LF

                    LF FooLF

                    Bar

                    LF BazLF
                    ] - MarkupBlock - [0..49)::49 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..49)::47 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..22)::15 - [LF FooLF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Foo]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [22..32)::10 - MarkupStartTag - [22..25)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [25..28)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [28..32)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [32..43)::11 - [LF BazLF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Baz]; - NewLine;[LF]; - MarkupEndTag - [43..49)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.cspans.txt deleted file mode 100644 index 27e228bccfe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [15] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) -Markup span at (22:3,4 [3] ) (Accepts:Any) - Parent: Tag block at (22:3,4 [3] ) -Transition span at (25:3,7 [1] ) (Accepts:None) - Parent: Expression block at (25:3,7 [4] ) -Code span at (26:3,8 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (25:3,7 [4] ) -Markup span at (29:3,11 [4] ) (Accepts:Any) - Parent: Tag block at (29:3,11 [4] ) -Markup span at (33:3,15 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) -Code span at (35:4,0 [4] ) (Accepts:Any) - Parent: Statement block at (35:4,0 [21] ) -Transition span at (39:4,4 [1] ) (Accepts:None) - Parent: Statement block at (39:4,4 [17] ) -MetaCode span at (40:4,5 [1] ) (Accepts:None) - Parent: Statement block at (39:4,4 [17] ) -Code span at (41:4,6 [14] ) (Accepts:Any) - Parent: Statement block at (39:4,4 [17] ) -MetaCode span at (55:4,20 [1] ) (Accepts:None) - Parent: Statement block at (39:4,4 [17] ) -Markup span at (56:4,21 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) -Markup span at (58:5,0 [6] ) (Accepts:Any) - Parent: Tag block at (58:5,0 [6] ) -Markup span at (64:5,6 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [66] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.stree.txt deleted file mode 100644 index 94de02b7b1b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidNestedTagsMixedWithCode.stree.txt +++ /dev/null @@ -1,67 +0,0 @@ -RazorDocument - [0..66)::66 - [LF
                    LF FooLF

                    @Bar

                    LF @{ var x = Bar; }LF
                    LF] - MarkupBlock - [0..66)::66 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..64)::62 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..22)::15 - [LF FooLF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Foo]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [22..33)::11 - MarkupStartTag - [22..25)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [25..29)::4 - CSharpImplicitExpression - [25..29)::4 - CSharpTransition - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [26..29)::3 - CSharpCodeBlock - [26..29)::3 - CSharpExpressionLiteral - [26..29)::3 - [Bar] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[Bar]; - MarkupEndTag - [29..33)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [33..35)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [35..56)::21 - CSharpStatementLiteral - [35..39)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpStatement - [39..56)::17 - CSharpTransition - [39..40)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [40..56)::16 - RazorMetaCode - [40..41)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [41..55)::14 - CSharpStatementLiteral - [41..55)::14 - [ var x = Bar; ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[x]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[Bar]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [55..56)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupEphemeralTextLiteral - [56..58)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [58..64)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [64..66)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.cspans.txt deleted file mode 100644 index cbaaaf37724..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (10:1,8 [6] ) (Accepts:Any) - Parent: Tag block at (10:1,8 [6] ) -Markup span at (16:1,14 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (18:2,0 [3] ) (Accepts:Any) - Parent: Tag block at (18:2,0 [3] ) -Markup span at (21:2,3 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Markup span at (24:2,6 [4] ) (Accepts:Any) - Parent: Tag block at (24:2,6 [4] ) -Markup span at (28:2,10 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.stree.txt deleted file mode 100644 index c38db1f3cfe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/MarkupElementGroupingTest/Handles_ValidTags.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..30)::30 - [LF
                    Foo
                    LF

                    Bar

                    LF] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..16)::14 - MarkupStartTag - [2..7)::5 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..10)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [10..16)::6 - [
                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [16..18)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [18..28)::10 - MarkupStartTag - [18..21)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [21..24)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any - Text;[Bar]; - MarkupEndTag - [24..28)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [28..30)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt deleted file mode 100644 index 90b83a758f5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [18] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [18] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [18] ) -Code span at (14:0,14 [4] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [18] ) -Markup span at (18:0,18 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt deleted file mode 100644 index c1d5bcd34ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt deleted file mode 100644 index 415af2bb316..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..18)::18 - [@addTagHelper Foo"] - MarkupBlock - [0..18)::18 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..18)::18 - RazorDirective - [0..18)::18 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..18)::17 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..18)::5 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..18)::4 - [Foo"] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - StringLiteral;["];RZ1000(17:0,17 [1] ) - MarkupTextLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.cspans.txt deleted file mode 100644 index bb83fe7c4c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Code span at (14:0,14 [3] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.stree.txt deleted file mode 100644 index 32eaa73ae78..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_InvalidLookupText_AddsError.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..17)::17 - [@addTagHelper Foo] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..17)::4 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..17)::3 - [Foo] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.cspans.txt deleted file mode 100644 index 25806343ae5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Code span at (14:0,14 [2] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (16:0,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.stree.txt deleted file mode 100644 index 95e2ab911cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_NoValue_Invalid.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..16)::16 - [@addTagHelper ""] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - RazorDirective - [0..16)::16 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..16)::15 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..16)::3 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..16)::2 - [""] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;[""]; - MarkupTextLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.cspans.txt deleted file mode 100644 index 61be581b1c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -Code span at (14:0,14 [0] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [14] ) -Markup span at (14:0,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.stree.txt deleted file mode 100644 index 660b83b424d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_RequiresValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..14)::14 - [@addTagHelper ] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - RazorDirective - [0..14)::14 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..14)::13 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..14)::1 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Marker;[]; - MarkupTextLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.cspans.txt deleted file mode 100644 index 48105459127..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Code span at (14:0,14 [8] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.stree.txt deleted file mode 100644 index e5a43eb13a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SingleQuotes_AddsError.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..22)::22 - [@addTagHelper '*, Foo'] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - RazorDirective - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..22)::21 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..22)::9 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..22)::8 - ['*, Foo'] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - CharacterLiteral;['*, Foo']; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt deleted file mode 100644 index 90b83a758f5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [18] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [18] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [18] ) -Code span at (14:0,14 [4] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [18] ) -Markup span at (18:0,18 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt deleted file mode 100644 index 859804d1cf9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,15): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt deleted file mode 100644 index 92b11e3ec34..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..18)::18 - [@addTagHelper "Foo] - MarkupBlock - [0..18)::18 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..18)::18 - RazorDirective - [0..18)::18 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..18)::17 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..18)::5 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..18)::4 - ["Foo] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["Foo];RZ1000(14:0,14 [1] ) - MarkupTextLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.cspans.txt deleted file mode 100644 index 1a383325f7e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Markup span at (13:0,13 [5] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Code span at (18:0,18 [14] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.stree.txt deleted file mode 100644 index a1d2a4c4640..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_SupportsSpaces.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..32)::32 - [@addTagHelper Foo, Bar ] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - RazorDirective - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..32)::31 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..32)::19 - MarkupTextLiteral - [13..18)::5 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [18..32)::14 - [Foo, Bar ] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt deleted file mode 100644 index 3b7dd420934..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [12] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Code span at (14:0,14 [5] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt deleted file mode 100644 index 45498ce535c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/AddTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..19)::19 - [@addTagHelper "Foo"] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - RazorDirective - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..19)::18 - RazorMetaCode - [1..13)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [13..19)::6 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [14..19)::5 - ["Foo"] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["Foo"]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt deleted file mode 100644 index c6fee76354b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Code span at (2:1,0 [2] ) (Accepts:Any) - Parent: Statement block at (2:1,0 [24] ) -Transition span at (4:1,2 [1] ) (Accepts:None) - Parent: Directive block at (4:1,2 [22] ) -MetaCode span at (5:1,3 [12] ) (Accepts:None) - Parent: Directive block at (4:1,2 [22] ) -Markup span at (17:1,15 [1] ) (Accepts:None) - Parent: Directive block at (4:1,2 [22] ) -Code span at (18:1,16 [8] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (4:1,2 [22] ) -Markup span at (26:1,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt deleted file mode 100644 index 8123d8117f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..26)::26 - [LF @addTagHelper "*, Foo"] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..26)::24 - CSharpEphemeralTextLiteral - [2..4)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorDirective - [4..26)::22 - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [5..26)::21 - RazorMetaCode - [5..17)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [17..26)::9 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [18..26)::8 - ["*, Foo"] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["*, Foo"]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.cspans.txt deleted file mode 100644 index 8caeeee11d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Directive block at (3:0,3 [24] ) -MetaCode span at (4:0,4 [12] ) (Accepts:None) - Parent: Directive block at (3:0,3 [24] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (3:0,3 [24] ) -Code span at (17:0,17 [10] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (3:0,3 [24] ) -Markup span at (27:1,0 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.stree.txt deleted file mode 100644 index 1e622480ba3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/BuiltInDirectiveErrorsIfNotAtStartOfLine.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..28)::28 - [{ @addTagHelper "*, Foo"LF}] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..3)::3 - [{ ] - Gen - SpanEditHandler;Accepts:Any - Text;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [3..27)::24 - RazorDirective - [3..27)::24 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [4..27)::23 - RazorMetaCode - [4..16)::12 - Gen - SpanEditHandler;Accepts:None - Identifier;[addTagHelper]; - CSharpCodeBlock - [16..27)::11 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..27)::10 - ["*, Foo"LF] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["*, Foo"]; - NewLine;[LF]; - MarkupTextLiteral - [27..28)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.cspans.txt deleted file mode 100644 index c23d9ce5f60..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [176] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [176] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [176] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (15:0,15 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (16:0,16 [9] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (25:0,25 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (26:0,26 [21] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (47:0,47 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (48:0,48 [29] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (77:0,77 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (78:0,78 [31] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (109:0,109 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [176] ) -Code span at (110:0,110 [66] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [176] ) -Markup span at (176:0,176 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [176] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.stree.txt deleted file mode 100644 index cfa73cde1e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsNullableTypes.stree.txt +++ /dev/null @@ -1,80 +0,0 @@ -RazorDocument - [0..176)::176 - [@custom string? string?[] global::System.Int32? KeyValuePair? KeyValuePair?[] global::System.Collections.Generic.KeyValuePair?[]] - MarkupBlock - [0..176)::176 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..176)::176 - RazorDirective - [0..176)::176 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..176)::175 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..176)::169 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..15)::7 - [string?] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Keyword;[string]; - QuestionMark;[?]; - CSharpStatementLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [16..25)::9 - [string?[]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Keyword;[string]; - QuestionMark;[?]; - LeftBracket;[[]; - RightBracket;[]]; - CSharpStatementLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [26..47)::21 - [global::System.Int32?] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[global]; - DoubleColon;[::]; - Identifier;[System]; - Dot;[.]; - Identifier;[Int32]; - QuestionMark;[?]; - CSharpStatementLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [48..77)::29 - [KeyValuePair?] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[KeyValuePair]; - LessThan;[<]; - Keyword;[string]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - GreaterThan;[>]; - QuestionMark;[?]; - CSharpStatementLiteral - [77..78)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [78..109)::31 - [KeyValuePair?[]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[KeyValuePair]; - LessThan;[<]; - Keyword;[string]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - GreaterThan;[>]; - QuestionMark;[?]; - LeftBracket;[[]; - RightBracket;[]]; - CSharpStatementLiteral - [109..110)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [110..176)::66 - [global::System.Collections.Generic.KeyValuePair?[]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[global]; - DoubleColon;[::]; - Identifier;[System]; - Dot;[.]; - Identifier;[Collections]; - Dot;[.]; - Identifier;[Generic]; - Dot;[.]; - Identifier;[KeyValuePair]; - LessThan;[<]; - Keyword;[string]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - GreaterThan;[>]; - QuestionMark;[?]; - LeftBracket;[[]; - RightBracket;[]]; - MarkupTextLiteral - [176..176)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.cspans.txt deleted file mode 100644 index f0a1ad489a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [246] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [246] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [246] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (8:0,8 [11] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (19:0,19 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (20:0,20 [20] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (40:0,40 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (41:0,41 [29] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (70:0,70 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (71:0,71 [37] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (108:0,108 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (109:0,109 [36] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (145:0,145 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [246] ) -Code span at (146:0,146 [100] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [246] ) -Markup span at (246:0,246 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [246] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.stree.txt deleted file mode 100644 index bd5ce0d7fbe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes.stree.txt +++ /dev/null @@ -1,164 +0,0 @@ -RazorDocument - [0..246)::246 - [@custom (bool, int) (int aa, string bb)? ( int? q , bool w ) ( int ? q, bool ?w ,(long ? [])) ? (List<(int, string)?> aa, string bb) (string ss, (int u, List<(string, int)> k, (Char c, bool b, List l)), global::System.Int32[] a)] - MarkupBlock - [0..246)::246 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..246)::246 - RazorDirective - [0..246)::246 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..246)::245 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..246)::239 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..19)::11 - [(bool, int)] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Keyword;[bool]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[int]; - RightParenthesis;[)]; - CSharpStatementLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [20..40)::20 - [(int aa, string bb)?] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[aa]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[bb]; - RightParenthesis;[)]; - QuestionMark;[?]; - CSharpStatementLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [41..70)::29 - [( int? q , bool w )] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Whitespace;[ ]; - Keyword;[int]; - QuestionMark;[?]; - Whitespace;[ ]; - Identifier;[q]; - Whitespace;[ ]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[bool]; - Whitespace;[ ]; - Identifier;[w]; - Whitespace;[ ]; - RightParenthesis;[)]; - CSharpStatementLiteral - [70..71)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [71..108)::37 - [( int ? q, bool ?w ,(long ? [])) ?] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Whitespace;[ ]; - Keyword;[int]; - Whitespace;[ ]; - QuestionMark;[?]; - Whitespace;[ ]; - Identifier;[q]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[bool]; - Whitespace;[ ]; - QuestionMark;[?]; - Identifier;[w]; - Whitespace;[ ]; - Comma;[,]; - LeftParenthesis;[(]; - Keyword;[long]; - Whitespace;[ ]; - QuestionMark;[?]; - Whitespace;[ ]; - LeftBracket;[[]; - RightBracket;[]]; - RightParenthesis;[)]; - RightParenthesis;[)]; - Whitespace;[ ]; - QuestionMark;[?]; - CSharpStatementLiteral - [108..109)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [109..145)::36 - [(List<(int, string)?> aa, string bb)] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Identifier;[List]; - LessThan;[<]; - LeftParenthesis;[(]; - Keyword;[int]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - RightParenthesis;[)]; - QuestionMark;[?]; - GreaterThan;[>]; - Whitespace;[ ]; - Identifier;[aa]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[bb]; - RightParenthesis;[)]; - CSharpStatementLiteral - [145..146)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [146..246)::100 - [(string ss, (int u, List<(string, int)> k, (Char c, bool b, List l)), global::System.Int32[] a)] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Keyword;[string]; - Whitespace;[ ]; - Identifier;[ss]; - Comma;[,]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[int]; - Whitespace;[ ]; - Identifier;[u]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[List]; - LessThan;[<]; - LeftParenthesis;[(]; - Keyword;[string]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[int]; - RightParenthesis;[)]; - GreaterThan;[>]; - Whitespace;[ ]; - Identifier;[k]; - Comma;[,]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[Char]; - Whitespace;[ ]; - Identifier;[c]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[bool]; - Whitespace;[ ]; - Identifier;[b]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[List]; - LessThan;[<]; - Keyword;[int]; - GreaterThan;[>]; - Whitespace;[ ]; - Identifier;[l]; - RightParenthesis;[)]; - RightParenthesis;[)]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[global]; - DoubleColon;[::]; - Identifier;[System]; - Dot;[.]; - Identifier;[Int32]; - LeftBracket;[[]; - RightBracket;[]]; - Whitespace;[ ]; - Identifier;[a]; - RightParenthesis;[)]; - MarkupTextLiteral - [246..246)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.cspans.txt deleted file mode 100644 index 52a117679c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [23] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [23] ) -Code span at (8:0,8 [12] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [23] ) -None span at (20:0,20 [3] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.stree.txt deleted file mode 100644 index 10efce7060e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsTupleTypes_IgnoresTrailingWhitespace.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..23)::23 - [@custom (bool, int?) ] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - RazorDirective - [0..23)::23 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..23)::22 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..23)::16 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..20)::12 - [(bool, int?)] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftParenthesis;[(]; - Keyword;[bool]; - Comma;[,]; - Whitespace;[ ]; - Keyword;[int]; - QuestionMark;[?]; - RightParenthesis;[)]; - UnclassifiedTextLiteral - [20..23)::3 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.cspans.txt deleted file mode 100644 index 68dfa71c779..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [67] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [67] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [67] ) -Code span at (7:0,7 [4] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [67] ) -Code span at (11:0,11 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [67] ) -Code span at (45:0,45 [7] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [67] ) -Code span at (52:0,52 [11] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [67] ) -None span at (63:0,63 [4] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [67] ) -Markup span at (67:0,67 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [67] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.stree.txt deleted file mode 100644 index 1008dcab02a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AllowsWhiteSpaceAroundTokens.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..67)::67 - [@custom System.Text.Encoding.ASCIIEncoding Some_Member ] - MarkupBlock - [0..67)::67 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..67)::67 - RazorDirective - [0..67)::67 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..67)::66 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..67)::60 - CSharpStatementLiteral - [7..11)::4 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [11..45)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - CSharpStatementLiteral - [45..52)::7 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [52..63)::11 - [Some_Member] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Some_Member]; - UnclassifiedTextLiteral - [63..67)::4 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [67..67)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.cspans.txt deleted file mode 100644 index a9da33c82fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [43] ) -MetaCode span at (3:1,1 [6] ) (Accepts:None) - Parent: Directive block at (2:1,0 [43] ) -Code span at (9:1,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (2:1,0 [43] ) -Code span at (10:1,8 [35] ) (Accepts:NonWhitespace) - Parent: Directive block at (2:1,0 [43] ) -Markup span at (45:2,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.stree.txt deleted file mode 100644 index 1bd3280f634..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_BalancesBrackets.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..45)::45 - [LF@custom [SomeCustom(new int[] { 1, 2, 3 }LF] - MarkupBlock - [0..45)::45 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..45)::43 - RazorDirective - [2..45)::43 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..45)::42 - RazorMetaCode - [3..9)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [9..45)::36 - CSharpStatementLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [10..45)::35 - [[SomeCustom(new int[] { 1, 2, 3 }LF] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftBracket;[[]; - Identifier;[SomeCustom]; - LeftParenthesis;[(]; - Keyword;[new]; - Whitespace;[ ]; - Keyword;[int]; - LeftBracket;[[]; - RightBracket;[]]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - IntegerLiteral;[1]; - Comma;[,]; - Whitespace;[ ]; - IntegerLiteral;[2]; - Comma;[,]; - Whitespace;[ ]; - IntegerLiteral;[3]; - Whitespace;[ ]; - RightBrace;[}]; - NewLine;[LF]; - MarkupTextLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.cspans.txt deleted file mode 100644 index 96e52618152..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [13] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.diag.txt deleted file mode 100644 index 46532eb8d07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1037: The 'custom' directive expects a C# attribute. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.stree.txt deleted file mode 100644 index 381265396ef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_AttributeToken_ErrorsIfDoesNotStartWithOpenBracket.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..21)::21 - [@custom Serializable]] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1037(8:0,8 [12] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..21)::13 - [Serializable]] - Gen - SpanEditHandler;Accepts:Any - Text;[Serializable]; - RightBracket;[]]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.cspans.txt deleted file mode 100644 index a2ac1bb1a75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.diag.txt deleted file mode 100644 index 7e7735a128f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1014: The 'custom' directive expects a namespace name. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.stree.txt deleted file mode 100644 index 2e41bb2bbda..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFIncompleteNamespaceTokens.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..15)::15 - [@custom System.] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1014(8:0,8 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..15)::7 - [System.] - Gen - SpanEditHandler;Accepts:Any - Text;[System.]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.cspans.txt deleted file mode 100644 index 0d19696aecd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.diag.txt deleted file mode 100644 index 7e7735a128f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1014: The 'custom' directive expects a namespace name. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.stree.txt deleted file mode 100644 index 246d5fc4e2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleEOFInvalidNamespaceTokens.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..15)::15 - [@custom System<] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1014(8:0,8 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..14)::6 - [System] - Gen - SpanEditHandler;Accepts:Any - Text;[System]; - MarkupElement - [14..15)::1 - MarkupStartTag - [14..15)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.cspans.txt deleted file mode 100644 index 1b4c670d6a8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.diag.txt deleted file mode 100644 index 7e7735a128f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1014: The 'custom' directive expects a namespace name. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.stree.txt deleted file mode 100644 index 9d6f4a44f45..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleIncompleteNamespaceTokens.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..17)::17 - [@custom System.LF] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1014(8:0,8 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..17)::9 - [System.LF] - Gen - SpanEditHandler;Accepts:Any - Text;[System.]; - NewLine;[LF]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.cspans.txt deleted file mode 100644 index 7232de595e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.diag.txt deleted file mode 100644 index 7e7735a128f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1014: The 'custom' directive expects a namespace name. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.stree.txt deleted file mode 100644 index 9b3894020f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_CanHandleInvalidNamespaceTokens.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..17)::17 - [@custom System - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1014(8:0,8 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..14)::6 - [System] - Gen - SpanEditHandler;Accepts:Any - Text;[System]; - MarkupElement - [14..17)::3 - MarkupStartTag - [14..17)::3 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMiscAttributeContent - [15..17)::2 - MarkupTextLiteral - [15..17)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.cspans.txt deleted file mode 100644 index 4d02aa2a122..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [16] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [16] ) -None span at (15:0,15 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (16:0,16 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.diag.txt deleted file mode 100644 index bbc80352499..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,17): Error RZ1017: Unexpected literal following the 'custom' directive. Expected 'line break'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.stree.txt deleted file mode 100644 index b06c7343c3c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsExtraContentAfterDirective.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..23)::23 - [@custom "hello" "world"] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - RazorDirective - [0..16)::16 - Directive:{custom;SingleLine;Unrestricted} [RZ1017(16:0,16 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..16)::15 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..16)::9 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..15)::7 - ["hello"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["hello"]; - UnclassifiedTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [16..23)::7 - ["world"] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - Text;[world]; - DoubleQuote;["]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.cspans.txt deleted file mode 100644 index 59f2a44c20a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [12] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.diag.txt deleted file mode 100644 index c8a41322a6b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1015: The 'custom' directive expects an identifier. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.stree.txt deleted file mode 100644 index ab35f9a32dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsForInvalidMemberTokens.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..20)::20 - [@custom -Some_Member] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1015(8:0,8 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..20)::12 - [-Some_Member] - Gen - SpanEditHandler;Accepts:Any - Text;[-Some_Member]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.cspans.txt deleted file mode 100644 index 66d394bc52f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [15] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [15] ) -Markup span at (15:0,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.diag.txt deleted file mode 100644 index 6bc13c4718c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,16): Error RZ1012: Unexpected end of file following the 'custom' directive. Expected '{'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.stree.txt deleted file mode 100644 index 5a514651129..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenEOFBeforeDirectiveBlockStart.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..15)::15 - [@custom "Hello"] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - RazorDirective - [0..15)::15 - Directive:{custom;CodeBlock;Unrestricted} [RZ1012(15:0,15 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..15)::14 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..15)::8 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..15)::7 - ["Hello"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["Hello"]; - MarkupTextLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.cspans.txt deleted file mode 100644 index 9e0b76b5d1c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [16] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [16] ) -None span at (15:0,15 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (16:0,16 [23] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [39] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.diag.txt deleted file mode 100644 index 8227b741160..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,17): Error RZ1017: Unexpected literal following the 'custom' directive. Expected '{'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.stree.txt deleted file mode 100644 index 344dee531b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenExtraContentBeforeBlockStart.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..39)::39 - [@custom "Hello" World { foo(); bar(); }] - MarkupBlock - [0..39)::39 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - RazorDirective - [0..16)::16 - Directive:{custom;CodeBlock;Unrestricted} [RZ1017(16:0,16 [5] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..16)::15 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..16)::9 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..15)::7 - ["Hello"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["Hello"]; - UnclassifiedTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - MarkupTextLiteral - [16..39)::23 - [World { foo(); bar(); }] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - Whitespace;[ ]; - Text;[{]; - Whitespace;[ ]; - Text;[foo();]; - Whitespace;[ ]; - Text;[bar();]; - Whitespace;[ ]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.cspans.txt deleted file mode 100644 index cf1f2e36d58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [17] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [17] ) -None span at (15:0,15 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Code span at (17:0,17 [0] ) (Accepts:Any) - Parent: Directive block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.diag.txt deleted file mode 100644 index 7d15c3c5e91..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,17): Error RZ1006: The custom block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.stree.txt deleted file mode 100644 index 4938afb99f5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_ErrorsWhenMissingEndBrace.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..17)::17 - [@custom "Hello" {] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - Directive:{custom;CodeBlock;Unrestricted} [RZ1006(16:0,16 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..17)::10 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..15)::7 - ["Hello"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["Hello"]; - UnclassifiedTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [16..17)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[}];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [17..17)::0 - CSharpStatementLiteral - [17..17)::0 - [] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - Marker;[]; - RazorMetaCode - [17..17)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.cspans.txt deleted file mode 100644 index 5429ef434ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Code span at (8:0,8 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (42:0,42 [2] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (44:1,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (44:1,0 [1] ) (Accepts:None) - Parent: Directive block at (44:1,0 [41] ) -MetaCode span at (45:1,1 [6] ) (Accepts:None) - Parent: Directive block at (44:1,0 [41] ) -Code span at (51:1,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (44:1,0 [41] ) -Code span at (52:1,8 [33] ) (Accepts:NonWhitespace) - Parent: Directive block at (44:1,0 [41] ) -Markup span at (85:1,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.stree.txt deleted file mode 100644 index f9d3383434f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedMultipleOccurring_CanHaveDuplicates.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..85)::85 - [@custom System.Text.Encoding.ASCIIEncodingLF@custom System.Text.Encoding.UTF8Encoding] - MarkupBlock - [0..85)::85 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - RazorDirective - [0..44)::44 - Directive:{custom;SingleLine;FileScopedMultipleOccurring} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..44)::43 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..44)::37 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..42)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupEphemeralTextLiteral - [42..44)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [44..85)::41 - RazorDirective - [44..85)::41 - Directive:{custom;SingleLine;FileScopedMultipleOccurring} - CSharpTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [45..85)::40 - RazorMetaCode - [45..51)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [51..85)::34 - CSharpStatementLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [52..85)::33 - [System.Text.Encoding.UTF8Encoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[UTF8Encoding]; - MarkupTextLiteral - [85..85)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.cspans.txt deleted file mode 100644 index 5429ef434ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Code span at (8:0,8 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (42:0,42 [2] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (44:1,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (44:1,0 [1] ) (Accepts:None) - Parent: Directive block at (44:1,0 [41] ) -MetaCode span at (45:1,1 [6] ) (Accepts:None) - Parent: Directive block at (44:1,0 [41] ) -Code span at (51:1,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (44:1,0 [41] ) -Code span at (52:1,8 [33] ) (Accepts:NonWhitespace) - Parent: Directive block at (44:1,0 [41] ) -Markup span at (85:1,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.diag.txt deleted file mode 100644 index 6e707f9d16c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,1): Error RZ2001: The 'custom' directive may only occur once per document. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.stree.txt deleted file mode 100644 index 551e79b27c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScopedSinglyOccurring_ErrorsIfDuplicate.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..85)::85 - [@custom System.Text.Encoding.ASCIIEncodingLF@custom System.Text.Encoding.UTF8Encoding] - MarkupBlock - [0..85)::85 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - RazorDirective - [0..44)::44 - Directive:{custom;SingleLine;FileScopedSinglyOccurring} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..44)::43 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..44)::37 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..42)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupEphemeralTextLiteral - [42..44)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [44..85)::41 - RazorDirective - [44..85)::41 - Directive:{custom;SingleLine;FileScopedSinglyOccurring} [RZ2001(44:1,0 [7] )] - CSharpTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [45..85)::40 - RazorMetaCode - [45..51)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [51..85)::34 - CSharpStatementLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [52..85)::33 - [System.Text.Encoding.UTF8Encoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[UTF8Encoding]; - MarkupTextLiteral - [85..85)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.cspans.txt deleted file mode 100644 index 715c97f1c9d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [44] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Code span at (8:0,8 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (42:0,42 [2] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [44] ) -Markup span at (44:1,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) -Transition span at (44:1,0 [1] ) (Accepts:None) - Parent: Directive block at (44:1,0 [15] ) -MetaCode span at (45:1,1 [9] ) (Accepts:None) - Parent: Directive block at (44:1,0 [15] ) -Code span at (54:1,10 [1] ) (Accepts:Whitespace) - Parent: Directive block at (44:1,0 [15] ) -Code span at (55:1,11 [4] ) (Accepts:NonWhitespace) - Parent: Directive block at (44:1,0 [15] ) -Markup span at (59:1,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [59] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.stree.txt deleted file mode 100644 index e0591c053d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherDirectives.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..59)::59 - [@custom System.Text.Encoding.ASCIIEncodingLF@something Else] - MarkupBlock - [0..59)::59 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - RazorDirective - [0..44)::44 - Directive:{custom;SingleLine;FileScopedSinglyOccurring} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..44)::43 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..44)::37 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..42)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupEphemeralTextLiteral - [42..44)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [44..59)::15 - RazorDirective - [44..59)::15 - Directive:{something;SingleLine;FileScopedMultipleOccurring} - CSharpTransition - [44..45)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [45..59)::14 - RazorMetaCode - [45..54)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[something]; - CSharpCodeBlock - [54..59)::5 - CSharpStatementLiteral - [54..55)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [55..59)::4 - [Else] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Else]; - MarkupTextLiteral - [59..59)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.cspans.txt deleted file mode 100644 index b65e57e7d96..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.cspans.txt +++ /dev/null @@ -1,22 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [43] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [43] ) -Comment span at (2:0,2 [39] ) (Accepts:Any) - Parent: Comment block at (0:0,0 [43] ) -MetaCode span at (41:0,41 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [43] ) -Transition span at (42:0,42 [1] ) (Accepts:None) - Parent: Comment block at (0:0,0 [43] ) -Markup span at (43:0,43 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) -Transition span at (45:1,0 [1] ) (Accepts:None) - Parent: Directive block at (45:1,0 [44] ) -MetaCode span at (46:1,1 [6] ) (Accepts:None) - Parent: Directive block at (45:1,0 [44] ) -Code span at (52:1,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (45:1,0 [44] ) -Code span at (53:1,8 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (45:1,0 [44] ) -Markup span at (87:1,42 [2] ) (Accepts:Whitespace) - Parent: Directive block at (45:1,0 [44] ) -Markup span at (89:2,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) -Transition span at (91:3,0 [1] ) (Accepts:None) - Parent: Directive block at (91:3,0 [17] ) -MetaCode span at (92:3,1 [9] ) (Accepts:None) - Parent: Directive block at (91:3,0 [17] ) -Code span at (101:3,10 [1] ) (Accepts:Whitespace) - Parent: Directive block at (91:3,0 [17] ) -Code span at (102:3,11 [4] ) (Accepts:NonWhitespace) - Parent: Directive block at (91:3,0 [17] ) -Markup span at (106:3,15 [2] ) (Accepts:Whitespace) - Parent: Directive block at (91:3,0 [17] ) -Markup span at (108:4,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) -Markup span at (110:5,0 [3] ) (Accepts:Any) - Parent: Tag block at (110:5,0 [3] ) -Markup span at (113:5,3 [13] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [130] ) -Markup span at (126:5,16 [4] ) (Accepts:Any) - Parent: Tag block at (126:5,16 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.stree.txt deleted file mode 100644 index 22f831367b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_FileScoped_CanBeBeneathOtherWhiteSpaceCommentsAndDirectives.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..130)::130 - [@* There are two directives beneath this *@LF@custom System.Text.Encoding.ASCIIEncodingLFLF@something ElseLFLF

                    This is extra

                    ] - MarkupBlock - [0..130)::130 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorComment - [0..43)::43 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[ There are two directives beneath this ]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupEphemeralTextLiteral - [43..45)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [45..89)::44 - RazorDirective - [45..89)::44 - Directive:{custom;SingleLine;FileScopedSinglyOccurring} - CSharpTransition - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [46..89)::43 - RazorMetaCode - [46..52)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [52..89)::37 - CSharpStatementLiteral - [52..53)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [53..87)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupEphemeralTextLiteral - [87..89)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [89..91)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [91..108)::17 - RazorDirective - [91..108)::17 - Directive:{something;SingleLine;FileScopedMultipleOccurring} - CSharpTransition - [91..92)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [92..108)::16 - RazorMetaCode - [92..101)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[something]; - CSharpCodeBlock - [101..108)::7 - CSharpStatementLiteral - [101..102)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [102..106)::4 - [Else] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Else]; - MarkupEphemeralTextLiteral - [106..108)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [108..110)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [110..130)::20 - MarkupStartTag - [110..113)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [113..126)::13 - [This is extra] - Gen - SpanEditHandler;Accepts:Any - Text;[This]; - Whitespace;[ ]; - Text;[is]; - Whitespace;[ ]; - Text;[extra]; - MarkupEndTag - [126..130)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.cspans.txt deleted file mode 100644 index af411e2d6a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [83] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [81] ) -MetaCode span at (3:1,1 [6] ) (Accepts:None) - Parent: Directive block at (2:1,0 [81] ) -Code span at (9:1,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (2:1,0 [81] ) -Code span at (10:1,8 [71] ) (Accepts:NonWhitespace) - Parent: Directive block at (2:1,0 [81] ) -Markup span at (81:6,6 [2] ) (Accepts:Whitespace) - Parent: Directive block at (2:1,0 [81] ) -Markup span at (83:7,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [83] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.stree.txt deleted file mode 100644 index e2b43fc9670..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_MultilineAttributeToken_BalancesBrackets.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..83)::83 - [LF@custom [SomeCustom(new int[]LF {LF 1,LF 2,LF 3LF }]LF] - MarkupBlock - [0..83)::83 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..83)::81 - RazorDirective - [2..83)::81 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..83)::80 - RazorMetaCode - [3..9)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [9..83)::74 - CSharpStatementLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [10..81)::71 - [[SomeCustom(new int[]LF {LF 1,LF 2,LF 3LF }]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftBracket;[[]; - Identifier;[SomeCustom]; - LeftParenthesis;[(]; - Keyword;[new]; - Whitespace;[ ]; - Keyword;[int]; - LeftBracket;[[]; - RightBracket;[]]; - NewLine;[LF]; - Whitespace;[ ]; - LeftBrace;[{]; - NewLine;[LF]; - Whitespace;[ ]; - IntegerLiteral;[1]; - Comma;[,]; - NewLine;[LF]; - Whitespace;[ ]; - IntegerLiteral;[2]; - Comma;[,]; - NewLine;[LF]; - Whitespace;[ ]; - IntegerLiteral;[3]; - NewLine;[LF]; - Whitespace;[ ]; - RightBrace;[}]; - RightBracket;[]]; - MarkupEphemeralTextLiteral - [81..83)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [83..83)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.cspans.txt deleted file mode 100644 index f44c1c18b87..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [19] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [19] ) -None span at (15:0,15 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [19] ) -MetaCode span at (16:0,16 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (17:0,17 [2] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.stree.txt deleted file mode 100644 index bd14b1f20cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_NoErrorsSemicolonAfterDirective.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..19)::19 - [@custom "hello" ; ] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - RazorDirective - [0..19)::19 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..19)::18 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..19)::12 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..15)::7 - ["hello"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["hello"]; - UnclassifiedTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:Whitespace - Semicolon;[;]; - MarkupEphemeralTextLiteral - [17..19)::2 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.cspans.txt deleted file mode 100644 index 82186c467a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.diag.txt deleted file mode 100644 index b7818aa7a29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1016: The 'custom' directive expects a string surrounded by double quotes. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.stree.txt deleted file mode 100644 index ec8ed8b511a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForNonStringValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..14)::14 - [@custom {foo?}] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1016(8:0,8 [1] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..14)::6 - [{foo?}] - Gen - SpanEditHandler;Accepts:Any - Text;[{foo]; - QuestionMark;[?]; - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.cspans.txt deleted file mode 100644 index 9e73b545119..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.diag.txt deleted file mode 100644 index b7818aa7a29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1016: The 'custom' directive expects a string surrounded by double quotes. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.stree.txt deleted file mode 100644 index 6ad2990a4e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForPartialQuotedValue.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..16)::16 - [@custom AString"] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1016(8:0,8 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [AString"] - Gen - SpanEditHandler;Accepts:Any - Text;[AString]; - DoubleQuote;["]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.cspans.txt deleted file mode 100644 index d5d9f27aef1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.diag.txt deleted file mode 100644 index b7818aa7a29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1016: The 'custom' directive expects a string surrounded by double quotes. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.stree.txt deleted file mode 100644 index eef7233302b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForSingleQuotedValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..17)::17 - [@custom 'AString'] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1016(8:0,8 [9] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..17)::9 - ['AString'] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - Text;[AString]; - SingleQuote;[']; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.cspans.txt deleted file mode 100644 index 5d403c89840..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [7] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.diag.txt deleted file mode 100644 index b7818aa7a29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1016: The 'custom' directive expects a string surrounded by double quotes. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.stree.txt deleted file mode 100644 index 651feb6e9e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_StringToken_ParserErrorForUnquotedValue.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..15)::15 - [@custom AString] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} [RZ1016(8:0,8 [7] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..15)::7 - [AString] - Gen - SpanEditHandler;Accepts:Any - Text;[AString]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.cspans.txt deleted file mode 100644 index 263c7efaa39..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [17] ) -Code span at (8:0,8 [9] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (17:0,17 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.diag.txt deleted file mode 100644 index 653c80c1d13..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ1011: The 'custom' directives value(s) must be separated by whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.stree.txt deleted file mode 100644 index f3d06f68b9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_TokensMustBeSeparatedBySpace.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..26)::26 - [@custom "string1""string2"] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - Directive:{custom;SingleLine;Unrestricted} [RZ1011(17:0,17 [9] )] - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..17)::10 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..17)::9 - ["string1"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["string1"]; - MarkupTextLiteral - [17..26)::9 - ["string2"] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - Text;[string2]; - DoubleQuote;["]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.cspans.txt deleted file mode 100644 index 7911e989b0c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [102] ) -Transition span at (2:1,0 [1] ) (Accepts:None) - Parent: Directive block at (2:1,0 [24] ) -MetaCode span at (3:1,1 [6] ) (Accepts:None) - Parent: Directive block at (2:1,0 [24] ) -Code span at (9:1,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (2:1,0 [24] ) -Code span at (10:1,8 [14] ) (Accepts:NonWhitespace) - Parent: Directive block at (2:1,0 [24] ) -Markup span at (24:1,22 [2] ) (Accepts:Whitespace) - Parent: Directive block at (2:1,0 [24] ) -Markup span at (26:2,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [102] ) -Transition span at (26:2,0 [1] ) (Accepts:None) - Parent: Directive block at (26:2,0 [76] ) -MetaCode span at (27:2,1 [6] ) (Accepts:None) - Parent: Directive block at (26:2,0 [76] ) -Code span at (33:2,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (26:2,0 [76] ) -Code span at (34:2,8 [66] ) (Accepts:NonWhitespace) - Parent: Directive block at (26:2,0 [76] ) -Markup span at (100:2,74 [2] ) (Accepts:Whitespace) - Parent: Directive block at (26:2,0 [76] ) -Markup span at (102:3,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [102] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.stree.txt deleted file mode 100644 index 8ae8662dd68..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsAttributeTokens.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..102)::102 - [LF@custom [Serializable]LF@custom [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)]LF] - MarkupBlock - [0..102)::102 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..26)::24 - RazorDirective - [2..26)::24 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [2..3)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [3..26)::23 - RazorMetaCode - [3..9)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [9..26)::17 - CSharpStatementLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [10..24)::14 - [[Serializable]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftBracket;[[]; - Identifier;[Serializable]; - RightBracket;[]]; - MarkupEphemeralTextLiteral - [24..26)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [26..102)::76 - RazorDirective - [26..102)::76 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [27..102)::75 - RazorMetaCode - [27..33)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [33..102)::69 - CSharpStatementLiteral - [33..34)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [34..100)::66 - [[DllImport("user32.dll", SetLastError=false, ExactSpelling=false)]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - LeftBracket;[[]; - Identifier;[DllImport]; - LeftParenthesis;[(]; - StringLiteral;["user32.dll"]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[SetLastError]; - Assign;[=]; - Keyword;[false]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[ExactSpelling]; - Assign;[=]; - Keyword;[false]; - RightParenthesis;[)]; - RightBracket;[]]; - MarkupEphemeralTextLiteral - [100..102)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [102..102)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.cspans.txt deleted file mode 100644 index 234653b152e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [32] ) -Code span at (8:0,8 [6] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [32] ) -None span at (14:0,14 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [32] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Code span at (16:0,16 [15] ) (Accepts:Any) - Parent: Directive block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.stree.txt deleted file mode 100644 index c960c4e92dd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsCodeBlocks.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..32)::32 - [@custom "Name" { foo(); bar(); }] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - RazorDirective - [0..32)::32 - Directive:{custom;CodeBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..32)::31 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..32)::25 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..14)::6 - ["Name"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["Name"]; - UnclassifiedTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [15..16)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [16..31)::15 - CSharpStatementLiteral - [16..31)::15 - [ foo(); bar(); ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.cspans.txt deleted file mode 100644 index 69febe98673..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [19] ) -Code span at (8:0,8 [11] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.stree.txt deleted file mode 100644 index d2d51198cb4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMemberTokens.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..19)::19 - [@custom Some_Member] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - RazorDirective - [0..19)::19 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..19)::18 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..19)::12 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..19)::11 - [Some_Member] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Some_Member]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.cspans.txt deleted file mode 100644 index 9a307ed573f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [64] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [64] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [64] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [64] ) -Code span at (8:0,8 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [64] ) -Code span at (42:0,42 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [64] ) -Code span at (43:0,43 [11] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [64] ) -Markup span at (54:0,54 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [64] ) -Code span at (55:0,55 [9] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [64] ) -Markup span at (64:0,64 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [64] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.stree.txt deleted file mode 100644 index d2f7b39c4db..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsMultipleTokens.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..64)::64 - [@custom System.Text.Encoding.ASCIIEncoding Some_Member "AString"] - MarkupBlock - [0..64)::64 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..64)::64 - RazorDirective - [0..64)::64 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..64)::63 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..64)::57 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..42)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - CSharpStatementLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [43..54)::11 - [Some_Member] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Some_Member]; - MarkupEphemeralTextLiteral - [54..55)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [55..64)::9 - ["AString"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["AString"]; - MarkupTextLiteral - [64..64)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.cspans.txt deleted file mode 100644 index ccb11164beb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [33] ) -Code span at (8:0,8 [8] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [33] ) -None span at (16:0,16 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [33] ) -MetaCode span at (17:0,17 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (18:0,18 [14] ) -Markup span at (19:0,19 [3] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [3] ) -Markup span at (22:0,22 [5] ) (Accepts:Any) - Parent: Markup block at (18:0,18 [14] ) -Markup span at (27:0,27 [4] ) (Accepts:Any) - Parent: Tag block at (27:0,27 [4] ) -Markup span at (31:0,31 [1] ) (Accepts:Any) - Parent: Markup block at (18:0,18 [14] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.stree.txt deleted file mode 100644 index b31e7e43254..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsRazorBlocks.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..33)::33 - [@custom "Header" {

                    F{o}o

                    }] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - RazorDirective - [0..33)::33 - Directive:{custom;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..33)::32 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..33)::26 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..16)::8 - ["Header"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["Header"]; - UnclassifiedTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [17..18)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [18..32)::14 - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [19..31)::12 - MarkupStartTag - [19..22)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [22..27)::5 - [F{o}o] - Gen - SpanEditHandler;Accepts:Any - Text;[F]; - Text;[{]; - Text;[o]; - Text;[}]; - Text;[o]; - MarkupEndTag - [27..31)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.cspans.txt deleted file mode 100644 index e3413d97ee3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [17] ) -Code span at (8:0,8 [9] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.stree.txt deleted file mode 100644 index 77987a903f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsStringTokens.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..17)::17 - [@custom "AString"] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..17)::10 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..17)::9 - ["AString"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["AString"]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.cspans.txt deleted file mode 100644 index fd5256e31fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [42] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [42] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [42] ) -Code span at (8:0,8 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [42] ) -Markup span at (42:0,42 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.stree.txt deleted file mode 100644 index ba28ef0a75d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/DirectiveDescriptor_UnderstandsTypeTokens.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..42)::42 - [@custom System.Text.Encoding.ASCIIEncoding] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - RazorDirective - [0..42)::42 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..42)::41 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..42)::35 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..42)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.cspans.txt deleted file mode 100644 index 35eaf0bb6c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [6] ) -MetaCode span at (1:0,1 [5] ) (Accepts:None) - Parent: Directive block at (0:0,0 [6] ) -Markup span at (6:0,6 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.stree.txt deleted file mode 100644 index 006f105357c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Class.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..6)::6 - [@class] - MarkupBlock - [0..6)::6 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - RazorDirective - [0..6)::6 - Directive:{class;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..6)::5 - RazorMetaCode - [1..6)::5 - Gen - SpanEditHandler;Accepts:None - Keyword;[class]; - CSharpCodeBlock - [6..6)::0 - MarkupTextLiteral - [6..6)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.cspans.txt deleted file mode 100644 index 65fa84c6abc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [9] ) (Accepts:None) - Parent: Directive block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.stree.txt deleted file mode 100644 index 9b940ce6e5b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_CanUseReservedWord_Namespace.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..10)::10 - [@namespace] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - RazorDirective - [0..10)::10 - Directive:{namespace;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..10)::9 - RazorMetaCode - [1..10)::9 - Gen - SpanEditHandler;Accepts:None - Keyword;[namespace]; - CSharpCodeBlock - [10..10)::0 - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.cspans.txt deleted file mode 100644 index 71420aa95e2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Code span at (2:0,2 [7] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.stree.txt deleted file mode 100644 index 06c87e75343..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Directives_ReservedWordInsideCodeBlock.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..10)::10 - [@{ class }] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - CSharpStatementLiteral - [2..9)::7 - [ class ] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Whitespace;[ ]; - Keyword;[class]; - Whitespace;[ ]; - RazorMetaCode - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.cspans.txt deleted file mode 100644 index 88828c35345..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -MetaCode span at (1:0,1 [9] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [14] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -Code span at (12:0,12 [1] ) (Accepts:Any) - Parent: Directive block at (0:0,0 [14] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [14] ) -Markup span at (14:0,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.stree.txt deleted file mode 100644 index 4a732dad094..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/EmptyFunctionsDirective.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..14)::14 - [@functions { }] - MarkupBlock - [0..14)::14 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..14)::14 - RazorDirective - [0..14)::14 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..14)::13 - RazorMetaCode - [1..10)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [10..14)::4 - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [12..13)::1 - CSharpStatementLiteral - [12..13)::1 - [ ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - Whitespace;[ ]; - RazorMetaCode - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt deleted file mode 100644 index 80b5cd9e14b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Code span at (2:1,0 [2] ) (Accepts:Any) - Parent: Statement block at (2:1,0 [44] ) -Transition span at (4:1,2 [1] ) (Accepts:None) - Parent: Directive block at (4:1,2 [42] ) -MetaCode span at (5:1,3 [6] ) (Accepts:None) - Parent: Directive block at (4:1,2 [42] ) -Code span at (11:1,9 [1] ) (Accepts:Whitespace) - Parent: Directive block at (4:1,2 [42] ) -Code span at (12:1,10 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (4:1,2 [42] ) -Markup span at (46:1,44 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt deleted file mode 100644 index 163880ac979..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveDoesNotErorrIfNotAtStartOfLineBecauseOfWhitespace.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..46)::46 - [LF @custom System.Text.Encoding.ASCIIEncoding] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - CSharpCodeBlock - [2..46)::44 - CSharpEphemeralTextLiteral - [2..4)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorDirective - [4..46)::42 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [4..5)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [5..46)::41 - RazorMetaCode - [5..11)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [11..46)::35 - CSharpStatementLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [12..46)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.cspans.txt deleted file mode 100644 index 2b00010889d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Directive block at (3:0,3 [44] ) -MetaCode span at (4:0,4 [6] ) (Accepts:None) - Parent: Directive block at (3:0,3 [44] ) -Code span at (10:0,10 [1] ) (Accepts:Whitespace) - Parent: Directive block at (3:0,3 [44] ) -Code span at (11:0,11 [34] ) (Accepts:NonWhitespace) - Parent: Directive block at (3:0,3 [44] ) -Markup span at (45:0,45 [2] ) (Accepts:Whitespace) - Parent: Directive block at (3:0,3 [44] ) -Markup span at (47:1,0 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [48] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.diag.txt deleted file mode 100644 index 1ca018d1a5e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ2005: The 'custom` directive must appear at the start of the line. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.stree.txt deleted file mode 100644 index de8aa133865..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/ExtensibleDirectiveErrorsIfNotAtStartOfLine.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..48)::48 - [{ @custom System.Text.Encoding.ASCIIEncodingLF}] - MarkupBlock - [0..48)::48 - MarkupTextLiteral - [0..3)::3 - [{ ] - Gen - SpanEditHandler;Accepts:Any - Text;[{]; - Whitespace;[ ]; - CSharpCodeBlock - [3..47)::44 - RazorDirective - [3..47)::44 - Directive:{custom;SingleLine;Unrestricted} [RZ2005(4:0,4 [6] )] - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [4..47)::43 - RazorMetaCode - [4..10)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [10..47)::37 - CSharpStatementLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [11..45)::34 - [System.Text.Encoding.ASCIIEncoding] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Text]; - Dot;[.]; - Identifier;[Encoding]; - Dot;[.]; - Identifier;[ASCIIEncoding]; - MarkupEphemeralTextLiteral - [45..47)::2 - [LF] - Gen - SpanEditHandler;Accepts:Whitespace - NewLine;[LF]; - MarkupTextLiteral - [47..48)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.cspans.txt deleted file mode 100644 index 79d48099bf1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [8] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Code span at (9:0,9 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [22] ) -Code span at (10:0,10 [12] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.stree.txt deleted file mode 100644 index 84882ce25e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsArrays.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..22)::22 - [@inherits string[[]][]] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - RazorDirective - [0..22)::22 - Directive:{inherits;SingleLine;FileScopedSinglyOccurring} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..22)::21 - RazorMetaCode - [1..9)::8 - Gen - SpanEditHandler;Accepts:None - Identifier;[inherits]; - CSharpCodeBlock - [9..22)::13 - CSharpStatementLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [10..22)::12 - [string[[]][]] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Keyword;[string]; - LeftBracket;[[]; - LeftBracket;[[]; - RightBracket;[]]; - RightBracket;[]]; - LeftBracket;[[]; - RightBracket;[]]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.cspans.txt deleted file mode 100644 index 4a73c4c8caf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [87] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [87] ) -MetaCode span at (1:0,1 [8] ) (Accepts:None) - Parent: Directive block at (0:0,0 [87] ) -Code span at (9:0,9 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [87] ) -Code span at (10:0,10 [77] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [87] ) -Markup span at (87:0,87 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [87] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.stree.txt deleted file mode 100644 index b8cf6049cb5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsNestedGenerics.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..87)::87 - [@inherits System.Web.Mvc.WebViewPage>] - MarkupBlock - [0..87)::87 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..87)::87 - RazorDirective - [0..87)::87 - Directive:{inherits;SingleLine;FileScopedSinglyOccurring} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..87)::86 - RazorMetaCode - [1..9)::8 - Gen - SpanEditHandler;Accepts:None - Identifier;[inherits]; - CSharpCodeBlock - [9..87)::78 - CSharpStatementLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [10..87)::77 - [System.Web.Mvc.WebViewPage>] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[Web]; - Dot;[.]; - Identifier;[Mvc]; - Dot;[.]; - Identifier;[WebViewPage]; - LessThan;[<]; - Identifier;[IEnumerable]; - LessThan;[<]; - Identifier;[MvcApplication2]; - Dot;[.]; - Identifier;[Models]; - Dot;[.]; - Identifier;[RegisterModel]; - GreaterThan;[>]; - GreaterThan;[>]; - MarkupTextLiteral - [87..87)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.cspans.txt deleted file mode 100644 index 0be18525ff8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [8] ) (Accepts:None) - Parent: Directive block at (0:0,0 [16] ) -Code span at (9:0,9 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [16] ) -Code span at (10:0,10 [6] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [16] ) -Markup span at (16:0,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.stree.txt deleted file mode 100644 index 12fe4f3b8ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/InheritsDirectiveSupportsTypeKeywords.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..16)::16 - [@inherits string] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - RazorDirective - [0..16)::16 - Directive:{inherits;SingleLine;FileScopedSinglyOccurring} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..16)::15 - RazorMetaCode - [1..9)::8 - Gen - SpanEditHandler;Accepts:None - Identifier;[inherits]; - CSharpCodeBlock - [9..16)::7 - CSharpStatementLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [10..16)::6 - [string] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Keyword;[string]; - MarkupTextLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.cspans.txt deleted file mode 100644 index 2afc521ace7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [8] ) -Markup span at (8:0,8 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.stree.txt deleted file mode 100644 index 592926662bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_AreSkipped.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..8)::8 - [@custom ] - MarkupBlock - [0..8)::8 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - RazorDirective - [0..8)::8 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..8)::7 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..8)::1 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - MarkupTextLiteral - [8..8)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.cspans.txt deleted file mode 100644 index 1b7631b73f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [29] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [29] ) -Code span at (8:0,8 [21] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.stree.txt deleted file mode 100644 index 455a063f9d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithBraces_AreParsed.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..29)::29 - [@custom "{formaction}?/{id}?"] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - RazorDirective - [0..29)::29 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..29)::28 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..29)::22 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..29)::21 - ["{formaction}?/{id}?"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["{formaction}?/{id}?"]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.cspans.txt deleted file mode 100644 index d4a6305e233..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [43] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [43] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [43] ) -Code span at (8:0,8 [21] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [43] ) -Code span at (29:0,29 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [43] ) -Code span at (30:0,30 [13] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [43] ) -Markup span at (43:0,43 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.stree.txt deleted file mode 100644 index de4cde9da7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithMultipleOptionalTokens_AreParsed.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..43)::43 - [@custom "{formaction}?/{id}?" System.String] - MarkupBlock - [0..43)::43 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..43)::43 - RazorDirective - [0..43)::43 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..43)::42 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..43)::36 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..29)::21 - ["{formaction}?/{id}?"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["{formaction}?/{id}?"]; - CSharpStatementLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [30..43)::13 - [System.String] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[System]; - Dot;[.]; - Identifier;[String]; - MarkupTextLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.cspans.txt deleted file mode 100644 index bd10c900bae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [22] ) -Code span at (8:0,8 [14] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.stree.txt deleted file mode 100644 index ccd26b5cbe2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalDirectiveTokens_WithSimpleTokens_AreParsed.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..22)::22 - [@custom "simple-value"] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - RazorDirective - [0..22)::22 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..22)::21 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..22)::15 - MarkupEphemeralTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..22)::14 - ["simple-value"] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - StringLiteral;["simple-value"]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.cspans.txt deleted file mode 100644 index 0fe58ec33c6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [13] ) (Accepts:None) - Parent: Directive block at (0:0,0 [27] ) -Code span at (14:0,14 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [27] ) -Code span at (15:0,15 [12] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.stree.txt deleted file mode 100644 index adf43bdc9d9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMemberSpecified_IsParsed.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..27)::27 - [@TestDirective PropertyName] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - RazorDirective - [0..27)::27 - Directive:{TestDirective;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..27)::26 - RazorMetaCode - [1..14)::13 - Gen - SpanEditHandler;Accepts:None - Identifier;[TestDirective]; - CSharpCodeBlock - [14..27)::13 - CSharpStatementLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [15..27)::12 - [PropertyName] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[PropertyName]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.cspans.txt deleted file mode 100644 index de713137019..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [13] ) (Accepts:None) - Parent: Directive block at (0:0,0 [15] ) -Code span at (14:0,14 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [15] ) -Code span at (15:0,15 [0] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [15] ) -Markup span at (15:0,15 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.stree.txt deleted file mode 100644 index 7a6be62a85e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/OptionalMemberTokens_WithMissingMember_IsParsed.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..15)::15 - [@TestDirective ] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - RazorDirective - [0..15)::15 - Directive:{TestDirective;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..15)::14 - RazorMetaCode - [1..14)::13 - Gen - SpanEditHandler;Accepts:None - Identifier;[TestDirective]; - CSharpCodeBlock - [14..15)::1 - CSharpStatementLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [15..15)::0 - [] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Marker;[]; - MarkupTextLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.cspans.txt deleted file mode 100644 index 556affaba58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -MetaCode span at (1:0,1 [9] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -None span at (10:0,10 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [28] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -Code span at (12:0,12 [15] ) (Accepts:Any) - Parent: Directive block at (0:0,0 [28] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [28] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.stree.txt deleted file mode 100644 index efc89067b20..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_FunctionsDirective.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..28)::28 - [@functions { foo(); bar(); }] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - RazorDirective - [0..28)::28 - Directive:{functions;CodeBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..28)::27 - RazorMetaCode - [1..10)::9 - Gen - SpanEditHandler;Accepts:None - Identifier;[functions]; - CSharpCodeBlock - [10..28)::18 - UnclassifiedTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [11..12)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - CSharpCodeBlock - [12..27)::15 - CSharpStatementLiteral - [12..27)::15 - [ foo(); bar(); ] - Gen - CodeBlockEditHandler;Accepts:Any;CodeBlock - Whitespace;[ ]; - Identifier;[foo]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - Identifier;[bar]; - LeftParenthesis;[(]; - RightParenthesis;[)]; - Semicolon;[;]; - Whitespace;[ ]; - RazorMetaCode - [27..28)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.cspans.txt deleted file mode 100644 index c3fbe4e475d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [7] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Code span at (8:0,8 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [32] ) -Code span at (9:0,9 [6] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [32] ) -None span at (15:0,15 [1] ) (Accepts:AllWhitespace) - Parent: Directive block at (0:0,0 [32] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [14] ) -Markup span at (18:0,18 [3] ) (Accepts:Any) - Parent: Tag block at (18:0,18 [3] ) -Markup span at (21:0,21 [5] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [14] ) -Markup span at (26:0,26 [4] ) (Accepts:Any) - Parent: Tag block at (26:0,26 [4] ) -Markup span at (30:0,30 [1] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [14] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.stree.txt deleted file mode 100644 index 4e1eeb325a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parse_SectionDirective.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..32)::32 - [@section Header {

                    F{o}o

                    }] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - RazorDirective - [0..32)::32 - Directive:{section;RazorBlock;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..32)::31 - RazorMetaCode - [1..8)::7 - Gen - SpanEditHandler;Accepts:None - Identifier;[section]; - CSharpCodeBlock - [8..32)::24 - CSharpStatementLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [9..15)::6 - [Header] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[Header]; - UnclassifiedTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:AllWhitespace - Whitespace;[ ]; - RazorMetaCode - [16..17)::1 - Gen - AutoCompleteEditHandler;Accepts:None,AutoComplete:[];AtEnd - LeftBrace;[{]; - MarkupBlock - [17..31)::14 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [18..30)::12 - MarkupStartTag - [18..21)::3 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [21..26)::5 - [F{o}o] - Gen - SpanEditHandler;Accepts:Any - Text;[F]; - Text;[{]; - Text;[o]; - Text;[}]; - Text;[o]; - MarkupEndTag - [26..30)::4 - [

                    ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.cspans.txt deleted file mode 100644 index 93ef3953572..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [29] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [29] ) -Code span at (8:0,8 [21] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.stree.txt deleted file mode 100644 index 4e03f5befe0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithMultipleSegments.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..29)::29 - [@custom BaseNamespace.Foo.Bar] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - RazorDirective - [0..29)::29 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..29)::28 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..29)::22 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..29)::21 - [BaseNamespace.Foo.Bar] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[BaseNamespace]; - Dot;[.]; - Identifier;[Foo]; - Dot;[.]; - Identifier;[Bar]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.cspans.txt deleted file mode 100644 index e096a234231..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [6] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Code span at (7:0,7 [1] ) (Accepts:Whitespace) - Parent: Directive block at (0:0,0 [21] ) -Code span at (8:0,8 [13] ) (Accepts:NonWhitespace) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.stree.txt deleted file mode 100644 index 1d64e3ae926..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/Parser_ParsesNamespaceDirectiveToken_WithSingleSegment.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..21)::21 - [@custom BaseNamespace] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - RazorDirective - [0..21)::21 - Directive:{custom;SingleLine;Unrestricted} - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..21)::20 - RazorMetaCode - [1..7)::6 - Gen - SpanEditHandler;Accepts:None - Identifier;[custom]; - CSharpCodeBlock - [7..21)::14 - CSharpStatementLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Whitespace - Whitespace;[ ]; - CSharpStatementLiteral - [8..21)::13 - [BaseNamespace] - Gen - DirectiveTokenEditHandler;Accepts:NonWhitespace - Identifier;[BaseNamespace]; - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt deleted file mode 100644 index b0884a958aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Code span at (17:0,17 [4] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt deleted file mode 100644 index 8420d6c3401..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,21): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt deleted file mode 100644 index 9ea983ad50a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..21)::21 - [@removeTagHelper Foo"] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - RazorDirective - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..21)::20 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..21)::5 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..21)::4 - [Foo"] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - StringLiteral;["];RZ1000(20:0,20 [1] ) - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.cspans.txt deleted file mode 100644 index a3ad9a13946..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Code span at (17:0,17 [3] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.stree.txt deleted file mode 100644 index 6ca3c0b4608..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_InvalidLookupText_AddsError.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..20)::20 - [@removeTagHelper Foo] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - RazorDirective - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..20)::19 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..20)::4 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.cspans.txt deleted file mode 100644 index 0dfe38be7c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Code span at (17:0,17 [2] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.stree.txt deleted file mode 100644 index 1fcd5587a59..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_NoValue_Invalid.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..19)::19 - [@removeTagHelper ""] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - RazorDirective - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..19)::18 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..19)::3 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..19)::2 - [""] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;[""]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.cspans.txt deleted file mode 100644 index a8d324c3dc1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Code span at (17:0,17 [0] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.stree.txt deleted file mode 100644 index 20a0666a001..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_RequiresValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..17)::17 - [@removeTagHelper ] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Marker;[]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.cspans.txt deleted file mode 100644 index d9553ee9ffc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [25] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [25] ) -Code span at (17:0,17 [8] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.stree.txt deleted file mode 100644 index 7584b6d08b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SingleQuotes_AddsError.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..25)::25 - [@removeTagHelper '*, Foo'] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - RazorDirective - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..25)::24 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..25)::9 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..25)::8 - ['*, Foo'] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - CharacterLiteral;['*, Foo']; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt deleted file mode 100644 index b0884a958aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Code span at (17:0,17 [4] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt deleted file mode 100644 index c1d5bcd34ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt deleted file mode 100644 index 41c54a8e5b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..21)::21 - [@removeTagHelper "Foo] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - RazorDirective - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..21)::20 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..21)::5 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..21)::4 - ["Foo] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["Foo];RZ1000(17:0,17 [1] ) - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.cspans.txt deleted file mode 100644 index 71bf30f73f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [35] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [35] ) -Markup span at (16:0,16 [5] ) (Accepts:None) - Parent: Directive block at (0:0,0 [35] ) -Code span at (21:0,21 [14] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [35] ) -Markup span at (35:0,35 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.stree.txt deleted file mode 100644 index e3062d1894e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_SupportsSpaces.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..35)::35 - [@removeTagHelper Foo, Bar ] - MarkupBlock - [0..35)::35 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..35)::35 - RazorDirective - [0..35)::35 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..35)::34 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..35)::19 - MarkupTextLiteral - [16..21)::5 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [21..35)::14 - [Foo, Bar ] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - Comma;[,]; - Whitespace;[ ]; - Identifier;[Bar]; - Whitespace;[ ]; - MarkupTextLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt deleted file mode 100644 index b919e2b98ce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Code span at (17:0,17 [5] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt deleted file mode 100644 index 92659f07696..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/RemoveTagHelperDirective_WithQuotes_InvalidLookupText_AddsError.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..22)::22 - [@removeTagHelper "Foo"] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - RazorDirective - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..22)::21 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[removeTagHelper]; - CSharpCodeBlock - [16..22)::6 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..22)::5 - ["Foo"] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["Foo"]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt deleted file mode 100644 index 06a4f306a12..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [24] ) -Code span at (17:0,17 [7] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [24] ) -Markup span at (24:0,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt deleted file mode 100644 index 7628ab1cb86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,24): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt deleted file mode 100644 index 757c8c81f03..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_EndQuoteRequiresDoubleQuotesAroundValue.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..24)::24 - [@tagHelperPrefix Foo "] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - RazorDirective - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..24)::23 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[tagHelperPrefix]; - CSharpCodeBlock - [16..24)::8 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..24)::7 - [Foo "] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - Whitespace;[ ]; - StringLiteral;["];RZ1000(23:0,23 [1] ) - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.cspans.txt deleted file mode 100644 index 0dfe38be7c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [19] ) -Code span at (17:0,17 [2] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.stree.txt deleted file mode 100644 index ee06179c7f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_NoValueSucceeds.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..19)::19 - [@tagHelperPrefix ""] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - RazorDirective - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..19)::18 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[tagHelperPrefix]; - CSharpCodeBlock - [16..19)::3 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..19)::2 - [""] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;[""]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.cspans.txt deleted file mode 100644 index a8d324c3dc1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [17] ) -Code span at (17:0,17 [0] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.stree.txt deleted file mode 100644 index 0e86bb2dc2c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_RequiresValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..17)::17 - [@tagHelperPrefix ] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - RazorDirective - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..17)::16 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[tagHelperPrefix]; - CSharpCodeBlock - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Marker;[]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt deleted file mode 100644 index b0884a958aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [21] ) -Code span at (17:0,17 [4] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [21] ) -Markup span at (21:0,21 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt deleted file mode 100644 index c1d5bcd34ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt deleted file mode 100644 index 3e26d675c8b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_StartQuoteRequiresDoubleQuotesAroundValue.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..21)::21 - [@tagHelperPrefix "Foo] - MarkupBlock - [0..21)::21 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - RazorDirective - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..21)::20 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[tagHelperPrefix]; - CSharpCodeBlock - [16..21)::5 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..21)::4 - ["Foo] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["Foo];RZ1000(17:0,17 [1] ) - MarkupTextLiteral - [21..21)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.cspans.txt deleted file mode 100644 index a3ad9a13946..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [20] ) -Code span at (17:0,17 [3] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.stree.txt deleted file mode 100644 index 8b875e28514..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_Succeeds.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..20)::20 - [@tagHelperPrefix Foo] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - RazorDirective - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..20)::19 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[tagHelperPrefix]; - CSharpCodeBlock - [16..20)::4 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - Identifier;[Foo]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.cspans.txt deleted file mode 100644 index b919e2b98ce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [15] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Directive block at (0:0,0 [22] ) -Code span at (17:0,17 [5] ) (Accepts:AnyExceptNewline) - Parent: Directive block at (0:0,0 [22] ) -Markup span at (22:0,22 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.stree.txt deleted file mode 100644 index 1bbaa5ea099..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/RazorDirectivesTest/TagHelperPrefixDirective_WithQuotes_Succeeds.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..22)::22 - [@tagHelperPrefix "Foo"] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - RazorDirective - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - RazorDirectiveBody - [1..22)::21 - RazorMetaCode - [1..16)::15 - Gen - SpanEditHandler;Accepts:None - Identifier;[tagHelperPrefix]; - CSharpCodeBlock - [16..22)::6 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [17..22)::5 - ["Foo"] - Gen - SpanEditHandler;Accepts:AnyExceptNewline - StringLiteral;["Foo"]; - MarkupTextLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.stree.txt deleted file mode 100644 index 519c877aebc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..15)::15 - [] - MarkupBlock - [0..15)::15 - MarkupTagHelperElement - [0..15)::15 - input[StartTagAndEndTag] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [7..15)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.tspans.txt deleted file mode 100644 index 16070edad3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [15] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.stree.txt deleted file mode 100644 index 7e6e3e333d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..9)::9 - [] - MarkupBlock - [0..9)::9 - MarkupTagHelperElement - [0..9)::9 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..9)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.tspans.txt deleted file mode 100644 index 455dab9ef7a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [9] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.cspans.txt deleted file mode 100644 index b60f44ce860..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.stree.txt deleted file mode 100644 index 57e7823a040..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..19)::19 - [] - MarkupBlock - [0..19)::19 - MarkupTagHelperElement - [0..19)::19 - input[StartTagOnly] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..19)::19 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - type - SingleQuotes - Unbound - [ type='text'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..11)::4 - [type] - Gen - SpanEditHandler;Accepts:Any - Text;[type]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - MarkupLiteralAttributeValue - [13..17)::4 - [text] - MarkupTextLiteral - [13..17)::4 - [text] - Gen - SpanEditHandler;Accepts:Any - Text;[text]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.tspans.txt deleted file mode 100644 index 1ad745ab0a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.stree.txt deleted file mode 100644 index 8bb6ec3a6bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..14)::14 - [] - MarkupBlock - [0..14)::14 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTagHelperElement - [7..14)::7 - input[StartTagOnly] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [7..14)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.tspans.txt deleted file mode 100644 index 4668eab0f5b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper1 - InputTagHelper2 -TagHelper span at (7:0,7 [7] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.cspans.txt deleted file mode 100644 index a258c3ec2ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.stree.txt deleted file mode 100644 index 86a6919a3b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..27)::27 - [] - MarkupBlock - [0..27)::27 - MarkupTagHelperElement - [0..27)::27 - input[StartTagAndEndTag] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..19)::19 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - type - SingleQuotes - Unbound - [ type='text'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..11)::4 - [type] - Gen - SpanEditHandler;Accepts:Any - Text;[type]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - MarkupLiteralAttributeValue - [13..17)::4 - [text] - MarkupTextLiteral - [13..17)::4 - [text] - Gen - SpanEditHandler;Accepts:Any - Text;[text]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [19..27)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.tspans.txt deleted file mode 100644 index 91e8a128728..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [27] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.stree.txt deleted file mode 100644 index 7e6e3e333d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..9)::9 - [] - MarkupBlock - [0..9)::9 - MarkupTagHelperElement - [0..9)::9 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..9)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.tspans.txt deleted file mode 100644 index 455dab9ef7a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [9] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.stree.txt deleted file mode 100644 index 7e6e3e333d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..9)::9 - [] - MarkupBlock - [0..9)::9 - MarkupTagHelperElement - [0..9)::9 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..9)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.tspans.txt deleted file mode 100644 index 455dab9ef7a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [9] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.cspans.txt deleted file mode 100644 index e554bcd255a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (7:0,7 [8] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.stree.txt deleted file mode 100644 index 3d9d0fd71c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..15)::15 - [] - MarkupBlock - [0..15)::15 - MarkupElement - [0..15)::15 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupEndTag - [7..15)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.tspans.txt deleted file mode 100644 index aa951343108..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.cspans.txt deleted file mode 100644 index a40388da90c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Transition span at (7:0,7 [1] ) (Accepts:None) - Parent: Expression block at (7:0,7 [8] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (7:0,7 [8] ) -Markup span at (15:0,15 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Expression block at (17:0,17 [5] ) -Code span at (18:0,18 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (17:0,17 [5] ) -Markup span at (22:0,22 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.stree.txt deleted file mode 100644 index 47677646124..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_SelfClosing.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..25)::25 - [] - MarkupBlock - [0..25)::25 - MarkupElement - [0..25)::25 - MarkupStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [6..23)::17 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [7..15)::8 - CSharpImplicitExpression - [7..15)::8 - CSharpTransition - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [8..15)::7 - CSharpCodeBlock - [8..15)::7 - CSharpExpressionLiteral - [8..15)::7 - [onclick] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[onclick]; - MarkupTextLiteral - [15..17)::2 - [="] - Gen - SpanEditHandler;Accepts:Any - Equals;[=]; - DoubleQuote;["]; - CSharpCodeBlock - [17..22)::5 - CSharpImplicitExpression - [17..22)::5 - CSharpTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [18..22)::4 - CSharpCodeBlock - [18..22)::4 - CSharpExpressionLiteral - [18..22)::4 - [test] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[test]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.cspans.txt deleted file mode 100644 index 6bf72d0a288..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) -Transition span at (7:0,7 [1] ) (Accepts:None) - Parent: Expression block at (7:0,7 [8] ) -Code span at (8:0,8 [7] ) (Accepts:NonWhitespace) - Parent: Expression block at (7:0,7 [8] ) -Markup span at (15:0,15 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Expression block at (17:0,17 [5] ) -Code span at (18:0,18 [4] ) (Accepts:NonWhitespace) - Parent: Expression block at (17:0,17 [5] ) -Markup span at (22:0,22 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.stree.txt deleted file mode 100644 index 053d68870df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/AllowsCompatibleTagStructures_DirectiveAttribute_Void.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupElement - [0..24)::24 - MarkupStartTag - [0..24)::24 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [6..23)::17 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [7..15)::8 - CSharpImplicitExpression - [7..15)::8 - CSharpTransition - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [8..15)::7 - CSharpCodeBlock - [8..15)::7 - CSharpExpressionLiteral - [8..15)::7 - [onclick] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[onclick]; - MarkupTextLiteral - [15..17)::2 - [="] - Gen - SpanEditHandler;Accepts:Any - Equals;[=]; - DoubleQuote;["]; - CSharpCodeBlock - [17..22)::5 - CSharpImplicitExpression - [17..22)::5 - CSharpTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [18..22)::4 - CSharpCodeBlock - [18..22)::4 - CSharpExpressionLiteral - [18..22)::4 - [test] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[test]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.cspans.txt deleted file mode 100644 index 9b14508ec96..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (18:0,18 [5] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.stree.txt deleted file mode 100644 index 8ce5207ab41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..30)::30 - [
                      ] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - ul[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[ul]; - MarkupMinimizedTagHelperAttribute - [3..9)::6 - bound - Minimized - Unbound - [ bound] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - MarkupTagHelperAttribute - [9..24)::15 - [item] - SingleQuotes - Bound - [ [item]='items'] - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [10..16)::6 - [[item]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[item]; - RightBracket;[]]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [18..23)::5 - CSharpExpressionLiteral - [18..23)::5 - [items] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[items]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [25..30)::5 - [
                      ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.tspans.txt deleted file mode 100644 index c4ad9783327..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.cspans.txt deleted file mode 100644 index 66cc617a5e1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (20:0,20 [5] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.stree.txt deleted file mode 100644 index 84a9a375638..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..32)::32 - [
                        ] - MarkupBlock - [0..32)::32 - MarkupTagHelperElement - [0..32)::32 - ul[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..27)::27 - [
                          ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[ul]; - MarkupMinimizedTagHelperAttribute - [3..9)::6 - bound - Minimized - Unbound - [ bound] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - MarkupTagHelperAttribute - [9..26)::17 - [(item)] - SingleQuotes - Bound - [ [(item)]='items'] - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [10..18)::8 - [[(item)]] - Gen - SpanEditHandler;Accepts:Any - LeftBracket;[[]; - Text;[(item)]; - RightBracket;[]]; - Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [20..25)::5 - CSharpExpressionLiteral - [20..25)::5 - [items] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[items]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [27..32)::5 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[ul]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.tspans.txt deleted file mode 100644 index 8dc73d43623..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [32] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.cspans.txt deleted file mode 100644 index 2dfc773ede0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (23:0,23 [13] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [55] ) -Markup span at (38:0,38 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.stree.txt deleted file mode 100644 index 0acd0c5753a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..55)::55 - [] - MarkupBlock - [0..55)::55 - MarkupTagHelperElement - [0..55)::55 - button[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..38)::38 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[button]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.tspans.txt deleted file mode 100644 index 9d626a71d74..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [55] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.cspans.txt deleted file mode 100644 index 668451676cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (24:0,24 [13] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [56] ) -Markup span at (39:0,39 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.stree.txt deleted file mode 100644 index d2ab596a3f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..56)::56 - [] - MarkupBlock - [0..56)::56 - MarkupTagHelperElement - [0..56)::56 - button[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..39)::39 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[button]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.tspans.txt deleted file mode 100644 index 1e7d20eb36a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [56] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.cspans.txt deleted file mode 100644 index 4cfe9f7c9db..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (28:0,28 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.stree.txt deleted file mode 100644 index 2a17b586c94..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..46)::46 - [] - MarkupBlock - [0..46)::46 - MarkupTagHelperElement - [0..46)::46 - template[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..35)::35 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[template]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.tspans.txt deleted file mode 100644 index 9666dfd4ccb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [46] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.stree.txt deleted file mode 100644 index 343ff5e8964..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..33)::33 - [
                        ] - MarkupBlock - [0..33)::33 - MarkupTagHelperElement - [0..33)::33 - div[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..27)::27 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupMinimizedTagHelperAttribute - [4..10)::6 - bound - Minimized - Unbound - [ bound] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - MarkupMinimizedTagHelperAttribute - [10..26)::16 - #localminimized - Minimized - Unbound - [ #localminimized] - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [11..26)::15 - [#localminimized] - Gen - SpanEditHandler;Accepts:Any - Text;[#localminimized]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [27..33)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.tspans.txt deleted file mode 100644 index a6c7ee01964..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [33] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.cspans.txt deleted file mode 100644 index a75e5a0d692..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (19:0,19 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.diag.txt deleted file mode 100644 index 7854af144b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[item]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[item]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a '[' character. -(0,0): Error RZ3003: Invalid tag helper bound property '[(item)]' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '[(item)]' because the name contains a ']' character. -(0,0): Error RZ3003: Invalid tag helper bound property '*something' on tag helper 'CatchAllTagHelper'. Tag helpers cannot bind to HTML attributes with name '*something' because the name contains a '*' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.stree.txt deleted file mode 100644 index bac65eeedf0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..32)::32 - [
                        ] - MarkupBlock - [0..32)::32 - MarkupTagHelperElement - [0..32)::32 - div[StartTagAndEndTag] - CatchAllTagHelper - MarkupTagHelperStartTag - [0..26)::26 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupMinimizedTagHelperAttribute - [4..10)::6 - bound - Minimized - Unbound - [ bound] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - MarkupTagHelperAttribute - [10..25)::15 - #local - SingleQuotes - Bound - [ #local='value'] - MarkupTextLiteral - [10..11)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [11..17)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any - Text;[#local]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [19..24)::5 - MarkupTextLiteral - [19..24)::5 - [value] - Gen - SpanEditHandler;Accepts:Any - Text;[value]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [26..32)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.tspans.txt deleted file mode 100644 index 8dc73d43623..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleSymbolBoundAttributes7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [32] ) - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.stree.txt deleted file mode 100644 index 5a61ddfab07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.stree.txt +++ /dev/null @@ -1,7 +0,0 @@ -RazorDocument - [0..7)::7 - [] - MarkupBlock - [0..7)::7 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.tspans.txt deleted file mode 100644 index 507d5a1ed93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.cspans.txt deleted file mode 100644 index b60f44ce860..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.stree.txt deleted file mode 100644 index 090e52dccad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..19)::19 - [] - MarkupBlock - [0..19)::19 - MarkupTagHelperElement - [0..19)::19 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..19)::19 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - type - SingleQuotes - Unbound - [ type='text'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..11)::4 - [type] - Gen - SpanEditHandler;Accepts:Any - Text;[type]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - MarkupLiteralAttributeValue - [13..17)::4 - [text] - MarkupTextLiteral - [13..17)::4 - [text] - Gen - SpanEditHandler;Accepts:Any - Text;[text]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.tspans.txt deleted file mode 100644 index 0ea7cf09ec9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.stree.txt deleted file mode 100644 index 17f6f04e9a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..14)::14 - [] - MarkupBlock - [0..14)::14 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTagHelperElement - [7..14)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [7..14)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.tspans.txt deleted file mode 100644 index 533ebe3e155..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper -TagHelper span at (7:0,7 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.cspans.txt deleted file mode 100644 index b60f44ce860..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.stree.txt deleted file mode 100644 index 8bc473614e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..26)::26 - [] - MarkupBlock - [0..26)::26 - MarkupTagHelperElement - [0..19)::19 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..19)::19 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - type - SingleQuotes - Unbound - [ type='text'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..11)::4 - [type] - Gen - SpanEditHandler;Accepts:Any - Text;[type]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - MarkupLiteralAttributeValue - [13..17)::4 - [text] - MarkupTextLiteral - [13..17)::4 - [text] - Gen - SpanEditHandler;Accepts:Any - Text;[text]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperElement - [19..26)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [19..26)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.tspans.txt deleted file mode 100644 index cf1d9627eeb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - InputTagHelper -TagHelper span at (19:0,19 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.cspans.txt deleted file mode 100644 index e757d8a3f72..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (19:0,19 [6] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.stree.txt deleted file mode 100644 index b1c25567721..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..25)::25 - [
                        ] - MarkupBlock - [0..25)::25 - MarkupElement - [0..25)::25 - MarkupStartTag - [0..5)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperElement - [5..12)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [5..12)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTagHelperElement - [12..19)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [12..19)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupEndTag - [19..25)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.tspans.txt deleted file mode 100644 index f380f7abd5e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CanHandleWithoutEndTagTagStructure5.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (5:0,5 [7] ) - InputTagHelper -TagHelper span at (12:0,12 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.cspans.txt deleted file mode 100644 index aa429ff6cb4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (13:0,13 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.diag.txt deleted file mode 100644 index c11ff99be00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.stree.txt deleted file mode 100644 index 6937a24def9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..17)::17 - [] - MarkupBlock - [0..17)::17 - MarkupTagHelperElement - [0..17)::17 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..17)::17 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..14)::9 - bound - SingleQuotes - Bound - [ bound=''] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..13)::0 - CSharpExpressionLiteral - [13..13)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [14..15)::1 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.tspans.txt deleted file mode 100644 index 2835be7bef5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [17] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.cspans.txt deleted file mode 100644 index aa429ff6cb4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (13:0,13 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.diag.txt deleted file mode 100644 index d57ce479b51..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2008: Attribute 'BouND' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.stree.txt deleted file mode 100644 index f788e585311..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..17)::17 - [] - MarkupBlock - [0..17)::17 - MarkupTagHelperElement - [0..17)::17 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..17)::17 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..14)::9 - BouND - SingleQuotes - Bound - [ BouND=''] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [BouND] - Gen - SpanEditHandler;Accepts:Any - Text;[BouND]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..13)::0 - CSharpExpressionLiteral - [13..13)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [14..15)::1 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.tspans.txt deleted file mode 100644 index 2835be7bef5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [17] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.cspans.txt deleted file mode 100644 index 92552dfb4e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (13:0,13 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [29] ) -Code span at (25:0,25 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.diag.txt deleted file mode 100644 index 9739cf15580..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,7): Error RZ2008: Attribute 'BOUND' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. -(1,19): Error RZ2008: Attribute 'bOUnd' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.stree.txt deleted file mode 100644 index 6b645d8c86f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..29)::29 - [] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..29)::29 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..14)::9 - BOUND - SingleQuotes - Bound - [ BOUND=''] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [BOUND] - Gen - SpanEditHandler;Accepts:Any - Text;[BOUND]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..13)::0 - CSharpExpressionLiteral - [13..13)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [14..26)::12 - bOUnd - DoubleQuotes - Bound - [ bOUnd=""] - MarkupTextLiteral - [14..18)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..23)::5 - [bOUnd] - Gen - SpanEditHandler;Accepts:Any - Text;[bOUnd]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [25..25)::0 - CSharpExpressionLiteral - [25..25)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [25..26)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [26..27)::1 - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.tspans.txt deleted file mode 100644 index c8af5cb7b80..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.cspans.txt deleted file mode 100644 index 228e1bbc947..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (12:0,12 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [32] ) -Markup span at (19:0,19 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.diag.txt deleted file mode 100644 index 52810ad2c00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2008: Attribute 'BOUND' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.stree.txt deleted file mode 100644 index a88f2f766b4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..32)::32 - [] - MarkupBlock - [0..32)::32 - MarkupTagHelperElement - [0..32)::32 - myth[StartTagAndEndTag] - mythTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..12)::7 - BOUND - DoubleQuotes - Bound - [ BOUND=] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [BOUND] - Gen - SpanEditHandler;Accepts:Any - Text;[BOUND]; - Equals;[=]; - MarkupTagHelperAttributeValue - [12..12)::0 - CSharpExpressionLiteral - [12..12)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTagHelperAttribute - [12..24)::12 - nAMe - SingleQuotes - Bound - [ nAMe='john'] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..17)::4 - [nAMe] - Gen - SpanEditHandler;Accepts:Any - Text;[nAMe]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [19..23)::4 - MarkupTextLiteral - [19..23)::4 - [john] - Gen - SpanEditHandler;Accepts:Any - Text;[john]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [25..32)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[myth]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.tspans.txt deleted file mode 100644 index f6beb36090e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [32] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.cspans.txt deleted file mode 100644 index 7fafd220d5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Code span at (13:0,13 [4] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [9] ) -Code span at (17:0,17 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [5] ) -Code span at (18:0,18 [4] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [5] ) -Code span at (22:0,22 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.stree.txt deleted file mode 100644 index a481acc8983..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..28)::28 - [] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..28)::28 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..25)::20 - bound - SingleQuotes - Bound - [ bound=' @true '] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..24)::11 - MarkupBlock - [13..22)::9 - CSharpExpressionLiteral - [13..17)::4 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - CSharpCodeBlock - [17..22)::5 - CSharpImplicitExpression - [17..22)::5 - CSharpTransition - [17..17)::0 - Transition;[]; - CSharpImplicitExpressionBody - [17..22)::5 - CSharpCodeBlock - [17..22)::5 - CSharpExpressionLiteral - [17..18)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [18..22)::4 - [true] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Keyword;[true]; - CSharpExpressionLiteral - [22..24)::2 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [25..26)::1 - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.tspans.txt deleted file mode 100644 index 303ab8debe5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes13.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.cspans.txt deleted file mode 100644 index f70a5546730..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Code span at (13:0,13 [4] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [11] ) -Code span at (17:0,17 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [7] ) -Code span at (18:0,18 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [7] ) -Code span at (19:0,19 [4] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [7] ) -Code span at (23:0,23 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [7] ) -Code span at (24:0,24 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.stree.txt deleted file mode 100644 index b258c86d315..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..30)::30 - [] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..30)::30 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..27)::22 - bound - SingleQuotes - Bound - [ bound=' @(true) '] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..26)::13 - MarkupBlock - [13..24)::11 - CSharpExpressionLiteral - [13..17)::4 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - CSharpCodeBlock - [17..24)::7 - CSharpImplicitExpression - [17..24)::7 - CSharpTransition - [17..17)::0 - Transition;[]; - CSharpImplicitExpressionBody - [17..24)::7 - CSharpCodeBlock - [17..24)::7 - CSharpExpressionLiteral - [17..18)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [18..19)::1 - [(] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - LeftParenthesis;[(]; - CSharpExpressionLiteral - [19..23)::4 - [true] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Keyword;[true]; - CSharpExpressionLiteral - [23..24)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - RightParenthesis;[)]; - CSharpExpressionLiteral - [24..26)::2 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [27..28)::1 - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.tspans.txt deleted file mode 100644 index 5e6577587fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes14.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.cspans.txt deleted file mode 100644 index f8351f76e8a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (13:0,13 [8] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.stree.txt deleted file mode 100644 index 062be46ba29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..25)::25 - [] - MarkupBlock - [0..25)::25 - MarkupTagHelperElement - [0..25)::25 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..22)::17 - bound - SingleQuotes - Bound - [ bound=' true'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..21)::8 - CSharpExpressionLiteral - [13..21)::8 - [ true] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - Text;[true]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [22..23)::1 - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.tspans.txt deleted file mode 100644 index 002029ae1e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.cspans.txt deleted file mode 100644 index d5ea717f814..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (13:0,13 [4] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.diag.txt deleted file mode 100644 index c11ff99be00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.stree.txt deleted file mode 100644 index e0945db0f42..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..21)::21 - [] - MarkupBlock - [0..21)::21 - MarkupTagHelperElement - [0..21)::21 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..21)::21 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..18)::13 - bound - SingleQuotes - Bound - [ bound=' '] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - CSharpExpressionLiteral - [13..17)::4 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [18..19)::1 - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.tspans.txt deleted file mode 100644 index 05e209c319f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [21] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.cspans.txt deleted file mode 100644 index dddc839de02..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (13:0,13 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [27] ) -Code span at (23:0,23 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.diag.txt deleted file mode 100644 index 9a927a8ecbc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. -(1,17): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.stree.txt deleted file mode 100644 index b1a4d9090c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..27)::27 - [] - MarkupBlock - [0..27)::27 - MarkupTagHelperElement - [0..27)::27 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..27)::27 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..14)::9 - bound - SingleQuotes - Bound - [ bound=''] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..13)::0 - CSharpExpressionLiteral - [13..13)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [14..24)::10 - bound - DoubleQuotes - Bound - [ bound=""] - MarkupTextLiteral - [14..16)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [16..21)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [23..23)::0 - CSharpExpressionLiteral - [23..23)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [24..25)::1 - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.tspans.txt deleted file mode 100644 index dc2eb23533b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [27] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.cspans.txt deleted file mode 100644 index bd305a47b60..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (13:0,13 [1] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [30] ) -Code span at (24:0,24 [2] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.diag.txt deleted file mode 100644 index f16283e328d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. -(1,18): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.stree.txt deleted file mode 100644 index 4d4340f5e80..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..30)::30 - [] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..30)::30 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..15)::10 - bound - SingleQuotes - Bound - [ bound=' '] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..14)::1 - CSharpExpressionLiteral - [13..14)::1 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [15..27)::12 - bound - DoubleQuotes - Bound - [ bound=" "] - MarkupTextLiteral - [15..17)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..22)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [24..26)::2 - CSharpExpressionLiteral - [24..26)::2 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [27..28)::1 - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.tspans.txt deleted file mode 100644 index 5e6577587fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.cspans.txt deleted file mode 100644 index ee1acf6e62d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (13:0,13 [4] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [29] ) -Code span at (25:0,25 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.diag.txt deleted file mode 100644 index 7993f8fe1b4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,20): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.stree.txt deleted file mode 100644 index cc21cab4055..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..29)::29 - [] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..29)::29 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..18)::13 - bound - SingleQuotes - Bound - [ bound='true'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - CSharpExpressionLiteral - [13..17)::4 - [true] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[true]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [18..25)::7 - bound - DoubleQuotes - Bound - [ bound=] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..24)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTagHelperAttributeValue - [25..25)::0 - CSharpExpressionLiteral - [25..25)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupMiscAttributeContent - [25..27)::2 - MarkupTextLiteral - [25..27)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.tspans.txt deleted file mode 100644 index c8af5cb7b80..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.cspans.txt deleted file mode 100644 index ebd5438288f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (12:0,12 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [23] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.diag.txt deleted file mode 100644 index c11ff99be00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.stree.txt deleted file mode 100644 index 52b638b1fa2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..23)::23 - [] - MarkupBlock - [0..23)::23 - MarkupTagHelperElement - [0..23)::23 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..23)::23 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..12)::7 - bound - DoubleQuotes - Bound - [ bound=] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTagHelperAttributeValue - [12..12)::0 - CSharpExpressionLiteral - [12..12)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTagHelperAttribute - [12..20)::8 - name - SingleQuotes - Bound - [ name=''] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..17)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [19..19)::0 - MarkupTextLiteral - [19..19)::0 - [] - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [20..21)::1 - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.tspans.txt deleted file mode 100644 index 17b38715bc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.cspans.txt deleted file mode 100644 index ecee8c70152..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Code span at (12:0,12 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (19:0,19 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.diag.txt deleted file mode 100644 index c11ff99be00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.stree.txt deleted file mode 100644 index c05ed296bd5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..25)::25 - [] - MarkupBlock - [0..25)::25 - MarkupTagHelperElement - [0..25)::25 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..12)::7 - bound - DoubleQuotes - Bound - [ bound=] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTagHelperAttributeValue - [12..12)::0 - CSharpExpressionLiteral - [12..12)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTagHelperAttribute - [12..22)::10 - name - SingleQuotes - Bound - [ name=' '] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..17)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [19..21)::2 - MarkupTextLiteral - [19..21)::2 - [ ] - Whitespace;[ ]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [22..23)::1 - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.tspans.txt deleted file mode 100644 index 002029ae1e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.cspans.txt deleted file mode 100644 index 9e481866b79..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Code span at (13:0,13 [4] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [46] ) -Markup span at (25:0,25 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [46] ) -Code span at (37:0,37 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [46] ) -Markup span at (43:0,43 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.diag.txt deleted file mode 100644 index 356a13e2349..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,32): Error RZ2008: Attribute 'bound' on tag helper element 'myth' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.stree.txt deleted file mode 100644 index a09c2c8a6d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..46)::46 - [] - MarkupBlock - [0..46)::46 - MarkupTagHelperElement - [0..46)::46 - myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..46)::46 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[myth]; - MarkupTagHelperAttribute - [5..18)::13 - bound - SingleQuotes - Bound - [ bound='true'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [13..17)::4 - CSharpExpressionLiteral - [13..17)::4 - [true] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[true]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [18..30)::12 - name - SingleQuotes - Bound - [ name='john'] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..23)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [25..29)::4 - MarkupTextLiteral - [25..29)::4 - [john] - Gen - SpanEditHandler;Accepts:Any - Text;[john]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [30..37)::7 - bound - DoubleQuotes - Bound - [ bound=] - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [31..36)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTagHelperAttributeValue - [37..37)::0 - CSharpExpressionLiteral - [37..37)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTagHelperAttribute - [37..43)::6 - name - DoubleQuotes - Bound - [ name=] - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [38..42)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTagHelperAttributeValue - [43..43)::0 - MarkupTextLiteral - [43..43)::0 - [] - MarkupMiscAttributeContent - [43..44)::1 - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.tspans.txt deleted file mode 100644 index f578bb25feb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForEmptyTagHelperBoundAttributes9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [46] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.stree.txt deleted file mode 100644 index 0f370fff096..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.stree.txt +++ /dev/null @@ -1,7 +0,0 @@ -RazorDocument - [0..2)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.tspans.txt deleted file mode 100644 index d9746775d16..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [2] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.diag.txt deleted file mode 100644 index 256c57cb9c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ1035: Missing close angle for tag helper 'p'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.stree.txt deleted file mode 100644 index 950d7f704e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..6)::6 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [3..6)::3 - []; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.tspans.txt deleted file mode 100644 index aae2c81a5e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [6] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.diag.txt deleted file mode 100644 index 581b6ea348d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,5): Error RZ1035: Missing close angle for tag helper 'strong'. -(1,5): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.stree.txt deleted file mode 100644 index f4aaf2a54fc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..10)::10 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..10)::7 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [3..10)::7 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.tspans.txt deleted file mode 100644 index 07be06becbb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [10] ) - ptaghelper -TagHelper span at (3:0,3 [7] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.diag.txt deleted file mode 100644 index e846c7e4089..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'strong'. -(1,2): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,10): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.stree.txt deleted file mode 100644 index ac5ad19b0fc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..11)::11 - [] - MarkupBlock - [0..11)::11 - MarkupTagHelperElement - [0..11)::11 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [0..8)::8 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupMiscAttributeContent - [7..8)::1 - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTagHelperElement - [8..11)::3 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [8..11)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.tspans.txt deleted file mode 100644 index 46d677fdef3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [11] ) - strongtaghelper -TagHelper span at (8:0,8 [3] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.diag.txt deleted file mode 100644 index 83865622a47..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'strong'. -(1,11): Error RZ1035: Missing close angle for tag helper 'strong'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.stree.txt deleted file mode 100644 index cd7a0e4705d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.stree.txt +++ /dev/null @@ -1,15 +0,0 @@ -RazorDocument - [0..16)::16 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupMiscAttributeContent - [7..8)::1 - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTagHelperEndTag - [8..16)::8 - []; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.tspans.txt deleted file mode 100644 index fd2821234a8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [16] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.cspans.txt deleted file mode 100644 index 17f87ed7c05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) -Markup span at (1:0,1 [1] ) (Accepts:Any) - Parent: Tag block at (1:0,1 [1] ) -Markup span at (2:0,2 [9] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [9] ) -Markup span at (11:0,11 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.diag.txt deleted file mode 100644 index 7317861d0c1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,5): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,15): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.stree.txt deleted file mode 100644 index a62747a3934..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..16)::16 - [<< <

                        ] - MarkupBlock - [0..16)::16 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupElement - [1..2)::1 - MarkupStartTag - [1..2)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupElement - [2..11)::9 - MarkupEndTag - [2..11)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupElement - [12..13)::1 - MarkupStartTag - [12..13)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [13..16)::3 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [13..16)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.tspans.txt deleted file mode 100644 index ad070562db3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (13:0,13 [3] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.cspans.txt deleted file mode 100644 index abec4f6747c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) -Markup span at (1:0,1 [1] ) (Accepts:Any) - Parent: Tag block at (1:0,1 [1] ) -Markup span at (10:0,10 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [14] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [1] ) -Markup span at (13:0,13 [2] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [2] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.diag.txt deleted file mode 100644 index 299623f22a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.stree.txt deleted file mode 100644 index df487456075..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..16)::16 - [<<> <<>>] - MarkupBlock - [0..16)::16 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupElement - [1..2)::1 - MarkupStartTag - [1..2)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [2..16)::14 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [10..12)::2 - [> ] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; - Whitespace;[ ]; - MarkupElement - [12..13)::1 - MarkupStartTag - [12..13)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupElement - [13..16)::3 - MarkupStartTag - [13..15)::2 - [<>] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[>]; - MarkupTextLiteral - [15..16)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.tspans.txt deleted file mode 100644 index 9bcd0222321..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [14] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.cspans.txt deleted file mode 100644 index 81f3b861863..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (12:0,12 [4] ) (Accepts:Any) - Parent: Tag block at (12:0,12 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.diag.txt deleted file mode 100644 index fbfae8923ab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,15): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.stree.txt deleted file mode 100644 index 99965ff2a8d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..25)::25 - [

                        ] - MarkupBlock - [0..25)::25 - MarkupElement - [0..25)::25 - MarkupStartTag - [0..4)::4 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[str]; - CloseAngle;[]; - MarkupTagHelperElement - [4..25)::21 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [4..12)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [12..16)::4 - MarkupEndTag - [12..16)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [16..25)::9 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.tspans.txt deleted file mode 100644 index e87eb3d4c58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelper8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (4:0,4 [21] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.cspans.txt deleted file mode 100644 index 480329cced0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [10] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.stree.txt deleted file mode 100644 index 30883a8889a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..10)::10 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..10)::8 - class - SingleQuotes - Unbound - [ class='] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..10)::0 - MarkupTextLiteral - [10..10)::0 - [] - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.tspans.txt deleted file mode 100644 index 07a0d173f67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [10] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.cspans.txt deleted file mode 100644 index 952bb298241..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.diag.txt deleted file mode 100644 index 00e5e03e703..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,13): Error RZ1030: TagHelper attributes must be well-formed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.stree.txt deleted file mode 100644 index d0873079082..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..31)::31 - [

                        ] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..31)::31 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=btn] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [btn] - MarkupTextLiteral - [9..12)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupMiscAttributeContent - [12..31)::19 - MarkupTextLiteral - [12..31)::19 - [" bar="foo"] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - Whitespace;[ ]; - Text;[bar]; - Equals;[=]; - DoubleQuote;["]; - Text;[foo]; - DoubleQuote;["]; - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.tspans.txt deleted file mode 100644 index b3437d8dea4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.cspans.txt deleted file mode 100644 index b04797cd78f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [8] ) -Markup span at (13:0,13 [5] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.diag.txt deleted file mode 100644 index c263af5deaa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,25): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.stree.txt deleted file mode 100644 index 41740648fff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..31)::31 - [

                        ] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..23)::23 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..19)::17 - class - DoubleQuotes - Unbound - [ class="btn bar="] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..18)::8 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupLiteralAttributeValue - [13..18)::5 - [ bar=] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..18)::4 - [bar=] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMinimizedTagHelperAttribute - [19..23)::4 - foo" - Minimized - Unbound - [foo"] - MarkupTextLiteral - [19..23)::4 - [foo"] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - DoubleQuote;["]; - CloseAngle;[]; - MarkupTagHelperElement - [23..31)::8 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [23..31)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.tspans.txt deleted file mode 100644 index 2eb4f3edd5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes11.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - ptaghelper -TagHelper span at (23:0,23 [8] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.cspans.txt deleted file mode 100644 index b04797cd78f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [8] ) -Markup span at (13:0,13 [5] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.stree.txt deleted file mode 100644 index 86673ee9674..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..28)::28 - [

                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..24)::24 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..19)::17 - class - DoubleQuotes - Unbound - [ class="btn bar="] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..18)::8 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupLiteralAttributeValue - [13..18)::5 - [ bar=] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..18)::4 - [bar=] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMinimizedTagHelperAttribute - [19..23)::4 - foo" - Minimized - Unbound - [foo"] - MarkupTextLiteral - [19..23)::4 - [foo"] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [24..28)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.tspans.txt deleted file mode 100644 index 1490ae8ef2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.diag.txt deleted file mode 100644 index 3191132e517..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1031: The tag helper 'p' must not have C# in the element's attribute declaration area. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.stree.txt deleted file mode 100644 index b370e9b1629..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..33)::33 - [

                        ] - MarkupBlock - [0..33)::33 - MarkupTagHelperElement - [0..33)::33 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..29)::29 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [2..28)::26 - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [3..16)::13 - CSharpImplicitExpression - [3..16)::13 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [4..16)::12 - CSharpCodeBlock - [4..16)::12 - CSharpExpressionLiteral - [4..16)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [16..28)::12 - [ class="btn"] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[class]; - Equals;[=]; - DoubleQuote;["]; - Text;[btn]; - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [29..33)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.tspans.txt deleted file mode 100644 index d6131fed67e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes13.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [33] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.diag.txt deleted file mode 100644 index 3191132e517..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1031: The tag helper 'p' must not have C# in the element's attribute declaration area. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.stree.txt deleted file mode 100644 index b568d50ba3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..27)::27 - [

                        ] - MarkupBlock - [0..27)::27 - MarkupTagHelperElement - [0..27)::27 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..23)::23 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [2..22)::20 - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [3..16)::13 - CSharpImplicitExpression - [3..16)::13 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [4..16)::12 - CSharpCodeBlock - [4..16)::12 - CSharpExpressionLiteral - [4..16)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [16..22)::6 - [="btn"] - Gen - SpanEditHandler;Accepts:Any - Equals;[=]; - DoubleQuote;["]; - Text;[btn]; - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [23..27)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.tspans.txt deleted file mode 100644 index 840d8db41a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes14.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [27] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.cspans.txt deleted file mode 100644 index e109b920897..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Expression block at (9:0,9 [13] ) -Code span at (10:0,10 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (9:0,9 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.diag.txt deleted file mode 100644 index 4a81a68e606..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,23): Error RZ1030: TagHelper attributes must be well-formed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.stree.txt deleted file mode 100644 index 74f35b2278d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..28)::28 - [

                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..28)::28 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..22)::20 - class - DoubleQuotes - Unbound - [ class=@DateTime.Now] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..22)::13 - MarkupDynamicAttributeValue - [9..22)::13 - [@DateTime.Now] - GenericBlock - [9..22)::13 - CSharpCodeBlock - [9..22)::13 - CSharpImplicitExpression - [9..22)::13 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [10..22)::12 - CSharpCodeBlock - [10..22)::12 - CSharpExpressionLiteral - [10..22)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupMiscAttributeContent - [22..28)::6 - MarkupTextLiteral - [22..28)::6 - [">

                        ] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.tspans.txt deleted file mode 100644 index 1490ae8ef2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes15.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.cspans.txt deleted file mode 100644 index 30a40eab2dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (10:0,10 [5] ) -Code span at (11:0,11 [4] ) (Accepts:Any) - Parent: Statement block at (10:0,10 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.diag.txt deleted file mode 100644 index 719d1c88418..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,12): Error RZ1006: The do block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.stree.txt deleted file mode 100644 index 4c1d57ee6f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..15)::15 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..15)::13 - class - DoubleQuotes - Unbound - [ class="@do {] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..15)::5 - MarkupDynamicAttributeValue - [10..15)::5 - [@do {] - GenericBlock - [10..15)::5 - CSharpCodeBlock - [10..15)::5 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [11..15)::4 - [do {] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.tspans.txt deleted file mode 100644 index ad9585903c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes16.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [15] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.cspans.txt deleted file mode 100644 index cef54557408..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (10:0,10 [11] ) -Code span at (11:0,11 [10] ) (Accepts:Any) - Parent: Statement block at (10:0,10 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.diag.txt deleted file mode 100644 index c9cee88e752..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.diag.txt +++ /dev/null @@ -1,4 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,12): Error RZ1006: The do block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,16): Error RZ1000: Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.stree.txt deleted file mode 100644 index 9b5e377cebd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..21)::21 - [

                        ] - MarkupBlock - [0..21)::21 - MarkupTagHelperElement - [0..21)::21 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..21)::21 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..21)::19 - class - DoubleQuotes - Unbound - [ class="@do {">

                        ] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..21)::11 - MarkupDynamicAttributeValue - [10..21)::11 - [@do {">

                        ] - GenericBlock - [10..21)::11 - CSharpCodeBlock - [10..21)::11 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [11..21)::10 - [do {">

                        ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - StringLiteral;[">

                        ];RZ1000(15:0,15 [1] ) - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.tspans.txt deleted file mode 100644 index 452a7da46c4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes17.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [21] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.diag.txt deleted file mode 100644 index 6451ce6e4b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,4): Error RZ1031: The tag helper 'p' must not have C# in the element's attribute declaration area. -(1,5): Error RZ1006: The do block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,32): Error RZ1026: Encountered end tag "p" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.stree.txt deleted file mode 100644 index 7f6210c500a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..33)::33 - [

                        ] - MarkupBlock - [0..33)::33 - MarkupTagHelperElement - [0..33)::33 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..33)::33 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [2..33)::31 - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [3..33)::30 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [4..29)::25 - [do { someattribute="btn">] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[someattribute]; - Assign;[=]; - StringLiteral;["btn"]; - GreaterThan;[>]; - MarkupBlock - [29..33)::4 - MarkupElement - [29..33)::4 - MarkupEndTag - [29..33)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.tspans.txt deleted file mode 100644 index d6131fed67e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes18.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [33] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.cspans.txt deleted file mode 100644 index b992258ac2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (9:0,9 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.diag.txt deleted file mode 100644 index f716761d50a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,14): Error RZ1030: TagHelper attributes must be well-formed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.stree.txt deleted file mode 100644 index 9c170c64935..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..38)::38 - [

                        ] - MarkupBlock - [0..38)::38 - MarkupTagHelperElement - [0..38)::38 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..34)::34 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..13)::11 - class - DoubleQuotes - Unbound - [ class=some] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..13)::4 - MarkupLiteralAttributeValue - [9..13)::4 - [some] - MarkupTextLiteral - [9..13)::4 - [some] - Gen - SpanEditHandler;Accepts:Any - Text;[some]; - MarkupMiscAttributeContent - [13..33)::20 - MarkupTextLiteral - [13..26)::13 - [=thing attr="] - Gen - SpanEditHandler;Accepts:Any - Equals;[=]; - Text;[thing]; - Whitespace;[ ]; - Text;[attr]; - Equals;[=]; - DoubleQuote;["]; - CSharpCodeBlock - [26..32)::6 - CSharpImplicitExpression - [26..32)::6 - CSharpTransition - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [27..32)::5 - CSharpCodeBlock - [27..32)::5 - CSharpExpressionLiteral - [27..32)::5 - [value] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[value]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [34..38)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.tspans.txt deleted file mode 100644 index 3cc3264682a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes19.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [38] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.cspans.txt deleted file mode 100644 index 14a88d65c9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (8:0,8 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.diag.txt deleted file mode 100644 index 8cd66cdd6c9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,15): Error RZ1030: TagHelper attributes must be well-formed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.stree.txt deleted file mode 100644 index 8112c96e242..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..24)::24 - [

                        ] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..24)::24 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..24)::24 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - bar - DoubleQuotes - Unbound - [ bar="false"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [7..8)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [8..13)::5 - MarkupLiteralAttributeValue - [8..13)::5 - [false] - MarkupTextLiteral - [8..13)::5 - [false] - Gen - SpanEditHandler;Accepts:Any - Text;[false]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [14..24)::10 - MarkupTextLiteral - [14..24)::10 - [" ] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - Whitespace;[ ]; - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.tspans.txt deleted file mode 100644 index 4292815e00c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [24] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.cspans.txt deleted file mode 100644 index 4934c61fc0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (9:0,9 [34] ) -Code span at (10:0,10 [10] ) (Accepts:Any) - Parent: Statement block at (9:0,9 [34] ) -Markup span at (20:0,20 [2] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [15] ) -Markup span at (22:0,22 [7] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [12] ) -Transition span at (29:0,29 [1] ) (Accepts:None) - Parent: Expression block at (29:0,29 [4] ) -Code span at (30:0,30 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (29:0,29 [4] ) -Markup span at (33:0,33 [1] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [12] ) -Markup span at (34:0,34 [1] ) (Accepts:None) - Parent: Tag block at (20:0,20 [15] ) -Markup span at (35:0,35 [4] ) (Accepts:Any) - Parent: Markup block at (20:0,20 [23] ) -Markup span at (39:0,39 [4] ) (Accepts:None) - Parent: Tag block at (39:0,39 [4] ) -Code span at (43:0,43 [0] ) (Accepts:Any) - Parent: Statement block at (9:0,9 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.diag.txt deleted file mode 100644 index bfae619d1f0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,21): Error RZ1008: Single-statement control-flow statements in Razor documents statements cannot contain markup. Markup should be enclosed in "{" and "}". diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.stree.txt deleted file mode 100644 index bd4efb84e07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.stree.txt +++ /dev/null @@ -1,67 +0,0 @@ -RazorDocument - [0..43)::43 - [

                        ] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..43)::43 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..43)::41 - attr - DoubleQuotes - Unbound - [ attr="@if (true)

                        }">

                        ] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..7)::4 - [attr] - Gen - SpanEditHandler;Accepts:Any - Text;[attr]; - Equals;[=]; - MarkupTextLiteral - [8..9)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [9..43)::34 - MarkupDynamicAttributeValue - [9..43)::34 - [@if (true)

                        }">

                        ] - GenericBlock - [9..43)::34 - CSharpCodeBlock - [9..43)::34 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [10..20)::10 - [if (true) ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[if]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Keyword;[true]; - RightParenthesis;[)]; - Whitespace;[ ]; - MarkupBlock - [20..43)::23 - MarkupElement - [20..43)::23 - MarkupStartTag - [20..35)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupAttributeBlock - [22..34)::12 - [ attr='@foo'] - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [23..27)::4 - [attr] - Gen - SpanEditHandler;Accepts:Any - Text;[attr]; - Equals;[=]; - MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [29..33)::4 - MarkupDynamicAttributeValue - [29..33)::4 - [@foo] - GenericBlock - [29..33)::4 - CSharpCodeBlock - [29..33)::4 - CSharpImplicitExpression - [29..33)::4 - CSharpTransition - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [30..33)::3 - CSharpCodeBlock - [30..33)::3 - CSharpExpressionLiteral - [30..33)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [35..39)::4 - [ }">] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[}]; - DoubleQuote;["]; - CloseAngle;[>]; - MarkupEndTag - [39..43)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.tspans.txt deleted file mode 100644 index 2dbca568cdb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes20.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.cspans.txt deleted file mode 100644 index 5c5c8a05bc6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (8:0,8 [5] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [15] ) -Markup span at (13:0,13 [10] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [15] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.stree.txt deleted file mode 100644 index bffeb23151f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..23)::23 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..23)::21 - bar - SingleQuotes - Unbound - [ bar='false ] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [7..8)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [8..23)::15 - MarkupLiteralAttributeValue - [8..13)::5 - [false] - MarkupTextLiteral - [8..13)::5 - [false] - Gen - SpanEditHandler;Accepts:Any - Text;[false]; - MarkupLiteralAttributeValue - [13..23)::10 - [ ] - MarkupTextLiteral - [13..15)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.tspans.txt deleted file mode 100644 index 72fccbbfdc6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.cspans.txt deleted file mode 100644 index 9747a806f77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (8:0,8 [5] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [14] ) -Markup span at (13:0,13 [9] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.stree.txt deleted file mode 100644 index 97f1a6c37d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..23)::23 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..23)::21 - bar - SingleQuotes - Unbound - [ bar='false - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [7..8)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [8..22)::14 - MarkupLiteralAttributeValue - [8..13)::5 - [false] - MarkupTextLiteral - [8..13)::5 - [false] - Gen - SpanEditHandler;Accepts:Any - Text;[false]; - MarkupLiteralAttributeValue - [13..22)::9 - [ - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..22)::7 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.tspans.txt deleted file mode 100644 index 72fccbbfdc6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.cspans.txt deleted file mode 100644 index 8a404a053cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (7:0,7 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.diag.txt deleted file mode 100644 index 00e5e03e703..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,13): Error RZ1030: TagHelper attributes must be well-formed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.stree.txt deleted file mode 100644 index 34c09fd634a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..13)::13 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - bar - DoubleQuotes - Unbound - [ bar=false] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTagHelperAttributeValue - [7..12)::5 - MarkupLiteralAttributeValue - [7..12)::5 - [false] - MarkupTextLiteral - [7..12)::5 - [false] - Gen - SpanEditHandler;Accepts:Any - Text;[false]; - MarkupMiscAttributeContent - [12..13)::1 - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.tspans.txt deleted file mode 100644 index 17a2d8cf26b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [13] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.cspans.txt deleted file mode 100644 index 948bed3775e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.stree.txt deleted file mode 100644 index 7a60f595a9c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..14)::14 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - bar - DoubleQuotes - Unbound - [ bar="false'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [7..8)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [8..14)::6 - MarkupLiteralAttributeValue - [8..14)::6 - [false'] - MarkupTextLiteral - [8..14)::6 - [false'] - Gen - SpanEditHandler;Accepts:Any - Text;[false]; - SingleQuote;[']; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.tspans.txt deleted file mode 100644 index d4769a773a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [14] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.cspans.txt deleted file mode 100644 index ea7a88a5bd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (14:0,14 [6] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.stree.txt deleted file mode 100644 index d5351a5631e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..20)::20 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..20)::18 - bar - DoubleQuotes - Unbound - [ bar="false' >

                        ] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - Equals;[=]; - MarkupTextLiteral - [7..8)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [8..20)::12 - MarkupLiteralAttributeValue - [8..14)::6 - [false'] - MarkupTextLiteral - [8..14)::6 - [false'] - Gen - SpanEditHandler;Accepts:Any - Text;[false]; - SingleQuote;[']; - MarkupLiteralAttributeValue - [14..20)::6 - [ >

                        ] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..20)::5 - [>

                        ] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.tspans.txt deleted file mode 100644 index 66adb496db4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [20] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.diag.txt deleted file mode 100644 index 2bc23b0f862..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,12): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.stree.txt deleted file mode 100644 index d76bdc3899e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..18)::18 - [

                        ] - MarkupBlock - [0..18)::18 - MarkupTagHelperElement - [0..18)::18 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..10)::10 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..6)::4 - foo - Minimized - Unbound - [ foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..6)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupMinimizedTagHelperAttribute - [6..10)::4 - bar - Minimized - Unbound - [ bar] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..10)::3 - [bar] - Gen - SpanEditHandler;Accepts:Any - Text;[bar]; - CloseAngle;[]; - MarkupTagHelperElement - [10..18)::8 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [10..18)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.tspans.txt deleted file mode 100644 index cc7354bc19f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes8.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [18] ) - ptaghelper -TagHelper span at (10:0,10 [8] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.cspans.txt deleted file mode 100644 index ccaa1b3f136..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.diag.txt deleted file mode 100644 index 00e5e03e703..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,13): Error RZ1030: TagHelper attributes must be well-formed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.stree.txt deleted file mode 100644 index 2e609ba6aaf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..25)::25 - [

                        ] - MarkupBlock - [0..25)::25 - MarkupTagHelperElement - [0..25)::25 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..25)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=btn] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [btn] - MarkupTextLiteral - [9..12)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupMiscAttributeContent - [12..25)::13 - MarkupTextLiteral - [12..25)::13 - [" bar] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - Whitespace;[ ]; - Text;[bar]; - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.tspans.txt deleted file mode 100644 index b9ccfbed4b2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesErrorForMalformedTagHelpersWithAttributes9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.cspans.txt deleted file mode 100644 index 7c9bbe1aa91..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (13:0,13 [2] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.stree.txt deleted file mode 100644 index 1afdbe7e75e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..19)::19 - [] - MarkupBlock - [0..19)::19 - MarkupTagHelperElement - [0..19)::19 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..19)::19 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..16)::9 - age - DoubleQuotes - Bound - [ age="12"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..15)::2 - CSharpExpressionLiteral - [13..15)::2 - [12] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[12]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.tspans.txt deleted file mode 100644 index 096b786f529..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.cspans.txt deleted file mode 100644 index 93c1eb44f3c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Code span at (13:0,13 [2] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [73] ) -Code span at (27:0,27 [12] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [73] ) -Markup span at (47:0,47 [1] ) (Accepts:None) - Parent: Markup block at (47:0,47 [2] ) -Markup span at (48:0,48 [1] ) (Accepts:None) - Parent: Markup block at (47:0,47 [2] ) -Markup span at (49:0,49 [20] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.stree.txt deleted file mode 100644 index dbc9614a219..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..73)::73 - [] - MarkupBlock - [0..73)::73 - MarkupTagHelperElement - [0..73)::73 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..73)::73 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..16)::9 - age - DoubleQuotes - Bound - [ age="12"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..15)::2 - CSharpExpressionLiteral - [13..15)::2 - [12] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[12]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [16..40)::24 - birthday - DoubleQuotes - Bound - [ birthday="DateTime.Now"] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..25)::8 - [birthday] - Gen - SpanEditHandler;Accepts:Any - Text;[birthday]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..39)::12 - CSharpExpressionLiteral - [27..39)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[DateTime.Now]; - MarkupTextLiteral - [39..40)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [40..70)::30 - name - DoubleQuotes - Bound - [ name="@@BoundStringAttribute"] - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [41..45)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [46..47)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [47..69)::22 - MarkupBlock - [47..49)::2 - MarkupTextLiteral - [47..48)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [48..49)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupTextLiteral - [49..69)::20 - [BoundStringAttribute] - Gen - SpanEditHandler;Accepts:Any - Text;[BoundStringAttribute]; - MarkupTextLiteral - [69..70)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [70..71)::1 - MarkupTextLiteral - [70..71)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.tspans.txt deleted file mode 100644 index 66b66f6b27e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [73] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.cspans.txt deleted file mode 100644 index 7d194474a8c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Code span at (13:0,13 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [2] ) -Code span at (14:0,14 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [2] ) -Code span at (15:0,15 [0] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (15:0,15 [7] ) -Code span at (15:0,15 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (15:0,15 [7] ) -Code span at (16:0,16 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (15:0,15 [7] ) -Code span at (17:0,17 [4] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (15:0,15 [7] ) -Code span at (21:0,21 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (15:0,15 [7] ) -Code span at (34:0,34 [12] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [77] ) -Markup span at (54:0,54 [5] ) (Accepts:Any) - Parent: Markup block at (54:0,54 [19] ) -Markup span at (59:0,59 [1] ) (Accepts:Any) - Parent: Markup block at (59:0,59 [14] ) -Transition span at (60:0,60 [1] ) (Accepts:None) - Parent: Expression block at (60:0,60 [13] ) -Code span at (61:0,61 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (60:0,60 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.stree.txt deleted file mode 100644 index b4d98fbb97f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.stree.txt +++ /dev/null @@ -1,85 +0,0 @@ -RazorDocument - [0..77)::77 - [] - MarkupBlock - [0..77)::77 - MarkupTagHelperElement - [0..77)::77 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..77)::77 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..23)::16 - age - DoubleQuotes - Bound - [ age="@@@(11+1)"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..22)::9 - MarkupBlock - [13..15)::2 - CSharpExpressionLiteral - [13..14)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpEphemeralTextLiteral - [14..15)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - MarkupBlock - [15..22)::7 - CSharpExpressionLiteral - [15..15)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Marker;[]; - CSharpCodeBlock - [15..22)::7 - CSharpImplicitExpression - [15..22)::7 - CSharpTransition - [15..15)::0 - Transition;[]; - CSharpImplicitExpressionBody - [15..22)::7 - CSharpCodeBlock - [15..22)::7 - CSharpExpressionLiteral - [15..16)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [16..17)::1 - [(] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - LeftParenthesis;[(]; - CSharpExpressionLiteral - [17..21)::4 - [11+1] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - IntegerLiteral;[11]; - Plus;[+]; - IntegerLiteral;[1]; - CSharpExpressionLiteral - [21..22)::1 - [)] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - RightParenthesis;[)]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [23..47)::24 - birthday - DoubleQuotes - Bound - [ birthday="DateTime.Now"] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..32)::8 - [birthday] - Gen - SpanEditHandler;Accepts:Any - Text;[birthday]; - Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [34..46)::12 - CSharpExpressionLiteral - [34..46)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[DateTime.Now]; - MarkupTextLiteral - [46..47)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [47..74)::27 - name - DoubleQuotes - Bound - [ name="Time: @DateTime.Now"] - MarkupTextLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [48..52)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [53..54)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [54..73)::19 - MarkupTextLiteral - [54..59)::5 - [Time:] - Gen - SpanEditHandler;Accepts:Any - Text;[Time:]; - MarkupBlock - [59..73)::14 - MarkupTextLiteral - [59..60)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [60..73)::13 - CSharpImplicitExpression - [60..73)::13 - CSharpTransition - [60..61)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [61..73)::12 - CSharpCodeBlock - [61..73)::12 - CSharpExpressionLiteral - [61..73)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [73..74)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [74..75)::1 - MarkupTextLiteral - [74..75)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.tspans.txt deleted file mode 100644 index 905f5d687ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [77] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.cspans.txt deleted file mode 100644 index 53bec4dfc26..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Statement block at (13:0,13 [22] ) -MetaCode span at (14:0,14 [1] ) (Accepts:None) - Parent: Statement block at (13:0,13 [22] ) -Code span at (15:0,15 [19] ) (Accepts:Any) - Parent: Statement block at (13:0,13 [22] ) -MetaCode span at (34:0,34 [1] ) (Accepts:None) - Parent: Statement block at (13:0,13 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.stree.txt deleted file mode 100644 index a8c15d092bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..39)::39 - [] - MarkupBlock - [0..39)::39 - MarkupTagHelperElement - [0..39)::39 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..39)::39 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..36)::29 - age - DoubleQuotes - Bound - [ age="@{flag == 0 ? 11 : 12}"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..35)::22 - MarkupBlock - [13..35)::22 - CSharpCodeBlock - [13..35)::22 - CSharpStatement - [13..35)::22 - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [14..35)::21 - RazorMetaCode - [14..15)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [15..34)::19 - CSharpStatementLiteral - [15..34)::19 - [flag == 0 ? 11 : 12] - Gen - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[];AtEOL - Identifier;[flag]; - Whitespace;[ ]; - Equals;[==]; - Whitespace;[ ]; - IntegerLiteral;[0]; - Whitespace;[ ]; - QuestionMark;[?]; - Whitespace;[ ]; - IntegerLiteral;[11]; - Whitespace;[ ]; - Colon;[:]; - Whitespace;[ ]; - IntegerLiteral;[12]; - RazorMetaCode - [34..35)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [36..37)::1 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.tspans.txt deleted file mode 100644 index 14c5fecb184..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [39] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.cspans.txt deleted file mode 100644 index f743b232859..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (18:0,18 [12] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.stree.txt deleted file mode 100644 index 0af2d73896d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..34)::34 - [] - MarkupBlock - [0..34)::34 - MarkupTagHelperElement - [0..34)::34 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..34)::34 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..31)::24 - birthday - DoubleQuotes - Bound - [ birthday="DateTime.Now"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [birthday] - Gen - SpanEditHandler;Accepts:Any - Text;[birthday]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..30)::12 - CSharpExpressionLiteral - [18..30)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[DateTime.Now]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [31..32)::1 - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.tspans.txt deleted file mode 100644 index f8738392659..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [34] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.cspans.txt deleted file mode 100644 index 47295f84881..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (13:0,13 [1] ) (Accepts:None) - Parent: Expression block at (13:0,13 [18] ) -Code span at (14:0,14 [17] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (13:0,13 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.stree.txt deleted file mode 100644 index 517ad1d2d24..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..35)::35 - [] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..35)::35 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..32)::25 - age - DoubleQuotes - Bound - [ age="@DateTime.Now.Year"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..31)::18 - MarkupBlock - [13..31)::18 - CSharpCodeBlock - [13..31)::18 - CSharpImplicitExpression - [13..31)::18 - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [14..31)::17 - CSharpCodeBlock - [14..31)::17 - CSharpExpressionLiteral - [14..31)::17 - [DateTime.Now.Year] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - Dot;[.]; - Identifier;[Year]; - MarkupTextLiteral - [31..32)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [32..33)::1 - MarkupTextLiteral - [32..33)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.tspans.txt deleted file mode 100644 index 4c67f60b6dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.cspans.txt deleted file mode 100644 index 3c2486e3b98..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Code span at (13:0,13 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [19] ) -Code span at (14:0,14 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (14:0,14 [18] ) -Code span at (15:0,15 [17] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (14:0,14 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.stree.txt deleted file mode 100644 index 5322ea7a7e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..36)::36 - [] - MarkupBlock - [0..36)::36 - MarkupTagHelperElement - [0..36)::36 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..36)::36 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..33)::26 - age - DoubleQuotes - Bound - [ age=" @DateTime.Now.Year"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..32)::19 - MarkupBlock - [13..32)::19 - CSharpExpressionLiteral - [13..14)::1 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - CSharpCodeBlock - [14..32)::18 - CSharpImplicitExpression - [14..32)::18 - CSharpTransition - [14..14)::0 - Transition;[]; - CSharpImplicitExpressionBody - [14..32)::18 - CSharpCodeBlock - [14..32)::18 - CSharpExpressionLiteral - [14..15)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [15..32)::17 - [DateTime.Now.Year] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - Dot;[.]; - Identifier;[Year]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [33..34)::1 - MarkupTextLiteral - [33..34)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.tspans.txt deleted file mode 100644 index 232251afb7c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [36] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.cspans.txt deleted file mode 100644 index 7dadb4349bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (14:0,14 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.stree.txt deleted file mode 100644 index cf0a4ec7875..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..22)::22 - [] - MarkupBlock - [0..22)::22 - MarkupTagHelperElement - [0..22)::22 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..19)::12 - name - DoubleQuotes - Bound - [ name="John"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..12)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [14..18)::4 - MarkupTextLiteral - [14..18)::4 - [John] - Gen - SpanEditHandler;Accepts:Any - Text;[John]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.tspans.txt deleted file mode 100644 index 936f7cc1675..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [22] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.cspans.txt deleted file mode 100644 index fff411360a6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (14:0,14 [5] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [19] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (19:0,19 [14] ) -Transition span at (20:0,20 [1] ) (Accepts:None) - Parent: Expression block at (20:0,20 [13] ) -Code span at (21:0,21 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (20:0,20 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.stree.txt deleted file mode 100644 index 21e1af2a92e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..37)::37 - [] - MarkupBlock - [0..37)::37 - MarkupTagHelperElement - [0..37)::37 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..37)::37 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..34)::27 - name - DoubleQuotes - Bound - [ name="Time: @DateTime.Now"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..12)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [14..33)::19 - MarkupTextLiteral - [14..19)::5 - [Time:] - Gen - SpanEditHandler;Accepts:Any - Text;[Time:]; - MarkupBlock - [19..33)::14 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [20..33)::13 - CSharpImplicitExpression - [20..33)::13 - CSharpTransition - [20..21)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [21..33)::12 - CSharpCodeBlock - [21..33)::12 - CSharpExpressionLiteral - [21..33)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [33..34)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [34..35)::1 - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.tspans.txt deleted file mode 100644 index c61b8f7089a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [37] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.cspans.txt deleted file mode 100644 index 99741cf6387..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Code span at (13:0,13 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [14] ) -Code span at (14:0,14 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [14] ) -Code span at (16:0,16 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (16:0,16 [7] ) -Code span at (17:0,17 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [6] ) -Code span at (18:0,18 [5] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [6] ) -Code span at (23:0,23 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [14] ) -Code span at (25:0,25 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (13:0,13 [14] ) -Code span at (39:0,39 [6] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (39:0,39 [46] ) -Code span at (45:0,45 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (45:0,45 [11] ) -Code span at (46:0,46 [10] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (45:0,45 [11] ) -Code span at (56:0,56 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (39:0,39 [46] ) -Code span at (58:0,58 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (58:0,58 [3] ) -Code span at (60:0,60 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (58:0,58 [3] ) -Code span at (61:0,61 [8] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (39:0,39 [46] ) -Code span at (69:0,69 [2] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (39:0,39 [46] ) -Code span at (71:0,71 [1] ) (Accepts:AnyExceptNewline) - Parent: Markup block at (71:0,71 [14] ) -Code span at (72:0,72 [1] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (72:0,72 [13] ) -Code span at (73:0,73 [12] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (72:0,72 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.stree.txt deleted file mode 100644 index 9d01bdafaaa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.stree.txt +++ /dev/null @@ -1,99 +0,0 @@ -RazorDocument - [0..88)::88 - [] - MarkupBlock - [0..88)::88 - MarkupTagHelperElement - [0..88)::88 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..88)::88 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..28)::21 - age - DoubleQuotes - Bound - [ age="1 + @value + 2"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..27)::14 - CSharpExpressionLiteral - [13..14)::1 - [1] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[1]; - CSharpExpressionLiteral - [14..16)::2 - [ +] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - Text;[+]; - MarkupBlock - [16..23)::7 - CSharpExpressionLiteral - [16..17)::1 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - CSharpCodeBlock - [17..23)::6 - CSharpImplicitExpression - [17..23)::6 - CSharpTransition - [17..17)::0 - Transition;[]; - CSharpImplicitExpressionBody - [17..23)::6 - CSharpCodeBlock - [17..23)::6 - CSharpExpressionLiteral - [17..18)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [18..23)::5 - [value] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Identifier;[value]; - CSharpExpressionLiteral - [23..25)::2 - [ +] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - Text;[+]; - CSharpExpressionLiteral - [25..27)::2 - [ 2] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - Text;[2]; - MarkupTextLiteral - [27..28)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [28..86)::58 - birthday - SingleQuotes - Bound - [ birthday='(bool)@Bag["val"] ? @@DateTime : @DateTime.Now'] - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [29..37)::8 - [birthday] - Gen - SpanEditHandler;Accepts:Any - Text;[birthday]; - Equals;[=]; - MarkupTextLiteral - [38..39)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [39..85)::46 - CSharpExpressionLiteral - [39..45)::6 - [(bool)] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[(bool)]; - MarkupBlock - [45..56)::11 - CSharpCodeBlock - [45..56)::11 - CSharpImplicitExpression - [45..56)::11 - CSharpTransition - [45..45)::0 - Transition;[]; - CSharpImplicitExpressionBody - [45..56)::11 - CSharpCodeBlock - [45..56)::11 - CSharpExpressionLiteral - [45..46)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [46..56)::10 - [Bag["val"]] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Identifier;[Bag]; - LeftBracket;[[]; - StringLiteral;["val"]; - RightBracket;[]]; - CSharpExpressionLiteral - [56..58)::2 - [ ?] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - QuestionMark;[?]; - MarkupBlock - [58..61)::3 - CSharpExpressionLiteral - [58..60)::2 - [ @] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - Transition;[@]; - CSharpEphemeralTextLiteral - [60..61)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [61..69)::8 - [DateTime] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[DateTime]; - CSharpExpressionLiteral - [69..71)::2 - [ :] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - Text;[:]; - MarkupBlock - [71..85)::14 - CSharpExpressionLiteral - [71..72)::1 - [ ] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Whitespace;[ ]; - CSharpCodeBlock - [72..85)::13 - CSharpImplicitExpression - [72..85)::13 - CSharpTransition - [72..72)::0 - Transition;[]; - CSharpImplicitExpressionBody - [72..85)::13 - CSharpCodeBlock - [72..85)::13 - CSharpExpressionLiteral - [72..73)::1 - [@] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Transition;[@]; - CSharpExpressionLiteral - [73..85)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [85..86)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.tspans.txt deleted file mode 100644 index 9cdbc1f1f89..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [88] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.cspans.txt deleted file mode 100644 index 14eb11f1cff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Code span at (13:0,13 [2] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [70] ) -Code span at (27:0,27 [12] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [70] ) -Markup span at (47:0,47 [5] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [19] ) -Markup span at (52:0,52 [1] ) (Accepts:Any) - Parent: Markup block at (52:0,52 [14] ) -Transition span at (53:0,53 [1] ) (Accepts:None) - Parent: Expression block at (53:0,53 [13] ) -Code span at (54:0,54 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (53:0,53 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.stree.txt deleted file mode 100644 index 9f5cd21e9dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.stree.txt +++ /dev/null @@ -1,63 +0,0 @@ -RazorDocument - [0..70)::70 - [] - MarkupBlock - [0..70)::70 - MarkupTagHelperElement - [0..70)::70 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..70)::70 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..16)::9 - age - DoubleQuotes - Bound - [ age="12"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..15)::2 - CSharpExpressionLiteral - [13..15)::2 - [12] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[12]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [16..40)::24 - birthday - DoubleQuotes - Bound - [ birthday="DateTime.Now"] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..25)::8 - [birthday] - Gen - SpanEditHandler;Accepts:Any - Text;[birthday]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..39)::12 - CSharpExpressionLiteral - [27..39)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[DateTime.Now]; - MarkupTextLiteral - [39..40)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [40..67)::27 - name - DoubleQuotes - Bound - [ name="Time: @DateTime.Now"] - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [41..45)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [46..47)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [47..66)::19 - MarkupTextLiteral - [47..52)::5 - [Time:] - Gen - SpanEditHandler;Accepts:Any - Text;[Time:]; - MarkupBlock - [52..66)::14 - MarkupTextLiteral - [52..53)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [53..66)::13 - CSharpImplicitExpression - [53..66)::13 - CSharpTransition - [53..54)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [54..66)::12 - CSharpCodeBlock - [54..66)::12 - CSharpExpressionLiteral - [54..66)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [66..67)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [67..68)::1 - MarkupTextLiteral - [67..68)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.tspans.txt deleted file mode 100644 index ccef1ebc65d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [70] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.cspans.txt deleted file mode 100644 index b593b2e5bc6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Code span at (13:0,13 [2] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [73] ) -Code span at (27:0,27 [12] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [73] ) -Markup span at (47:0,47 [5] ) (Accepts:Any) - Parent: Markup block at (47:0,47 [22] ) -Markup span at (52:0,52 [2] ) (Accepts:None) - Parent: Markup block at (52:0,52 [3] ) -Markup span at (54:0,54 [1] ) (Accepts:None) - Parent: Markup block at (52:0,52 [3] ) -Markup span at (55:0,55 [1] ) (Accepts:Any) - Parent: Markup block at (55:0,55 [14] ) -Transition span at (56:0,56 [1] ) (Accepts:None) - Parent: Expression block at (56:0,56 [13] ) -Code span at (57:0,57 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (56:0,56 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.stree.txt deleted file mode 100644 index 5bbee231704..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.stree.txt +++ /dev/null @@ -1,69 +0,0 @@ -RazorDocument - [0..73)::73 - [] - MarkupBlock - [0..73)::73 - MarkupTagHelperElement - [0..73)::73 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..73)::73 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..16)::9 - age - DoubleQuotes - Bound - [ age="12"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..15)::2 - CSharpExpressionLiteral - [13..15)::2 - [12] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[12]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [16..40)::24 - birthday - DoubleQuotes - Bound - [ birthday="DateTime.Now"] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..25)::8 - [birthday] - Gen - SpanEditHandler;Accepts:Any - Text;[birthday]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..39)::12 - CSharpExpressionLiteral - [27..39)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[DateTime.Now]; - MarkupTextLiteral - [39..40)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [40..70)::30 - name - DoubleQuotes - Bound - [ name="Time: @@ @DateTime.Now"] - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [41..45)::4 - [name] - Gen - SpanEditHandler;Accepts:Any - Text;[name]; - Equals;[=]; - MarkupTextLiteral - [46..47)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [47..69)::22 - MarkupTextLiteral - [47..52)::5 - [Time:] - Gen - SpanEditHandler;Accepts:Any - Text;[Time:]; - MarkupBlock - [52..55)::3 - MarkupTextLiteral - [52..54)::2 - [ @] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Transition;[@]; - MarkupEphemeralTextLiteral - [54..55)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupBlock - [55..69)::14 - MarkupTextLiteral - [55..56)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [56..69)::13 - CSharpImplicitExpression - [56..69)::13 - CSharpTransition - [56..57)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [57..69)::12 - CSharpCodeBlock - [57..69)::12 - CSharpExpressionLiteral - [57..69)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [69..70)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [70..71)::1 - MarkupTextLiteral - [70..71)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.tspans.txt deleted file mode 100644 index 66b66f6b27e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/CreatesMarkupCodeSpansForNonStringTagHelperAttributes9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [73] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.diag.txt deleted file mode 100644 index 39eecf8c700..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,8): Error RZ2008: Attribute 'boundbool' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. -(1,18): Error RZ2008: Attribute 'boundbooldict-key' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Boolean' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.stree.txt deleted file mode 100644 index 116e8180ef0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..37)::37 - [] - MarkupBlock - [0..37)::37 - MarkupTagHelperElement - [0..37)::37 - input[SelfClosing] - InputTagHelper - MarkupTagHelperStartTag - [0..37)::37 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..16)::10 - boundbool - Minimized - Bound - [ boundbool] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..16)::9 - [boundbool] - Gen - SpanEditHandler;Accepts:Any - Text;[boundbool]; - MarkupMinimizedTagHelperAttribute - [16..34)::18 - boundbooldict-key - Minimized - Bound - [ boundbooldict-key] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..34)::17 - [boundbooldict-key] - Gen - SpanEditHandler;Accepts:Any - Text;[boundbooldict-key]; - MarkupMiscAttributeContent - [34..35)::1 - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.tspans.txt deleted file mode 100644 index c28ec2a7047..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/FeatureDisabled_AddsErrorForMinimizedBooleanBoundAttributes.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [37] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.cspans.txt deleted file mode 100644 index 0391bc3c6c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Expression block at (24:0,24 [13] ) -Code span at (25:0,25 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (24:0,24 [13] ) -Code span at (41:0,41 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (41:0,41 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (42:0,42 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.stree.txt deleted file mode 100644 index f1241cf3ec2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..42)::42 - [@{}] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpStatement - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..42)::41 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..41)::39 - MarkupBlock - [2..41)::39 - MarkupTagHelperElement - [2..41)::39 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..41)::39 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..38)::30 - data-required - SingleQuotes - Unbound - [ data-required='@DateTime.Now'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [24..37)::13 - CSharpCodeBlock - [24..37)::13 - CSharpImplicitExpression - [24..37)::13 - CSharpTransition - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [25..37)::12 - CSharpCodeBlock - [25..37)::12 - CSharpExpressionLiteral - [25..37)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [38..39)::1 - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.tspans.txt deleted file mode 100644 index 8c4810da567..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [39] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.cspans.txt deleted file mode 100644 index b97cd38cd05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (24:0,24 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [31] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.stree.txt deleted file mode 100644 index c6f66a1cf42..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..34)::34 - [@{}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupTagHelperElement - [2..33)::31 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..33)::31 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..30)::22 - data-required - SingleQuotes - Unbound - [ data-required='value'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [24..29)::5 - MarkupTextLiteral - [24..29)::5 - [value] - Gen - SpanEditHandler;Accepts:Any - Text;[value]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [30..31)::1 - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.tspans.txt deleted file mode 100644 index 61045356941..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [31] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.cspans.txt deleted file mode 100644 index b42754acf32..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Markup span at (24:0,24 [7] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [20] ) -Transition span at (31:0,31 [1] ) (Accepts:None) - Parent: Expression block at (31:0,31 [13] ) -Code span at (32:0,32 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (31:0,31 [13] ) -Code span at (48:0,48 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [49] ) -MetaCode span at (48:0,48 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Markup span at (49:0,49 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.stree.txt deleted file mode 100644 index 917a150b95c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..49)::49 - [@{}] - MarkupBlock - [0..49)::49 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..49)::49 - CSharpStatement - [0..49)::49 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..49)::48 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..48)::46 - MarkupBlock - [2..48)::46 - MarkupTagHelperElement - [2..48)::46 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..48)::46 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..45)::37 - data-required - SingleQuotes - Unbound - [ data-required='prefix @DateTime.Now'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [24..44)::20 - MarkupTextLiteral - [24..31)::7 - [prefix ] - Gen - SpanEditHandler;Accepts:Any - Text;[prefix]; - Whitespace;[ ]; - CSharpCodeBlock - [31..44)::13 - CSharpImplicitExpression - [31..44)::13 - CSharpTransition - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [32..44)::12 - CSharpCodeBlock - [32..44)::12 - CSharpExpressionLiteral - [32..44)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [44..45)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [45..46)::1 - MarkupTextLiteral - [45..46)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [48..48)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [48..49)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [49..49)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.tspans.txt deleted file mode 100644 index 17bc990785d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [46] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.cspans.txt deleted file mode 100644 index 90cbfa0f75a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Expression block at (24:0,24 [13] ) -Code span at (25:0,25 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (24:0,24 [13] ) -Markup span at (37:0,37 [7] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [20] ) -Code span at (48:0,48 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [49] ) -MetaCode span at (48:0,48 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [49] ) -Markup span at (49:0,49 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.stree.txt deleted file mode 100644 index cbfa94a75a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.stree.txt +++ /dev/null @@ -1,52 +0,0 @@ -RazorDocument - [0..49)::49 - [@{}] - MarkupBlock - [0..49)::49 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..49)::49 - CSharpStatement - [0..49)::49 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..49)::48 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..48)::46 - MarkupBlock - [2..48)::46 - MarkupTagHelperElement - [2..48)::46 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..48)::46 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..45)::37 - data-required - SingleQuotes - Unbound - [ data-required='@DateTime.Now suffix'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [24..44)::20 - CSharpCodeBlock - [24..37)::13 - CSharpImplicitExpression - [24..37)::13 - CSharpTransition - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [25..37)::12 - CSharpCodeBlock - [25..37)::12 - CSharpExpressionLiteral - [25..37)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [37..44)::7 - [ suffix] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[suffix]; - MarkupTextLiteral - [44..45)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [45..46)::1 - MarkupTextLiteral - [45..46)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [48..48)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [48..49)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [49..49)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.tspans.txt deleted file mode 100644 index 17bc990785d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [46] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.cspans.txt deleted file mode 100644 index 912f6a99101..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Markup span at (24:0,24 [7] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [27] ) -Transition span at (31:0,31 [1] ) (Accepts:None) - Parent: Expression block at (31:0,31 [13] ) -Code span at (32:0,32 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (31:0,31 [13] ) -Markup span at (44:0,44 [7] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [27] ) -Code span at (55:0,55 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [56] ) -MetaCode span at (55:0,55 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [56] ) -Markup span at (56:0,56 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.stree.txt deleted file mode 100644 index c511a32c136..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..56)::56 - [@{}] - MarkupBlock - [0..56)::56 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..56)::56 - CSharpStatement - [0..56)::56 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..56)::55 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..55)::53 - MarkupBlock - [2..55)::53 - MarkupTagHelperElement - [2..55)::53 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..55)::53 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..52)::44 - data-required - SingleQuotes - Unbound - [ data-required='prefix @DateTime.Now suffix'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [24..51)::27 - MarkupTextLiteral - [24..31)::7 - [prefix ] - Gen - SpanEditHandler;Accepts:Any - Text;[prefix]; - Whitespace;[ ]; - CSharpCodeBlock - [31..44)::13 - CSharpImplicitExpression - [31..44)::13 - CSharpTransition - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [32..44)::12 - CSharpCodeBlock - [32..44)::12 - CSharpExpressionLiteral - [32..44)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [44..51)::7 - [ suffix] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[suffix]; - MarkupTextLiteral - [51..52)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [52..53)::1 - MarkupTextLiteral - [52..53)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [55..55)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [55..56)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [56..56)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.tspans.txt deleted file mode 100644 index b3c0a3f1b57..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [53] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.cspans.txt deleted file mode 100644 index a02a8575050..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -Markup span at (38:0,38 [7] ) (Accepts:Any) - Parent: Markup block at (38:0,38 [27] ) -Transition span at (45:0,45 [1] ) (Accepts:None) - Parent: Expression block at (45:0,45 [13] ) -Code span at (46:0,46 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (45:0,45 [13] ) -Markup span at (58:0,58 [7] ) (Accepts:Any) - Parent: Markup block at (38:0,38 [27] ) -Code span at (84:0,84 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [85] ) -MetaCode span at (84:0,84 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [85] ) -Markup span at (85:0,85 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [85] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.stree.txt deleted file mode 100644 index 3233942ef7e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.stree.txt +++ /dev/null @@ -1,65 +0,0 @@ -RazorDocument - [0..85)::85 - [@{}] - MarkupBlock - [0..85)::85 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..85)::85 - CSharpStatement - [0..85)::85 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..85)::84 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..84)::82 - MarkupBlock - [2..84)::82 - MarkupTagHelperElement - [2..84)::82 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..84)::82 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..22)::14 - pre-attribute - Minimized - Unbound - [ pre-attribute] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [pre-attribute] - Gen - SpanEditHandler;Accepts:Any - Text;[pre-attribute]; - MarkupTagHelperAttribute - [22..66)::44 - data-required - SingleQuotes - Unbound - [ data-required='prefix @DateTime.Now suffix'] - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [23..36)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [38..65)::27 - MarkupTextLiteral - [38..45)::7 - [prefix ] - Gen - SpanEditHandler;Accepts:Any - Text;[prefix]; - Whitespace;[ ]; - CSharpCodeBlock - [45..58)::13 - CSharpImplicitExpression - [45..58)::13 - CSharpTransition - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [46..58)::12 - CSharpCodeBlock - [46..58)::12 - CSharpExpressionLiteral - [46..58)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [58..65)::7 - [ suffix] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[suffix]; - MarkupTextLiteral - [65..66)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [66..81)::15 - post-attribute - Minimized - Unbound - [ post-attribute] - MarkupTextLiteral - [66..67)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [67..81)::14 - [post-attribute] - Gen - SpanEditHandler;Accepts:Any - Text;[post-attribute]; - MarkupMiscAttributeContent - [81..82)::1 - MarkupTextLiteral - [81..82)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [84..84)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [84..85)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [85..85)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.tspans.txt deleted file mode 100644 index c5d99786108..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [82] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.cspans.txt deleted file mode 100644 index 636e0fa0e09..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [63] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [63] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [63] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Expression block at (24:0,24 [13] ) -Code span at (25:0,25 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (24:0,24 [13] ) -Markup span at (37:0,37 [8] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [34] ) -Transition span at (45:0,45 [1] ) (Accepts:None) - Parent: Expression block at (45:0,45 [13] ) -Code span at (46:0,46 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (45:0,45 [13] ) -Code span at (62:0,62 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [63] ) -MetaCode span at (62:0,62 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [63] ) -Markup span at (63:0,63 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [63] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.stree.txt deleted file mode 100644 index f9bd7098d2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.stree.txt +++ /dev/null @@ -1,63 +0,0 @@ -RazorDocument - [0..63)::63 - [@{}] - MarkupBlock - [0..63)::63 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..63)::63 - CSharpStatement - [0..63)::63 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..63)::62 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..62)::60 - MarkupBlock - [2..62)::60 - MarkupTagHelperElement - [2..62)::60 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [2..62)::60 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..59)::51 - data-required - SingleQuotes - Unbound - [ data-required='@DateTime.Now middle @DateTime.Now'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..22)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [24..58)::34 - CSharpCodeBlock - [24..37)::13 - CSharpImplicitExpression - [24..37)::13 - CSharpTransition - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [25..37)::12 - CSharpCodeBlock - [25..37)::12 - CSharpExpressionLiteral - [25..37)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [37..45)::8 - [ middle ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[middle]; - Whitespace;[ ]; - CSharpCodeBlock - [45..58)::13 - CSharpImplicitExpression - [45..58)::13 - CSharpTransition - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [46..58)::12 - CSharpCodeBlock - [46..58)::12 - CSharpExpressionLiteral - [46..58)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [58..59)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [59..60)::1 - MarkupTextLiteral - [59..60)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [62..62)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [62..63)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [63..63)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.tspans.txt deleted file mode 100644 index d2ec83b74fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Block7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [60] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.cspans.txt deleted file mode 100644 index 0f363fa4103..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (22:0,22 [1] ) (Accepts:None) - Parent: Expression block at (22:0,22 [13] ) -Code span at (23:0,23 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (22:0,22 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.stree.txt deleted file mode 100644 index 005a8559dc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..39)::39 - [] - MarkupBlock - [0..39)::39 - MarkupTagHelperElement - [0..39)::39 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..39)::39 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..36)::30 - data-required - SingleQuotes - Unbound - [ data-required='@DateTime.Now'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..35)::13 - CSharpCodeBlock - [22..35)::13 - CSharpImplicitExpression - [22..35)::13 - CSharpTransition - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [23..35)::12 - CSharpCodeBlock - [23..35)::12 - CSharpExpressionLiteral - [23..35)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [36..37)::1 - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.tspans.txt deleted file mode 100644 index 12328928a97..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [39] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.cspans.txt deleted file mode 100644 index c7e4c20b334..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (22:0,22 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.stree.txt deleted file mode 100644 index 6add56eab55..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..31)::31 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..28)::22 - data-required - SingleQuotes - Unbound - [ data-required='value'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..27)::5 - MarkupTextLiteral - [22..27)::5 - [value] - Gen - SpanEditHandler;Accepts:Any - Text;[value]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.tspans.txt deleted file mode 100644 index 230d60af711..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.cspans.txt deleted file mode 100644 index 1500c5924f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (22:0,22 [7] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [20] ) -Transition span at (29:0,29 [1] ) (Accepts:None) - Parent: Expression block at (29:0,29 [13] ) -Code span at (30:0,30 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (29:0,29 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.stree.txt deleted file mode 100644 index c473d319190..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..46)::46 - [] - MarkupBlock - [0..46)::46 - MarkupTagHelperElement - [0..46)::46 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..46)::46 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..43)::37 - data-required - SingleQuotes - Unbound - [ data-required='prefix @DateTime.Now'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..42)::20 - MarkupTextLiteral - [22..29)::7 - [prefix ] - Gen - SpanEditHandler;Accepts:Any - Text;[prefix]; - Whitespace;[ ]; - CSharpCodeBlock - [29..42)::13 - CSharpImplicitExpression - [29..42)::13 - CSharpTransition - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [30..42)::12 - CSharpCodeBlock - [30..42)::12 - CSharpExpressionLiteral - [30..42)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [42..43)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [43..44)::1 - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.tspans.txt deleted file mode 100644 index 81cfc6f2a1d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [46] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.cspans.txt deleted file mode 100644 index 7a49d77d28d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Transition span at (22:0,22 [1] ) (Accepts:None) - Parent: Expression block at (22:0,22 [13] ) -Code span at (23:0,23 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (22:0,22 [13] ) -Markup span at (35:0,35 [7] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.stree.txt deleted file mode 100644 index 1933f85f887..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..46)::46 - [] - MarkupBlock - [0..46)::46 - MarkupTagHelperElement - [0..46)::46 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..46)::46 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..43)::37 - data-required - SingleQuotes - Unbound - [ data-required='@DateTime.Now suffix'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..42)::20 - CSharpCodeBlock - [22..35)::13 - CSharpImplicitExpression - [22..35)::13 - CSharpTransition - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [23..35)::12 - CSharpCodeBlock - [23..35)::12 - CSharpExpressionLiteral - [23..35)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [35..42)::7 - [ suffix] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[suffix]; - MarkupTextLiteral - [42..43)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [43..44)::1 - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.tspans.txt deleted file mode 100644 index 81cfc6f2a1d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [46] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.cspans.txt deleted file mode 100644 index 4ffa71d61fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (22:0,22 [7] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [27] ) -Transition span at (29:0,29 [1] ) (Accepts:None) - Parent: Expression block at (29:0,29 [13] ) -Code span at (30:0,30 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (29:0,29 [13] ) -Markup span at (42:0,42 [7] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.stree.txt deleted file mode 100644 index 1e750fbb5ae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..53)::53 - [] - MarkupBlock - [0..53)::53 - MarkupTagHelperElement - [0..53)::53 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..53)::53 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..50)::44 - data-required - SingleQuotes - Unbound - [ data-required='prefix @DateTime.Now suffix'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..49)::27 - MarkupTextLiteral - [22..29)::7 - [prefix ] - Gen - SpanEditHandler;Accepts:Any - Text;[prefix]; - Whitespace;[ ]; - CSharpCodeBlock - [29..42)::13 - CSharpImplicitExpression - [29..42)::13 - CSharpTransition - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [30..42)::12 - CSharpCodeBlock - [30..42)::12 - CSharpExpressionLiteral - [30..42)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [42..49)::7 - [ suffix] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[suffix]; - MarkupTextLiteral - [49..50)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [50..51)::1 - MarkupTextLiteral - [50..51)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.tspans.txt deleted file mode 100644 index 0a6025f261b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [53] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.cspans.txt deleted file mode 100644 index 72d64346065..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (36:0,36 [7] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [27] ) -Transition span at (43:0,43 [1] ) (Accepts:None) - Parent: Expression block at (43:0,43 [13] ) -Code span at (44:0,44 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (43:0,43 [13] ) -Markup span at (56:0,56 [7] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.stree.txt deleted file mode 100644 index 2389a37fac3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..82)::82 - [] - MarkupBlock - [0..82)::82 - MarkupTagHelperElement - [0..82)::82 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..82)::82 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..20)::14 - pre-attribute - Minimized - Unbound - [ pre-attribute] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [pre-attribute] - Gen - SpanEditHandler;Accepts:Any - Text;[pre-attribute]; - MarkupTagHelperAttribute - [20..64)::44 - data-required - SingleQuotes - Unbound - [ data-required='prefix @DateTime.Now suffix'] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..34)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [36..63)::27 - MarkupTextLiteral - [36..43)::7 - [prefix ] - Gen - SpanEditHandler;Accepts:Any - Text;[prefix]; - Whitespace;[ ]; - CSharpCodeBlock - [43..56)::13 - CSharpImplicitExpression - [43..56)::13 - CSharpTransition - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [44..56)::12 - CSharpCodeBlock - [44..56)::12 - CSharpExpressionLiteral - [44..56)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [56..63)::7 - [ suffix] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[suffix]; - MarkupTextLiteral - [63..64)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [64..79)::15 - post-attribute - Minimized - Unbound - [ post-attribute] - MarkupTextLiteral - [64..65)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [65..79)::14 - [post-attribute] - Gen - SpanEditHandler;Accepts:Any - Text;[post-attribute]; - MarkupMiscAttributeContent - [79..80)::1 - MarkupTextLiteral - [79..80)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.tspans.txt deleted file mode 100644 index 368fd6b6d8b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [82] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.cspans.txt deleted file mode 100644 index 4cf3018f988..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Transition span at (22:0,22 [1] ) (Accepts:None) - Parent: Expression block at (22:0,22 [13] ) -Code span at (23:0,23 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (22:0,22 [13] ) -Markup span at (35:0,35 [8] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [34] ) -Transition span at (43:0,43 [1] ) (Accepts:None) - Parent: Expression block at (43:0,43 [13] ) -Code span at (44:0,44 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (43:0,43 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.stree.txt deleted file mode 100644 index f8d3ba92847..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..60)::60 - [] - MarkupBlock - [0..60)::60 - MarkupTagHelperElement - [0..60)::60 - input[SelfClosing] - inputtaghelper - MarkupTagHelperStartTag - [0..60)::60 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..57)::51 - data-required - SingleQuotes - Unbound - [ data-required='@DateTime.Now middle @DateTime.Now'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..20)::13 - [data-required] - Gen - SpanEditHandler;Accepts:Any - Text;[data-required]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..56)::34 - CSharpCodeBlock - [22..35)::13 - CSharpImplicitExpression - [22..35)::13 - CSharpTransition - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [23..35)::12 - CSharpCodeBlock - [23..35)::12 - CSharpExpressionLiteral - [23..35)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [35..43)::8 - [ middle ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[middle]; - Whitespace;[ ]; - CSharpCodeBlock - [43..56)::13 - CSharpImplicitExpression - [43..56)::13 - CSharpTransition - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [44..56)::12 - CSharpCodeBlock - [44..56)::12 - CSharpExpressionLiteral - [44..56)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [56..57)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [57..58)::1 - MarkupTextLiteral - [57..58)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.tspans.txt deleted file mode 100644 index cd85eb4a9fb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/GeneratesExpectedOutputForUnboundDataDashAttributes_Document7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [60] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.cspans.txt deleted file mode 100644 index c768c471757..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -MetaCode span at (7:0,7 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [60] ) -Code span at (20:0,20 [7] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [60] ) -MetaCode span at (29:0,29 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [60] ) -MetaCode span at (40:0,40 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [60] ) -Markup span at (48:0,48 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [60] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.stree.txt deleted file mode 100644 index 9118b9908d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..60)::60 - [] - MarkupBlock - [0..60)::60 - MarkupTagHelperElement - [0..60)::60 - input[SelfClosing] - Bind - MarkupTagHelperStartTag - [0..60)::60 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperDirectiveAttribute - [6..28)::22 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [7..8)::1 - Transition;[@]; - MarkupTextLiteral - [8..18)::10 - [bind-value] - Text;[bind-value]; - Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [20..27)::7 - CSharpExpressionLiteral - [20..27)::7 - [Message] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[Message]; - MarkupTextLiteral - [27..28)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperDirectiveAttribute - [28..57)::29 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [29..30)::1 - Transition;[@]; - MarkupTextLiteral - [30..40)::10 - [bind-value] - Text;[bind-value]; - RazorMetaCode - [40..41)::1 - Colon;[:]; - MarkupTextLiteral - [41..46)::5 - [event] - Text;[event]; - Equals;[=]; - MarkupTextLiteral - [47..48)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [48..56)::8 - MarkupTextLiteral - [48..56)::8 - [onchange] - Gen - SpanEditHandler;Accepts:Any - Text;[onchange]; - MarkupTextLiteral - [56..57)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [57..58)::1 - MarkupTextLiteral - [57..58)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.tspans.txt deleted file mode 100644 index 31cb82bc12b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_ComponentDirectiveAttributes.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [60] ) - Bind diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.cspans.txt deleted file mode 100644 index 0d481010a6b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -MetaCode span at (7:0,7 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -MetaCode span at (17:0,17 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -MetaCode span at (26:0,26 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.diag.txt deleted file mode 100644 index 79b4724fcae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,8): Error RZ2008: Attribute '@bind-foo' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Object' cannot be empty or contain only whitespace. -(1,18): Error RZ2008: Attribute '@bind-foo:param' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Object' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.stree.txt deleted file mode 100644 index ba103eb489e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..35)::35 - [] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - input[SelfClosing] - Bind - MarkupTagHelperStartTag - [0..35)::35 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperDirectiveAttribute - [6..16)::10 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [7..8)::1 - Transition;[@]; - MarkupTextLiteral - [8..16)::8 - [bind-foo] - Text;[bind-foo]; - MarkupMinimizedTagHelperDirectiveAttribute - [16..32)::16 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RazorMetaCode - [17..18)::1 - Transition;[@]; - MarkupTextLiteral - [18..26)::8 - [bind-foo] - Text;[bind-foo]; - RazorMetaCode - [26..27)::1 - Colon;[:]; - MarkupTextLiteral - [27..32)::5 - [param] - Text;[param]; - MarkupMiscAttributeContent - [32..33)::1 - MarkupTextLiteral - [32..33)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.tspans.txt deleted file mode 100644 index 51f2cc14546..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/Rewrites_MinimizedComponentDirectiveAttributes.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - Bind diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.cspans.txt deleted file mode 100644 index b036e36e171..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) -Markup span at (1:0,1 [1] ) (Accepts:Any) - Parent: Tag block at (1:0,1 [1] ) -Markup span at (5:0,5 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.stree.txt deleted file mode 100644 index d7c4029b8de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..11)::11 - [<<

                        >>

                        ] - MarkupBlock - [0..11)::11 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupElement - [1..2)::1 - MarkupStartTag - [1..2)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [2..11)::9 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [2..5)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [5..7)::2 - [>>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [7..11)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.tspans.txt deleted file mode 100644 index 894ab5361e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [9] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.cspans.txt deleted file mode 100644 index 2961977bf23..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [17] ) -Transition span at (5:0,5 [1] ) (Accepts:None) - Parent: Expression block at (5:0,5 [13] ) -Code span at (6:0,6 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (5:0,5 [13] ) -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [17] ) -Markup span at (20:0,20 [3] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [3] ) -Transition span at (23:0,23 [1] ) (Accepts:None) - Parent: Expression block at (23:0,23 [13] ) -Code span at (24:0,24 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (23:0,23 [13] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.stree.txt deleted file mode 100644 index d7132ba6a34..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.stree.txt +++ /dev/null @@ -1,53 +0,0 @@ -RazorDocument - [0..42)::42 - [

                        < @DateTime.Now >

                        ] - MarkupBlock - [0..42)::42 - MarkupTagHelperElement - [0..42)::42 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..23)::20 - MarkupStartTag - [3..20)::17 - [< @DateTime.Now >] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMiscAttributeContent - [4..19)::15 - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CSharpCodeBlock - [5..18)::13 - CSharpImplicitExpression - [5..18)::13 - CSharpTransition - [5..6)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [6..18)::12 - CSharpCodeBlock - [6..18)::12 - CSharpExpressionLiteral - [6..18)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupEndTag - [20..23)::3 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - MarkupMiscAttributeContent - [22..23)::1 - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - CSharpCodeBlock - [23..36)::13 - CSharpImplicitExpression - [23..36)::13 - CSharpTransition - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [24..36)::12 - CSharpCodeBlock - [24..36)::12 - CSharpExpressionLiteral - [24..36)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [36..38)::2 - [ >] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [38..42)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.tspans.txt deleted file mode 100644 index ba175444513..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [42] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.cspans.txt deleted file mode 100644 index 0e6957363a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.stree.txt deleted file mode 100644 index 6287be03cd1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..6)::6 - [<

                        ] - MarkupBlock - [0..6)::6 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [1..6)::5 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [1..6)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [3..4)::1 - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.tspans.txt deleted file mode 100644 index 84e47f2a858..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (1:0,1 [5] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.cspans.txt deleted file mode 100644 index a81209229a1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [6] ) -Markup span at (1:0,1 [2] ) (Accepts:Any) - Parent: Markup block at (1:0,1 [2] ) -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.stree.txt deleted file mode 100644 index 3ad4a9bcc64..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml3.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..6)::6 - [< p />] - MarkupBlock - [0..6)::6 - MarkupElement - [0..6)::6 - MarkupStartTag - [0..6)::6 - [< p />] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMinimizedAttributeBlock - [1..3)::2 - [ p] - MarkupTextLiteral - [1..2)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [2..3)::1 - [p] - Gen - SpanEditHandler;Accepts:Any - Text;[p]; - MarkupMiscAttributeContent - [3..4)::1 - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.cspans.txt deleted file mode 100644 index 4f69cb3f10e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.stree.txt deleted file mode 100644 index ed83e316d08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..12)::12 - [] - MarkupBlock - [0..12)::12 - MarkupElement - [0..7)::7 - MarkupStartTag - [0..7)::7 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTagHelperElement - [7..12)::5 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [7..12)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [9..10)::1 - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.tspans.txt deleted file mode 100644 index 42777cb0275..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (7:0,7 [5] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.cspans.txt deleted file mode 100644 index c6be2f19251..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) -Markup span at (1:0,1 [8] ) (Accepts:Any) - Parent: Markup block at (1:0,1 [12] ) -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Markup block at (1:0,1 [12] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (1:0,1 [12] ) -Markup span at (13:0,13 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.stree.txt deleted file mode 100644 index 857397eb390..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..19)::19 - [< class="foo"

                        ] - MarkupBlock - [0..19)::19 - MarkupElement - [0..14)::14 - MarkupStartTag - [0..14)::14 - [< class="foo" ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupAttributeBlock - [1..13)::12 - [ class="foo"] - MarkupTextLiteral - [1..2)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [2..7)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [8..9)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [13..14)::1 - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTagHelperElement - [14..19)::5 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [14..19)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.tspans.txt deleted file mode 100644 index ad370b61a77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (14:0,14 [5] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.cspans.txt deleted file mode 100644 index 680a4f547cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [2] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [1] ) -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [9] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.stree.txt deleted file mode 100644 index 3203e9a1e83..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..13)::13 - [/>

                        >] - MarkupBlock - [0..13)::13 - MarkupElement - [0..2)::2 - MarkupEndTag - [0..2)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupElement - [2..3)::1 - MarkupStartTag - [2..3)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [3..12)::9 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [3..6)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [6..8)::2 - [/>] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [8..12)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [12..13)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.tspans.txt deleted file mode 100644 index 4efdfadfb9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (3:0,3 [9] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.cspans.txt deleted file mode 100644 index 026682c72d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [2] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [1] ) -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [17] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [8] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.stree.txt deleted file mode 100644 index e7a7bd8bef0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..21)::21 - [/>

                        >] - MarkupBlock - [0..21)::21 - MarkupElement - [0..2)::2 - MarkupEndTag - [0..2)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupElement - [2..3)::1 - MarkupStartTag - [2..3)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [3..20)::17 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [3..6)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [6..8)::2 - [/>] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupElement - [8..16)::8 - MarkupStartTag - [8..16)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [16..20)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [20..21)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.tspans.txt deleted file mode 100644 index f66bf28d95c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (3:0,3 [17] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.cspans.txt deleted file mode 100644 index 31aa41b4cd7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [2] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [1] ) -Transition span at (6:0,6 [1] ) (Accepts:None) - Parent: Expression block at (6:0,6 [13] ) -Code span at (7:0,7 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (6:0,6 [13] ) -Markup span at (19:0,19 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [30] ) -Markup span at (21:0,21 [8] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [8] ) -Markup span at (33:0,33 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.stree.txt deleted file mode 100644 index d15f747b508..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..34)::34 - [@DateTime.Now/>

                        >] - MarkupBlock - [0..34)::34 - MarkupElement - [0..2)::2 - MarkupEndTag - [0..2)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupElement - [2..3)::1 - MarkupStartTag - [2..3)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [3..33)::30 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [3..6)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [6..19)::13 - CSharpImplicitExpression - [6..19)::13 - CSharpTransition - [6..7)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [7..19)::12 - CSharpCodeBlock - [7..19)::12 - CSharpExpressionLiteral - [7..19)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [19..21)::2 - [/>] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupElement - [21..29)::8 - MarkupStartTag - [21..29)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [29..33)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [33..34)::1 - [>] - Gen - SpanEditHandler;Accepts:Any - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.tspans.txt deleted file mode 100644 index 9953ea63272..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (3:0,3 [30] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.cspans.txt deleted file mode 100644 index 38e6112313c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) -Markup span at (5:0,5 [4] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [4] ) -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [13] ) -Code span at (13:0,13 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [13] ) -Markup span at (25:0,25 [4] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [32] ) -Markup span at (29:0,29 [8] ) (Accepts:Any) - Parent: Tag block at (29:0,29 [8] ) -Markup span at (41:0,41 [11] ) (Accepts:Any) - Parent: Tag block at (41:0,41 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.stree.txt deleted file mode 100644 index d7790cca1fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.stree.txt +++ /dev/null @@ -1,59 +0,0 @@ -RazorDocument - [0..52)::52 - [

                        @DateTime.Now / >

                        ] - MarkupBlock - [0..52)::52 - MarkupElement - [0..4)::4 - MarkupEndTag - [0..4)::4 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - MarkupMiscAttributeContent - [2..4)::2 - MarkupTextLiteral - [2..4)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTextLiteral - [4..5)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupElement - [5..52)::47 - MarkupStartTag - [5..9)::4 - [< >] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - MarkupMiscAttributeContent - [6..8)::2 - MarkupTextLiteral - [6..8)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTagHelperElement - [9..41)::32 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [9..12)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [12..25)::13 - CSharpImplicitExpression - [12..25)::13 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..25)::12 - CSharpCodeBlock - [13..25)::12 - CSharpExpressionLiteral - [13..25)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [25..29)::4 - [ / >] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - Whitespace;[ ]; - CloseAngle;[>]; - MarkupElement - [29..37)::8 - MarkupStartTag - [29..37)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [37..41)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [41..52)::11 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - MarkupMiscAttributeContent - [43..51)::8 - MarkupTextLiteral - [43..51)::8 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.tspans.txt deleted file mode 100644 index 4d43ab5dde5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_AllowsInvalidHtml9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (9:0,9 [32] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.cspans.txt deleted file mode 100644 index e3af2600c13..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [64] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (41:0,41 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [64] ) -Markup span at (64:0,64 [9] ) (Accepts:Any) - Parent: Tag block at (64:0,64 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.diag.txt deleted file mode 100644 index 2578ab72e2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,54): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,67): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.stree.txt deleted file mode 100644 index 3bd2c136676..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.stree.txt +++ /dev/null @@ -1,62 +0,0 @@ -RazorDocument - [0..73)::73 - [

                        ] - MarkupBlock - [0..73)::73 - MarkupTagHelperElement - [0..64)::64 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..52)::52 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTagHelperAttribute - [12..34)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..20)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [21..34)::13 - MarkupDynamicAttributeValue - [21..34)::13 - [@DateTime.Now] - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperAttribute - [34..51)::17 - style - DoubleQuotes - Unbound - [ style=color:red;] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..40)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTagHelperAttributeValue - [41..51)::10 - MarkupLiteralAttributeValue - [41..51)::10 - [color:red;] - MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - CloseAngle;[>]; - MarkupTagHelperElement - [52..60)::8 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [52..60)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [60..64)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [64..73)::9 - MarkupEndTag - [64..73)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.tspans.txt deleted file mode 100644 index 13065315b22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper1.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [64] ) - ptaghelper -TagHelper span at (52:0,52 [8] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.cspans.txt deleted file mode 100644 index f4e5ce935cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [31] ) -Markup span at (22:0,22 [5] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [22] ) -Markup span at (36:0,36 [6] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.diag.txt deleted file mode 100644 index b1d7d8700f1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.stree.txt deleted file mode 100644 index b14f9358453..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..42)::42 - [

                        Hello World

                        ] - MarkupBlock - [0..42)::42 - MarkupElement - [0..42)::42 - MarkupStartTag - [0..5)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperElement - [5..36)::31 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [5..8)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [8..14)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - MarkupTagHelperElement - [14..36)::22 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [14..22)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [22..27)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [27..36)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [36..42)::6 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.tspans.txt deleted file mode 100644 index 36dd08e8185..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (5:0,5 [31] ) - ptaghelper -TagHelper span at (14:0,14 [22] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.cspans.txt deleted file mode 100644 index a003b54d783..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (8:0,8 [6] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [22] ) -Markup span at (22:0,22 [5] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [13] ) -Markup span at (27:0,27 [6] ) (Accepts:Any) - Parent: Tag block at (27:0,27 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.diag.txt deleted file mode 100644 index f0fb7028418..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,7): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,16): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.stree.txt deleted file mode 100644 index d81b716ffb9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..33)::33 - [

                        Hello World

                        ] - MarkupBlock - [0..33)::33 - MarkupElement - [0..33)::33 - MarkupStartTag - [0..5)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperElement - [5..27)::22 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [5..8)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [8..14)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - MarkupTagHelperElement - [14..27)::13 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [14..22)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [22..27)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupEndTag - [27..33)::6 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.tspans.txt deleted file mode 100644 index 9fc6edf71a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (5:0,5 [22] ) - ptaghelper -TagHelper span at (14:0,14 [13] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.cspans.txt deleted file mode 100644 index 201fd033d58..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [52] ) -Markup span at (15:0,15 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [52] ) -Markup span at (31:0,31 [10] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [31] ) -Markup span at (43:0,43 [5] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.diag.txt deleted file mode 100644 index d177eb6df7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.stree.txt deleted file mode 100644 index 1b2046e56b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..52)::52 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..52)::52 - MarkupTagHelperElement - [0..52)::52 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [15..21)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - MarkupTagHelperElement - [21..52)::31 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [21..43)::22 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [23..42)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..29)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [31..41)::10 - MarkupLiteralAttributeValue - [31..41)::10 - [color:red;] - MarkupTextLiteral - [31..41)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [41..42)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [43..48)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [48..52)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.tspans.txt deleted file mode 100644 index 9cc0f52b9bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_CreatesErrorForIncompleteTagHelper4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [52] ) - ptaghelper -TagHelper span at (21:0,21 [31] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.cspans.txt deleted file mode 100644 index 646bf548d86..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) -Transition span at (32:0,32 [1] ) (Accepts:None) - Parent: Expression block at (32:0,32 [13] ) -Code span at (33:0,33 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (32:0,32 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.stree.txt deleted file mode 100644 index 219e227fc16..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..51)::51 - [

                        ] - MarkupBlock - [0..51)::51 - MarkupTagHelperElement - [0..51)::51 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..47)::47 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..23)::13 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [24..46)::22 - style - SingleQuotes - Unbound - [ style='@DateTime.Now'] - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [25..30)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [32..45)::13 - MarkupDynamicAttributeValue - [32..45)::13 - [@DateTime.Now] - GenericBlock - [32..45)::13 - CSharpCodeBlock - [32..45)::13 - CSharpImplicitExpression - [32..45)::13 - CSharpTransition - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [33..45)::12 - CSharpCodeBlock - [33..45)::12 - CSharpExpressionLiteral - [33..45)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [45..46)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [47..51)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.tspans.txt deleted file mode 100644 index 23e57e8f349..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [51] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.cspans.txt deleted file mode 100644 index d595d25c401..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (10:0,10 [64] ) -Code span at (11:0,11 [20] ) (Accepts:Any) - Parent: Statement block at (10:0,10 [64] ) -Transition span at (31:0,31 [6] ) (Accepts:None) - Parent: Tag block at (31:0,31 [6] ) -Markup span at (37:0,37 [3] ) (Accepts:Any) - Parent: Markup block at (31:0,31 [16] ) -Transition span at (40:0,40 [7] ) (Accepts:None) - Parent: Tag block at (40:0,40 [7] ) -Code span at (47:0,47 [27] ) (Accepts:None) - Parent: Statement block at (10:0,10 [64] ) -Transition span at (83:0,83 [1] ) (Accepts:None) - Parent: Statement block at (83:0,83 [64] ) -Code span at (84:0,84 [20] ) (Accepts:Any) - Parent: Statement block at (83:0,83 [64] ) -Transition span at (104:0,104 [6] ) (Accepts:None) - Parent: Tag block at (104:0,104 [6] ) -Markup span at (110:0,110 [3] ) (Accepts:Any) - Parent: Markup block at (104:0,104 [16] ) -Transition span at (113:0,113 [7] ) (Accepts:None) - Parent: Tag block at (113:0,113 [7] ) -Code span at (120:0,120 [27] ) (Accepts:None) - Parent: Statement block at (83:0,83 [64] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.stree.txt deleted file mode 100644 index f64298d5546..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.stree.txt +++ /dev/null @@ -1,132 +0,0 @@ -RazorDocument - [0..153)::153 - [

                        ] - MarkupBlock - [0..153)::153 - MarkupTagHelperElement - [0..153)::153 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..149)::149 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..75)::73 - class - DoubleQuotes - Unbound - [ class="@do { var foo = bar; Foo foo++; } while (foo);"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..74)::64 - MarkupDynamicAttributeValue - [10..74)::64 - [@do { var foo = bar; Foo foo++; } while (foo);] - GenericBlock - [10..74)::64 - CSharpCodeBlock - [10..74)::64 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [11..31)::20 - [do { var foo = bar; ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - MarkupBlock - [31..47)::16 - MarkupElement - [31..47)::16 - MarkupStartTag - [31..37)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [37..40)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [40..47)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [47..74)::27 - [ foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [74..75)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [75..148)::73 - style - SingleQuotes - Unbound - [ style='@do { var foo = bar; Foo foo++; } while (foo);'] - MarkupTextLiteral - [75..76)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [76..81)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [82..83)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [83..147)::64 - MarkupDynamicAttributeValue - [83..147)::64 - [@do { var foo = bar; Foo foo++; } while (foo);] - GenericBlock - [83..147)::64 - CSharpCodeBlock - [83..147)::64 - CSharpTransition - [83..84)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [84..104)::20 - [do { var foo = bar; ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - MarkupBlock - [104..120)::16 - MarkupElement - [104..120)::16 - MarkupStartTag - [104..110)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [110..113)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [113..120)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [120..147)::27 - [ foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [147..148)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [149..153)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.tspans.txt deleted file mode 100644 index 112587be7d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [153] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.cspans.txt deleted file mode 100644 index b49460175d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) -Transition span at (32:0,32 [1] ) (Accepts:None) - Parent: Expression block at (32:0,32 [13] ) -Code span at (33:0,33 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (32:0,32 [13] ) -Markup span at (47:0,47 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [62] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.stree.txt deleted file mode 100644 index 3920141b9eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.stree.txt +++ /dev/null @@ -1,62 +0,0 @@ -RazorDocument - [0..62)::62 - [

                        Hello World

                        ] - MarkupBlock - [0..62)::62 - MarkupTagHelperElement - [0..62)::62 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..47)::47 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..23)::13 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [24..46)::22 - style - SingleQuotes - Unbound - [ style='@DateTime.Now'] - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [25..30)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [32..45)::13 - MarkupDynamicAttributeValue - [32..45)::13 - [@DateTime.Now] - GenericBlock - [32..45)::13 - CSharpCodeBlock - [32..45)::13 - CSharpImplicitExpression - [32..45)::13 - CSharpTransition - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [33..45)::12 - CSharpCodeBlock - [33..45)::12 - CSharpExpressionLiteral - [33..45)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [45..46)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [47..58)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [58..62)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.tspans.txt deleted file mode 100644 index d720c816dea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [62] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.cspans.txt deleted file mode 100644 index dc6757f2fe5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (10:0,10 [64] ) -Code span at (11:0,11 [20] ) (Accepts:Any) - Parent: Statement block at (10:0,10 [64] ) -Transition span at (31:0,31 [6] ) (Accepts:None) - Parent: Tag block at (31:0,31 [6] ) -Markup span at (37:0,37 [3] ) (Accepts:Any) - Parent: Markup block at (31:0,31 [16] ) -Transition span at (40:0,40 [7] ) (Accepts:None) - Parent: Tag block at (40:0,40 [7] ) -Code span at (47:0,47 [27] ) (Accepts:None) - Parent: Statement block at (10:0,10 [64] ) -Transition span at (83:0,83 [1] ) (Accepts:None) - Parent: Statement block at (83:0,83 [64] ) -Code span at (84:0,84 [20] ) (Accepts:Any) - Parent: Statement block at (83:0,83 [64] ) -Transition span at (104:0,104 [6] ) (Accepts:None) - Parent: Tag block at (104:0,104 [6] ) -Markup span at (110:0,110 [3] ) (Accepts:Any) - Parent: Markup block at (104:0,104 [16] ) -Transition span at (113:0,113 [7] ) (Accepts:None) - Parent: Tag block at (113:0,113 [7] ) -Code span at (120:0,120 [27] ) (Accepts:None) - Parent: Statement block at (83:0,83 [64] ) -Markup span at (149:0,149 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [164] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.stree.txt deleted file mode 100644 index 50fdae10858..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.stree.txt +++ /dev/null @@ -1,136 +0,0 @@ -RazorDocument - [0..164)::164 - [

                        Hello World

                        ] - MarkupBlock - [0..164)::164 - MarkupTagHelperElement - [0..164)::164 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..149)::149 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..75)::73 - class - DoubleQuotes - Unbound - [ class="@do { var foo = bar; Foo foo++; } while (foo);"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..74)::64 - MarkupDynamicAttributeValue - [10..74)::64 - [@do { var foo = bar; Foo foo++; } while (foo);] - GenericBlock - [10..74)::64 - CSharpCodeBlock - [10..74)::64 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [11..31)::20 - [do { var foo = bar; ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - MarkupBlock - [31..47)::16 - MarkupElement - [31..47)::16 - MarkupStartTag - [31..37)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [37..40)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [40..47)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [47..74)::27 - [ foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [74..75)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [75..148)::73 - style - SingleQuotes - Unbound - [ style='@do { var foo = bar; Foo foo++; } while (foo);'] - MarkupTextLiteral - [75..76)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [76..81)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [82..83)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [83..147)::64 - MarkupDynamicAttributeValue - [83..147)::64 - [@do { var foo = bar; Foo foo++; } while (foo);] - GenericBlock - [83..147)::64 - CSharpCodeBlock - [83..147)::64 - CSharpTransition - [83..84)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [84..104)::20 - [do { var foo = bar; ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - MarkupBlock - [104..120)::16 - MarkupElement - [104..120)::16 - MarkupStartTag - [104..110)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [110..113)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [113..120)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [120..147)::27 - [ foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [147..148)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [149..160)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [160..164)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.tspans.txt deleted file mode 100644 index 396ba4cb79d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [164] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.cspans.txt deleted file mode 100644 index 8737eaeaf8e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) -Markup span at (25:0,25 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [34] ) -Markup span at (34:0,34 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [69] ) -Transition span at (45:0,45 [1] ) (Accepts:None) - Parent: Expression block at (45:0,45 [13] ) -Code span at (46:0,46 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (45:0,45 [13] ) -Markup span at (60:0,60 [5] ) (Accepts:Any) - Parent: Tag block at (35:0,35 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.stree.txt deleted file mode 100644 index 5199be1c548..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.stree.txt +++ /dev/null @@ -1,74 +0,0 @@ -RazorDocument - [0..69)::69 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..69)::69 - MarkupTagHelperElement - [0..34)::34 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..25)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..23)::13 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [25..30)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [30..34)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [35..69)::34 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [35..60)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [37..59)::22 - style - SingleQuotes - Unbound - [ style='@DateTime.Now'] - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [38..43)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [44..45)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [45..58)::13 - MarkupDynamicAttributeValue - [45..58)::13 - [@DateTime.Now] - GenericBlock - [45..58)::13 - CSharpCodeBlock - [45..58)::13 - CSharpImplicitExpression - [45..58)::13 - CSharpTransition - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [46..58)::12 - CSharpCodeBlock - [46..58)::12 - CSharpExpressionLiteral - [46..58)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [58..59)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [60..65)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [65..69)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.tspans.txt deleted file mode 100644 index 0c0ec10e164..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks5.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [34] ) - ptaghelper -TagHelper span at (35:0,35 [34] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.cspans.txt deleted file mode 100644 index a07650681c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.cspans.txt +++ /dev/null @@ -1,15 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (10:0,10 [64] ) -Code span at (11:0,11 [20] ) (Accepts:Any) - Parent: Statement block at (10:0,10 [64] ) -Transition span at (31:0,31 [6] ) (Accepts:None) - Parent: Tag block at (31:0,31 [6] ) -Markup span at (37:0,37 [3] ) (Accepts:Any) - Parent: Markup block at (31:0,31 [16] ) -Transition span at (40:0,40 [7] ) (Accepts:None) - Parent: Tag block at (40:0,40 [7] ) -Code span at (47:0,47 [27] ) (Accepts:None) - Parent: Statement block at (10:0,10 [64] ) -Markup span at (76:0,76 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [85] ) -Markup span at (85:0,85 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [171] ) -Transition span at (96:0,96 [1] ) (Accepts:None) - Parent: Statement block at (96:0,96 [64] ) -Code span at (97:0,97 [20] ) (Accepts:Any) - Parent: Statement block at (96:0,96 [64] ) -Transition span at (117:0,117 [6] ) (Accepts:None) - Parent: Tag block at (117:0,117 [6] ) -Markup span at (123:0,123 [3] ) (Accepts:Any) - Parent: Markup block at (117:0,117 [16] ) -Transition span at (126:0,126 [7] ) (Accepts:None) - Parent: Tag block at (126:0,126 [7] ) -Code span at (133:0,133 [27] ) (Accepts:None) - Parent: Statement block at (96:0,96 [64] ) -Markup span at (162:0,162 [5] ) (Accepts:Any) - Parent: Tag block at (86:0,86 [85] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.stree.txt deleted file mode 100644 index 6109fde0809..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.stree.txt +++ /dev/null @@ -1,148 +0,0 @@ -RazorDocument - [0..171)::171 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..171)::171 - MarkupTagHelperElement - [0..85)::85 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..76)::76 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..75)::73 - class - DoubleQuotes - Unbound - [ class="@do { var foo = bar; Foo foo++; } while (foo);"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..74)::64 - MarkupDynamicAttributeValue - [10..74)::64 - [@do { var foo = bar; Foo foo++; } while (foo);] - GenericBlock - [10..74)::64 - CSharpCodeBlock - [10..74)::64 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [11..31)::20 - [do { var foo = bar; ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - MarkupBlock - [31..47)::16 - MarkupElement - [31..47)::16 - MarkupStartTag - [31..37)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [37..40)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [40..47)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [47..74)::27 - [ foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [74..75)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [76..81)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [81..85)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [85..86)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [86..171)::85 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [86..162)::76 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [88..161)::73 - style - SingleQuotes - Unbound - [ style='@do { var foo = bar; Foo foo++; } while (foo);'] - MarkupTextLiteral - [88..89)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [89..94)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [95..96)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [96..160)::64 - MarkupDynamicAttributeValue - [96..160)::64 - [@do { var foo = bar; Foo foo++; } while (foo);] - GenericBlock - [96..160)::64 - CSharpCodeBlock - [96..160)::64 - CSharpTransition - [96..97)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [97..117)::20 - [do { var foo = bar; ] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - Whitespace;[ ]; - MarkupBlock - [117..133)::16 - MarkupElement - [117..133)::16 - MarkupStartTag - [117..123)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [123..126)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [126..133)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [133..160)::27 - [ foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [160..161)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [162..167)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [167..171)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.tspans.txt deleted file mode 100644 index f8dba795882..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks6.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [85] ) - ptaghelper -TagHelper span at (86:0,86 [85] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.cspans.txt deleted file mode 100644 index c60ad109b87..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) -Transition span at (32:0,32 [1] ) (Accepts:None) - Parent: Expression block at (32:0,32 [13] ) -Code span at (33:0,33 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (32:0,32 [13] ) -Markup span at (47:0,47 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [122] ) -Markup span at (59:0,59 [7] ) (Accepts:Any) - Parent: Tag block at (59:0,59 [30] ) -Markup span at (66:0,66 [8] ) (Accepts:Any) - Parent: Markup block at (66:0,66 [22] ) -Transition span at (74:0,74 [1] ) (Accepts:None) - Parent: Expression block at (74:0,74 [13] ) -Code span at (75:0,75 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (74:0,74 [13] ) -Markup span at (87:0,87 [1] ) (Accepts:Any) - Parent: Markup block at (66:0,66 [22] ) -Markup span at (88:0,88 [1] ) (Accepts:Any) - Parent: Tag block at (59:0,59 [30] ) -Markup span at (89:0,89 [20] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [122] ) -Markup span at (109:0,109 [9] ) (Accepts:Any) - Parent: Tag block at (109:0,109 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.stree.txt deleted file mode 100644 index 2fb28c3926c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.stree.txt +++ /dev/null @@ -1,104 +0,0 @@ -RazorDocument - [0..122)::122 - [

                        Hello World inside of strong tag

                        ] - MarkupBlock - [0..122)::122 - MarkupTagHelperElement - [0..122)::122 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..47)::47 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..23)::13 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [24..46)::22 - style - SingleQuotes - Unbound - [ style='@DateTime.Now'] - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [25..30)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [32..45)::13 - MarkupDynamicAttributeValue - [32..45)::13 - [@DateTime.Now] - GenericBlock - [32..45)::13 - CSharpCodeBlock - [32..45)::13 - CSharpImplicitExpression - [32..45)::13 - CSharpTransition - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [33..45)::12 - CSharpCodeBlock - [33..45)::12 - CSharpExpressionLiteral - [33..45)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [45..46)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTextLiteral - [47..59)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - MarkupElement - [59..118)::59 - MarkupStartTag - [59..89)::30 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupAttributeBlock - [66..88)::22 - [ class="@DateTime.Now"] - MarkupTextLiteral - [66..67)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [67..72)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [73..74)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [74..87)::13 - MarkupDynamicAttributeValue - [74..87)::13 - [@DateTime.Now] - GenericBlock - [74..87)::13 - CSharpCodeBlock - [74..87)::13 - CSharpImplicitExpression - [74..87)::13 - CSharpTransition - [74..75)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [75..87)::12 - CSharpCodeBlock - [75..87)::12 - CSharpExpressionLiteral - [75..87)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [87..88)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [89..109)::20 - [inside of strong tag] - Gen - SpanEditHandler;Accepts:Any - Text;[inside]; - Whitespace;[ ]; - Text;[of]; - Whitespace;[ ]; - Text;[strong]; - Whitespace;[ ]; - Text;[tag]; - MarkupEndTag - [109..118)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [118..122)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.tspans.txt deleted file mode 100644 index e881d9b3028..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexAttributeTagHelperTagBlocks7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [122] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.cspans.txt deleted file mode 100644 index 1a81781533d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Expression block at (3:0,3 [13] ) -Code span at (4:0,4 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (3:0,3 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.stree.txt deleted file mode 100644 index eb398bbcec6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..20)::20 - [

                        @DateTime.Now

                        ] - MarkupBlock - [0..20)::20 - MarkupTagHelperElement - [0..20)::20 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [3..16)::13 - CSharpImplicitExpression - [3..16)::13 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [4..16)::12 - CSharpCodeBlock - [4..16)::12 - CSharpExpressionLiteral - [4..16)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperEndTag - [16..20)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.tspans.txt deleted file mode 100644 index 66adb496db4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [20] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.cspans.txt deleted file mode 100644 index 1f24e0d42a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Statement block at (3:0,3 [58] ) -Code span at (4:0,4 [19] ) (Accepts:Any) - Parent: Statement block at (3:0,3 [58] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (23:0,23 [12] ) -Markup span at (27:0,27 [3] ) (Accepts:Any) - Parent: Tag block at (24:0,24 [10] ) -Markup span at (34:0,34 [1] ) (Accepts:None) - Parent: Markup block at (23:0,23 [12] ) -Code span at (35:0,35 [26] ) (Accepts:None) - Parent: Statement block at (3:0,3 [58] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.stree.txt deleted file mode 100644 index 0fa891e8bde..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..65)::65 - [

                        @do { var foo = bar;

                        Foo

                        foo++; } while (foo);

                        ] - MarkupBlock - [0..65)::65 - MarkupTagHelperElement - [0..65)::65 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [3..61)::58 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [4..23)::19 - [do { var foo = bar;] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - MarkupBlock - [23..35)::12 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [24..34)::10 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [24..27)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [27..30)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTagHelperEndTag - [30..34)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [35..61)::26 - [foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTagHelperEndTag - [61..65)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.tspans.txt deleted file mode 100644 index 7799cf6bf08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [65] ) - ptaghelper -TagHelper span at (24:0,24 [10] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.cspans.txt deleted file mode 100644 index 09807c89f4f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (3:0,3 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [32] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [13] ) -Code span at (16:0,16 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (15:0,15 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.stree.txt deleted file mode 100644 index cdb14643e40..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..32)::32 - [

                        Hello World @DateTime.Now

                        ] - MarkupBlock - [0..32)::32 - MarkupTagHelperElement - [0..32)::32 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..15)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - CSharpCodeBlock - [15..28)::13 - CSharpImplicitExpression - [15..28)::13 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [16..28)::12 - CSharpCodeBlock - [16..28)::12 - CSharpExpressionLiteral - [16..28)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperEndTag - [28..32)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.tspans.txt deleted file mode 100644 index 5cb039743d0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [32] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.cspans.txt deleted file mode 100644 index 2ad93795cec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (3:0,3 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Statement block at (15:0,15 [58] ) -Code span at (16:0,16 [19] ) (Accepts:Any) - Parent: Statement block at (15:0,15 [58] ) -Markup span at (35:0,35 [1] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [12] ) -Markup span at (39:0,39 [3] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [10] ) -Markup span at (46:0,46 [1] ) (Accepts:None) - Parent: Markup block at (35:0,35 [12] ) -Code span at (47:0,47 [26] ) (Accepts:None) - Parent: Statement block at (15:0,15 [58] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.stree.txt deleted file mode 100644 index 9bb210bc795..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..77)::77 - [

                        Hello World @do { var foo = bar;

                        Foo

                        foo++; } while (foo);

                        ] - MarkupBlock - [0..77)::77 - MarkupTagHelperElement - [0..77)::77 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..15)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - CSharpCodeBlock - [15..73)::58 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [16..35)::19 - [do { var foo = bar;] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - MarkupBlock - [35..47)::12 - MarkupTextLiteral - [35..36)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [36..46)::10 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [36..39)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [39..42)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTagHelperEndTag - [42..46)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [46..47)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [47..73)::26 - [foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTagHelperEndTag - [73..77)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.tspans.txt deleted file mode 100644 index 24d79866fb8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [77] ) - ptaghelper -TagHelper span at (36:0,36 [10] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.cspans.txt deleted file mode 100644 index 1f1417e4fdc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Expression block at (3:0,3 [13] ) -Code span at (4:0,4 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (3:0,3 [13] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Expression block at (24:0,24 [13] ) -Code span at (25:0,25 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (24:0,24 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.stree.txt deleted file mode 100644 index 4939b762033..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..41)::41 - [

                        @DateTime.Now

                        @DateTime.Now

                        ] - MarkupBlock - [0..41)::41 - MarkupTagHelperElement - [0..20)::20 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [3..16)::13 - CSharpImplicitExpression - [3..16)::13 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [4..16)::12 - CSharpCodeBlock - [4..16)::12 - CSharpExpressionLiteral - [4..16)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperEndTag - [16..20)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [21..41)::20 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [21..24)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [24..37)::13 - CSharpImplicitExpression - [24..37)::13 - CSharpTransition - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [25..37)::12 - CSharpCodeBlock - [25..37)::12 - CSharpExpressionLiteral - [25..37)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperEndTag - [37..41)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.tspans.txt deleted file mode 100644 index 5c19dd2b8b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks5.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [20] ) - ptaghelper -TagHelper span at (21:0,21 [20] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.cspans.txt deleted file mode 100644 index e79b4cf0491..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Transition span at (3:0,3 [1] ) (Accepts:None) - Parent: Statement block at (3:0,3 [58] ) -Code span at (4:0,4 [19] ) (Accepts:Any) - Parent: Statement block at (3:0,3 [58] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (23:0,23 [12] ) -Markup span at (27:0,27 [3] ) (Accepts:Any) - Parent: Tag block at (24:0,24 [10] ) -Markup span at (34:0,34 [1] ) (Accepts:None) - Parent: Markup block at (23:0,23 [12] ) -Code span at (35:0,35 [26] ) (Accepts:None) - Parent: Statement block at (3:0,3 [58] ) -Markup span at (65:0,65 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [131] ) -Transition span at (69:0,69 [1] ) (Accepts:None) - Parent: Statement block at (69:0,69 [58] ) -Code span at (70:0,70 [19] ) (Accepts:Any) - Parent: Statement block at (69:0,69 [58] ) -Markup span at (89:0,89 [1] ) (Accepts:Any) - Parent: Markup block at (89:0,89 [12] ) -Markup span at (93:0,93 [3] ) (Accepts:Any) - Parent: Tag block at (90:0,90 [10] ) -Markup span at (100:0,100 [1] ) (Accepts:None) - Parent: Markup block at (89:0,89 [12] ) -Code span at (101:0,101 [26] ) (Accepts:None) - Parent: Statement block at (69:0,69 [58] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.stree.txt deleted file mode 100644 index 599b101b45d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.stree.txt +++ /dev/null @@ -1,122 +0,0 @@ -RazorDocument - [0..131)::131 - [

                        @do { var foo = bar;

                        Foo

                        foo++; } while (foo);

                        @do { var foo = bar;

                        Foo

                        foo++; } while (foo);

                        ] - MarkupBlock - [0..131)::131 - MarkupTagHelperElement - [0..65)::65 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [3..61)::58 - CSharpTransition - [3..4)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [4..23)::19 - [do { var foo = bar;] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - MarkupBlock - [23..35)::12 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [24..34)::10 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [24..27)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [27..30)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTagHelperEndTag - [30..34)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [35..61)::26 - [foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTagHelperEndTag - [61..65)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [65..66)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [66..131)::65 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [66..69)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - CSharpCodeBlock - [69..127)::58 - CSharpTransition - [69..70)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [70..89)::19 - [do { var foo = bar;] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - MarkupBlock - [89..101)::12 - MarkupTextLiteral - [89..90)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [90..100)::10 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [90..93)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [93..96)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTagHelperEndTag - [96..100)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [100..101)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [101..127)::26 - [foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTagHelperEndTag - [127..131)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.tspans.txt deleted file mode 100644 index eef88691cc9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks6.tspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -TagHelper span at (0:0,0 [65] ) - ptaghelper -TagHelper span at (24:0,24 [10] ) - ptaghelper -TagHelper span at (66:0,66 [65] ) - ptaghelper -TagHelper span at (90:0,90 [10] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.cspans.txt deleted file mode 100644 index 289b98f67fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Expression block at (9:0,9 [13] ) -Code span at (10:0,10 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (9:0,9 [13] ) -Markup span at (22:0,22 [8] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [8] ) -Markup span at (30:0,30 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) -Transition span at (40:0,40 [1] ) (Accepts:None) - Parent: Expression block at (40:0,40 [13] ) -Code span at (41:0,41 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (40:0,40 [13] ) -Markup span at (53:0,53 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) -Markup span at (64:0,64 [9] ) (Accepts:Any) - Parent: Tag block at (64:0,64 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.stree.txt deleted file mode 100644 index 5aa23f352a0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..77)::77 - [

                        Hello @DateTime.Nowinside of @DateTime.Now strong tag

                        ] - MarkupBlock - [0..77)::77 - MarkupTagHelperElement - [0..77)::77 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..9)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - CSharpCodeBlock - [9..22)::13 - CSharpImplicitExpression - [9..22)::13 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [10..22)::12 - CSharpCodeBlock - [10..22)::12 - CSharpExpressionLiteral - [10..22)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupElement - [22..73)::51 - MarkupStartTag - [22..30)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [30..40)::10 - [inside of ] - Gen - SpanEditHandler;Accepts:Any - Text;[inside]; - Whitespace;[ ]; - Text;[of]; - Whitespace;[ ]; - CSharpCodeBlock - [40..53)::13 - CSharpImplicitExpression - [40..53)::13 - CSharpTransition - [40..41)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [41..53)::12 - CSharpCodeBlock - [41..53)::12 - CSharpExpressionLiteral - [41..53)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [53..64)::11 - [ strong tag] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[strong]; - Whitespace;[ ]; - Text;[tag]; - MarkupEndTag - [64..73)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [73..77)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.tspans.txt deleted file mode 100644 index fdd25b54f67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [77] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.cspans.txt deleted file mode 100644 index d03e66d5c99..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [167] ) -Transition span at (9:0,9 [1] ) (Accepts:None) - Parent: Statement block at (9:0,9 [58] ) -Code span at (10:0,10 [19] ) (Accepts:Any) - Parent: Statement block at (9:0,9 [58] ) -Markup span at (29:0,29 [1] ) (Accepts:Any) - Parent: Markup block at (29:0,29 [12] ) -Markup span at (33:0,33 [3] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [10] ) -Markup span at (40:0,40 [1] ) (Accepts:None) - Parent: Markup block at (29:0,29 [12] ) -Code span at (41:0,41 [26] ) (Accepts:None) - Parent: Statement block at (9:0,9 [58] ) -Markup span at (67:0,67 [8] ) (Accepts:Any) - Parent: Tag block at (67:0,67 [8] ) -Markup span at (75:0,75 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [167] ) -Transition span at (85:0,85 [1] ) (Accepts:None) - Parent: Statement block at (85:0,85 [58] ) -Code span at (86:0,86 [19] ) (Accepts:Any) - Parent: Statement block at (85:0,85 [58] ) -Markup span at (105:0,105 [1] ) (Accepts:Any) - Parent: Markup block at (105:0,105 [12] ) -Markup span at (109:0,109 [3] ) (Accepts:Any) - Parent: Tag block at (106:0,106 [10] ) -Markup span at (116:0,116 [1] ) (Accepts:None) - Parent: Markup block at (105:0,105 [12] ) -Code span at (117:0,117 [26] ) (Accepts:None) - Parent: Statement block at (85:0,85 [58] ) -Markup span at (143:0,143 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [167] ) -Markup span at (154:0,154 [9] ) (Accepts:Any) - Parent: Tag block at (154:0,154 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.stree.txt deleted file mode 100644 index a471bacbf0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.stree.txt +++ /dev/null @@ -1,133 +0,0 @@ -RazorDocument - [0..167)::167 - [

                        Hello @do { var foo = bar;

                        Foo

                        foo++; } while (foo);inside of @do { var foo = bar;

                        Foo

                        foo++; } while (foo); strong tag

                        ] - MarkupBlock - [0..167)::167 - MarkupTagHelperElement - [0..167)::167 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..9)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - CSharpCodeBlock - [9..67)::58 - CSharpTransition - [9..10)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [10..29)::19 - [do { var foo = bar;] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - MarkupBlock - [29..41)::12 - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [30..40)::10 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [30..33)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [33..36)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTagHelperEndTag - [36..40)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [41..67)::26 - [foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupElement - [67..163)::96 - MarkupStartTag - [67..75)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [75..85)::10 - [inside of ] - Gen - SpanEditHandler;Accepts:Any - Text;[inside]; - Whitespace;[ ]; - Text;[of]; - Whitespace;[ ]; - CSharpCodeBlock - [85..143)::58 - CSharpTransition - [85..86)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementLiteral - [86..105)::19 - [do { var foo = bar;] - Gen - SpanEditHandler;Accepts:Any - Keyword;[do]; - Whitespace;[ ]; - LeftBrace;[{]; - Whitespace;[ ]; - Identifier;[var]; - Whitespace;[ ]; - Identifier;[foo]; - Whitespace;[ ]; - Assign;[=]; - Whitespace;[ ]; - Identifier;[bar]; - Semicolon;[;]; - MarkupBlock - [105..117)::12 - MarkupTextLiteral - [105..106)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [106..116)::10 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [106..109)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [109..112)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupTagHelperEndTag - [112..116)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [116..117)::1 - [ ] - Gen - SpanEditHandler;Accepts:None - Whitespace;[ ]; - CSharpStatementLiteral - [117..143)::26 - [foo++; } while (foo);] - Gen - SpanEditHandler;Accepts:None - Identifier;[foo]; - Increment;[++]; - Semicolon;[;]; - Whitespace;[ ]; - RightBrace;[}]; - Whitespace;[ ]; - Keyword;[while]; - Whitespace;[ ]; - LeftParenthesis;[(]; - Identifier;[foo]; - LessThan;[<]; - Identifier;[bar]; - GreaterThan;[>]; - RightParenthesis;[)]; - Semicolon;[;]; - MarkupTextLiteral - [143..154)::11 - [ strong tag] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[strong]; - Whitespace;[ ]; - Text;[tag]; - MarkupEndTag - [154..163)::9 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [163..167)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.tspans.txt deleted file mode 100644 index f972911c7be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesComplexTagHelperTagBlocks8.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [167] ) - ptaghelper -TagHelper span at (30:0,30 [10] ) - ptaghelper -TagHelper span at (106:0,106 [10] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.cspans.txt deleted file mode 100644 index ddb3c37d483..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (15:0,15 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [66] ) -Markup span at (35:0,35 [8] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (43:0,43 [2] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (45:0,45 [5] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (50:0,50 [3] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (53:0,53 [3] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.stree.txt deleted file mode 100644 index 0b1d263b988..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.stree.txt +++ /dev/null @@ -1,65 +0,0 @@ -RazorDocument - [0..66)::66 - [

                        ] - MarkupBlock - [0..66)::66 - MarkupTagHelperElement - [0..66)::66 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..62)::62 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class=" foo"] - MarkupTextLiteral - [2..8)::6 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..13)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [15..23)::8 - MarkupLiteralAttributeValue - [15..23)::8 - [ foo] - MarkupTextLiteral - [15..20)::5 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..23)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [24..57)::33 - style - DoubleQuotes - Unbound - [ style=" color : red ; "] - MarkupTextLiteral - [24..28)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..33)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [34..35)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [35..56)::21 - MarkupLiteralAttributeValue - [35..43)::8 - [ color] - MarkupTextLiteral - [35..38)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [38..43)::5 - [color] - Gen - SpanEditHandler;Accepts:Any - Text;[color]; - MarkupLiteralAttributeValue - [43..45)::2 - [ :] - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [44..45)::1 - [:] - Gen - SpanEditHandler;Accepts:Any - Text;[:]; - MarkupLiteralAttributeValue - [45..50)::5 - [ red] - MarkupTextLiteral - [45..47)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [47..50)::3 - [red] - Gen - SpanEditHandler;Accepts:Any - Text;[red]; - MarkupLiteralAttributeValue - [50..53)::3 - [ ;] - MarkupTextLiteral - [50..52)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [52..53)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; - MarkupLiteralAttributeValue - [53..56)::3 - [ ] - MarkupTextLiteral - [53..56)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [56..57)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [57..61)::4 - MarkupTextLiteral - [57..61)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [62..66)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.tspans.txt deleted file mode 100644 index ef54ffee1b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [66] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.cspans.txt deleted file mode 100644 index 9a63e4f2b7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (15:0,15 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) -Markup span at (35:0,35 [8] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (43:0,43 [2] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (45:0,45 [5] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (50:0,50 [3] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (53:0,53 [3] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [21] ) -Markup span at (62:0,62 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.stree.txt deleted file mode 100644 index 002409e66b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.stree.txt +++ /dev/null @@ -1,69 +0,0 @@ -RazorDocument - [0..77)::77 - [

                        Hello World

                        ] - MarkupBlock - [0..77)::77 - MarkupTagHelperElement - [0..77)::77 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..62)::62 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class=" foo"] - MarkupTextLiteral - [2..8)::6 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..13)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [15..23)::8 - MarkupLiteralAttributeValue - [15..23)::8 - [ foo] - MarkupTextLiteral - [15..20)::5 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..23)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [24..57)::33 - style - DoubleQuotes - Unbound - [ style=" color : red ; "] - MarkupTextLiteral - [24..28)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..33)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [34..35)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [35..56)::21 - MarkupLiteralAttributeValue - [35..43)::8 - [ color] - MarkupTextLiteral - [35..38)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [38..43)::5 - [color] - Gen - SpanEditHandler;Accepts:Any - Text;[color]; - MarkupLiteralAttributeValue - [43..45)::2 - [ :] - MarkupTextLiteral - [43..44)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [44..45)::1 - [:] - Gen - SpanEditHandler;Accepts:Any - Text;[:]; - MarkupLiteralAttributeValue - [45..50)::5 - [ red] - MarkupTextLiteral - [45..47)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [47..50)::3 - [red] - Gen - SpanEditHandler;Accepts:Any - Text;[red]; - MarkupLiteralAttributeValue - [50..53)::3 - [ ;] - MarkupTextLiteral - [50..52)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [52..53)::1 - [;] - Gen - SpanEditHandler;Accepts:Any - Text;[;]; - MarkupLiteralAttributeValue - [53..56)::3 - [ ] - MarkupTextLiteral - [53..56)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [56..57)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [57..61)::4 - MarkupTextLiteral - [57..61)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [62..73)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [73..77)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.tspans.txt deleted file mode 100644 index fdd25b54f67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [77] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.cspans.txt deleted file mode 100644 index ac0c044abb2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (14:0,14 [6] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [8] ) -Markup span at (20:0,20 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [8] ) -Markup span at (25:0,25 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [34] ) -Markup span at (34:0,34 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [73] ) -Markup span at (48:0,48 [12] ) (Accepts:Any) - Parent: Markup block at (48:0,48 [13] ) -Markup span at (60:0,60 [1] ) (Accepts:Any) - Parent: Markup block at (48:0,48 [13] ) -Markup span at (64:0,64 [5] ) (Accepts:Any) - Parent: Tag block at (35:0,35 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.stree.txt deleted file mode 100644 index 82112b38b47..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.stree.txt +++ /dev/null @@ -1,72 +0,0 @@ -RazorDocument - [0..73)::73 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..73)::73 - MarkupTagHelperElement - [0..34)::34 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..25)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..23)::21 - class - DoubleQuotes - Unbound - [ class=" foo "] - MarkupTextLiteral - [2..7)::5 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [14..22)::8 - MarkupLiteralAttributeValue - [14..20)::6 - [ foo] - MarkupTextLiteral - [14..17)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..20)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupLiteralAttributeValue - [20..22)::2 - [ ] - MarkupTextLiteral - [20..22)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [23..24)::1 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [25..30)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [30..34)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [35..73)::38 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [35..64)::29 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [37..62)::25 - style - DoubleQuotes - Unbound - [ style=" color:red; "] - MarkupTextLiteral - [37..41)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [41..46)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [47..48)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [48..61)::13 - MarkupLiteralAttributeValue - [48..60)::12 - [ color:red;] - MarkupTextLiteral - [48..50)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [50..60)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupLiteralAttributeValue - [60..61)::1 - [ ] - MarkupTextLiteral - [60..61)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [61..62)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [62..63)::1 - MarkupTextLiteral - [62..63)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [64..69)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [69..73)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.tspans.txt deleted file mode 100644 index ac76be0a562..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesOddlySpacedTagHelperTagBlocks3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [34] ) - ptaghelper -TagHelper span at (35:0,35 [38] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.stree.txt deleted file mode 100644 index 3c6c5782ca8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..7)::7 - [

                        ] - MarkupBlock - [0..7)::7 - MarkupTagHelperElement - [0..7)::7 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [3..7)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.tspans.txt deleted file mode 100644 index 8c084941d63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.cspans.txt deleted file mode 100644 index f82aba421e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.stree.txt deleted file mode 100644 index 1cad0643389..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..18)::18 - [

                        Hello World

                        ] - MarkupBlock - [0..18)::18 - MarkupTagHelperElement - [0..18)::18 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..14)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [14..18)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.tspans.txt deleted file mode 100644 index 952b7c9df92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [18] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.cspans.txt deleted file mode 100644 index bae5d9e8298..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (3:0,3 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [12] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Markup span at (16:0,16 [5] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.stree.txt deleted file mode 100644 index a1430c006ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..25)::25 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..25)::25 - MarkupTagHelperElement - [0..12)::12 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..8)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [8..12)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [13..25)::12 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [13..16)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [16..21)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [21..25)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.tspans.txt deleted file mode 100644 index 9c65b6e8ce0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [12] ) - ptaghelper -TagHelper span at (13:0,13 [12] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.cspans.txt deleted file mode 100644 index 6d458bf7210..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (3:0,3 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [56] ) -Markup span at (15:0,15 [8] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [8] ) -Markup span at (23:0,23 [20] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [56] ) -Markup span at (43:0,43 [9] ) (Accepts:Any) - Parent: Tag block at (43:0,43 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.stree.txt deleted file mode 100644 index c49a39a2608..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..56)::56 - [

                        Hello World inside of strong tag

                        ] - MarkupBlock - [0..56)::56 - MarkupTagHelperElement - [0..56)::56 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..15)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - MarkupElement - [15..52)::37 - MarkupStartTag - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [23..43)::20 - [inside of strong tag] - Gen - SpanEditHandler;Accepts:Any - Text;[inside]; - Whitespace;[ ]; - Text;[of]; - Whitespace;[ ]; - Text;[strong]; - Whitespace;[ ]; - Text;[tag]; - MarkupEndTag - [43..52)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [52..56)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.tspans.txt deleted file mode 100644 index 43d407d913f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesPlainTagHelperTagBlocks4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [56] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.cspans.txt deleted file mode 100644 index d972e4a4f98..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (8:0,8 [14] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.stree.txt deleted file mode 100644 index f5a2d95995f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [0..8)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.tspans.txt deleted file mode 100644 index 8c61f525835..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - scripttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.cspans.txt deleted file mode 100644 index 20e0cf45b63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (8:0,8 [23] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.stree.txt deleted file mode 100644 index e51cba2264e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..40)::40 - [] - MarkupBlock - [0..40)::40 - MarkupTagHelperElement - [0..40)::40 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [0..8)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.tspans.txt deleted file mode 100644 index ac634862042..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [40] ) - scripttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.cspans.txt deleted file mode 100644 index 8cebd4fdd9f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (8:0,8 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [29] ) -Markup span at (29:0,29 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [53] ) -Markup span at (38:0,38 [5] ) (Accepts:Any) - Parent: Tag block at (33:0,33 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.stree.txt deleted file mode 100644 index 2f3212ad0a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..53)::53 - [

                        World

                        ] - MarkupBlock - [0..53)::53 - MarkupTagHelperElement - [0..29)::29 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [0..8)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [30..53)::23 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [30..33)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [33..49)::16 - div[StartTagAndEndTag] - divtaghelper - MarkupTagHelperStartTag - [33..38)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [38..43)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [43..49)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [49..53)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.tspans.txt deleted file mode 100644 index a253e4c4936..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers3.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - scripttaghelper -TagHelper span at (30:0,30 [23] ) - ptaghelper -TagHelper span at (33:0,33 [16] ) - divtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.cspans.txt deleted file mode 100644 index a94da0fb8ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (8:0,8 [22] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [39] ) -Markup span at (39:0,39 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [75] ) -Markup span at (48:0,48 [18] ) (Accepts:Any) - Parent: Tag block at (40:0,40 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.stree.txt deleted file mode 100644 index ad304014f96..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..75)::75 - [ ] - MarkupBlock - [0..75)::75 - MarkupTagHelperElement - [0..39)::39 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [0..8)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [40..75)::35 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [40..48)::8 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.tspans.txt deleted file mode 100644 index e884343e228..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [39] ) - scripttaghelper -TagHelper span at (40:0,40 [35] ) - scripttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.cspans.txt deleted file mode 100644 index 76b38b02c68..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [41] ) -Markup span at (27:0,27 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.stree.txt deleted file mode 100644 index 8a9c34d8bf4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers5.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..41)::41 - [ World

                        ] - MarkupBlock - [0..67)::67 - MarkupTagHelperElement - [0..67)::67 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..9)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - MarkupTagHelperElement - [9..57)::48 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [9..48)::39 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTextLiteral - [57..63)::6 - [ World] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [63..67)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers6.tspans.txt deleted file mode 100644 index 928d196eb5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers6.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [67] ) - ptaghelper -TagHelper span at (9:0,9 [48] ) - scripttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.cspans.txt deleted file mode 100644 index 572d8641d1e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) -Markup span at (24:0,24 [1] ) (Accepts:None) - Parent: Markup block at (24:0,24 [2] ) -Markup span at (25:0,25 [1] ) (Accepts:None) - Parent: Markup block at (24:0,24 [2] ) -Markup span at (26:0,26 [11] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [13] ) -Markup span at (46:0,46 [10] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [58] ) -Markup span at (67:0,67 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [77] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt deleted file mode 100644 index e6e4a4c0ac7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..77)::77 - [

                        Hello World

                        ] - MarkupBlock - [0..77)::77 - MarkupTagHelperElement - [0..77)::77 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..9)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - MarkupTagHelperElement - [9..67)::58 - script[StartTagAndEndTag] - scripttaghelper - MarkupTagHelperStartTag - [9..58)::49 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTextLiteral - [67..73)::6 - [ World] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [73..77)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.tspans.txt deleted file mode 100644 index fcf8bee1012..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [77] ) - ptaghelper -TagHelper span at (9:0,9 [58] ) - scripttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.cspans.txt deleted file mode 100644 index e4af93f808b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [36] ) -Markup span at (22:0,22 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [36] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt deleted file mode 100644 index 8c00dcb65d0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..36)::36 - [

                        ] - MarkupBlock - [0..36)::36 - MarkupTagHelperElement - [0..36)::36 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [0..36)::36 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [14..33)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [22..32)::10 - MarkupLiteralAttributeValue - [22..32)::10 - [color:red;] - MarkupTextLiteral - [22..32)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [33..34)::1 - MarkupTextLiteral - [33..34)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.tspans.txt deleted file mode 100644 index c32a52d9772..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [36] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.cspans.txt deleted file mode 100644 index 3b11382a001..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [55] ) -Markup span at (19:0,19 [3] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [36] ) -Markup span at (31:0,31 [10] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [36] ) -Markup span at (45:0,45 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [55] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt deleted file mode 100644 index ed266cc908f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..55)::55 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..55)::55 - MarkupTagHelperElement - [0..55)::55 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..9)::6 - [Hello ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - MarkupTagHelperElement - [9..45)::36 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [9..45)::36 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [11..23)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [11..12)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [12..17)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [19..22)::3 - MarkupLiteralAttributeValue - [19..22)::3 - [foo] - MarkupTextLiteral - [19..22)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [23..42)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..29)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [31..41)::10 - MarkupLiteralAttributeValue - [31..41)::10 - [color:red;] - MarkupTextLiteral - [31..41)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [41..42)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [42..43)::1 - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [45..51)::6 - [ World] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [51..55)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.tspans.txt deleted file mode 100644 index 6dc6c9b953c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [55] ) - ptaghelper -TagHelper span at (9:0,9 [36] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.cspans.txt deleted file mode 100644 index a55ddcf08a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [17] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) -Markup span at (33:0,33 [10] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [24] ) -Markup span at (47:0,47 [5] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [52] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt deleted file mode 100644 index af795e12c4b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..52)::52 - [Hello

                        World] - MarkupBlock - [0..52)::52 - MarkupTextLiteral - [0..5)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperElement - [5..22)::17 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [5..22)::17 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [7..19)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..13)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [15..18)::3 - MarkupLiteralAttributeValue - [15..18)::3 - [foo] - MarkupTextLiteral - [15..18)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [23..47)::24 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [23..47)::24 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [25..44)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..31)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [33..43)::10 - MarkupLiteralAttributeValue - [33..43)::10 - [color:red;] - MarkupTextLiteral - [33..43)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [43..44)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [44..45)::1 - MarkupTextLiteral - [44..45)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [47..52)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.tspans.txt deleted file mode 100644 index 9cf7822faf9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (5:0,5 [17] ) - ptaghelper -TagHelper span at (23:0,23 [24] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.cspans.txt deleted file mode 100644 index ecfdc446c75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [38] ) -Markup span at (22:0,22 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt deleted file mode 100644 index 29e97ff8375..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..38)::38 - [

                        ] - MarkupBlock - [0..38)::38 - MarkupTagHelperElement - [0..38)::38 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..34)::34 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [14..33)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [22..32)::10 - MarkupLiteralAttributeValue - [22..32)::10 - [color:red;] - MarkupTextLiteral - [22..32)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [34..38)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.tspans.txt deleted file mode 100644 index 3cc3264682a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [38] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.cspans.txt deleted file mode 100644 index 9f93b415261..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [49] ) -Markup span at (22:0,22 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [49] ) -Markup span at (34:0,34 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt deleted file mode 100644 index 9a4a238ea7e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..49)::49 - [

                        Hello World

                        ] - MarkupBlock - [0..49)::49 - MarkupTagHelperElement - [0..49)::49 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..34)::34 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [14..33)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [22..32)::10 - MarkupLiteralAttributeValue - [22..32)::10 - [color:red;] - MarkupTextLiteral - [22..32)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [34..45)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [45..49)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.tspans.txt deleted file mode 100644 index f12231fbd70..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [49] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.cspans.txt deleted file mode 100644 index 9663987bab2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) -Markup span at (15:0,15 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [56] ) -Markup span at (35:0,35 [10] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [31] ) -Markup span at (47:0,47 [5] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt deleted file mode 100644 index ddb55a3923b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt +++ /dev/null @@ -1,56 +0,0 @@ -RazorDocument - [0..56)::56 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..56)::56 - MarkupTagHelperElement - [0..24)::24 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [15..20)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [20..24)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [25..56)::31 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [25..47)::22 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [27..46)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..33)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [34..35)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [35..45)::10 - MarkupLiteralAttributeValue - [35..45)::10 - [color:red;] - MarkupTextLiteral - [35..45)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [45..46)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [47..52)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [52..56)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.tspans.txt deleted file mode 100644 index 75b14aa3c30..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [24] ) - ptaghelper -TagHelper span at (25:0,25 [31] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.cspans.txt deleted file mode 100644 index 944a88693bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [99] ) -Markup span at (22:0,22 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [99] ) -Markup span at (34:0,34 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [99] ) -Markup span at (46:0,46 [7] ) (Accepts:Any) - Parent: Tag block at (46:0,46 [20] ) -Markup span at (53:0,53 [8] ) (Accepts:Any) - Parent: Markup block at (53:0,53 [12] ) -Markup span at (61:0,61 [3] ) (Accepts:Any) - Parent: Markup block at (53:0,53 [12] ) -Markup span at (64:0,64 [1] ) (Accepts:Any) - Parent: Markup block at (53:0,53 [12] ) -Markup span at (65:0,65 [1] ) (Accepts:Any) - Parent: Tag block at (46:0,46 [20] ) -Markup span at (66:0,66 [20] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [99] ) -Markup span at (86:0,86 [9] ) (Accepts:Any) - Parent: Tag block at (86:0,86 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt deleted file mode 100644 index 591365bb3ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt +++ /dev/null @@ -1,77 +0,0 @@ -RazorDocument - [0..99)::99 - [

                        Hello World inside of strong tag

                        ] - MarkupBlock - [0..99)::99 - MarkupTagHelperElement - [0..99)::99 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..34)::34 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="foo"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [14..33)::19 - style - DoubleQuotes - Unbound - [ style="color:red;"] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [22..32)::10 - MarkupLiteralAttributeValue - [22..32)::10 - [color:red;] - MarkupTextLiteral - [22..32)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [34..46)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - MarkupElement - [46..95)::49 - MarkupStartTag - [46..66)::20 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupAttributeBlock - [53..65)::12 - [ class="foo"] - MarkupTextLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [54..59)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [60..61)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [61..64)::3 - MarkupLiteralAttributeValue - [61..64)::3 - [foo] - MarkupTextLiteral - [61..64)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [64..65)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [66..86)::20 - [inside of strong tag] - Gen - SpanEditHandler;Accepts:Any - Text;[inside]; - Whitespace;[ ]; - Text;[of]; - Whitespace;[ ]; - Text;[strong]; - Whitespace;[ ]; - Text;[tag]; - MarkupEndTag - [86..95)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [95..99)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.tspans.txt deleted file mode 100644 index 06bcd7e03e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [99] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.cspans.txt deleted file mode 100644 index f08a9b491a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [56] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (41:0,41 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [56] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt deleted file mode 100644 index 2ce0880befc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..56)::56 - [

                        ] - MarkupBlock - [0..56)::56 - MarkupTagHelperElement - [0..56)::56 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..52)::52 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTagHelperAttribute - [12..34)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..20)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [21..34)::13 - MarkupDynamicAttributeValue - [21..34)::13 - [@DateTime.Now] - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperAttribute - [34..51)::17 - style - DoubleQuotes - Unbound - [ style=color:red;] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..40)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTagHelperAttributeValue - [41..51)::10 - MarkupLiteralAttributeValue - [41..51)::10 - [color:red;] - MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [52..56)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.tspans.txt deleted file mode 100644 index 43d407d913f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [56] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.cspans.txt deleted file mode 100644 index a52e2d29cd4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [67] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (41:0,41 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [67] ) -Markup span at (52:0,52 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [67] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt deleted file mode 100644 index e60c28b9dcc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt +++ /dev/null @@ -1,55 +0,0 @@ -RazorDocument - [0..67)::67 - [

                        Hello World

                        ] - MarkupBlock - [0..67)::67 - MarkupTagHelperElement - [0..67)::67 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..52)::52 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTagHelperAttribute - [12..34)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..20)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [21..34)::13 - MarkupDynamicAttributeValue - [21..34)::13 - [@DateTime.Now] - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperAttribute - [34..51)::17 - style - DoubleQuotes - Unbound - [ style=color:red;] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..40)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTagHelperAttributeValue - [41..51)::10 - MarkupLiteralAttributeValue - [41..51)::10 - [color:red;] - MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - CloseAngle;[>]; - MarkupTextLiteral - [52..63)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [63..67)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.tspans.txt deleted file mode 100644 index fc4df1931c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [67] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.cspans.txt deleted file mode 100644 index 9b90d7819d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [69] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (41:0,41 [5] ) (Accepts:Any) - Parent: Markup block at (41:0,41 [12] ) -Markup span at (46:0,46 [1] ) (Accepts:None) - Parent: Markup block at (46:0,46 [2] ) -Markup span at (47:0,47 [1] ) (Accepts:None) - Parent: Markup block at (46:0,46 [2] ) -Markup span at (48:0,48 [5] ) (Accepts:Any) - Parent: Markup block at (41:0,41 [12] ) -Markup span at (54:0,54 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [69] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt deleted file mode 100644 index 613e9fd5653..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt +++ /dev/null @@ -1,63 +0,0 @@ -RazorDocument - [0..69)::69 - [

                        Hello World

                        ] - MarkupBlock - [0..69)::69 - MarkupTagHelperElement - [0..69)::69 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..54)::54 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTagHelperAttribute - [12..34)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..20)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [21..34)::13 - MarkupDynamicAttributeValue - [21..34)::13 - [@DateTime.Now] - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperAttribute - [34..53)::19 - style - DoubleQuotes - Unbound - [ style=color@@:red;] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..40)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTagHelperAttributeValue - [41..53)::12 - MarkupLiteralAttributeValue - [41..46)::5 - [color] - MarkupTextLiteral - [41..46)::5 - [color] - Gen - SpanEditHandler;Accepts:Any - Text;[color]; - MarkupBlock - [46..48)::2 - MarkupTextLiteral - [46..47)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [47..48)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [48..53)::5 - [:red;] - MarkupTextLiteral - [48..53)::5 - [:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[:red;]; - CloseAngle;[>]; - MarkupTextLiteral - [54..65)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [65..69)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.tspans.txt deleted file mode 100644 index ff9e419de76..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [69] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.cspans.txt deleted file mode 100644 index ed2cf9ddf20..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [44] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (35:0,35 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [44] ) -Markup span at (44:0,44 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [96] ) -Markup span at (54:0,54 [10] ) (Accepts:Any) - Parent: Tag block at (45:0,45 [51] ) -Transition span at (73:0,73 [1] ) (Accepts:None) - Parent: Expression block at (73:0,73 [13] ) -Code span at (74:0,74 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (73:0,73 [13] ) -Markup span at (87:0,87 [5] ) (Accepts:Any) - Parent: Tag block at (45:0,45 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt deleted file mode 100644 index 146dc1b8160..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt +++ /dev/null @@ -1,86 +0,0 @@ -RazorDocument - [0..96)::96 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..96)::96 - MarkupTagHelperElement - [0..44)::44 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..35)::35 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTagHelperAttribute - [12..34)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..20)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [21..34)::13 - MarkupDynamicAttributeValue - [21..34)::13 - [@DateTime.Now] - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - CloseAngle;[>]; - MarkupTextLiteral - [35..40)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [40..44)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [44..45)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [45..96)::51 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [45..87)::42 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [47..64)::17 - style - DoubleQuotes - Unbound - [ style=color:red;] - MarkupTextLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [48..53)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTagHelperAttributeValue - [54..64)::10 - MarkupLiteralAttributeValue - [54..64)::10 - [color:red;] - MarkupTextLiteral - [54..64)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - MarkupTagHelperAttribute - [64..86)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [64..65)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [65..72)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [73..86)::13 - MarkupDynamicAttributeValue - [73..86)::13 - [@DateTime.Now] - GenericBlock - [73..86)::13 - CSharpCodeBlock - [73..86)::13 - CSharpImplicitExpression - [73..86)::13 - CSharpTransition - [73..74)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [74..86)::12 - CSharpCodeBlock - [74..86)::12 - CSharpExpressionLiteral - [74..86)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - CloseAngle;[>]; - MarkupTextLiteral - [87..92)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [92..96)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.tspans.txt deleted file mode 100644 index bddced97ea6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [44] ) - ptaghelper -TagHelper span at (45:0,45 [51] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.cspans.txt deleted file mode 100644 index 2b1a126addd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (9:0,9 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [117] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (41:0,41 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [117] ) -Markup span at (52:0,52 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [117] ) -Markup span at (64:0,64 [7] ) (Accepts:Any) - Parent: Tag block at (64:0,64 [20] ) -Markup span at (71:0,71 [8] ) (Accepts:Any) - Parent: Markup block at (71:0,71 [12] ) -Markup span at (79:0,79 [3] ) (Accepts:Any) - Parent: Markup block at (71:0,71 [12] ) -Markup span at (82:0,82 [1] ) (Accepts:Any) - Parent: Markup block at (71:0,71 [12] ) -Markup span at (83:0,83 [1] ) (Accepts:Any) - Parent: Tag block at (64:0,64 [20] ) -Markup span at (84:0,84 [20] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [117] ) -Markup span at (104:0,104 [9] ) (Accepts:Any) - Parent: Tag block at (104:0,104 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt deleted file mode 100644 index a84353c61fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt +++ /dev/null @@ -1,88 +0,0 @@ -RazorDocument - [0..117)::117 - [

                        Hello World inside of strong tag

                        ] - MarkupBlock - [0..117)::117 - MarkupTagHelperElement - [0..117)::117 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..52)::52 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class - DoubleQuotes - Unbound - [ class=foo] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..12)::3 - MarkupLiteralAttributeValue - [9..12)::3 - [foo] - MarkupTextLiteral - [9..12)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTagHelperAttribute - [12..34)::22 - dynamic - DoubleQuotes - Unbound - [ dynamic=@DateTime.Now] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..20)::7 - [dynamic] - Gen - SpanEditHandler;Accepts:Any - Text;[dynamic]; - Equals;[=]; - MarkupTagHelperAttributeValue - [21..34)::13 - MarkupDynamicAttributeValue - [21..34)::13 - [@DateTime.Now] - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTagHelperAttribute - [34..51)::17 - style - DoubleQuotes - Unbound - [ style=color:red;] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..40)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTagHelperAttributeValue - [41..51)::10 - MarkupLiteralAttributeValue - [41..51)::10 - [color:red;] - MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any - Text;[color:red;]; - CloseAngle;[>]; - MarkupTextLiteral - [52..64)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - MarkupElement - [64..113)::49 - MarkupStartTag - [64..84)::20 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupAttributeBlock - [71..83)::12 - [ class="foo"] - MarkupTextLiteral - [71..72)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [72..77)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [78..79)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [79..82)::3 - MarkupLiteralAttributeValue - [79..82)::3 - [foo] - MarkupTextLiteral - [79..82)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [82..83)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [84..104)::20 - [inside of strong tag] - Gen - SpanEditHandler;Accepts:Any - Text;[inside]; - Whitespace;[ ]; - Text;[of]; - Whitespace;[ ]; - Text;[strong]; - Whitespace;[ ]; - Text;[tag]; - MarkupEndTag - [104..113)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [113..117)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.tspans.txt deleted file mode 100644 index dc61572b3f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [117] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.cspans.txt deleted file mode 100644 index 92e6c778c69..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt deleted file mode 100644 index 812b1561525..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..16)::16 - [

                        ] - MarkupBlock - [0..16)::16 - MarkupTagHelperElement - [0..16)::16 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..12)::12 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..11)::9 - class - DoubleQuotes - Unbound - [ class=""] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..10)::0 - MarkupTextLiteral - [10..10)::0 - [] - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [12..16)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.tspans.txt deleted file mode 100644 index 52dba169222..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [16] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.cspans.txt deleted file mode 100644 index 92e6c778c69..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt deleted file mode 100644 index 1ffbad01beb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..16)::16 - [

                        ] - MarkupBlock - [0..16)::16 - MarkupTagHelperElement - [0..16)::16 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..12)::12 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..11)::9 - class - SingleQuotes - Unbound - [ class=''] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..10)::0 - MarkupTextLiteral - [10..10)::0 - [] - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [12..16)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.tspans.txt deleted file mode 100644 index 52dba169222..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [16] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.cspans.txt deleted file mode 100644 index 065cf74b88b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (9:0,9 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt deleted file mode 100644 index bf92b6fffc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..14)::14 - [

                        ] - MarkupBlock - [0..14)::14 - MarkupTagHelperElement - [0..14)::14 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..10)::10 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..9)::7 - class - DoubleQuotes - Unbound - [ class=] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTagHelperAttributeValue - [9..9)::0 - MarkupTextLiteral - [9..9)::0 - [] - CloseAngle;[>]; - MarkupTagHelperEndTag - [10..14)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.tspans.txt deleted file mode 100644 index d4769a773a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [14] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.cspans.txt deleted file mode 100644 index eeee563c5d1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt deleted file mode 100644 index 6986ffec042..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..33)::33 - [

                        ] - MarkupBlock - [0..33)::33 - MarkupTagHelperElement - [0..33)::33 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [0..33)::33 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class1 - SingleQuotes - Unbound - [ class1=''] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..9)::6 - [class1] - Gen - SpanEditHandler;Accepts:Any - Text;[class1]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [11..11)::0 - MarkupTextLiteral - [11..11)::0 - [] - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [12..20)::8 - class2 - DoubleQuotes - Unbound - [ class2=] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..19)::6 - [class2] - Gen - SpanEditHandler;Accepts:Any - Text;[class2]; - Equals;[=]; - MarkupTagHelperAttributeValue - [20..20)::0 - MarkupTextLiteral - [20..20)::0 - [] - MarkupTagHelperAttribute - [20..30)::10 - class3 - DoubleQuotes - Unbound - [ class3=""] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..27)::6 - [class3] - Gen - SpanEditHandler;Accepts:Any - Text;[class3]; - Equals;[=]; - MarkupTextLiteral - [28..29)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [29..29)::0 - MarkupTextLiteral - [29..29)::0 - [] - MarkupTextLiteral - [29..30)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [30..31)::1 - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.tspans.txt deleted file mode 100644 index d6131fed67e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [33] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.cspans.txt deleted file mode 100644 index 7b54ebc00dc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt deleted file mode 100644 index eb17396a399..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..31)::31 - [

                        ] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - p[SelfClosing] - ptaghelper - MarkupTagHelperStartTag - [0..31)::31 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..12)::10 - class1 - SingleQuotes - Unbound - [ class1=''] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..9)::6 - [class1] - Gen - SpanEditHandler;Accepts:Any - Text;[class1]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [11..11)::0 - MarkupTextLiteral - [11..11)::0 - [] - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttribute - [12..21)::9 - class2 - DoubleQuotes - Unbound - [class2=""] - MarkupTextLiteral - [12..18)::6 - [class2] - Gen - SpanEditHandler;Accepts:Any - Text;[class2]; - Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [20..20)::0 - MarkupTextLiteral - [20..20)::0 - [] - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [21..28)::7 - class3 - DoubleQuotes - Unbound - [class3=] - MarkupTextLiteral - [21..27)::6 - [class3] - Gen - SpanEditHandler;Accepts:Any - Text;[class3]; - Equals;[=]; - MarkupTagHelperAttributeValue - [28..28)::0 - MarkupTextLiteral - [28..28)::0 - [] - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.tspans.txt deleted file mode 100644 index b3437d8dea4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.cspans.txt deleted file mode 100644 index 2681dbe5c7c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Code span at (28:0,28 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.stree.txt deleted file mode 100644 index 0bfd3f50eb6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..29)::29 - [@{}] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpStatement - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..29)::28 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..28)::26 - MarkupBlock - [2..28)::26 - MarkupTagHelperElement - [2..28)::26 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..28)::26 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..25)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..25)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMiscAttributeContent - [25..26)::1 - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.tspans.txt deleted file mode 100644 index 2af3e60e20d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [26] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.cspans.txt deleted file mode 100644 index 20f962b4cd8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Code span at (27:0,27 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [28] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.diag.txt deleted file mode 100644 index 1fba524ca71..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'int-prefix-value' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.stree.txt deleted file mode 100644 index 73a3bdc16ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..28)::28 - [@{}] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - CSharpStatement - [0..28)::28 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..28)::27 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..27)::25 - MarkupBlock - [2..27)::25 - MarkupTagHelperElement - [2..27)::25 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..27)::25 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..25)::17 - int-prefix-value - Minimized - Bound - [ int-prefix-value] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..25)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-value]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [27..28)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.tspans.txt deleted file mode 100644 index 0744554d85b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [25] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.cspans.txt deleted file mode 100644 index a9bbc9d9b68..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.diag.txt deleted file mode 100644 index f50988eac19..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'string-prefix-value' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.stree.txt deleted file mode 100644 index 47c931a0351..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupTagHelperElement - [2..31)::29 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..31)::29 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..28)::20 - string-prefix-value - Minimized - Bound - [ string-prefix-value] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..28)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-value]; - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.tspans.txt deleted file mode 100644 index 2806d5b9702..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [29] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.cspans.txt deleted file mode 100644 index 37fd3df8138..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Code span at (27:0,27 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (2:0,2 [29] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.diag.txt deleted file mode 100644 index 1fba524ca71..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'int-prefix-value' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt deleted file mode 100644 index 3635da96ebc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupTagHelperElement - [2..31)::29 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..31)::29 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..28)::20 - int-prefix-value - SingleQuotes - Bound - [ int-prefix-value=''] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..25)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [27..27)::0 - CSharpExpressionLiteral - [27..27)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.tspans.txt deleted file mode 100644 index 2806d5b9702..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [29] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.cspans.txt deleted file mode 100644 index dfa5d6b255e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [31] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt deleted file mode 100644 index 8695b4af8b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..34)::34 - [@{}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupTagHelperElement - [2..33)::31 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..33)::31 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..31)::23 - string-prefix-value - SingleQuotes - Bound - [ string-prefix-value=''] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..28)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [30..30)::0 - MarkupTextLiteral - [30..30)::0 - [] - MarkupTextLiteral - [30..31)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.tspans.txt deleted file mode 100644 index 8182ed93b61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [31] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.cspans.txt deleted file mode 100644 index 3a6e32aaf16..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Code span at (27:0,27 [1] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (2:0,2 [29] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt deleted file mode 100644 index e9db26a2d23..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..32)::32 - [@{}] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupTagHelperElement - [2..31)::29 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..31)::29 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..29)::21 - int-prefix-value - SingleQuotes - Bound - [ int-prefix-value='3'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..25)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [27..28)::1 - CSharpExpressionLiteral - [27..28)::1 - [3] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[3]; - MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.tspans.txt deleted file mode 100644 index 2806d5b9702..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [29] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.cspans.txt deleted file mode 100644 index 1b14171eab5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (30:0,30 [4] ) (Accepts:Any) - Parent: Markup block at (30:0,30 [11] ) -Markup span at (34:0,34 [7] ) (Accepts:Any) - Parent: Markup block at (30:0,30 [11] ) -Code span at (45:0,45 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (46:0,46 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt deleted file mode 100644 index 4a4dac9f5a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..46)::46 - [@{}] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpStatement - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..46)::45 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - MarkupBlock - [2..45)::43 - MarkupTagHelperElement - [2..45)::43 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..45)::43 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..42)::34 - string-prefix-value - SingleQuotes - Bound - [ string-prefix-value='some string'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..28)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [30..41)::11 - MarkupTextLiteral - [30..34)::4 - [some] - Gen - SpanEditHandler;Accepts:Any - Text;[some]; - MarkupTextLiteral - [34..41)::7 - [ string] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[string]; - MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [42..43)::1 - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.tspans.txt deleted file mode 100644 index 02d97813408..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [43] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.cspans.txt deleted file mode 100644 index cf35066b4c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Code span at (50:0,50 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [51] ) -MetaCode span at (50:0,50 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [51] ) -Markup span at (51:0,51 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.diag.txt deleted file mode 100644 index 34a097ddbd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,27): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.stree.txt deleted file mode 100644 index 9f865a9054b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..51)::51 - [@{}] - MarkupBlock - [0..51)::51 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..51)::51 - CSharpStatement - [0..51)::51 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..51)::50 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..50)::48 - MarkupBlock - [2..50)::48 - MarkupTagHelperElement - [2..50)::48 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..50)::48 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..25)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..25)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMinimizedTagHelperAttribute - [25..47)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..47)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [47..48)::1 - MarkupTextLiteral - [47..48)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [50..50)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [50..51)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [51..51)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.tspans.txt deleted file mode 100644 index 720abefec96..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block16.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [48] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.cspans.txt deleted file mode 100644 index 8d6822ee979..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Code span at (32:0,32 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [33] ) -MetaCode span at (32:0,32 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [33] ) -Markup span at (33:0,33 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.diag.txt deleted file mode 100644 index 1f297c49c9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,6): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,16): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.stree.txt deleted file mode 100644 index 1befcaa7051..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..33)::33 - [@{

                        }] - MarkupBlock - [0..33)::33 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..33)::33 - CSharpStatement - [0..33)::33 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..33)::32 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..32)::30 - MarkupBlock - [2..32)::30 - MarkupTagHelperElement - [2..32)::30 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..28)::26 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..14)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..14)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupMinimizedTagHelperAttribute - [14..27)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..27)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [28..32)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [32..33)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.tspans.txt deleted file mode 100644 index 1c716c57379..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block17.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [30] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.cspans.txt deleted file mode 100644 index 27127e839a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [70] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [70] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [70] ) -Code span at (69:0,69 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [70] ) -MetaCode span at (69:0,69 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [70] ) -Markup span at (70:0,70 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [70] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.diag.txt deleted file mode 100644 index 85acb7466eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,10): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,46): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.stree.txt deleted file mode 100644 index 25b3448e77e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..70)::70 - [@{}] - MarkupBlock - [0..70)::70 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..70)::70 - CSharpStatement - [0..70)::70 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..70)::69 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..69)::67 - MarkupBlock - [2..69)::67 - MarkupTagHelperElement - [2..69)::67 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [2..69)::67 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..27)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..27)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMinimizedTagHelperAttribute - [27..44)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..44)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMinimizedTagHelperAttribute - [44..66)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [44..45)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [45..66)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [66..67)::1 - MarkupTextLiteral - [66..67)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [69..69)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [69..70)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [70..70)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.tspans.txt deleted file mode 100644 index d52f0760b65..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block18.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [67] ) - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.cspans.txt deleted file mode 100644 index 3c04339e4de..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Code span at (45:0,45 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (46:0,46 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.diag.txt deleted file mode 100644 index 40bd70e7185..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,6): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,16): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,29): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.stree.txt deleted file mode 100644 index e8733ace633..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..46)::46 - [@{

                        }] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpStatement - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..46)::45 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - MarkupBlock - [2..45)::43 - MarkupTagHelperElement - [2..45)::43 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..41)::39 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..14)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..14)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupMinimizedTagHelperAttribute - [14..27)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..27)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - MarkupMinimizedTagHelperAttribute - [27..40)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..40)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [41..45)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.tspans.txt deleted file mode 100644 index a82989a6ceb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block19.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [43] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.cspans.txt deleted file mode 100644 index db6a9525a08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Code span at (22:0,22 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (23:0,23 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.diag.txt deleted file mode 100644 index 7aaa7474357..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.stree.txt deleted file mode 100644 index e68706d9ffd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..23)::23 - [@{

                        }] - MarkupBlock - [0..23)::23 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupTagHelperElement - [2..22)::20 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..18)::16 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..17)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..17)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [18..22)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [22..22)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [22..23)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.tspans.txt deleted file mode 100644 index d9c1c8ba6bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [20] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.cspans.txt deleted file mode 100644 index eeed5a0f9b3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (33:0,33 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [38] ) -Code span at (40:0,40 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (41:0,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt deleted file mode 100644 index 0346338d31a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..41)::41 - [@{}] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..41)::41 - CSharpStatement - [0..41)::41 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..41)::40 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..40)::38 - MarkupBlock - [2..40)::38 - MarkupTagHelperElement - [2..40)::38 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..40)::38 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..25)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..25)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupTagHelperAttribute - [25..37)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..31)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [33..36)::3 - MarkupLiteralAttributeValue - [33..36)::3 - [btn] - MarkupTextLiteral - [33..36)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [37..38)::1 - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [40..41)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.tspans.txt deleted file mode 100644 index d3b1fd36475..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [38] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.cspans.txt deleted file mode 100644 index 59bf8f8330f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Markup span at (25:0,25 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [32] ) -Code span at (34:0,34 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [35] ) -MetaCode span at (34:0,34 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Markup span at (35:0,35 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.diag.txt deleted file mode 100644 index 7aaa7474357..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt deleted file mode 100644 index 5b700f8c437..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..35)::35 - [@{

                        }] - MarkupBlock - [0..35)::35 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..35)::35 - CSharpStatement - [0..35)::35 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..35)::34 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..34)::32 - MarkupBlock - [2..34)::32 - MarkupTagHelperElement - [2..34)::32 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..30)::28 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..17)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..17)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - MarkupTagHelperAttribute - [17..29)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..23)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [25..28)::3 - MarkupLiteralAttributeValue - [25..28)::3 - [btn] - MarkupTextLiteral - [25..28)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [30..34)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [34..35)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.tspans.txt deleted file mode 100644 index 89ddbae3e29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [32] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.cspans.txt deleted file mode 100644 index 5543e2871d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [38] ) -Code span at (40:0,40 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (41:0,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt deleted file mode 100644 index 7efcc5f43d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..41)::41 - [@{}] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..41)::41 - CSharpStatement - [0..41)::41 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..41)::40 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..40)::38 - MarkupBlock - [2..40)::38 - MarkupTagHelperElement - [2..40)::38 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..40)::38 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..20)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [20..37)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..37)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMiscAttributeContent - [37..38)::1 - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [40..41)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.tspans.txt deleted file mode 100644 index d3b1fd36475..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [38] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.cspans.txt deleted file mode 100644 index 2a00c884285..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Markup span at (12:0,12 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [32] ) -Code span at (34:0,34 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [35] ) -MetaCode span at (34:0,34 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [35] ) -Markup span at (35:0,35 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.diag.txt deleted file mode 100644 index 2e64b8d326f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt deleted file mode 100644 index 2a6b8a96b14..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..35)::35 - [@{

                        }] - MarkupBlock - [0..35)::35 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..35)::35 - CSharpStatement - [0..35)::35 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..35)::34 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..34)::32 - MarkupBlock - [2..34)::32 - MarkupTagHelperElement - [2..34)::32 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..30)::28 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [4..16)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [btn] - MarkupTextLiteral - [12..15)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [16..29)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..29)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [30..34)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [34..35)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [35..35)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.tspans.txt deleted file mode 100644 index 89ddbae3e29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [32] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.cspans.txt deleted file mode 100644 index 376263f7c56..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (38:0,38 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [43] ) -Code span at (45:0,45 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (46:0,46 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.diag.txt deleted file mode 100644 index 17ba3c5206d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt deleted file mode 100644 index df1c7887d65..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..46)::46 - [@{}] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpStatement - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..46)::45 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - MarkupBlock - [2..45)::43 - MarkupTagHelperElement - [2..45)::43 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..45)::43 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..30)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..30)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupTagHelperAttribute - [30..42)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [31..36)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [38..41)::3 - MarkupLiteralAttributeValue - [38..41)::3 - [btn] - MarkupTextLiteral - [38..41)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [42..43)::1 - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.tspans.txt deleted file mode 100644 index 1521fa98cf9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [43] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.cspans.txt deleted file mode 100644 index 1d5021398f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [43] ) -Code span at (45:0,45 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (46:0,46 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.diag.txt deleted file mode 100644 index 4d52547683b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,22): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt deleted file mode 100644 index 353f33a5d2d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..46)::46 - [@{}] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpStatement - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..46)::45 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - MarkupBlock - [2..45)::43 - MarkupTagHelperElement - [2..45)::43 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..45)::43 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..20)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [20..42)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..42)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [42..43)::1 - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.tspans.txt deleted file mode 100644 index 1521fa98cf9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [43] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.cspans.txt deleted file mode 100644 index c5c968408ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (35:0,35 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [40] ) -Code span at (42:0,42 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [43] ) -MetaCode span at (42:0,42 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (43:0,43 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.diag.txt deleted file mode 100644 index e49be8f23f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt deleted file mode 100644 index ed760371aa9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..43)::43 - [@{}] - MarkupBlock - [0..43)::43 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..43)::43 - CSharpStatement - [0..43)::43 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..43)::42 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..42)::40 - MarkupBlock - [2..42)::40 - MarkupTagHelperElement - [2..42)::40 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [2..42)::40 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..27)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..27)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupTagHelperAttribute - [27..39)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..33)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [35..38)::3 - MarkupLiteralAttributeValue - [35..38)::3 - [btn] - MarkupTextLiteral - [35..38)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [38..39)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [39..40)::1 - MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [42..43)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.tspans.txt deleted file mode 100644 index e397c293b7c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [40] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.cspans.txt deleted file mode 100644 index c99bc193a48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (22:0,22 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [29] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.diag.txt deleted file mode 100644 index d801de11d6a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt deleted file mode 100644 index 374822bdae9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..32)::32 - [@{

                        }] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupTagHelperElement - [2..31)::29 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..27)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..14)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..14)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupTagHelperAttribute - [14..26)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..20)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [22..25)::3 - MarkupLiteralAttributeValue - [22..25)::3 - [btn] - MarkupTextLiteral - [22..25)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [27..31)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.tspans.txt deleted file mode 100644 index 59132499f60..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [29] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.cspans.txt deleted file mode 100644 index 44774dadad5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [40] ) -Code span at (42:0,42 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [43] ) -MetaCode span at (42:0,42 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [43] ) -Markup span at (43:0,43 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.diag.txt deleted file mode 100644 index 44cbbd120a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,22): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt deleted file mode 100644 index e5f59f4fa6c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..43)::43 - [@{}] - MarkupBlock - [0..43)::43 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..43)::43 - CSharpStatement - [0..43)::43 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..43)::42 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..42)::40 - MarkupBlock - [2..42)::40 - MarkupTagHelperElement - [2..42)::40 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [2..42)::40 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..20)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [20..39)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..39)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMiscAttributeContent - [39..40)::1 - MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [42..43)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.tspans.txt deleted file mode 100644 index e397c293b7c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [40] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.cspans.txt deleted file mode 100644 index 1bfedce83bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (12:0,12 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [29] ) -Code span at (31:0,31 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [32] ) -MetaCode span at (31:0,31 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [32] ) -Markup span at (32:0,32 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.diag.txt deleted file mode 100644 index b0d4ba275bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt deleted file mode 100644 index b040d3d84be..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..32)::32 - [@{

                        }] - MarkupBlock - [0..32)::32 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..32)::32 - CSharpStatement - [0..32)::32 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..32)::31 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..31)::29 - MarkupBlock - [2..31)::29 - MarkupTagHelperElement - [2..31)::29 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..27)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [4..16)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [btn] - MarkupTextLiteral - [12..15)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [16..26)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..26)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [27..31)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [31..32)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [32..32)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.tspans.txt deleted file mode 100644 index 59132499f60..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [29] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.cspans.txt deleted file mode 100644 index 1b7db58ccc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.diag.txt deleted file mode 100644 index 17ba3c5206d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.stree.txt deleted file mode 100644 index f86315c309f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..34)::34 - [@{}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupTagHelperElement - [2..33)::31 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [2..33)::31 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..30)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..30)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [30..31)::1 - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.tspans.txt deleted file mode 100644 index 15e0c638a1b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [31] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.cspans.txt deleted file mode 100644 index e24fb99361e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Transition span at (16:0,16 [1] ) (Accepts:None) - Parent: Expression block at (16:0,16 [13] ) -Code span at (17:0,17 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (16:0,16 [13] ) -Markup span at (29:0,29 [2] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [17] ) -Markup span at (31:0,31 [2] ) (Accepts:Any) - Parent: Markup block at (16:0,16 [17] ) -Code span at (56:0,56 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [57] ) -MetaCode span at (56:0,56 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [57] ) -Markup span at (57:0,57 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [57] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.diag.txt deleted file mode 100644 index f13ebc1193a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,36): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt deleted file mode 100644 index 0737c3c3d5b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..57)::57 - [@{}] - MarkupBlock - [0..57)::57 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..57)::57 - CSharpStatement - [0..57)::57 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..57)::56 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..56)::54 - MarkupBlock - [2..56)::54 - MarkupTagHelperElement - [2..56)::54 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [2..56)::54 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [8..34)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [16..33)::17 - MarkupDynamicAttributeValue - [16..29)::13 - [@DateTime.Now] - GenericBlock - [16..29)::13 - CSharpCodeBlock - [16..29)::13 - CSharpImplicitExpression - [16..29)::13 - CSharpTransition - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [17..29)::12 - CSharpCodeBlock - [17..29)::12 - CSharpExpressionLiteral - [17..29)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [29..31)::2 - [ +] - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [30..31)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [31..33)::2 - [ 1] - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [32..33)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [34..53)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..53)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMiscAttributeContent - [53..54)::1 - MarkupTextLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [56..56)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [56..57)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [57..57)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.tspans.txt deleted file mode 100644 index 48c553ef881..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [54] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.cspans.txt deleted file mode 100644 index 50cbc5077c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [13] ) -Code span at (13:0,13 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [13] ) -Markup span at (25:0,25 [2] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [17] ) -Markup span at (27:0,27 [2] ) (Accepts:Any) - Parent: Markup block at (12:0,12 [17] ) -Code span at (45:0,45 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [46] ) -MetaCode span at (45:0,45 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [46] ) -Markup span at (46:0,46 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [46] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.diag.txt deleted file mode 100644 index df44096ccc1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,32): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt deleted file mode 100644 index 1b52e276083..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt +++ /dev/null @@ -1,67 +0,0 @@ -RazorDocument - [0..46)::46 - [@{

                        }] - MarkupBlock - [0..46)::46 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..46)::46 - CSharpStatement - [0..46)::46 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..46)::45 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..45)::43 - MarkupBlock - [2..45)::43 - MarkupTagHelperElement - [2..45)::43 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..41)::39 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [4..30)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [12..29)::17 - MarkupDynamicAttributeValue - [12..25)::13 - [@DateTime.Now] - GenericBlock - [12..25)::13 - CSharpCodeBlock - [12..25)::13 - CSharpImplicitExpression - [12..25)::13 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..25)::12 - CSharpCodeBlock - [13..25)::12 - CSharpExpressionLiteral - [13..25)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [25..27)::2 - [ +] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..27)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [27..29)::2 - [ 1] - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..29)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [30..40)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [31..40)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [41..45)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [45..45)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [45..46)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.tspans.txt deleted file mode 100644 index a82989a6ceb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [43] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.cspans.txt deleted file mode 100644 index 24ce3652a10..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [129] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [129] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [129] ) -Transition span at (38:0,38 [1] ) (Accepts:None) - Parent: Expression block at (38:0,38 [13] ) -Code span at (39:0,39 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (38:0,38 [13] ) -Markup span at (51:0,51 [2] ) (Accepts:Any) - Parent: Markup block at (38:0,38 [17] ) -Markup span at (53:0,53 [2] ) (Accepts:Any) - Parent: Markup block at (38:0,38 [17] ) -Transition span at (88:0,88 [1] ) (Accepts:None) - Parent: Expression block at (88:0,88 [13] ) -Code span at (89:0,89 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (88:0,88 [13] ) -Markup span at (101:0,101 [2] ) (Accepts:Any) - Parent: Markup block at (88:0,88 [17] ) -Markup span at (103:0,103 [2] ) (Accepts:Any) - Parent: Markup block at (88:0,88 [17] ) -Code span at (128:0,128 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [129] ) -MetaCode span at (128:0,128 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [129] ) -Markup span at (129:0,129 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [129] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.diag.txt deleted file mode 100644 index f7ecf89f207..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,13): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,60): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt deleted file mode 100644 index b189fe09344..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt +++ /dev/null @@ -1,109 +0,0 @@ -RazorDocument - [0..129)::129 - [@{}] - MarkupBlock - [0..129)::129 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..129)::129 - CSharpStatement - [0..129)::129 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..129)::128 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..128)::126 - MarkupBlock - [2..128)::126 - MarkupTagHelperElement - [2..128)::126 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [2..128)::126 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..30)::22 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [8..12)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [12..30)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupTagHelperAttribute - [30..56)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [31..36)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [38..55)::17 - MarkupDynamicAttributeValue - [38..51)::13 - [@DateTime.Now] - GenericBlock - [38..51)::13 - CSharpCodeBlock - [38..51)::13 - CSharpImplicitExpression - [38..51)::13 - CSharpTransition - [38..39)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [39..51)::12 - CSharpCodeBlock - [39..51)::12 - CSharpExpressionLiteral - [39..51)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [51..53)::2 - [ +] - MarkupTextLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [52..53)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [53..55)::2 - [ 1] - MarkupTextLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [54..55)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [56..80)::24 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [56..59)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [59..80)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupTagHelperAttribute - [80..106)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [80..81)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [81..86)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [87..88)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [88..105)::17 - MarkupDynamicAttributeValue - [88..101)::13 - [@DateTime.Now] - GenericBlock - [88..101)::13 - CSharpCodeBlock - [88..101)::13 - CSharpImplicitExpression - [88..101)::13 - CSharpTransition - [88..89)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [89..101)::12 - CSharpCodeBlock - [89..101)::12 - CSharpExpressionLiteral - [89..101)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [101..103)::2 - [ +] - MarkupTextLiteral - [101..102)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [102..103)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [103..105)::2 - [ 1] - MarkupTextLiteral - [103..104)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [104..105)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [105..106)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [106..124)::18 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [106..108)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [108..124)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMiscAttributeContent - [124..126)::2 - MarkupTextLiteral - [124..126)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [128..128)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [128..129)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [129..129)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.tspans.txt deleted file mode 100644 index 166c08fd216..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [126] ) - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.cspans.txt deleted file mode 100644 index a67845db19d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [104] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [104] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [104] ) -Transition span at (25:0,25 [1] ) (Accepts:None) - Parent: Expression block at (25:0,25 [13] ) -Code span at (26:0,26 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (25:0,25 [13] ) -Markup span at (38:0,38 [2] ) (Accepts:Any) - Parent: Markup block at (25:0,25 [17] ) -Markup span at (40:0,40 [2] ) (Accepts:Any) - Parent: Markup block at (25:0,25 [17] ) -Transition span at (66:0,66 [1] ) (Accepts:None) - Parent: Expression block at (66:0,66 [13] ) -Code span at (67:0,67 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (66:0,66 [13] ) -Markup span at (79:0,79 [2] ) (Accepts:Any) - Parent: Markup block at (66:0,66 [17] ) -Markup span at (81:0,81 [2] ) (Accepts:Any) - Parent: Markup block at (66:0,66 [17] ) -Code span at (103:0,103 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [104] ) -MetaCode span at (103:0,103 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [104] ) -Markup span at (104:0,104 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [104] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.diag.txt deleted file mode 100644 index 02bcf3e7fa3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,9): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,47): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,87): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt deleted file mode 100644 index 5045858817f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt +++ /dev/null @@ -1,110 +0,0 @@ -RazorDocument - [0..104)::104 - [@{

                        }] - MarkupBlock - [0..104)::104 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..104)::104 - CSharpStatement - [0..104)::104 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..104)::103 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..103)::101 - MarkupBlock - [2..103)::101 - MarkupTagHelperElement - [2..103)::101 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..99)::97 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..17)::13 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [4..8)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..17)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupTagHelperAttribute - [17..43)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..23)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [25..42)::17 - MarkupDynamicAttributeValue - [25..38)::13 - [@DateTime.Now] - GenericBlock - [25..38)::13 - CSharpCodeBlock - [25..38)::13 - CSharpImplicitExpression - [25..38)::13 - CSharpTransition - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [26..38)::12 - CSharpCodeBlock - [26..38)::12 - CSharpExpressionLiteral - [26..38)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [38..40)::2 - [ +] - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [39..40)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [40..42)::2 - [ 1] - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [41..42)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [42..43)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [43..58)::15 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [43..46)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [46..58)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - MarkupTagHelperAttribute - [58..84)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [58..59)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [59..64)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [65..66)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [66..83)::17 - MarkupDynamicAttributeValue - [66..79)::13 - [@DateTime.Now] - GenericBlock - [66..79)::13 - CSharpCodeBlock - [66..79)::13 - CSharpImplicitExpression - [66..79)::13 - CSharpTransition - [66..67)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [67..79)::12 - CSharpCodeBlock - [67..79)::12 - CSharpExpressionLiteral - [67..79)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [79..81)::2 - [ +] - MarkupTextLiteral - [79..80)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [80..81)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [81..83)::2 - [ 1] - MarkupTextLiteral - [81..82)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [82..83)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [83..84)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [84..98)::14 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [84..86)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [86..98)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [99..103)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [103..103)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [103..104)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [104..104)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.tspans.txt deleted file mode 100644 index 9fcda621d77..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [101] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.cspans.txt deleted file mode 100644 index 98013e5de45..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Code span at (30:0,30 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (30:0,30 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (31:0,31 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.diag.txt deleted file mode 100644 index e49be8f23f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.stree.txt deleted file mode 100644 index aec5a2ef4a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..31)::31 - [@{}] - MarkupBlock - [0..31)::31 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - CSharpStatement - [0..31)::31 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..31)::30 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - MarkupBlock - [2..30)::28 - MarkupTagHelperElement - [2..30)::28 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [2..30)::28 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..27)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..27)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMiscAttributeContent - [27..28)::1 - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.tspans.txt deleted file mode 100644 index 84da2d9138e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [28] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.cspans.txt deleted file mode 100644 index 2397a13ae41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Code span at (19:0,19 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (19:0,19 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (20:0,20 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.diag.txt deleted file mode 100644 index d801de11d6a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,6): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.stree.txt deleted file mode 100644 index f61bc90a082..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..20)::20 - [@{

                        }] - MarkupBlock - [0..20)::20 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupTagHelperElement - [2..19)::17 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [2..15)::13 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [4..14)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..14)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [15..19)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [19..20)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [20..20)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.tspans.txt deleted file mode 100644 index b8f49f313aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [17] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.cspans.txt deleted file mode 100644 index 24e649f2da0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (25:0,25 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (25:0,25 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (26:0,26 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.diag.txt deleted file mode 100644 index 4ea65e9705e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'int-dictionary' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Collections.Generic.IDictionary' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.stree.txt deleted file mode 100644 index cffd8ef9985..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..26)::26 - [@{}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..25)::23 - MarkupBlock - [2..25)::23 - MarkupTagHelperElement - [2..25)::23 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..25)::23 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..23)::15 - int-dictionary - Minimized - Bound - [ int-dictionary] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..23)::14 - [int-dictionary] - Gen - SpanEditHandler;Accepts:Any - Text;[int-dictionary]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.tspans.txt deleted file mode 100644 index 15dbcaa3071..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [23] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.cspans.txt deleted file mode 100644 index 3b00b2167fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Code span at (29:0,29 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.diag.txt deleted file mode 100644 index c4f2e7af6d7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ2008: Attribute 'string-dictionary' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Collections.Generic.IDictionary' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.stree.txt deleted file mode 100644 index de57398940b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..30)::30 - [@{}] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpStatement - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..30)::29 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..29)::27 - MarkupBlock - [2..29)::27 - MarkupTagHelperElement - [2..29)::27 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..29)::27 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..26)::18 - string-dictionary - Minimized - Bound - [ string-dictionary] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..26)::17 - [string-dictionary] - Gen - SpanEditHandler;Accepts:Any - Text;[string-dictionary]; - MarkupMiscAttributeContent - [26..27)::1 - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.tspans.txt deleted file mode 100644 index e5276ea81ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [27] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.cspans.txt deleted file mode 100644 index b4b9c0325ee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Code span at (23:0,23 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (24:0,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.diag.txt deleted file mode 100644 index 132178a225c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,10): Error RZ2008: Attribute 'int-prefix-' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,10): Error RZ1029: The tag helper attribute 'int-prefix-' in element 'input' is missing a key. The syntax is ''. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.stree.txt deleted file mode 100644 index 54f08693c49..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..24)::24 - [@{}] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - MarkupBlock - [2..23)::21 - MarkupTagHelperElement - [2..23)::21 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..23)::21 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..20)::12 - int-prefix- - Minimized - Bound - [ int-prefix-] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..20)::11 - [int-prefix-] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-]; - MarkupMiscAttributeContent - [20..21)::1 - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.tspans.txt deleted file mode 100644 index a323d89c7a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [21] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.cspans.txt deleted file mode 100644 index 24e649f2da0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Code span at (25:0,25 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [26] ) -MetaCode span at (25:0,25 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [26] ) -Markup span at (26:0,26 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [26] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.diag.txt deleted file mode 100644 index b9efc3a7495..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,10): Error RZ2008: Attribute 'string-prefix-' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,10): Error RZ1029: The tag helper attribute 'string-prefix-' in element 'input' is missing a key. The syntax is ''. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.stree.txt deleted file mode 100644 index 54a9bbcb1cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..26)::26 - [@{}] - MarkupBlock - [0..26)::26 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..26)::26 - CSharpStatement - [0..26)::26 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..26)::25 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..25)::23 - MarkupBlock - [2..25)::23 - MarkupTagHelperElement - [2..25)::23 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [2..25)::23 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [8..23)::15 - string-prefix- - Minimized - Bound - [ string-prefix-] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..23)::14 - [string-prefix-] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-]; - ForwardSlash;[/]; - CloseAngle;[>]; - CSharpStatementLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [25..26)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.tspans.txt deleted file mode 100644 index 15dbcaa3071..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [23] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.stree.txt deleted file mode 100644 index 47f7be78338..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..26)::26 - [] - MarkupBlock - [0..26)::26 - MarkupTagHelperElement - [0..26)::26 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..26)::26 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..23)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMiscAttributeContent - [23..24)::1 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.tspans.txt deleted file mode 100644 index c70b63a3a24..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [26] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.diag.txt deleted file mode 100644 index f9aca6bc06a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'int-prefix-value' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.stree.txt deleted file mode 100644 index b4a299b04eb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..25)::25 - [] - MarkupBlock - [0..25)::25 - MarkupTagHelperElement - [0..25)::25 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..23)::17 - int-prefix-value - Minimized - Bound - [ int-prefix-value] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-value]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.tspans.txt deleted file mode 100644 index 1cdf61374da..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.diag.txt deleted file mode 100644 index 34c821c7866..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'string-prefix-value' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.stree.txt deleted file mode 100644 index 7e2884d5977..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..29)::29 - [] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..29)::29 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..26)::20 - string-prefix-value - Minimized - Bound - [ string-prefix-value] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..26)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-value]; - MarkupMiscAttributeContent - [26..27)::1 - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.tspans.txt deleted file mode 100644 index 0cecc8878e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.cspans.txt deleted file mode 100644 index fd32ae83455..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (25:0,25 [0] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.diag.txt deleted file mode 100644 index f9aca6bc06a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'int-prefix-value' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt deleted file mode 100644 index 2fdaa0868a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..29)::29 - [] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..29)::29 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..26)::20 - int-prefix-value - SingleQuotes - Bound - [ int-prefix-value=''] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [25..25)::0 - CSharpExpressionLiteral - [25..25)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [26..27)::1 - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.tspans.txt deleted file mode 100644 index 0cecc8878e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.cspans.txt deleted file mode 100644 index 8bfb2008370..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt deleted file mode 100644 index 08bf6be38e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..31)::31 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..29)::23 - string-prefix-value - SingleQuotes - Bound - [ string-prefix-value=''] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..26)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [28..28)::0 - MarkupTextLiteral - [28..28)::0 - [] - MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.tspans.txt deleted file mode 100644 index fb3dd52d1f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.cspans.txt deleted file mode 100644 index ef4d8f2892c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (25:0,25 [1] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt deleted file mode 100644 index 11c35e9738c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..29)::29 - [] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..29)::29 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..27)::21 - int-prefix-value - SingleQuotes - Bound - [ int-prefix-value='3'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [25..26)::1 - CSharpExpressionLiteral - [25..26)::1 - [3] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[3]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.tspans.txt deleted file mode 100644 index 0cecc8878e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.cspans.txt deleted file mode 100644 index 59085ec1f93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (28:0,28 [4] ) (Accepts:Any) - Parent: Markup block at (28:0,28 [11] ) -Markup span at (32:0,32 [7] ) (Accepts:Any) - Parent: Markup block at (28:0,28 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt deleted file mode 100644 index f3b42e62e54..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..43)::43 - [] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..43)::43 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..40)::34 - string-prefix-value - SingleQuotes - Bound - [ string-prefix-value='some string'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..26)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-value]; - Equals;[=]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [28..39)::11 - MarkupTextLiteral - [28..32)::4 - [some] - Gen - SpanEditHandler;Accepts:Any - Text;[some]; - MarkupTextLiteral - [32..39)::7 - [ string] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[string]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [40..41)::1 - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.tspans.txt deleted file mode 100644 index cdcaa72be2a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.diag.txt deleted file mode 100644 index f16231c79a1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,25): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.stree.txt deleted file mode 100644 index 2eb0da73178..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..48)::48 - [] - MarkupBlock - [0..48)::48 - MarkupTagHelperElement - [0..48)::48 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..48)::48 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..23)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMinimizedTagHelperAttribute - [23..45)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..45)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [45..46)::1 - MarkupTextLiteral - [45..46)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.tspans.txt deleted file mode 100644 index d2f983f82ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document16.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [48] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.diag.txt deleted file mode 100644 index a34289902ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,4): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,14): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.stree.txt deleted file mode 100644 index 7e4b51696b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..30)::30 - [

                        ] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..26)::26 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..12)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..12)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupMinimizedTagHelperAttribute - [12..25)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..25)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [26..30)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.tspans.txt deleted file mode 100644 index 2e5914e934a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document17.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.diag.txt deleted file mode 100644 index b62a8088636..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,8): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,44): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.stree.txt deleted file mode 100644 index f0769355d33..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..67)::67 - [] - MarkupBlock - [0..67)::67 - MarkupTagHelperElement - [0..67)::67 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [0..67)::67 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..25)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..25)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMinimizedTagHelperAttribute - [25..42)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..42)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMinimizedTagHelperAttribute - [42..64)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [43..64)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [64..65)::1 - MarkupTextLiteral - [64..65)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.tspans.txt deleted file mode 100644 index bd906590f5c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document18.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [67] ) - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.diag.txt deleted file mode 100644 index 2d5adeffaad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,4): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,14): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,27): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.stree.txt deleted file mode 100644 index 3e7583e45f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..43)::43 - [

                        ] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..39)::39 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..12)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..12)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupMinimizedTagHelperAttribute - [12..25)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..25)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - MarkupMinimizedTagHelperAttribute - [25..38)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..38)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [39..43)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.tspans.txt deleted file mode 100644 index 9b75c4b72aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document19.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.diag.txt deleted file mode 100644 index 73d0ec9b72f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.stree.txt deleted file mode 100644 index 145201b308d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..20)::20 - [

                        ] - MarkupBlock - [0..20)::20 - MarkupTagHelperElement - [0..20)::20 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..16)::16 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..15)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..15)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [16..20)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.tspans.txt deleted file mode 100644 index c5f5d51854c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [20] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.cspans.txt deleted file mode 100644 index f887502903d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (31:0,31 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt deleted file mode 100644 index a0f4d372dd0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..38)::38 - [] - MarkupBlock - [0..38)::38 - MarkupTagHelperElement - [0..38)::38 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..38)::38 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..23)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupTagHelperAttribute - [23..35)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..29)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [30..31)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [31..34)::3 - MarkupLiteralAttributeValue - [31..34)::3 - [btn] - MarkupTextLiteral - [31..34)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [35..36)::1 - MarkupTextLiteral - [35..36)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.tspans.txt deleted file mode 100644 index 3530a0ad39a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [38] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.cspans.txt deleted file mode 100644 index f3168ff72f0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (23:0,23 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.diag.txt deleted file mode 100644 index 73d0ec9b72f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt deleted file mode 100644 index 8d6eb3895fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..32)::32 - [

                        ] - MarkupBlock - [0..32)::32 - MarkupTagHelperElement - [0..32)::32 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..28)::28 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..15)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..15)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - MarkupTagHelperAttribute - [15..27)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [16..21)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [23..26)::3 - MarkupLiteralAttributeValue - [23..26)::3 - [btn] - MarkupTextLiteral - [23..26)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [28..32)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.tspans.txt deleted file mode 100644 index 96056a17cbd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [32] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.cspans.txt deleted file mode 100644 index da12d8c5242..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [38] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt deleted file mode 100644 index bd392ebaca1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..38)::38 - [] - MarkupBlock - [0..38)::38 - MarkupTagHelperElement - [0..38)::38 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..38)::38 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [14..17)::3 - MarkupLiteralAttributeValue - [14..17)::3 - [btn] - MarkupTextLiteral - [14..17)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [18..35)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..35)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMiscAttributeContent - [35..36)::1 - MarkupTextLiteral - [35..36)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.tspans.txt deleted file mode 100644 index 3530a0ad39a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [38] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.cspans.txt deleted file mode 100644 index aaba30723ef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [32] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.diag.txt deleted file mode 100644 index 1379c04890c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,16): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt deleted file mode 100644 index a5d56b5d4f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..32)::32 - [

                        ] - MarkupBlock - [0..32)::32 - MarkupTagHelperElement - [0..32)::32 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..28)::28 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [14..27)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..27)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [28..32)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.tspans.txt deleted file mode 100644 index 96056a17cbd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [32] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.cspans.txt deleted file mode 100644 index 617d58dd6cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (36:0,36 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.diag.txt deleted file mode 100644 index fa5bd9298e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt deleted file mode 100644 index fac0ca1d888..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..43)::43 - [] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..43)::43 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..28)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..28)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupTagHelperAttribute - [28..40)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [29..34)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [36..39)::3 - MarkupLiteralAttributeValue - [36..39)::3 - [btn] - MarkupTextLiteral - [36..39)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [40..41)::1 - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.tspans.txt deleted file mode 100644 index 4b2bde1a22c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.cspans.txt deleted file mode 100644 index 5d5e86a3ff2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [43] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.diag.txt deleted file mode 100644 index 107ae7e3491..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,20): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt deleted file mode 100644 index 44e24eec99f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..43)::43 - [] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..43)::43 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [14..17)::3 - MarkupLiteralAttributeValue - [14..17)::3 - [btn] - MarkupTextLiteral - [14..17)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [18..40)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..40)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [40..41)::1 - MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.tspans.txt deleted file mode 100644 index 4b2bde1a22c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.cspans.txt deleted file mode 100644 index a407f3ff425..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (33:0,33 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.diag.txt deleted file mode 100644 index 7c6942351cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt deleted file mode 100644 index d95095a2adf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..40)::40 - [] - MarkupBlock - [0..40)::40 - MarkupTagHelperElement - [0..40)::40 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [0..40)::40 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..25)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..25)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupTagHelperAttribute - [25..37)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..31)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [33..36)::3 - MarkupLiteralAttributeValue - [33..36)::3 - [btn] - MarkupTextLiteral - [33..36)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMiscAttributeContent - [37..38)::1 - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.tspans.txt deleted file mode 100644 index e303f879299..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [40] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.cspans.txt deleted file mode 100644 index b7600714180..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (20:0,20 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.diag.txt deleted file mode 100644 index 522de8be514..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt deleted file mode 100644 index c06d878da27..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..29)::29 - [

                        ] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..12)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..12)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupTagHelperAttribute - [12..24)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..18)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [20..23)::3 - MarkupLiteralAttributeValue - [20..23)::3 - [btn] - MarkupTextLiteral - [20..23)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupTagHelperEndTag - [25..29)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.tspans.txt deleted file mode 100644 index 4a617a9985f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.cspans.txt deleted file mode 100644 index bbfaeade346..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (14:0,14 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [40] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.diag.txt deleted file mode 100644 index b147ff3b8e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,20): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt deleted file mode 100644 index 469b6d91f08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..40)::40 - [] - MarkupBlock - [0..40)::40 - MarkupTagHelperElement - [0..40)::40 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [0..40)::40 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..18)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [14..17)::3 - MarkupLiteralAttributeValue - [14..17)::3 - [btn] - MarkupTextLiteral - [14..17)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [18..37)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..37)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMiscAttributeContent - [37..38)::1 - MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.tspans.txt deleted file mode 100644 index e303f879299..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [40] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.cspans.txt deleted file mode 100644 index 9886c6c9e95..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.diag.txt deleted file mode 100644 index 070a2efcbf3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,16): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt deleted file mode 100644 index f745ff8f163..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..29)::29 - [

                        ] - MarkupBlock - [0..29)::29 - MarkupTagHelperElement - [0..29)::29 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - SingleQuotes - Unbound - [ class='btn'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [14..24)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..24)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [25..29)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.tspans.txt deleted file mode 100644 index 4a617a9985f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.diag.txt deleted file mode 100644 index fa5bd9298e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.stree.txt deleted file mode 100644 index 8e3178ad8e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - input[SelfClosing] - InputTagHelper1 - InputTagHelper3 - MarkupTagHelperStartTag - [0..31)::31 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..28)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..28)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.tspans.txt deleted file mode 100644 index 69e54d8aad6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.cspans.txt deleted file mode 100644 index b7f3cfaf697..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Transition span at (14:0,14 [1] ) (Accepts:None) - Parent: Expression block at (14:0,14 [13] ) -Code span at (15:0,15 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (14:0,14 [13] ) -Markup span at (27:0,27 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [17] ) -Markup span at (29:0,29 [2] ) (Accepts:Any) - Parent: Markup block at (14:0,14 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.diag.txt deleted file mode 100644 index 35bf3d2029b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,34): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt deleted file mode 100644 index 53741e1a931..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..54)::54 - [] - MarkupBlock - [0..54)::54 - MarkupTagHelperElement - [0..54)::54 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [0..54)::54 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupTagHelperAttribute - [6..32)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [14..31)::17 - MarkupDynamicAttributeValue - [14..27)::13 - [@DateTime.Now] - GenericBlock - [14..27)::13 - CSharpCodeBlock - [14..27)::13 - CSharpImplicitExpression - [14..27)::13 - CSharpTransition - [14..15)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [15..27)::12 - CSharpCodeBlock - [15..27)::12 - CSharpExpressionLiteral - [15..27)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [27..29)::2 - [ +] - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [28..29)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [29..31)::2 - [ 1] - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [30..31)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [32..51)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [32..33)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [33..51)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMiscAttributeContent - [51..52)::1 - MarkupTextLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.tspans.txt deleted file mode 100644 index 3416d837b07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [54] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.cspans.txt deleted file mode 100644 index 5279ba84159..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) -Markup span at (23:0,23 [2] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [17] ) -Markup span at (25:0,25 [2] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.diag.txt deleted file mode 100644 index 49aae9f038f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,30): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt deleted file mode 100644 index a9fb4077013..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..43)::43 - [

                        ] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..39)::39 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..28)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..27)::17 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [23..25)::2 - [ +] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..25)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [25..27)::2 - [ 1] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..27)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [28..38)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [29..38)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [39..43)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.tspans.txt deleted file mode 100644 index 9b75c4b72aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.cspans.txt deleted file mode 100644 index d4bd228d1f5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Transition span at (36:0,36 [1] ) (Accepts:None) - Parent: Expression block at (36:0,36 [13] ) -Code span at (37:0,37 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (36:0,36 [13] ) -Markup span at (49:0,49 [2] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [17] ) -Markup span at (51:0,51 [2] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [17] ) -Transition span at (86:0,86 [1] ) (Accepts:None) - Parent: Expression block at (86:0,86 [13] ) -Code span at (87:0,87 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (86:0,86 [13] ) -Markup span at (99:0,99 [2] ) (Accepts:Any) - Parent: Markup block at (86:0,86 [17] ) -Markup span at (101:0,101 [2] ) (Accepts:Any) - Parent: Markup block at (86:0,86 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.diag.txt deleted file mode 100644 index 87c50385f2b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,11): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,58): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt deleted file mode 100644 index 1663d17fc8c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt +++ /dev/null @@ -1,92 +0,0 @@ -RazorDocument - [0..126)::126 - [] - MarkupBlock - [0..126)::126 - MarkupTagHelperElement - [0..126)::126 - input[SelfClosing] - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [0..126)::126 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..28)::22 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..10)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [10..28)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupTagHelperAttribute - [28..54)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [29..34)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [36..53)::17 - MarkupDynamicAttributeValue - [36..49)::13 - [@DateTime.Now] - GenericBlock - [36..49)::13 - CSharpCodeBlock - [36..49)::13 - CSharpImplicitExpression - [36..49)::13 - CSharpTransition - [36..37)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [37..49)::12 - CSharpCodeBlock - [37..49)::12 - CSharpExpressionLiteral - [37..49)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [49..51)::2 - [ +] - MarkupTextLiteral - [49..50)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [50..51)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [51..53)::2 - [ 1] - MarkupTextLiteral - [51..52)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [52..53)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [53..54)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [54..78)::24 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [54..57)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [57..78)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - MarkupTagHelperAttribute - [78..104)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [78..79)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [79..84)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [85..86)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [86..103)::17 - MarkupDynamicAttributeValue - [86..99)::13 - [@DateTime.Now] - GenericBlock - [86..99)::13 - CSharpCodeBlock - [86..99)::13 - CSharpImplicitExpression - [86..99)::13 - CSharpTransition - [86..87)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [87..99)::12 - CSharpCodeBlock - [87..99)::12 - CSharpExpressionLiteral - [87..99)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [99..101)::2 - [ +] - MarkupTextLiteral - [99..100)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [100..101)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [101..103)::2 - [ 1] - MarkupTextLiteral - [101..102)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [102..103)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [103..104)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [104..122)::18 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [104..106)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [106..122)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMiscAttributeContent - [122..124)::2 - MarkupTextLiteral - [122..124)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.tspans.txt deleted file mode 100644 index ed3ef89c3ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [126] ) - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.cspans.txt deleted file mode 100644 index 0a331cbddda..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Transition span at (23:0,23 [1] ) (Accepts:None) - Parent: Expression block at (23:0,23 [13] ) -Code span at (24:0,24 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (23:0,23 [13] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Markup block at (23:0,23 [17] ) -Markup span at (38:0,38 [2] ) (Accepts:Any) - Parent: Markup block at (23:0,23 [17] ) -Transition span at (64:0,64 [1] ) (Accepts:None) - Parent: Expression block at (64:0,64 [13] ) -Code span at (65:0,65 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (64:0,64 [13] ) -Markup span at (77:0,77 [2] ) (Accepts:Any) - Parent: Markup block at (64:0,64 [17] ) -Markup span at (79:0,79 [2] ) (Accepts:Any) - Parent: Markup block at (64:0,64 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.diag.txt deleted file mode 100644 index 482a02baa02..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,7): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,45): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,85): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt deleted file mode 100644 index a84a2d3683d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt +++ /dev/null @@ -1,93 +0,0 @@ -RazorDocument - [0..101)::101 - [

                        ] - MarkupBlock - [0..101)::101 - MarkupTagHelperElement - [0..101)::101 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..97)::97 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..15)::13 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..6)::4 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..15)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupTagHelperAttribute - [15..41)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [16..21)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [23..40)::17 - MarkupDynamicAttributeValue - [23..36)::13 - [@DateTime.Now] - GenericBlock - [23..36)::13 - CSharpCodeBlock - [23..36)::13 - CSharpImplicitExpression - [23..36)::13 - CSharpTransition - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [24..36)::12 - CSharpCodeBlock - [24..36)::12 - CSharpExpressionLiteral - [24..36)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [36..38)::2 - [ +] - MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [37..38)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [38..40)::2 - [ 1] - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [39..40)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [41..56)::15 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [41..44)::3 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [44..56)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - MarkupTagHelperAttribute - [56..82)::26 - class - SingleQuotes - Unbound - [ class='@DateTime.Now + 1'] - MarkupTextLiteral - [56..57)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [57..62)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [63..64)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [64..81)::17 - MarkupDynamicAttributeValue - [64..77)::13 - [@DateTime.Now] - GenericBlock - [64..77)::13 - CSharpCodeBlock - [64..77)::13 - CSharpImplicitExpression - [64..77)::13 - CSharpTransition - [64..65)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [65..77)::12 - CSharpCodeBlock - [65..77)::12 - CSharpExpressionLiteral - [65..77)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [77..79)::2 - [ +] - MarkupTextLiteral - [77..78)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [78..79)::1 - [+] - Gen - SpanEditHandler;Accepts:Any - Text;[+]; - MarkupLiteralAttributeValue - [79..81)::2 - [ 1] - MarkupTextLiteral - [79..80)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [80..81)::1 - [1] - Gen - SpanEditHandler;Accepts:Any - Text;[1]; - MarkupTextLiteral - [81..82)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [82..96)::14 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [82..84)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [84..96)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [97..101)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.tspans.txt deleted file mode 100644 index 2c2b6d94442..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [101] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.diag.txt deleted file mode 100644 index 7c6942351cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.stree.txt deleted file mode 100644 index a2981d26cdc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..28)::28 - [] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - input[SelfClosing] - InputTagHelper2 - InputTagHelper3 - MarkupTagHelperStartTag - [0..28)::28 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..25)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..25)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMiscAttributeContent - [25..26)::1 - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.tspans.txt deleted file mode 100644 index 61fc9912310..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.diag.txt deleted file mode 100644 index 522de8be514..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.stree.txt deleted file mode 100644 index 3fcce477164..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..17)::17 - [

                        ] - MarkupBlock - [0..17)::17 - MarkupTagHelperElement - [0..17)::17 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..13)::13 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..12)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..12)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [13..17)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.tspans.txt deleted file mode 100644 index 3e5ab2dd80e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [17] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.diag.txt deleted file mode 100644 index 087db6b299e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'int-dictionary' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Collections.Generic.IDictionary' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.stree.txt deleted file mode 100644 index 40a3abd8ee9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..23)::23 - [] - MarkupBlock - [0..23)::23 - MarkupTagHelperElement - [0..23)::23 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..23)::23 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..21)::15 - int-dictionary - Minimized - Bound - [ int-dictionary] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..21)::14 - [int-dictionary] - Gen - SpanEditHandler;Accepts:Any - Text;[int-dictionary]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.tspans.txt deleted file mode 100644 index 9e2dbbf7ab3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.diag.txt deleted file mode 100644 index 2d79facfa76..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,8): Error RZ2008: Attribute 'string-dictionary' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Collections.Generic.IDictionary' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.stree.txt deleted file mode 100644 index b4727002f7f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..27)::27 - [] - MarkupBlock - [0..27)::27 - MarkupTagHelperElement - [0..27)::27 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..27)::27 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..24)::18 - string-dictionary - Minimized - Bound - [ string-dictionary] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..24)::17 - [string-dictionary] - Gen - SpanEditHandler;Accepts:Any - Text;[string-dictionary]; - MarkupMiscAttributeContent - [24..25)::1 - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.tspans.txt deleted file mode 100644 index a3749faee28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [27] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.diag.txt deleted file mode 100644 index 0b5a9323816..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,8): Error RZ2008: Attribute 'int-prefix-' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,8): Error RZ1029: The tag helper attribute 'int-prefix-' in element 'input' is missing a key. The syntax is ''. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.stree.txt deleted file mode 100644 index b0f4f096417..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..21)::21 - [] - MarkupBlock - [0..21)::21 - MarkupTagHelperElement - [0..21)::21 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..21)::21 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..18)::12 - int-prefix- - Minimized - Bound - [ int-prefix-] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..18)::11 - [int-prefix-] - Gen - SpanEditHandler;Accepts:Any - Text;[int-prefix-]; - MarkupMiscAttributeContent - [18..19)::1 - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.tspans.txt deleted file mode 100644 index d1402886794..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [21] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.diag.txt deleted file mode 100644 index 6b9780fc870..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,8): Error RZ2008: Attribute 'string-prefix-' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,8): Error RZ1029: The tag helper attribute 'string-prefix-' in element 'input' is missing a key. The syntax is ''. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.stree.txt deleted file mode 100644 index d352a5b08ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.stree.txt +++ /dev/null @@ -1,13 +0,0 @@ -RazorDocument - [0..23)::23 - [] - MarkupBlock - [0..23)::23 - MarkupTagHelperElement - [0..23)::23 - input[SelfClosing] - InputTagHelper3 - MarkupTagHelperStartTag - [0..23)::23 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..21)::15 - string-prefix- - Minimized - Bound - [ string-prefix-] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..21)::14 - [string-prefix-] - Gen - SpanEditHandler;Accepts:Any - Text;[string-prefix-]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.tspans.txt deleted file mode 100644 index 9e2dbbf7ab3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.diag.txt deleted file mode 100644 index b90634a5158..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'input'. -(1,2): Error RZ1034: Found a malformed 'input' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.stree.txt deleted file mode 100644 index b3980dc81a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..23)::23 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..23)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..23)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.tspans.txt deleted file mode 100644 index c0685318c0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.diag.txt deleted file mode 100644 index 3b6c11fc6bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'input'. -(1,2): Error RZ1034: Found a malformed 'input' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,8): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.stree.txt deleted file mode 100644 index 3a1bb421576..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..28)::28 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..28)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..28)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.tspans.txt deleted file mode 100644 index 918bc21db0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - InputTagHelper1 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.diag.txt deleted file mode 100644 index cb730a6dc9b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'input'. -(1,2): Error RZ1034: Found a malformed 'input' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,8): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.stree.txt deleted file mode 100644 index bb81e143f07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..25)::25 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..25)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..25)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.tspans.txt deleted file mode 100644 index 27bc016b3e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.diag.txt deleted file mode 100644 index 19ac9103b01..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.diag.txt +++ /dev/null @@ -1,4 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'input'. -(1,2): Error RZ1034: Found a malformed 'input' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,8): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,44): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.stree.txt deleted file mode 100644 index edceae1dac8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..64)::64 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..25)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..25)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMinimizedTagHelperAttribute - [25..42)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..42)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMinimizedTagHelperAttribute - [42..64)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [43..64)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.tspans.txt deleted file mode 100644 index 49cb0fe4493..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [64] ) - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.diag.txt deleted file mode 100644 index a1ee83bf6d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,4): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.stree.txt deleted file mode 100644 index 0b7dc801119..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..15)::15 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..15)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..15)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.tspans.txt deleted file mode 100644 index 6a366b1c640..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [15] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.diag.txt deleted file mode 100644 index fb20eab90d0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,4): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.stree.txt deleted file mode 100644 index 151355fd87c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..12)::12 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..12)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..12)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.tspans.txt deleted file mode 100644 index 5cd52523a95..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [12] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.diag.txt deleted file mode 100644 index 4d7e0d9d263..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.diag.txt +++ /dev/null @@ -1,4 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,4): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,14): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.stree.txt deleted file mode 100644 index 4cc7c8aebb3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..25)::25 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [2..12)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..12)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupMinimizedTagHelperAttribute - [12..25)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [12..13)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [13..25)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.tspans.txt deleted file mode 100644 index e3e08d013c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.diag.txt deleted file mode 100644 index c64141f1802..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.diag.txt +++ /dev/null @@ -1,8 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'input'. -(1,2): Error RZ1034: Found a malformed 'input' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,8): Error RZ2008: Attribute 'bound-required-int' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,44): Error RZ2008: Attribute 'bound-required-string' on tag helper element 'input' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. -(1,66): Error RZ1035: Missing close angle for tag helper 'p'. -(1,66): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,68): Error RZ2008: Attribute 'bound-int' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.Int32' cannot be empty or contain only whitespace. -(1,78): Error RZ2008: Attribute 'bound-string' on tag helper element 'p' requires a value. Tag helper bound attributes of type 'System.String' cannot be empty or contain only whitespace. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.stree.txt deleted file mode 100644 index bf383c8b527..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..89)::89 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..25)::19 - bound-required-int - Minimized - Bound - [ bound-required-int] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..25)::18 - [bound-required-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-int]; - MarkupMinimizedTagHelperAttribute - [25..42)::17 - unbound-required - Minimized - Unbound - [ unbound-required] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..42)::16 - [unbound-required] - Gen - SpanEditHandler;Accepts:Any - Text;[unbound-required]; - MarkupMinimizedTagHelperAttribute - [42..64)::22 - bound-required-string - Minimized - Bound - [ bound-required-string] - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [43..64)::21 - [bound-required-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-required-string]; - CloseAngle;[]; - MarkupTagHelperElement - [64..89)::25 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [64..89)::25 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMinimizedTagHelperAttribute - [66..76)::10 - bound-int - Minimized - Bound - [ bound-int] - MarkupTextLiteral - [66..67)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [67..76)::9 - [bound-int] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-int]; - MarkupMinimizedTagHelperAttribute - [76..89)::13 - bound-string - Minimized - Bound - [ bound-string] - MarkupTextLiteral - [76..77)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [77..89)::12 - [bound-string] - Gen - SpanEditHandler;Accepts:Any - Text;[bound-string]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.tspans.txt deleted file mode 100644 index 846bc42dc88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_PartialTags8.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [64] ) - InputTagHelper1 - InputTagHelper2 - InputTagHelper3 -TagHelper span at (64:0,64 [25] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.stree.txt deleted file mode 100644 index 116e8180ef0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..37)::37 - [] - MarkupBlock - [0..37)::37 - MarkupTagHelperElement - [0..37)::37 - input[SelfClosing] - InputTagHelper - MarkupTagHelperStartTag - [0..37)::37 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMinimizedTagHelperAttribute - [6..16)::10 - boundbool - Minimized - Bound - [ boundbool] - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [7..16)::9 - [boundbool] - Gen - SpanEditHandler;Accepts:Any - Text;[boundbool]; - MarkupMinimizedTagHelperAttribute - [16..34)::18 - boundbooldict-key - Minimized - Bound - [ boundbooldict-key] - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [17..34)::17 - [boundbooldict-key] - Gen - SpanEditHandler;Accepts:Any - Text;[boundbooldict-key]; - MarkupMiscAttributeContent - [34..35)::1 - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.tspans.txt deleted file mode 100644 index c28ec2a7047..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedBooleanBoundAttributes.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [37] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.cspans.txt deleted file mode 100644 index 017c88aff00..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Code span at (13:0,13 [13] ) (Accepts:AnyExceptNewline) - Parent: Tag block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt deleted file mode 100644 index 5a116dae22e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..30)::30 - [] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - person[SelfClosing] - PersonTagHelper - MarkupTagHelperStartTag - [0..30)::30 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[person]; - MarkupTagHelperAttribute - [7..27)::20 - age - DoubleQuotes - Bound - [ age="(() => 123)()"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any - Text;[age]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [13..26)::13 - CSharpExpressionLiteral - [13..26)::13 - [(() => 123)()] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Text;[(()]; - Whitespace;[ ]; - Equals;[=]; - CloseAngle;[>]; - Whitespace;[ ]; - Text;[123)()]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [27..28)::1 - MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.tspans.txt deleted file mode 100644 index 6c93624813a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - PersonTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.cspans.txt deleted file mode 100644 index 4f69cb3f10e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.stree.txt deleted file mode 100644 index c691ddf36b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers1.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..7)::7 - [] - MarkupBlock - [0..7)::7 - MarkupElement - [0..7)::7 - MarkupStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:]; - MarkupMiscAttributeContent - [4..5)::1 - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.cspans.txt deleted file mode 100644 index df2aec385df..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [47] ) -Markup span at (21:0,21 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [47] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt deleted file mode 100644 index 5a1805b5d19..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..47)::47 - [words and spaces] - MarkupBlock - [0..47)::47 - MarkupTagHelperElement - [0..47)::47 - th:myth[StartTagAndEndTag] - mythTagHelper - MarkupTagHelperStartTag - [0..21)::21 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth]; - MarkupTagHelperAttribute - [8..20)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [21..37)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [37..47)::10 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:myth]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.tspans.txt deleted file mode 100644 index a1b89d4d458..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [47] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.cspans.txt deleted file mode 100644 index b824ad55f10..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (17:0,17 [1] ) (Accepts:None) - Parent: Expression block at (17:0,17 [13] ) -Code span at (18:0,18 [12] ) (Accepts:AnyExceptNewline) - Parent: Expression block at (17:0,17 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt deleted file mode 100644 index 59b74555a0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..34)::34 - [] - MarkupBlock - [0..34)::34 - MarkupTagHelperElement - [0..34)::34 - th:myth2[SelfClosing] - mythTagHelper2 - MarkupTagHelperStartTag - [0..34)::34 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth2]; - MarkupTagHelperAttribute - [9..31)::22 - bound - DoubleQuotes - Bound - [ bound="@DateTime.Now"] - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [10..15)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any - Text;[bound]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [17..30)::13 - MarkupBlock - [17..30)::13 - CSharpCodeBlock - [17..30)::13 - CSharpImplicitExpression - [17..30)::13 - CSharpTransition - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [18..30)::12 - CSharpCodeBlock - [18..30)::12 - CSharpExpressionLiteral - [18..30)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:AnyExceptNewline;ImplicitExpression[ATD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [31..32)::1 - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.tspans.txt deleted file mode 100644 index 33b53566f17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [34] ) - mythTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.cspans.txt deleted file mode 100644 index 022d559da17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [16] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Markup span at (21:0,21 [6] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.stree.txt deleted file mode 100644 index e031e1ac8cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers2.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..27)::27 - [words and spaces] - MarkupBlock - [0..27)::27 - MarkupElement - [0..27)::27 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:]; - CloseAngle;[>]; - MarkupTextLiteral - [5..21)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [21..27)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.stree.txt deleted file mode 100644 index 0eb6fd801a9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..11)::11 - [] - MarkupBlock - [0..11)::11 - MarkupTagHelperElement - [0..11)::11 - th:myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..11)::11 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth]; - MarkupMiscAttributeContent - [8..9)::1 - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.tspans.txt deleted file mode 100644 index 20562b3e6b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [11] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.stree.txt deleted file mode 100644 index 9f01e240d22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..19)::19 - [] - MarkupBlock - [0..19)::19 - MarkupTagHelperElement - [0..19)::19 - th:myth[StartTagAndEndTag] - mythTagHelper - MarkupTagHelperStartTag - [0..9)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [9..19)::10 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:myth]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.tspans.txt deleted file mode 100644 index 6dfea7ba4f2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.cspans.txt deleted file mode 100644 index e868b55b3ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (9:0,9 [10] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [10] ) -Markup span at (19:0,19 [11] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.stree.txt deleted file mode 100644 index bc5c8beed8e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..40)::40 - [] - MarkupBlock - [0..40)::40 - MarkupTagHelperElement - [0..40)::40 - th:myth[StartTagAndEndTag] - mythTagHelper - MarkupTagHelperStartTag - [0..9)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth]; - CloseAngle;[>]; - MarkupElement - [9..30)::21 - MarkupStartTag - [9..19)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:my2th]; - CloseAngle;[>]; - MarkupEndTag - [19..30)::11 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:my2th]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [30..40)::10 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:myth]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.tspans.txt deleted file mode 100644 index 9a9154c80d1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [40] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.cspans.txt deleted file mode 100644 index d9e9a04dc11..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [12] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [12] ) -Markup span at (2:0,2 [10] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.stree.txt deleted file mode 100644 index d5bc42d5e82..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers6.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..12)::12 - [] - MarkupBlock - [0..12)::12 - MarkupElement - [0..12)::12 - MarkupStartTag - [0..12)::12 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[th:myth]; - MarkupMiscAttributeContent - [9..10)::1 - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.cspans.txt deleted file mode 100644 index 59cd08d3b50..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [10] ) -Markup span at (2:0,2 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [10] ) -Markup span at (10:0,10 [2] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [11] ) -MetaCode span at (12:0,12 [1] ) (Accepts:None) - Parent: Tag block at (10:0,10 [11] ) -Markup span at (13:0,13 [8] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.stree.txt deleted file mode 100644 index 6f048dd34c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers7.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..21)::21 - [] - MarkupBlock - [0..21)::21 - MarkupElement - [0..21)::21 - MarkupStartTag - [0..10)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[th:myth]; - CloseAngle;[>]; - MarkupEndTag - [10..21)::11 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[th:myth]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.cspans.txt deleted file mode 100644 index 3bc04540914..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [23] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt deleted file mode 100644 index a3ef2604676..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..23)::23 - [] - MarkupBlock - [0..23)::23 - MarkupTagHelperElement - [0..23)::23 - th:myth[SelfClosing] - mythTagHelper - MarkupTagHelperStartTag - [0..23)::23 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth]; - MarkupTagHelperAttribute - [8..20)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [20..21)::1 - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.tspans.txt deleted file mode 100644 index 17b38715bc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - mythTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.cspans.txt deleted file mode 100644 index 7898d0d47e6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (17:0,17 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt deleted file mode 100644 index d70be0ff146..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..24)::24 - th:myth2[SelfClosing] - mythTagHelper2 - MarkupTagHelperStartTag - [0..24)::24 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:myth2]; - MarkupTagHelperAttribute - [9..21)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [10..15)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [17..20)::3 - MarkupLiteralAttributeValue - [17..20)::3 - [btn] - MarkupTextLiteral - [17..20)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [21..22)::1 - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.tspans.txt deleted file mode 100644 index fba983601b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [24] ) - mythTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.cspans.txt deleted file mode 100644 index 72a6a954d39..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [3] ) -Markup span at (6:0,6 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (10:0,10 [4] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [4] ) -Transition span at (14:0,14 [1] ) (Accepts:None) - Parent: Comment block at (14:0,14 [8] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Comment block at (14:0,14 [8] ) -Comment span at (16:0,16 [4] ) (Accepts:Any) - Parent: Comment block at (14:0,14 [8] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Comment block at (14:0,14 [8] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Comment block at (14:0,14 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.stree.txt deleted file mode 100644 index 25ecc400857..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..26)::26 - [

                        asdf@*asdf*@

                        ] - MarkupBlock - [0..26)::26 - MarkupTagHelperElement - [0..26)::26 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..14)::11 - MarkupStartTag - [3..6)::3 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[b]; - CloseAngle;[>]; - MarkupTextLiteral - [6..10)::4 - [asdf] - Gen - SpanEditHandler;Accepts:Any - Text;[asdf]; - MarkupEndTag - [10..14)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[b]; - CloseAngle;[>]; - RazorComment - [14..22)::8 - RazorCommentTransition;[@]; - RazorCommentStar;[*]; - RazorCommentLiteral;[asdf]; - RazorCommentStar;[*]; - RazorCommentTransition;[@]; - MarkupTagHelperEndTag - [22..26)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.tspans.txt deleted file mode 100644 index 41a4059c212..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorCommentsAsChildren.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [26] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.cspans.txt deleted file mode 100644 index 841cefa3f93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [3] ) -Markup span at (6:0,6 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [37] ) -Markup span at (10:0,10 [4] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [4] ) -Markup span at (14:0,14 [4] ) (Accepts:None) - Parent: HtmlComment block at (14:0,14 [19] ) -Markup span at (18:0,18 [6] ) (Accepts:Whitespace) - Parent: HtmlComment block at (14:0,14 [19] ) -Transition span at (24:0,24 [1] ) (Accepts:None) - Parent: Expression block at (24:0,24 [6] ) -Code span at (25:0,25 [5] ) (Accepts:NonWhitespace) - Parent: Expression block at (24:0,24 [6] ) -Markup span at (30:0,30 [3] ) (Accepts:None) - Parent: HtmlComment block at (14:0,14 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.stree.txt deleted file mode 100644 index c66d2e2fd30..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..37)::37 - [

                        asdf

                        ] - MarkupBlock - [0..37)::37 - MarkupTagHelperElement - [0..37)::37 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..14)::11 - MarkupStartTag - [3..6)::3 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[b]; - CloseAngle;[>]; - MarkupTextLiteral - [6..10)::4 - [asdf] - Gen - SpanEditHandler;Accepts:Any - Text;[asdf]; - MarkupEndTag - [10..14)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[b]; - CloseAngle;[>]; - MarkupCommentBlock - [14..33)::19 - MarkupTextLiteral - [14..18)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [33..37)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.tspans.txt deleted file mode 100644 index 01ef9b42cc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsRazorMarkupInHtmlComment.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [37] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.cspans.txt deleted file mode 100644 index df900ecba5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [3] ) -Markup span at (6:0,6 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [36] ) -Markup span at (10:0,10 [4] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [4] ) -Markup span at (14:0,14 [4] ) (Accepts:None) - Parent: HtmlComment block at (14:0,14 [18] ) -Markup span at (18:0,18 [11] ) (Accepts:Whitespace) - Parent: HtmlComment block at (14:0,14 [18] ) -Markup span at (29:0,29 [3] ) (Accepts:None) - Parent: HtmlComment block at (14:0,14 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.stree.txt deleted file mode 100644 index d619bdc2a92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..36)::36 - [

                        asdf

                        ] - MarkupBlock - [0..36)::36 - MarkupTagHelperElement - [0..36)::36 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..14)::11 - MarkupStartTag - [3..6)::3 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[b]; - CloseAngle;[>]; - MarkupTextLiteral - [6..10)::4 - [asdf] - Gen - SpanEditHandler;Accepts:Any - Text;[asdf]; - MarkupEndTag - [10..14)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[b]; - CloseAngle;[>]; - MarkupCommentBlock - [14..32)::18 - MarkupTextLiteral - [14..18)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [32..36)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.tspans.txt deleted file mode 100644 index af2c446e1f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsSimpleHtmlCommentsAsChildren.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [36] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.cspans.txt deleted file mode 100644 index e473d0582c4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [22] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [22] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (20:0,20 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (21:0,21 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [20] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.diag.txt deleted file mode 100644 index 6f41e61f18a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "!text" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt deleted file mode 100644 index 0cddbae4800..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..22)::22 - [@{}] - MarkupBlock - [0..22)::22 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..22)::22 - CSharpStatement - [0..22)::22 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..22)::21 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..22)::20 - MarkupBlock - [2..22)::20 - MarkupElement - [2..22)::20 - MarkupStartTag - [2..21)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..20)::12 - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [21..22)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [22..22)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.cspans.txt deleted file mode 100644 index a20ec606c81..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (20:0,20 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (21:0,21 [2] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [8] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Tag block at (21:0,21 [8] ) -Markup span at (24:0,24 [5] ) (Accepts:None) - Parent: Tag block at (21:0,21 [8] ) -Code span at (29:0,29 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [30] ) -MetaCode span at (29:0,29 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [30] ) -Markup span at (30:0,30 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt deleted file mode 100644 index 33a85928e57..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..30)::30 - [@{}] - MarkupBlock - [0..30)::30 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..30)::30 - CSharpStatement - [0..30)::30 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..30)::29 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..29)::27 - MarkupBlock - [2..29)::27 - MarkupElement - [2..29)::27 - MarkupStartTag - [2..21)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..20)::12 - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupEndTag - [21..29)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [29..30)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.cspans.txt deleted file mode 100644 index f4c2992c67e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (20:0,20 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (21:0,21 [17] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [44] ) -Markup span at (38:0,38 [2] ) (Accepts:Any) - Parent: Tag block at (38:0,38 [8] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Tag block at (38:0,38 [8] ) -Markup span at (41:0,41 [5] ) (Accepts:None) - Parent: Tag block at (38:0,38 [8] ) -Code span at (46:0,46 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [47] ) -MetaCode span at (46:0,46 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -Markup span at (47:0,47 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt deleted file mode 100644 index a081ac98609..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..47)::47 - [@{words with spaces}] - MarkupBlock - [0..47)::47 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..47)::47 - CSharpStatement - [0..47)::47 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..47)::46 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..46)::44 - MarkupBlock - [2..46)::44 - MarkupElement - [2..46)::44 - MarkupStartTag - [2..21)::19 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..20)::12 - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [21..38)::17 - [words with spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[with]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [38..46)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [46..47)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.cspans.txt deleted file mode 100644 index 3c3a95f854f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.cspans.txt +++ /dev/null @@ -1,19 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [36] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [36] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [36] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [18] ) -Markup span at (16:0,16 [4] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [18] ) -Markup span at (20:0,20 [5] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [18] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [18] ) -Markup span at (26:0,26 [8] ) (Accepts:Any) - Parent: Markup block at (26:0,26 [11] ) -Markup span at (34:0,34 [3] ) (Accepts:Any) - Parent: Markup block at (26:0,26 [11] ) -Markup span at (37:0,37 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [36] ) -Markup span at (38:0,38 [2] ) (Accepts:Any) - Parent: Tag block at (38:0,38 [8] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Tag block at (38:0,38 [8] ) -Markup span at (41:0,41 [5] ) (Accepts:None) - Parent: Tag block at (38:0,38 [8] ) -Code span at (46:0,46 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [47] ) -MetaCode span at (46:0,46 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [47] ) -Markup span at (47:0,47 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [47] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt deleted file mode 100644 index 0ce937b430a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt +++ /dev/null @@ -1,60 +0,0 @@ -RazorDocument - [0..47)::47 - [@{}] - MarkupBlock - [0..47)::47 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..47)::47 - CSharpStatement - [0..47)::47 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..47)::46 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..46)::44 - MarkupBlock - [2..46)::44 - MarkupElement - [2..46)::44 - MarkupStartTag - [2..38)::36 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..26)::18 - [ class='btn1 btn2'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [16..25)::9 - MarkupLiteralAttributeValue - [16..20)::4 - [btn1] - MarkupTextLiteral - [16..20)::4 - [btn1] - Gen - SpanEditHandler;Accepts:Any - Text;[btn1]; - MarkupLiteralAttributeValue - [20..25)::5 - [ btn2] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [21..25)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any - Text;[btn2]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [26..37)::11 - [ class2=btn] - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [27..33)::6 - [class2] - Gen - SpanEditHandler;Accepts:Any - Text;[class2]; - Equals;[=]; - GenericBlock - [34..37)::3 - MarkupLiteralAttributeValue - [34..37)::3 - [btn] - MarkupTextLiteral - [34..37)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - CloseAngle;[>]; - MarkupEndTag - [38..46)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [46..46)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [46..47)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [47..47)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.cspans.txt deleted file mode 100644 index 8543c4eeb6e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.cspans.txt +++ /dev/null @@ -1,20 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [50] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [50] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [50] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [39] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [39] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [39] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [32] ) -Markup span at (16:0,16 [4] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [32] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (20:0,20 [14] ) -Transition span at (21:0,21 [1] ) (Accepts:None) - Parent: Expression block at (21:0,21 [13] ) -Code span at (22:0,22 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (21:0,21 [13] ) -Markup span at (34:0,34 [5] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [32] ) -Markup span at (39:0,39 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [32] ) -Markup span at (40:0,40 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [39] ) -Markup span at (41:0,41 [2] ) (Accepts:Any) - Parent: Tag block at (41:0,41 [8] ) -MetaCode span at (43:0,43 [1] ) (Accepts:None) - Parent: Tag block at (41:0,41 [8] ) -Markup span at (44:0,44 [5] ) (Accepts:None) - Parent: Tag block at (41:0,41 [8] ) -Code span at (49:0,49 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [50] ) -MetaCode span at (49:0,49 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [50] ) -Markup span at (50:0,50 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [50] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt deleted file mode 100644 index abdb6a42df7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt +++ /dev/null @@ -1,64 +0,0 @@ -RazorDocument - [0..50)::50 - [@{}] - MarkupBlock - [0..50)::50 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..50)::50 - CSharpStatement - [0..50)::50 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..50)::49 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..49)::47 - MarkupBlock - [2..49)::47 - MarkupElement - [2..49)::47 - MarkupStartTag - [2..41)::39 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..40)::32 - [ class='btn1 @DateTime.Now btn2'] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [16..39)::23 - MarkupLiteralAttributeValue - [16..20)::4 - [btn1] - MarkupTextLiteral - [16..20)::4 - [btn1] - Gen - SpanEditHandler;Accepts:Any - Text;[btn1]; - MarkupDynamicAttributeValue - [20..34)::14 - [ @DateTime.Now] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - GenericBlock - [21..34)::13 - CSharpCodeBlock - [21..34)::13 - CSharpImplicitExpression - [21..34)::13 - CSharpTransition - [21..22)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [22..34)::12 - CSharpCodeBlock - [22..34)::12 - CSharpExpressionLiteral - [22..34)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [34..39)::5 - [ btn2] - MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [35..39)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any - Text;[btn2]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [41..49)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [49..49)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [49..50)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [50..50)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.cspans.txt deleted file mode 100644 index 4c82a55e346..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [10] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [10] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (9:0,9 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.diag.txt deleted file mode 100644 index 6f41e61f18a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "!text" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.stree.txt deleted file mode 100644 index adc9746a552..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag1.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..10)::10 - [@{}] - MarkupBlock - [0..10)::10 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..10)::10 - CSharpStatement - [0..10)::10 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..10)::9 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..10)::8 - MarkupBlock - [2..10)::8 - MarkupElement - [2..10)::8 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [9..10)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [10..10)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.cspans.txt deleted file mode 100644 index d849d367fee..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [8] ) -MetaCode span at (4:0,4 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [8] ) -Markup span at (5:0,5 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [8] ) -Code span at (10:0,10 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.diag.txt deleted file mode 100644 index 5bcfe7b2f48..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1026: Encountered end tag "!text" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.stree.txt deleted file mode 100644 index fe12c3634d3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag2.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..11)::11 - [@{}] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpStatement - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..10)::8 - MarkupBlock - [2..10)::8 - MarkupElement - [2..10)::8 - MarkupEndTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.cspans.txt deleted file mode 100644 index 8c4834386d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (9:0,9 [2] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [8] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Tag block at (9:0,9 [8] ) -Markup span at (12:0,12 [5] ) (Accepts:None) - Parent: Tag block at (9:0,9 [8] ) -Code span at (17:0,17 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [18] ) -MetaCode span at (17:0,17 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -Markup span at (18:0,18 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.stree.txt deleted file mode 100644 index 58e11b84c91..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag3.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..18)::18 - [@{}] - MarkupBlock - [0..18)::18 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..18)::18 - CSharpStatement - [0..18)::18 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..18)::17 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..17)::15 - MarkupBlock - [2..17)::15 - MarkupElement - [2..17)::15 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupEndTag - [9..17)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [17..18)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.cspans.txt deleted file mode 100644 index 8e4cc26c889..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (9:0,9 [16] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [31] ) -Markup span at (25:0,25 [2] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [8] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Tag block at (25:0,25 [8] ) -Markup span at (28:0,28 [5] ) (Accepts:None) - Parent: Tag block at (25:0,25 [8] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.stree.txt deleted file mode 100644 index b9443879a50..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag4.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..34)::34 - [@{words and spaces}] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [9..25)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [25..33)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.cspans.txt deleted file mode 100644 index bceaf09553a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (9:0,9 [7] ) (Accepts:None) - Parent: Tag block at (9:0,9 [7] ) -Code span at (16:0,16 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.diag.txt deleted file mode 100644 index 9e700e22b82..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,4): Error RZ1025: The "!text" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,12): Error RZ1034: Found a malformed 'text' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.stree.txt deleted file mode 100644 index 89bf9b27064..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag5.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..17)::17 - [@{}] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpStatement - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..17)::16 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..16)::14 - MarkupBlock - [2..16)::14 - MarkupElement - [2..16)::14 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupElement - [9..16)::7 - MarkupEndTag - [9..16)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.cspans.txt deleted file mode 100644 index 35c9da1c431..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [2] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [8] ) -MetaCode span at (10:0,10 [1] ) (Accepts:None) - Parent: Tag block at (8:0,8 [8] ) -Markup span at (11:0,11 [5] ) (Accepts:None) - Parent: Tag block at (8:0,8 [8] ) -Code span at (16:0,16 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (16:0,16 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (17:0,17 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.diag.txt deleted file mode 100644 index 5b84341f8dd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ1025: The "text" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.stree.txt deleted file mode 100644 index ae7f265b931..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag6.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..17)::17 - [@{}] - MarkupBlock - [0..17)::17 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpStatement - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..17)::16 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..16)::14 - MarkupBlock - [2..16)::14 - MarkupElement - [2..16)::14 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupElement - [8..16)::8 - MarkupEndTag - [8..16)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [17..17)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.cspans.txt deleted file mode 100644 index e4ec1ec100e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (22:0,22 [2] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [8] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Tag block at (22:0,22 [8] ) -Markup span at (25:0,25 [5] ) (Accepts:None) - Parent: Tag block at (22:0,22 [8] ) -Code span at (30:0,30 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [31] ) -MetaCode span at (30:0,30 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [31] ) -Markup span at (31:0,31 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.stree.txt deleted file mode 100644 index d6a9f5f320d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..31)::31 - [@{}] - MarkupBlock - [0..31)::31 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..31)::31 - CSharpStatement - [0..31)::31 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..31)::30 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..30)::28 - MarkupBlock - [2..30)::28 - MarkupElement - [2..30)::28 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupTagHelperElement - [9..22)::13 - text[StartTagAndEndTag] - texttaghelper - MarkupTagHelperStartTag - [9..15)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [15..22)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - MarkupEndTag - [22..30)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [30..30)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [30..31)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [31..31)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.tspans.txt deleted file mode 100644 index 9f67aaf5a43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (9:0,9 [13] ) - texttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.cspans.txt deleted file mode 100644 index c21ff53c606..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [1] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [7] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Tag block at (8:0,8 [7] ) -Markup span at (10:0,10 [5] ) (Accepts:None) - Parent: Tag block at (8:0,8 [7] ) -Markup span at (15:0,15 [2] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [8] ) -MetaCode span at (17:0,17 [1] ) (Accepts:None) - Parent: Tag block at (15:0,15 [8] ) -Markup span at (18:0,18 [5] ) (Accepts:None) - Parent: Tag block at (15:0,15 [8] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [22] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.diag.txt deleted file mode 100644 index 27a90c4a3e3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "text" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.stree.txt deleted file mode 100644 index 88417749781..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag8.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..24)::24 - [@{}] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - MarkupBlock - [2..24)::22 - MarkupElement - [2..24)::22 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupElement - [8..23)::15 - MarkupStartTag - [8..15)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupEndTag - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [23..24)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [24..24)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.cspans.txt deleted file mode 100644 index b311f8f7484..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (9:0,9 [2] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [8] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Tag block at (9:0,9 [8] ) -Markup span at (12:0,12 [5] ) (Accepts:None) - Parent: Tag block at (9:0,9 [8] ) -Markup span at (17:0,17 [7] ) (Accepts:None) - Parent: Tag block at (17:0,17 [7] ) -Code span at (24:0,24 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.diag.txt deleted file mode 100644 index d82bb8c1a66..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,20): Error RZ1026: Encountered end tag "text" with no matching start tag. Are your start/end tags properly balanced? -(1,20): Error RZ1034: Found a malformed 'text' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.stree.txt deleted file mode 100644 index dd66d9333a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithBlockTextTag9.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..25)::25 - [@{}] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - MarkupBlock - [2..17)::15 - MarkupElement - [2..17)::15 - MarkupStartTag - [2..9)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupEndTag - [9..17)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[text]; - CloseAngle;[>]; - MarkupBlock - [17..24)::7 - MarkupElement - [17..24)::7 - MarkupEndTag - [17..24)::7 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.cspans.txt deleted file mode 100644 index 68230d2f768..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.stree.txt deleted file mode 100644 index 61c1a03dc41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML1.stree.txt +++ /dev/null @@ -1,5 +0,0 @@ -RazorDocument - [0..2)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.cspans.txt deleted file mode 100644 index 108c031df70..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.stree.txt deleted file mode 100644 index 10d9274ac34..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML2.stree.txt +++ /dev/null @@ -1,8 +0,0 @@ -RazorDocument - [0..3)::3 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.cspans.txt deleted file mode 100644 index 9bdd5fbf73b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (2:0,2 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.stree.txt deleted file mode 100644 index c9bce33c622..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML3.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..5)::5 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupMiscAttributeContent - [3..4)::1 - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [4..5)::1 - MarkupTextLiteral - [4..5)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.cspans.txt deleted file mode 100644 index 30af8ce509d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [10] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [10] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [10] ) -Markup span at (3:0,3 [7] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt deleted file mode 100644 index 3a7cde5335b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..10)::10 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..10)::7 - [ class=] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.cspans.txt deleted file mode 100644 index 9c594e7cebf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [14] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [11] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt deleted file mode 100644 index b78dfe1d297..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..14)::14 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..14)::11 - [ class="btn] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [btn] - MarkupTextLiteral - [11..14)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.cspans.txt deleted file mode 100644 index dd532d116d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [15] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [15] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt deleted file mode 100644 index d69071ac020..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..15)::15 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..15)::12 - [ class="btn"] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [btn] - MarkupTextLiteral - [11..14)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.cspans.txt deleted file mode 100644 index 524195f4462..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [17] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (15:0,15 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt deleted file mode 100644 index cbd61e6fb5b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..17)::17 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..15)::12 - [ class="btn"] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [btn] - MarkupTextLiteral - [11..14)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [15..16)::1 - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.cspans.txt deleted file mode 100644 index e2f572686f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [5] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [5] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [3] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [3] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.diag.txt deleted file mode 100644 index 5e05d58d348..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.stree.txt deleted file mode 100644 index 22f2b094399..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock1.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..5)::5 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..5)::5 - CSharpStatement - [0..5)::5 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..5)::4 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..5)::3 - MarkupBlock - [2..5)::3 - MarkupElement - [2..5)::3 - MarkupStartTag - [2..5)::3 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [5..5)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.cspans.txt deleted file mode 100644 index 269e709b18c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [6] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [6] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [6] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.diag.txt deleted file mode 100644 index 7fcf4c636a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.stree.txt deleted file mode 100644 index 3e5244b17f8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock2.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..6)::6 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..6)::6 - CSharpStatement - [0..6)::6 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..6)::5 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..6)::4 - MarkupBlock - [2..6)::4 - MarkupElement - [2..6)::4 - MarkupStartTag - [2..6)::4 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p}]; - CloseAngle;[]; - RazorMetaCode - [6..6)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.cspans.txt deleted file mode 100644 index 3686f93385b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [8] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [6] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (4:0,4 [3] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (7:0,7 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.diag.txt deleted file mode 100644 index 7f76f09dfe3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.stree.txt deleted file mode 100644 index c3079ddde38..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock3.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..8)::8 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpStatement - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..8)::7 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..8)::6 - MarkupBlock - [2..8)::6 - MarkupElement - [2..8)::6 - MarkupStartTag - [2..8)::6 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupMiscAttributeContent - [5..6)::1 - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupMinimizedAttributeBlock - [7..8)::1 - [}] - MarkupTextLiteral - [7..8)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [8..8)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.cspans.txt deleted file mode 100644 index ae931de581a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [13] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [13] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [13] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [11] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [11] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [11] ) -Markup span at (5:0,5 [7] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [8] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.diag.txt deleted file mode 100644 index 7f76f09dfe3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt deleted file mode 100644 index ee610d65e2f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..13)::13 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..13)::13 - CSharpStatement - [0..13)::13 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..13)::12 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..13)::11 - MarkupBlock - [2..13)::11 - MarkupElement - [2..13)::11 - MarkupStartTag - [2..13)::11 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..13)::8 - [ class=}] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - GenericBlock - [12..13)::1 - MarkupLiteralAttributeValue - [12..13)::1 - [}] - MarkupTextLiteral - [12..13)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [13..13)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.cspans.txt deleted file mode 100644 index 497c2da8bfd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [17] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [17] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [15] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [15] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [15] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.diag.txt deleted file mode 100644 index 7f76f09dfe3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt deleted file mode 100644 index 006b6b4d11f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..17)::17 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..17)::17 - CSharpStatement - [0..17)::17 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..17)::16 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..17)::15 - MarkupBlock - [2..17)::15 - MarkupElement - [2..17)::15 - MarkupStartTag - [2..17)::15 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..17)::12 - [ class="btn}] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..17)::4 - MarkupLiteralAttributeValue - [13..17)::4 - [btn}] - MarkupTextLiteral - [13..17)::4 - [btn}] - Gen - SpanEditHandler;Accepts:Any - Text;[btn}]; - CloseAngle;[]; - RazorMetaCode - [17..17)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.cspans.txt deleted file mode 100644 index 7280874c3d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [17] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [17] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [17] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [14] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [14] ) -Markup span at (16:0,16 [1] ) (Accepts:None) - Parent: Markup block at (16:0,16 [2] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Markup block at (16:0,16 [2] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.diag.txt deleted file mode 100644 index 7f76f09dfe3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt deleted file mode 100644 index 0c4ef5f3683..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..19)::19 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpStatement - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..19)::18 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..19)::17 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..19)::14 - [ class="btn@@}] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..19)::6 - MarkupLiteralAttributeValue - [13..16)::3 - [btn] - MarkupTextLiteral - [13..16)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupBlock - [16..18)::2 - MarkupTextLiteral - [16..17)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [17..18)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [18..19)::1 - [}] - MarkupTextLiteral - [18..19)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [19..19)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.cspans.txt deleted file mode 100644 index f1e91016d8d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [18] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.diag.txt deleted file mode 100644 index 7f76f09dfe3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt deleted file mode 100644 index 8cadcccfc7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..18)::18 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..18)::18 - CSharpStatement - [0..18)::18 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..18)::17 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..18)::16 - MarkupBlock - [2..18)::16 - MarkupElement - [2..18)::16 - MarkupStartTag - [2..18)::16 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..17)::12 - [ class="btn"] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [btn] - MarkupTextLiteral - [13..16)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMinimizedAttributeBlock - [17..18)::1 - [}] - MarkupTextLiteral - [17..18)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [18..18)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.cspans.txt deleted file mode 100644 index a5183e69eab..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (17:0,17 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (19:0,19 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.diag.txt deleted file mode 100644 index 7f76f09dfe3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!p" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt deleted file mode 100644 index 3bf562e8495..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..20)::20 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..20)::18 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..17)::12 - [ class="btn"] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [btn] - MarkupTextLiteral - [13..16)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [17..18)::1 - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [18..19)::1 - MarkupTextLiteral - [18..19)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupMinimizedAttributeBlock - [19..20)::1 - [}] - MarkupTextLiteral - [19..20)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [20..20)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.cspans.txt deleted file mode 100644 index f4f4680be74..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [9] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [9] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [9] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [7] ) -Markup span at (4:0,4 [5] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.diag.txt deleted file mode 100644 index c9edfe94264..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!text}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.stree.txt deleted file mode 100644 index 35c2ab76386..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock1.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..9)::9 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..9)::9 - CSharpStatement - [0..9)::9 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..9)::8 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..9)::7 - MarkupBlock - [2..9)::7 - MarkupElement - [2..9)::7 - MarkupStartTag - [2..9)::7 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[text}]; - CloseAngle;[]; - RazorMetaCode - [9..9)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.cspans.txt deleted file mode 100644 index 18195965b22..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [9] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [9] ) -Markup span at (4:0,4 [6] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [9] ) -Markup span at (10:0,10 [1] ) (Accepts:Any) - Parent: Markup block at (10:0,10 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.diag.txt deleted file mode 100644 index 2edb2cd77e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!text" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.stree.txt deleted file mode 100644 index 39f47161bc0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock2.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..11)::11 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpStatement - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..11)::9 - MarkupBlock - [2..11)::9 - MarkupElement - [2..11)::9 - MarkupStartTag - [2..11)::9 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupMiscAttributeContent - [8..9)::1 - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [9..10)::1 - MarkupTextLiteral - [9..10)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupMinimizedAttributeBlock - [10..11)::1 - [}] - MarkupTextLiteral - [10..11)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [11..11)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.cspans.txt deleted file mode 100644 index 0e8da837990..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [14] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [14] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [14] ) -Markup span at (8:0,8 [7] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [8] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.diag.txt deleted file mode 100644 index 2edb2cd77e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!text" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt deleted file mode 100644 index 1c0539e3acb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..16)::16 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - CSharpStatement - [0..16)::16 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..16)::15 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..16)::14 - MarkupBlock - [2..16)::14 - MarkupElement - [2..16)::14 - MarkupStartTag - [2..16)::14 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..16)::8 - [ class=}] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - GenericBlock - [15..16)::1 - MarkupLiteralAttributeValue - [15..16)::1 - [}] - MarkupTextLiteral - [15..16)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [16..16)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.cspans.txt deleted file mode 100644 index c8e364dcafa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [20] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [20] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [18] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (16:0,16 [4] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.diag.txt deleted file mode 100644 index 2edb2cd77e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!text" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt deleted file mode 100644 index f9d5e6ef3cf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..20)::20 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..20)::20 - CSharpStatement - [0..20)::20 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..20)::19 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..20)::18 - MarkupBlock - [2..20)::18 - MarkupElement - [2..20)::18 - MarkupStartTag - [2..20)::18 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..20)::12 - [ class="btn}] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [16..20)::4 - MarkupLiteralAttributeValue - [16..20)::4 - [btn}] - MarkupTextLiteral - [16..20)::4 - [btn}] - Gen - SpanEditHandler;Accepts:Any - Text;[btn}]; - CloseAngle;[]; - RazorMetaCode - [20..20)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.cspans.txt deleted file mode 100644 index e0c99a858bd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [21] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [21] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [19] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (20:0,20 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.diag.txt deleted file mode 100644 index 2edb2cd77e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!text" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt deleted file mode 100644 index 4aef8cae465..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..21)::21 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..21)::21 - CSharpStatement - [0..21)::21 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..21)::20 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..21)::19 - MarkupBlock - [2..21)::19 - MarkupElement - [2..21)::19 - MarkupStartTag - [2..21)::19 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..20)::12 - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMinimizedAttributeBlock - [20..21)::1 - [}] - MarkupTextLiteral - [20..21)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [21..21)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.cspans.txt deleted file mode 100644 index 20509e6706b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [23] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [23] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [21] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [21] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [21] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (8:0,8 [12] ) -Markup span at (20:0,20 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [21] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.diag.txt deleted file mode 100644 index 2edb2cd77e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1024: End of file or an unexpected character was reached before the "!text" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
                        ") or have matching end tags ("

                        Hello

                        "). If you intended to display a "<" character, use the "<" HTML entity. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt deleted file mode 100644 index 70dc270938f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..23)::23 - [@{ - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..23)::23 - CSharpStatement - [0..23)::23 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..23)::22 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - MarkupBlock - [2..23)::21 - MarkupElement - [2..23)::21 - MarkupStartTag - [2..23)::21 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[text]; - MarkupAttributeBlock - [8..20)::12 - [ class="btn"] - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [16..19)::3 - MarkupLiteralAttributeValue - [16..19)::3 - [btn] - MarkupTextLiteral - [16..19)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [20..21)::1 - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupMiscAttributeContent - [21..22)::1 - MarkupTextLiteral - [21..22)::1 - [/] - Gen - SpanEditHandler;Accepts:Any - ForwardSlash;[/]; - MarkupMinimizedAttributeBlock - [22..23)::1 - [}] - MarkupTextLiteral - [22..23)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - CloseAngle;[]; - RazorMetaCode - [23..23)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.cspans.txt deleted file mode 100644 index e4c8d0d2437..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (18:0,18 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.diag.txt deleted file mode 100644 index d208c6a9577..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "!p" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt deleted file mode 100644 index b71f09adf67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..19)::19 - [@{}] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpStatement - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..19)::18 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..19)::17 - MarkupBlock - [2..19)::17 - MarkupElement - [2..19)::17 - MarkupStartTag - [2..18)::16 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..17)::12 - [ class="btn"] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [btn] - MarkupTextLiteral - [13..16)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [18..19)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [19..19)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.cspans.txt deleted file mode 100644 index cf364bf3b2e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (18:0,18 [5] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Tag block at (18:0,18 [5] ) -Markup span at (21:0,21 [2] ) (Accepts:None) - Parent: Tag block at (18:0,18 [5] ) -Code span at (23:0,23 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [24] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [24] ) -Markup span at (24:0,24 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt deleted file mode 100644 index 5f02516c0c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt +++ /dev/null @@ -1,45 +0,0 @@ -RazorDocument - [0..24)::24 - [@{}] - MarkupBlock - [0..24)::24 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..24)::24 - CSharpStatement - [0..24)::24 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..24)::23 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..23)::21 - MarkupBlock - [2..23)::21 - MarkupElement - [2..23)::21 - MarkupStartTag - [2..18)::16 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..17)::12 - [ class="btn"] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [btn] - MarkupTextLiteral - [13..16)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupEndTag - [18..23)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [23..23)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [23..24)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.cspans.txt deleted file mode 100644 index 60b9da83b0a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.cspans.txt +++ /dev/null @@ -1,17 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (13:0,13 [3] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [12] ) -Markup span at (17:0,17 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [16] ) -Markup span at (18:0,18 [17] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [38] ) -Markup span at (35:0,35 [2] ) (Accepts:Any) - Parent: Tag block at (35:0,35 [5] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Tag block at (35:0,35 [5] ) -Markup span at (38:0,38 [2] ) (Accepts:None) - Parent: Tag block at (35:0,35 [5] ) -Code span at (40:0,40 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (41:0,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt deleted file mode 100644 index 5aceb7e8f61..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..41)::41 - [@{words with spaces}] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..41)::41 - CSharpStatement - [0..41)::41 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..41)::40 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..40)::38 - MarkupBlock - [2..40)::38 - MarkupElement - [2..40)::38 - MarkupStartTag - [2..18)::16 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..17)::12 - [ class="btn"] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [13..16)::3 - MarkupLiteralAttributeValue - [13..16)::3 - [btn] - MarkupTextLiteral - [13..16)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [18..35)::17 - [words with spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[with]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [35..40)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [40..41)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.cspans.txt deleted file mode 100644 index f3fec761037..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.cspans.txt +++ /dev/null @@ -1,19 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [33] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [33] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [33] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [18] ) -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [18] ) -Markup span at (17:0,17 [5] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [18] ) -Markup span at (22:0,22 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [18] ) -Markup span at (23:0,23 [8] ) (Accepts:Any) - Parent: Markup block at (23:0,23 [11] ) -Markup span at (31:0,31 [3] ) (Accepts:Any) - Parent: Markup block at (23:0,23 [11] ) -Markup span at (34:0,34 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [33] ) -Markup span at (35:0,35 [2] ) (Accepts:Any) - Parent: Tag block at (35:0,35 [5] ) -MetaCode span at (37:0,37 [1] ) (Accepts:None) - Parent: Tag block at (35:0,35 [5] ) -Markup span at (38:0,38 [2] ) (Accepts:None) - Parent: Tag block at (35:0,35 [5] ) -Code span at (40:0,40 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [41] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [41] ) -Markup span at (41:0,41 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt deleted file mode 100644 index a7a0e0f91b2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt +++ /dev/null @@ -1,60 +0,0 @@ -RazorDocument - [0..41)::41 - [@{}] - MarkupBlock - [0..41)::41 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..41)::41 - CSharpStatement - [0..41)::41 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..41)::40 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..40)::38 - MarkupBlock - [2..40)::38 - MarkupElement - [2..40)::38 - MarkupStartTag - [2..35)::33 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..23)::18 - [ class='btn1 btn2'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..22)::9 - MarkupLiteralAttributeValue - [13..17)::4 - [btn1] - MarkupTextLiteral - [13..17)::4 - [btn1] - Gen - SpanEditHandler;Accepts:Any - Text;[btn1]; - MarkupLiteralAttributeValue - [17..22)::5 - [ btn2] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..22)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any - Text;[btn2]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [23..34)::11 - [ class2=btn] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..30)::6 - [class2] - Gen - SpanEditHandler;Accepts:Any - Text;[class2]; - Equals;[=]; - GenericBlock - [31..34)::3 - MarkupLiteralAttributeValue - [31..34)::3 - [btn] - MarkupTextLiteral - [31..34)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - CloseAngle;[>]; - MarkupEndTag - [35..40)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [40..40)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [40..41)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.cspans.txt deleted file mode 100644 index a539659df70..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.cspans.txt +++ /dev/null @@ -1,20 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [36] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [36] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [36] ) -Markup span at (5:0,5 [8] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [32] ) -Markup span at (13:0,13 [4] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [32] ) -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Markup block at (17:0,17 [14] ) -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Expression block at (18:0,18 [13] ) -Code span at (19:0,19 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (18:0,18 [13] ) -Markup span at (31:0,31 [5] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [32] ) -Markup span at (36:0,36 [1] ) (Accepts:Any) - Parent: Markup block at (5:0,5 [32] ) -Markup span at (37:0,37 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [36] ) -Markup span at (38:0,38 [2] ) (Accepts:Any) - Parent: Tag block at (38:0,38 [5] ) -MetaCode span at (40:0,40 [1] ) (Accepts:None) - Parent: Tag block at (38:0,38 [5] ) -Markup span at (41:0,41 [2] ) (Accepts:None) - Parent: Tag block at (38:0,38 [5] ) -Code span at (43:0,43 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [44] ) -MetaCode span at (43:0,43 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [44] ) -Markup span at (44:0,44 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt deleted file mode 100644 index 08bccd56b5b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt +++ /dev/null @@ -1,64 +0,0 @@ -RazorDocument - [0..44)::44 - [@{}] - MarkupBlock - [0..44)::44 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..44)::44 - CSharpStatement - [0..44)::44 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..44)::43 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..43)::41 - MarkupBlock - [2..43)::41 - MarkupElement - [2..43)::41 - MarkupStartTag - [2..38)::36 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [5..37)::32 - [ class='btn1 @DateTime.Now btn2'] - MarkupTextLiteral - [5..6)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [13..36)::23 - MarkupLiteralAttributeValue - [13..17)::4 - [btn1] - MarkupTextLiteral - [13..17)::4 - [btn1] - Gen - SpanEditHandler;Accepts:Any - Text;[btn1]; - MarkupDynamicAttributeValue - [17..31)::14 - [ @DateTime.Now] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - GenericBlock - [18..31)::13 - CSharpCodeBlock - [18..31)::13 - CSharpImplicitExpression - [18..31)::13 - CSharpTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [19..31)::12 - CSharpCodeBlock - [19..31)::12 - CSharpExpressionLiteral - [19..31)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [31..36)::5 - [ btn2] - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [32..36)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any - Text;[btn2]; - MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [38..43)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [43..43)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [43..44)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [44..44)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.cspans.txt deleted file mode 100644 index 17ced29a2c7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [7] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [7] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (6:0,6 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.diag.txt deleted file mode 100644 index d208c6a9577..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "!p" element was not closed. All elements must be either self-closing or have a matching end tag. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.stree.txt deleted file mode 100644 index e3f97b1ee0c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData1.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..7)::7 - [@{}] - MarkupBlock - [0..7)::7 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..7)::7 - CSharpStatement - [0..7)::7 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..7)::6 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..7)::5 - MarkupBlock - [2..7)::5 - MarkupElement - [2..7)::5 - MarkupStartTag - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [6..7)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [7..7)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.cspans.txt deleted file mode 100644 index 7e92920d2b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (10:0,10 [2] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [5] ) -MetaCode span at (12:0,12 [1] ) (Accepts:None) - Parent: Tag block at (10:0,10 [5] ) -Markup span at (13:0,13 [2] ) (Accepts:None) - Parent: Tag block at (10:0,10 [5] ) -Markup span at (15:0,15 [9] ) (Accepts:None) - Parent: Tag block at (15:0,15 [9] ) -Code span at (24:0,24 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [25] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [25] ) -Markup span at (25:0,25 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.diag.txt deleted file mode 100644 index fba405aa8b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.diag.txt +++ /dev/null @@ -1,4 +0,0 @@ -(1,4): Error RZ1025: The "strong" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,4): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,18): Error RZ1026: Encountered end tag "strong" with no matching start tag. Are your start/end tags properly balanced? -(1,18): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.stree.txt deleted file mode 100644 index ac9f4cfbdb4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..25)::25 - [@{}] - MarkupBlock - [0..25)::25 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..25)::25 - CSharpStatement - [0..25)::25 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..25)::24 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..24)::22 - MarkupBlock - [2..15)::13 - MarkupTagHelperElement - [2..15)::13 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [10..15)::5 - MarkupEndTag - [10..15)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupBlock - [15..24)::9 - MarkupElement - [15..24)::9 - MarkupEndTag - [15..24)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - CSharpStatementLiteral - [24..24)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [24..25)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [25..25)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.tspans.txt deleted file mode 100644 index b716a36b7f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [13] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.cspans.txt deleted file mode 100644 index a52c9fcb71b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [4] ) -MetaCode span at (20:0,20 [1] ) (Accepts:None) - Parent: Tag block at (19:0,19 [4] ) -Markup span at (21:0,21 [2] ) (Accepts:None) - Parent: Tag block at (19:0,19 [4] ) -Markup span at (23:0,23 [2] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [5] ) -MetaCode span at (25:0,25 [1] ) (Accepts:None) - Parent: Tag block at (23:0,23 [5] ) -Markup span at (26:0,26 [2] ) (Accepts:None) - Parent: Tag block at (23:0,23 [5] ) -Code span at (28:0,28 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [29] ) -MetaCode span at (28:0,28 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [29] ) -Markup span at (29:0,29 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.stree.txt deleted file mode 100644 index c671926a258..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..29)::29 - [@{}] - MarkupBlock - [0..29)::29 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..29)::29 - CSharpStatement - [0..29)::29 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..29)::28 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..28)::26 - MarkupBlock - [2..19)::17 - MarkupTagHelperElement - [2..19)::17 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [2..10)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [10..19)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupBlock - [19..28)::9 - MarkupElement - [19..28)::9 - MarkupStartTag - [19..23)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [23..28)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [28..29)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [29..29)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.tspans.txt deleted file mode 100644 index 92502ed333d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [17] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.cspans.txt deleted file mode 100644 index 54f4240fc78..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.cspans.txt +++ /dev/null @@ -1,16 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (13:0,13 [2] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [10] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Tag block at (13:0,13 [10] ) -Markup span at (16:0,16 [7] ) (Accepts:None) - Parent: Tag block at (13:0,13 [10] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [4] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Tag block at (23:0,23 [4] ) -Markup span at (25:0,25 [2] ) (Accepts:None) - Parent: Tag block at (23:0,23 [4] ) -Markup span at (27:0,27 [9] ) (Accepts:None) - Parent: Tag block at (27:0,27 [9] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [5] ) -MetaCode span at (38:0,38 [1] ) (Accepts:None) - Parent: Tag block at (36:0,36 [5] ) -Markup span at (39:0,39 [2] ) (Accepts:None) - Parent: Tag block at (36:0,36 [5] ) -Code span at (41:0,41 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [42] ) -MetaCode span at (41:0,41 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [42] ) -Markup span at (42:0,42 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.diag.txt deleted file mode 100644 index 689fbedb41e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.diag.txt +++ /dev/null @@ -1,6 +0,0 @@ -(1,4): Error RZ1025: The "p" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,4): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,7): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,25): Error RZ1025: The "!p" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,30): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,39): Error RZ1026: Encountered end tag "!p" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.stree.txt deleted file mode 100644 index f727a4a496b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.stree.txt +++ /dev/null @@ -1,57 +0,0 @@ -RazorDocument - [0..42)::42 - [@{

                        }] - MarkupBlock - [0..42)::42 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..42)::42 - CSharpStatement - [0..42)::42 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..42)::41 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..41)::39 - MarkupBlock - [2..23)::21 - MarkupTagHelperElement - [2..23)::21 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [2..5)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [5..23)::18 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [5..13)::8 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [13..23)::10 - MarkupEndTag - [13..23)::10 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[strong]; - CloseAngle;[>]; - MarkupBlock - [23..36)::13 - MarkupElement - [23..36)::13 - MarkupStartTag - [23..27)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [27..36)::9 - MarkupEndTag - [27..36)::9 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupBlock - [36..41)::5 - MarkupElement - [36..41)::5 - MarkupEndTag - [36..41)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [41..41)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [42..42)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.tspans.txt deleted file mode 100644 index 0357429d3d3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData12.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (2:0,2 [21] ) - ptaghelper -TagHelper span at (5:0,5 [18] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.cspans.txt deleted file mode 100644 index 5841f5eb8b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [8] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [8] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [5] ) -MetaCode span at (4:0,4 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Markup span at (5:0,5 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [5] ) -Code span at (7:0,7 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [8] ) -MetaCode span at (7:0,7 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [8] ) -Markup span at (8:0,8 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.diag.txt deleted file mode 100644 index 16ad86d5a68..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ1026: Encountered end tag "!p" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.stree.txt deleted file mode 100644 index 5115d2c63af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData2.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..8)::8 - [@{}] - MarkupBlock - [0..8)::8 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..8)::8 - CSharpStatement - [0..8)::8 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..8)::7 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..7)::5 - MarkupBlock - [2..7)::5 - MarkupElement - [2..7)::5 - MarkupEndTag - [2..7)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [7..7)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [7..8)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [8..8)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.cspans.txt deleted file mode 100644 index 87859bb82cd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [5] ) -MetaCode span at (8:0,8 [1] ) (Accepts:None) - Parent: Tag block at (6:0,6 [5] ) -Markup span at (9:0,9 [2] ) (Accepts:None) - Parent: Tag block at (6:0,6 [5] ) -Code span at (11:0,11 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [12] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [12] ) -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.stree.txt deleted file mode 100644 index cf036dfe259..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData3.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..12)::12 - [@{}] - MarkupBlock - [0..12)::12 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..12)::12 - CSharpStatement - [0..12)::12 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..12)::11 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..11)::9 - MarkupBlock - [2..11)::9 - MarkupElement - [2..11)::9 - MarkupStartTag - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [6..11)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [12..12)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.cspans.txt deleted file mode 100644 index d09cd360c06..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (6:0,6 [16] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [25] ) -Markup span at (22:0,22 [2] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [5] ) -MetaCode span at (24:0,24 [1] ) (Accepts:None) - Parent: Tag block at (22:0,22 [5] ) -Markup span at (25:0,25 [2] ) (Accepts:None) - Parent: Tag block at (22:0,22 [5] ) -Code span at (27:0,27 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [28] ) -MetaCode span at (27:0,27 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [28] ) -Markup span at (28:0,28 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.stree.txt deleted file mode 100644 index f7e50094781..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData4.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..28)::28 - [@{words and spaces}] - MarkupBlock - [0..28)::28 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..28)::28 - CSharpStatement - [0..28)::28 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..28)::27 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..27)::25 - MarkupBlock - [2..27)::25 - MarkupElement - [2..27)::25 - MarkupStartTag - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [6..22)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [22..27)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [27..28)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [28..28)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.cspans.txt deleted file mode 100644 index bde99188a25..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (6:0,6 [4] ) (Accepts:None) - Parent: Tag block at (6:0,6 [4] ) -Code span at (10:0,10 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.diag.txt deleted file mode 100644 index 4e9f9e044a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,4): Error RZ1025: The "!p" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,9): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.stree.txt deleted file mode 100644 index 423490c99b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData5.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..11)::11 - [@{

                        }] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpStatement - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..10)::8 - MarkupBlock - [2..10)::8 - MarkupElement - [2..10)::8 - MarkupStartTag - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [6..10)::4 - MarkupEndTag - [6..10)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.cspans.txt deleted file mode 100644 index 894887f157b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (5:0,5 [2] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [5] ) -MetaCode span at (7:0,7 [1] ) (Accepts:None) - Parent: Tag block at (5:0,5 [5] ) -Markup span at (8:0,8 [2] ) (Accepts:None) - Parent: Tag block at (5:0,5 [5] ) -Code span at (10:0,10 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [11] ) -MetaCode span at (10:0,10 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [11] ) -Markup span at (11:0,11 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [11] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.diag.txt deleted file mode 100644 index 9245068ef63..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,4): Error RZ1025: The "p" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,4): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.stree.txt deleted file mode 100644 index ac047895b37..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..11)::11 - [@{

                        }] - MarkupBlock - [0..11)::11 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..11)::11 - CSharpStatement - [0..11)::11 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..11)::10 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..10)::8 - MarkupBlock - [2..10)::8 - MarkupTagHelperElement - [2..10)::8 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [2..5)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [5..10)::5 - MarkupEndTag - [5..10)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [10..10)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [11..11)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.tspans.txt deleted file mode 100644 index c896ab151f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [8] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.cspans.txt deleted file mode 100644 index 6e8f3d69b41..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (5:0,5 [1] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [4] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Tag block at (5:0,5 [4] ) -Markup span at (7:0,7 [2] ) (Accepts:None) - Parent: Tag block at (5:0,5 [4] ) -Markup span at (9:0,9 [2] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [5] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Tag block at (9:0,9 [5] ) -Markup span at (12:0,12 [2] ) (Accepts:None) - Parent: Tag block at (9:0,9 [5] ) -Code span at (18:0,18 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [19] ) -MetaCode span at (18:0,18 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [19] ) -Markup span at (19:0,19 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.stree.txt deleted file mode 100644 index 2320bcb8dbe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..19)::19 - [@{

                        }] - MarkupBlock - [0..19)::19 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..19)::19 - CSharpStatement - [0..19)::19 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..19)::18 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..18)::16 - MarkupBlock - [2..18)::16 - MarkupTagHelperElement - [2..18)::16 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [2..5)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [5..14)::9 - MarkupStartTag - [5..9)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [9..14)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [14..18)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [18..18)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [19..19)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.tspans.txt deleted file mode 100644 index 9ac9825e33e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [16] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.cspans.txt deleted file mode 100644 index 761b9a637b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [15] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [15] ) -Markup span at (5:0,5 [1] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [4] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Tag block at (5:0,5 [4] ) -Markup span at (7:0,7 [2] ) (Accepts:None) - Parent: Tag block at (5:0,5 [4] ) -Markup span at (9:0,9 [2] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [5] ) -MetaCode span at (11:0,11 [1] ) (Accepts:None) - Parent: Tag block at (9:0,9 [5] ) -Markup span at (12:0,12 [2] ) (Accepts:None) - Parent: Tag block at (9:0,9 [5] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.diag.txt deleted file mode 100644 index 0ef166cfd0c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,2): Error RZ1006: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup. -(1,4): Error RZ1025: The "p" element was not closed. All elements must be either self-closing or have a matching end tag. -(1,4): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.stree.txt deleted file mode 100644 index ae602bff26f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..15)::15 - [@{

                        }] - MarkupBlock - [0..15)::15 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..15)::15 - CSharpStatement - [0..15)::15 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..15)::14 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..15)::13 - MarkupBlock - [2..15)::13 - MarkupTagHelperElement - [2..15)::13 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [2..5)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [5..14)::9 - MarkupStartTag - [5..9)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [9..14)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [14..15)::1 - [}] - Gen - SpanEditHandler;Accepts:Any - Text;[}]; - RazorMetaCode - [15..15)::0 - Gen - SpanEditHandler;Accepts:Any - RightBrace;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.tspans.txt deleted file mode 100644 index c2ab529dc88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (2:0,2 [13] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.cspans.txt deleted file mode 100644 index 3c85657a468..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (2:0,2 [4] ) -MetaCode span at (3:0,3 [1] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:None) - Parent: Tag block at (2:0,2 [4] ) -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [5] ) -MetaCode span at (8:0,8 [1] ) (Accepts:None) - Parent: Tag block at (6:0,6 [5] ) -Markup span at (9:0,9 [2] ) (Accepts:None) - Parent: Tag block at (6:0,6 [5] ) -Markup span at (11:0,11 [4] ) (Accepts:None) - Parent: Tag block at (11:0,11 [4] ) -Code span at (15:0,15 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [16] ) -MetaCode span at (15:0,15 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [16] ) -Markup span at (16:0,16 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.diag.txt deleted file mode 100644 index 76963aab624..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,14): Error RZ1026: Encountered end tag "p" with no matching start tag. Are your start/end tags properly balanced? -(1,14): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.stree.txt deleted file mode 100644 index c6f74a99c92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithBlockData9.stree.txt +++ /dev/null @@ -1,38 +0,0 @@ -RazorDocument - [0..16)::16 - [@{

                        }] - MarkupBlock - [0..16)::16 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..16)::16 - CSharpStatement - [0..16)::16 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..16)::15 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..15)::13 - MarkupBlock - [2..11)::9 - MarkupElement - [2..11)::9 - MarkupStartTag - [2..6)::4 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [6..11)::5 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupBlock - [11..15)::4 - MarkupElement - [11..15)::4 - MarkupEndTag - [11..15)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [15..15)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [16..16)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.cspans.txt deleted file mode 100644 index db11a2b53b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt deleted file mode 100644 index 9e3036562ef..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..16)::16 - [] - MarkupBlock - [0..16)::16 - MarkupElement - [0..16)::16 - MarkupStartTag - [0..16)::16 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..15)::12 - [ class="btn"] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [btn] - MarkupTextLiteral - [11..14)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.cspans.txt deleted file mode 100644 index f63db8ffa08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (16:0,16 [2] ) (Accepts:Any) - Parent: Tag block at (16:0,16 [5] ) -MetaCode span at (18:0,18 [1] ) (Accepts:None) - Parent: Tag block at (16:0,16 [5] ) -Markup span at (19:0,19 [2] ) (Accepts:Any) - Parent: Tag block at (16:0,16 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt deleted file mode 100644 index 36b7be64ef8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..21)::21 - [] - MarkupBlock - [0..21)::21 - MarkupElement - [0..21)::21 - MarkupStartTag - [0..16)::16 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..15)::12 - [ class="btn"] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [btn] - MarkupTextLiteral - [11..14)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupEndTag - [16..21)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.cspans.txt deleted file mode 100644 index 581430192aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.cspans.txt +++ /dev/null @@ -1,11 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (11:0,11 [3] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [12] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) -Markup span at (16:0,16 [16] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [37] ) -Markup span at (32:0,32 [2] ) (Accepts:Any) - Parent: Tag block at (32:0,32 [5] ) -MetaCode span at (34:0,34 [1] ) (Accepts:None) - Parent: Tag block at (32:0,32 [5] ) -Markup span at (35:0,35 [2] ) (Accepts:Any) - Parent: Tag block at (32:0,32 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt deleted file mode 100644 index 567db01f9b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..37)::37 - [words and spaces] - MarkupBlock - [0..37)::37 - MarkupElement - [0..37)::37 - MarkupStartTag - [0..16)::16 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..15)::12 - [ class="btn"] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [11..14)::3 - MarkupLiteralAttributeValue - [11..14)::3 - [btn] - MarkupTextLiteral - [11..14)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [16..32)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [32..37)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.cspans.txt deleted file mode 100644 index 019a92647a5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.cspans.txt +++ /dev/null @@ -1,13 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [18] ) -Markup span at (11:0,11 [4] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [18] ) -Markup span at (15:0,15 [5] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [18] ) -Markup span at (20:0,20 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [18] ) -Markup span at (21:0,21 [8] ) (Accepts:Any) - Parent: Markup block at (21:0,21 [11] ) -Markup span at (29:0,29 [3] ) (Accepts:Any) - Parent: Markup block at (21:0,21 [11] ) -Markup span at (32:0,32 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (33:0,33 [2] ) (Accepts:Any) - Parent: Tag block at (33:0,33 [5] ) -MetaCode span at (35:0,35 [1] ) (Accepts:None) - Parent: Tag block at (33:0,33 [5] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (33:0,33 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt deleted file mode 100644 index 98036f87adf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..38)::38 - [] - MarkupBlock - [0..38)::38 - MarkupElement - [0..38)::38 - MarkupStartTag - [0..33)::33 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..21)::18 - [ class='btn1 btn2'] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..20)::9 - MarkupLiteralAttributeValue - [11..15)::4 - [btn1] - MarkupTextLiteral - [11..15)::4 - [btn1] - Gen - SpanEditHandler;Accepts:Any - Text;[btn1]; - MarkupLiteralAttributeValue - [15..20)::5 - [ btn2] - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [16..20)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any - Text;[btn2]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupAttributeBlock - [21..32)::11 - [ class2=btn] - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [22..28)::6 - [class2] - Gen - SpanEditHandler;Accepts:Any - Text;[class2]; - Equals;[=]; - GenericBlock - [29..32)::3 - MarkupLiteralAttributeValue - [29..32)::3 - [btn] - MarkupTextLiteral - [29..32)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - CloseAngle;[>]; - MarkupEndTag - [33..38)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.cspans.txt deleted file mode 100644 index 08163d8b859..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [36] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [36] ) -Markup span at (2:0,2 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [36] ) -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [32] ) -Markup span at (11:0,11 [4] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [32] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (15:0,15 [14] ) -Transition span at (16:0,16 [1] ) (Accepts:None) - Parent: Expression block at (16:0,16 [13] ) -Code span at (17:0,17 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (16:0,16 [13] ) -Markup span at (29:0,29 [5] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [32] ) -Markup span at (34:0,34 [1] ) (Accepts:Any) - Parent: Markup block at (3:0,3 [32] ) -Markup span at (35:0,35 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [36] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [5] ) -MetaCode span at (38:0,38 [1] ) (Accepts:None) - Parent: Tag block at (36:0,36 [5] ) -Markup span at (39:0,39 [2] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt deleted file mode 100644 index 22ffd697730..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt +++ /dev/null @@ -1,47 +0,0 @@ -RazorDocument - [0..41)::41 - [] - MarkupBlock - [0..41)::41 - MarkupElement - [0..41)::41 - MarkupStartTag - [0..36)::36 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - MarkupAttributeBlock - [3..35)::32 - [ class='btn1 @DateTime.Now btn2'] - MarkupTextLiteral - [3..4)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [11..34)::23 - MarkupLiteralAttributeValue - [11..15)::4 - [btn1] - MarkupTextLiteral - [11..15)::4 - [btn1] - Gen - SpanEditHandler;Accepts:Any - Text;[btn1]; - MarkupDynamicAttributeValue - [15..29)::14 - [ @DateTime.Now] - MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - GenericBlock - [16..29)::13 - CSharpCodeBlock - [16..29)::13 - CSharpImplicitExpression - [16..29)::13 - CSharpTransition - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [17..29)::12 - CSharpCodeBlock - [17..29)::12 - CSharpExpressionLiteral - [17..29)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupLiteralAttributeValue - [29..34)::5 - [ btn2] - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [30..34)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any - Text;[btn2]; - MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [36..41)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.cspans.txt deleted file mode 100644 index a5d0c98f583..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.stree.txt deleted file mode 100644 index f1200dcf890..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData1.stree.txt +++ /dev/null @@ -1,8 +0,0 @@ -RazorDocument - [0..4)::4 - [] - MarkupBlock - [0..4)::4 - MarkupElement - [0..4)::4 - MarkupStartTag - [0..4)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.cspans.txt deleted file mode 100644 index 7c1acf2f612..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (8:0,8 [2] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [5] ) -MetaCode span at (10:0,10 [1] ) (Accepts:None) - Parent: Tag block at (8:0,8 [5] ) -Markup span at (11:0,11 [2] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.stree.txt deleted file mode 100644 index fcea2220858..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..22)::22 - [] - MarkupBlock - [0..22)::22 - MarkupTagHelperElement - [0..22)::22 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [8..13)::5 - MarkupEndTag - [8..13)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [13..22)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.tspans.txt deleted file mode 100644 index ba6ff19ad30..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [22] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.cspans.txt deleted file mode 100644 index 6ca585931ad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (17:0,17 [1] ) (Accepts:Any) - Parent: Tag block at (17:0,17 [4] ) -MetaCode span at (18:0,18 [1] ) (Accepts:None) - Parent: Tag block at (17:0,17 [4] ) -Markup span at (19:0,19 [2] ) (Accepts:Any) - Parent: Tag block at (17:0,17 [4] ) -Markup span at (21:0,21 [2] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [5] ) -MetaCode span at (23:0,23 [1] ) (Accepts:None) - Parent: Tag block at (21:0,21 [5] ) -Markup span at (24:0,24 [2] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.stree.txt deleted file mode 100644 index ceb36af825e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..26)::26 - [] - MarkupBlock - [0..26)::26 - MarkupTagHelperElement - [0..17)::17 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [8..17)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [17..26)::9 - MarkupStartTag - [17..21)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [21..26)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.tspans.txt deleted file mode 100644 index e9b9c4563b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [17] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.cspans.txt deleted file mode 100644 index 09633f58393..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (11:0,11 [2] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [10] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Tag block at (11:0,11 [10] ) -Markup span at (14:0,14 [7] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [10] ) -Markup span at (21:0,21 [1] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [4] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Tag block at (21:0,21 [4] ) -Markup span at (23:0,23 [2] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [4] ) -Markup span at (34:0,34 [2] ) (Accepts:Any) - Parent: Tag block at (34:0,34 [5] ) -MetaCode span at (36:0,36 [1] ) (Accepts:None) - Parent: Tag block at (34:0,34 [5] ) -Markup span at (37:0,37 [2] ) (Accepts:Any) - Parent: Tag block at (34:0,34 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.diag.txt deleted file mode 100644 index d177eb6df7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.stree.txt deleted file mode 100644 index 3d7d4984bc4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..39)::39 - [

                        ] - MarkupBlock - [0..39)::39 - MarkupTagHelperElement - [0..39)::39 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..34)::31 - strong[StartTagAndEndTag] - strongtaghelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [11..21)::10 - MarkupEndTag - [11..21)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [21..25)::4 - MarkupStartTag - [21..25)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [25..34)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [34..39)::5 - MarkupEndTag - [34..39)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.tspans.txt deleted file mode 100644 index cfe3d3fa3b6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData12.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [39] ) - ptaghelper -TagHelper span at (3:0,3 [31] ) - strongtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.cspans.txt deleted file mode 100644 index 8fa95e872ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -MetaCode span at (2:0,2 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.stree.txt deleted file mode 100644 index 708ea901d7b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData2.stree.txt +++ /dev/null @@ -1,9 +0,0 @@ -RazorDocument - [0..5)::5 - [] - MarkupBlock - [0..5)::5 - MarkupElement - [0..5)::5 - MarkupEndTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.cspans.txt deleted file mode 100644 index 4c275ff0502..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [5] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Tag block at (4:0,4 [5] ) -Markup span at (7:0,7 [2] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.stree.txt deleted file mode 100644 index fae760c8171..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData3.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..9)::9 - [] - MarkupBlock - [0..9)::9 - MarkupElement - [0..9)::9 - MarkupStartTag - [0..4)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [4..9)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.cspans.txt deleted file mode 100644 index 3997b127d2f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (4:0,4 [16] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [25] ) -Markup span at (20:0,20 [2] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [5] ) -MetaCode span at (22:0,22 [1] ) (Accepts:None) - Parent: Tag block at (20:0,20 [5] ) -Markup span at (23:0,23 [2] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.stree.txt deleted file mode 100644 index 1f1d9262f90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData4.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..25)::25 - [words and spaces] - MarkupBlock - [0..25)::25 - MarkupElement - [0..25)::25 - MarkupStartTag - [0..4)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [4..20)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupEndTag - [20..25)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.cspans.txt deleted file mode 100644 index ccea3d9b247..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (4:0,4 [4] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.diag.txt deleted file mode 100644 index b1d7d8700f1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.stree.txt deleted file mode 100644 index cdd918aa0ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData5.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..8)::8 - [

                        ] - MarkupBlock - [0..8)::8 - MarkupElement - [0..8)::8 - MarkupStartTag - [0..4)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [4..8)::4 - MarkupEndTag - [4..8)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.cspans.txt deleted file mode 100644 index d7c40f6239b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [5] ) -MetaCode span at (5:0,5 [1] ) (Accepts:None) - Parent: Tag block at (3:0,3 [5] ) -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.diag.txt deleted file mode 100644 index d177eb6df7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.stree.txt deleted file mode 100644 index 62b283ee73a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..8)::8 - [

                        ] - MarkupBlock - [0..8)::8 - MarkupTagHelperElement - [0..8)::8 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..8)::5 - MarkupEndTag - [3..8)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.tspans.txt deleted file mode 100644 index 7b15d972a8f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [8] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.cspans.txt deleted file mode 100644 index 5f18fc72f84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (3:0,3 [1] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) -MetaCode span at (4:0,4 [1] ) (Accepts:None) - Parent: Tag block at (3:0,3 [4] ) -Markup span at (5:0,5 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) -Markup span at (7:0,7 [2] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [5] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Tag block at (7:0,7 [5] ) -Markup span at (10:0,10 [2] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.stree.txt deleted file mode 100644 index c59a98b7cf6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..16)::16 - [

                        ] - MarkupBlock - [0..16)::16 - MarkupTagHelperElement - [0..16)::16 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..12)::9 - MarkupStartTag - [3..7)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [7..12)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [12..16)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.tspans.txt deleted file mode 100644 index 52dba169222..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [16] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.cspans.txt deleted file mode 100644 index 5f18fc72f84..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (3:0,3 [1] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) -MetaCode span at (4:0,4 [1] ) (Accepts:None) - Parent: Tag block at (3:0,3 [4] ) -Markup span at (5:0,5 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) -Markup span at (7:0,7 [2] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [5] ) -MetaCode span at (9:0,9 [1] ) (Accepts:None) - Parent: Tag block at (7:0,7 [5] ) -Markup span at (10:0,10 [2] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.diag.txt deleted file mode 100644 index d177eb6df7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.stree.txt deleted file mode 100644 index 0222b2cb177..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..12)::12 - [

                        ] - MarkupBlock - [0..12)::12 - MarkupTagHelperElement - [0..12)::12 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..12)::9 - MarkupStartTag - [3..7)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [7..12)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.tspans.txt deleted file mode 100644 index 7cc635f45e0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [12] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.cspans.txt deleted file mode 100644 index bd0517f7350..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (2:0,2 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [4] ) -Markup span at (4:0,4 [2] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [5] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Tag block at (4:0,4 [5] ) -Markup span at (7:0,7 [2] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [5] ) -Markup span at (9:0,9 [4] ) (Accepts:Any) - Parent: Tag block at (9:0,9 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.diag.txt deleted file mode 100644 index 08a69712ee7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,12): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.stree.txt deleted file mode 100644 index eca9695a255..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithBlockData9.stree.txt +++ /dev/null @@ -1,20 +0,0 @@ -RazorDocument - [0..13)::13 - [

                        ] - MarkupBlock - [0..13)::13 - MarkupElement - [0..9)::9 - MarkupStartTag - [0..4)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [4..9)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Bang;[!]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [9..13)::4 - MarkupEndTag - [9..13)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.cspans.txt deleted file mode 100644 index 6b69df93740..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [53] ) -Markup span at (9:1,4 [8] ) (Accepts:Any) - Parent: Tag block at (9:1,4 [8] ) -Markup span at (17:1,12 [21] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [53] ) -Markup span at (38:3,4 [9] ) (Accepts:Any) - Parent: Tag block at (38:3,4 [9] ) -Markup span at (47:3,13 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [53] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.diag.txt deleted file mode 100644 index 4c1f5923fe6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(2,6): Error RZ2010: The tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'br' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.stree.txt deleted file mode 100644 index 3a091ff8d70..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..53)::53 - [

                        LF LF HelloLF LF

                        ] - MarkupBlock - [0..53)::53 - MarkupTagHelperElement - [0..53)::53 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..9)::6 - [LF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - MarkupElement - [9..47)::38 - MarkupStartTag - [9..17)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [17..38)::21 - [LF HelloLF ] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - Whitespace;[ ]; - Text;[Hello]; - NewLine;[LF]; - Whitespace;[ ]; - MarkupEndTag - [38..47)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [47..49)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTagHelperEndTag - [49..53)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.tspans.txt deleted file mode 100644 index 05765431e30..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleInvalidChildrenWithWhitespace.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [53] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.cspans.txt deleted file mode 100644 index a9c65f2e8f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (11:0,11 [11] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.stree.txt deleted file mode 100644 index c28e528a9f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..39)::39 - [

                        Hello World

                        ] - MarkupBlock - [0..39)::39 - MarkupTagHelperElement - [0..39)::39 - p[StartTagAndEndTag] - PTagHelper1 - PTagHelper2 - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..31)::28 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [11..22)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [22..31)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [31..35)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [31..35)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [35..39)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.tspans.txt deleted file mode 100644 index 5b5143529f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [39] ) - PTagHelper1 - PTagHelper2 -TagHelper span at (3:0,3 [28] ) - StrongTagHelper -TagHelper span at (31:0,31 [4] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.cspans.txt deleted file mode 100644 index a9c65f2e8f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (11:0,11 [11] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.stree.txt deleted file mode 100644 index c28e528a9f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..39)::39 - [

                        Hello World

                        ] - MarkupBlock - [0..39)::39 - MarkupTagHelperElement - [0..39)::39 - p[StartTagAndEndTag] - PTagHelper1 - PTagHelper2 - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..31)::28 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [11..22)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [22..31)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [31..35)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [31..35)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [35..39)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.tspans.txt deleted file mode 100644 index 5b5143529f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleMultipleTagHelpersWithAllowedChildren_OneNull.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [39] ) - PTagHelper1 - PTagHelper2 -TagHelper span at (3:0,3 [28] ) - StrongTagHelper -TagHelper span at (31:0,31 [4] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.stree.txt deleted file mode 100644 index 5a61ddfab07..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.stree.txt +++ /dev/null @@ -1,7 +0,0 @@ -RazorDocument - [0..7)::7 - [] - MarkupBlock - [0..7)::7 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.tspans.txt deleted file mode 100644 index 507d5a1ed93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CanHandleStartTagOnlyTagTagMode.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.diag.txt deleted file mode 100644 index 6668a36e1c1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,1): Error RZ2011: Tag helpers 'InputTagHelper1' and 'InputTagHelper2' targeting element 'input' must not expect different TagStructure values. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.stree.txt deleted file mode 100644 index 0db5f5e70a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.stree.txt +++ /dev/null @@ -1,7 +0,0 @@ -RazorDocument - [0..7)::7 - [] - MarkupBlock - [0..7)::7 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper1 - InputTagHelper2 - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.tspans.txt deleted file mode 100644 index aa951343108..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForInconsistentTagStructures.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper1 - InputTagHelper2 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.cspans.txt deleted file mode 100644 index da5af92309a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.diag.txt deleted file mode 100644 index 2991a49bbc3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,3): Error RZ1033: Found an end tag () for tag helper 'InputTagHelper' with tag structure that disallows an end tag ('WithoutEndTag'). diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.stree.txt deleted file mode 100644 index 51d05bcd79d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/CreatesErrorForWithoutEndTagTagStructureForEndTags.stree.txt +++ /dev/null @@ -1,8 +0,0 @@ -RazorDocument - [0..8)::8 - [] - MarkupBlock - [0..8)::8 - MarkupElement - [0..8)::8 - MarkupEndTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.cspans.txt deleted file mode 100644 index cc2e136b186..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [4] ) (Accepts:None) - Parent: HtmlComment block at (5:0,5 [20] ) -Markup span at (9:0,9 [13] ) (Accepts:Whitespace) - Parent: HtmlComment block at (5:0,5 [20] ) -Markup span at (22:0,22 [3] ) (Accepts:None) - Parent: HtmlComment block at (5:0,5 [20] ) -Markup span at (25:0,25 [6] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.stree.txt deleted file mode 100644 index 892a5074bdb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers1.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupElement - [0..31)::31 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupCommentBlock - [5..25)::20 - MarkupTextLiteral - [5..9)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [25..31)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.cspans.txt deleted file mode 100644 index 60e78976ec4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [4] ) (Accepts:None) - Parent: HtmlComment block at (5:0,5 [13] ) -Markup span at (9:0,9 [1] ) (Accepts:Whitespace) - Parent: HtmlComment block at (5:0,5 [13] ) -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [4] ) -Code span at (11:0,11 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [4] ) -Markup span at (14:0,14 [1] ) (Accepts:Whitespace) - Parent: HtmlComment block at (5:0,5 [13] ) -Markup span at (15:0,15 [3] ) (Accepts:None) - Parent: HtmlComment block at (5:0,5 [13] ) -Markup span at (18:0,18 [6] ) (Accepts:Any) - Parent: Tag block at (18:0,18 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.stree.txt deleted file mode 100644 index 1efdfee5521..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers2.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupElement - [0..24)::24 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupCommentBlock - [5..18)::13 - MarkupTextLiteral - [5..9)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupEndTag - [18..24)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.cspans.txt deleted file mode 100644 index c4ecccfbcc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [20] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Markup span at (25:0,25 [6] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.stree.txt deleted file mode 100644 index 3d12db4002c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers3.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupElement - [0..31)::31 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..25)::20 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupEndTag - [25..31)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.cspans.txt deleted file mode 100644 index 8abca4d6388..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [6] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Transition span at (11:0,11 [1] ) (Accepts:None) - Parent: Expression block at (11:0,11 [4] ) -Code span at (12:0,12 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (11:0,11 [4] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [24] ) -Markup span at (18:0,18 [6] ) (Accepts:Any) - Parent: Tag block at (18:0,18 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.stree.txt deleted file mode 100644 index ac72886d064..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers4.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupElement - [0..24)::24 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..11)::6 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - QuestionMark;[?]; - Text;[xml]; - Whitespace;[ ]; - CSharpCodeBlock - [11..15)::4 - CSharpImplicitExpression - [11..15)::4 - CSharpTransition - [11..12)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [12..15)::3 - CSharpCodeBlock - [12..15)::3 - CSharpExpressionLiteral - [12..15)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [15..18)::3 - [ ?>] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - QuestionMark;[?]; - CloseAngle;[>]; - MarkupEndTag - [18..24)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.cspans.txt deleted file mode 100644 index a6fb41162ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [10] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [4] ) -Code span at (16:0,16 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (15:0,15 [4] ) -Markup span at (19:0,19 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Markup span at (21:0,21 [6] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.stree.txt deleted file mode 100644 index 6dd9386d400..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers5.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..27)::27 - [] - MarkupBlock - [0..27)::27 - MarkupElement - [0..27)::27 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..15)::10 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[DOCTYPE]; - Whitespace;[ ]; - CSharpCodeBlock - [15..19)::4 - CSharpImplicitExpression - [15..19)::4 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [16..19)::3 - CSharpCodeBlock - [16..19)::3 - CSharpExpressionLiteral - [16..19)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [19..21)::2 - [ >] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupEndTag - [21..27)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.cspans.txt deleted file mode 100644 index c59f0f1953e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [25] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Markup span at (30:0,30 [6] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.stree.txt deleted file mode 100644 index b255eda4767..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers6.stree.txt +++ /dev/null @@ -1,24 +0,0 @@ -RazorDocument - [0..36)::36 - [] - MarkupBlock - [0..36)::36 - MarkupElement - [0..36)::36 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..30)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - Text;[DOCTYPE]; - Whitespace;[ ]; - Text;[hello]; - Equals;[=]; - DoubleQuote;["]; - Text;[world]; - DoubleQuote;["]; - Whitespace;[ ]; - CloseAngle;[>]; - MarkupEndTag - [30..36)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.cspans.txt deleted file mode 100644 index c59f0f1953e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [25] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [36] ) -Markup span at (30:0,30 [6] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.stree.txt deleted file mode 100644 index 1b43d94ac90..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers7.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..36)::36 - [] - MarkupBlock - [0..36)::36 - MarkupElement - [0..36)::36 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..30)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - LeftBracket;[[]; - Text;[CDATA]; - LeftBracket;[[]; - Whitespace;[ ]; - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - RightBracket;[]]; - RightBracket;[]]; - CloseAngle;[>]; - MarkupEndTag - [30..36)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.cspans.txt deleted file mode 100644 index 4024585ede9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [10] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Expression block at (15:0,15 [4] ) -Code span at (16:0,16 [3] ) (Accepts:NonWhitespace) - Parent: Expression block at (15:0,15 [4] ) -Markup span at (19:0,19 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [29] ) -Markup span at (23:0,23 [6] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.diag.txt deleted file mode 100644 index 67536937c3f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(0,0): Error RZ3008: Tag helpers cannot target tag name '!--' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '?xml' because it contains a '?' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '!' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '![CDATA[' because it contains a '[' character. -(0,0): Error RZ3008: Tag helpers cannot target tag name '!DOCTYPE' because it contains a '!' character. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.stree.txt deleted file mode 100644 index e9c3a9037e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteSpecialTagTagHelpers8.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..29)::29 - [] - MarkupBlock - [0..29)::29 - MarkupElement - [0..29)::29 - MarkupStartTag - [0..5)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[foo]; - CloseAngle;[>]; - MarkupTextLiteral - [5..15)::10 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Bang;[!]; - LeftBracket;[[]; - Text;[CDATA]; - LeftBracket;[[]; - Whitespace;[ ]; - CSharpCodeBlock - [15..19)::4 - CSharpImplicitExpression - [15..19)::4 - CSharpTransition - [15..16)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [16..19)::3 - CSharpCodeBlock - [16..19)::3 - CSharpExpressionLiteral - [16..19)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[foo]; - MarkupTextLiteral - [19..23)::4 - [ ]]>] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - RightBracket;[]]; - RightBracket;[]]; - CloseAngle;[>]; - MarkupEndTag - [23..29)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[foo]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.cspans.txt deleted file mode 100644 index 45f2b8a0d27..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (6:0,6 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.stree.txt deleted file mode 100644 index 543bc32b481..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.stree.txt +++ /dev/null @@ -1,16 +0,0 @@ -RazorDocument - [0..24)::24 - [Hello World] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..24)::24 - text[StartTagAndEndTag] - texttaghelper - MarkupTagHelperStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [6..17)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [17..24)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.tspans.txt deleted file mode 100644 index 0e0421beb4b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [24] ) - texttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.cspans.txt deleted file mode 100644 index 120838d1aa0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (8:0,8 [11] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [24] ) -Transition span at (19:0,19 [7] ) (Accepts:None) - Parent: Tag block at (19:0,19 [7] ) -Code span at (26:0,26 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [27] ) -MetaCode span at (26:0,26 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [27] ) -Markup span at (27:0,27 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [27] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.stree.txt deleted file mode 100644 index 30549d1f5a2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers2.stree.txt +++ /dev/null @@ -1,33 +0,0 @@ -RazorDocument - [0..27)::27 - [@{Hello World}] - MarkupBlock - [0..27)::27 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..27)::27 - CSharpStatement - [0..27)::27 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..27)::26 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..26)::24 - MarkupBlock - [2..26)::24 - MarkupElement - [2..26)::24 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [8..19)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupEndTag - [19..26)::7 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [26..26)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [26..27)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [27..27)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.cspans.txt deleted file mode 100644 index 5422f86fe05..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.cspans.txt +++ /dev/null @@ -1,9 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Transition span at (2:0,2 [6] ) (Accepts:None) - Parent: Tag block at (2:0,2 [6] ) -Markup span at (11:0,11 [11] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [18] ) -Transition span at (26:0,26 [7] ) (Accepts:None) - Parent: Tag block at (26:0,26 [7] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.stree.txt deleted file mode 100644 index 275d4367c49..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..34)::34 - [@{

                        Hello World

                        }] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupElement - [2..33)::31 - MarkupStartTag - [2..8)::6 - MarkupTransition - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTagHelperElement - [8..26)::18 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [8..11)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [11..22)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [22..26)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [26..33)::7 - MarkupTransition - [
                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.tspans.txt deleted file mode 100644 index ccb04ff0a45..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (8:0,8 [18] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.cspans.txt deleted file mode 100644 index ca3438cacd8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) -Transition span at (0:0,0 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (1:0,1 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (11:0,11 [11] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [24] ) -Code span at (33:0,33 [0] ) (Accepts:Any) - Parent: Statement block at (0:0,0 [34] ) -MetaCode span at (33:0,33 [1] ) (Accepts:None) - Parent: Statement block at (0:0,0 [34] ) -Markup span at (34:0,34 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [34] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.stree.txt deleted file mode 100644 index 55d1bc3bc91..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..34)::34 - [@{

                        Hello World

                        }] - MarkupBlock - [0..34)::34 - MarkupTextLiteral - [0..0)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - CSharpCodeBlock - [0..34)::34 - CSharpStatement - [0..34)::34 - CSharpTransition - [0..1)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [1..34)::33 - RazorMetaCode - [1..2)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [2..33)::31 - MarkupBlock - [2..33)::31 - MarkupTagHelperElement - [2..33)::31 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [2..5)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [5..29)::24 - text[StartTagAndEndTag] - texttaghelper - MarkupTagHelperStartTag - [5..11)::6 - [] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - Text;[text]; - CloseAngle;[>]; - MarkupTextLiteral - [11..22)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - MarkupTagHelperEndTag - [22..29)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[text]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [29..33)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - CSharpStatementLiteral - [33..33)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [33..34)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [34..34)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.tspans.txt deleted file mode 100644 index 0e58e331ab8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotRewriteTextTagTransitionTagHelpers4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (2:0,2 [31] ) - ptaghelper -TagHelper span at (5:0,5 [24] ) - texttaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.cspans.txt deleted file mode 100644 index 49c8ba186f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [13] ) -Markup span at (7:0,7 [5] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [5] ) -Markup span at (12:0,12 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [13] ) -Markup span at (13:0,13 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [31] ) -Markup span at (22:0,22 [9] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.stree.txt deleted file mode 100644 index e55e0ca85ce..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags1.stree.txt +++ /dev/null @@ -1,23 +0,0 @@ -RazorDocument - [0..31)::31 - [] - MarkupBlock - [0..31)::31 - MarkupElement - [0..31)::31 - MarkupStartTag - [0..13)::13 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.cspans.txt deleted file mode 100644 index 2c17954aab0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (7:0,7 [8] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [18] ) -Markup span at (15:0,15 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [18] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [18] ) -Markup span at (25:0,25 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (26:0,26 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [44] ) -Markup span at (35:0,35 [9] ) (Accepts:Any) - Parent: Tag block at (35:0,35 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt deleted file mode 100644 index 4450b4ee709..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..44)::44 - [] - MarkupBlock - [0..44)::44 - MarkupElement - [0..44)::44 - MarkupStartTag - [0..26)::26 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.cspans.txt deleted file mode 100644 index 955ace03efc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (7:0,7 [7] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [25] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [25] ) -Markup span at (23:0,23 [8] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [25] ) -Markup span at (31:0,31 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [25] ) -Markup span at (32:0,32 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (33:0,33 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [51] ) -Markup span at (42:0,42 [9] ) (Accepts:Any) - Parent: Tag block at (42:0,42 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt deleted file mode 100644 index dbd68221306..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..51)::51 - [] - MarkupBlock - [0..51)::51 - MarkupElement - [0..51)::51 - MarkupStartTag - [0..33)::33 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.cspans.txt deleted file mode 100644 index a41c0eb271b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.cspans.txt +++ /dev/null @@ -1,10 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [42] ) -Markup span at (7:0,7 [7] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (24:0,24 [7] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [17] ) -Markup span at (31:0,31 [9] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [17] ) -Markup span at (40:0,40 [1] ) (Accepts:Any) - Parent: Markup block at (24:0,24 [17] ) -Markup span at (41:0,41 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [42] ) -Markup span at (42:0,42 [9] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [60] ) -Markup span at (51:0,51 [9] ) (Accepts:Any) - Parent: Tag block at (51:0,51 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.stree.txt deleted file mode 100644 index b0aca0fea52..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags4.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..60)::60 - [] - MarkupBlock - [0..60)::60 - MarkupElement - [0..60)::60 - MarkupStartTag - [0..42)::42 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.cspans.txt deleted file mode 100644 index 9c63d02543e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (3:0,3 [4] ) (Accepts:None) - Parent: HtmlComment block at (3:0,3 [12] ) -Markup span at (7:0,7 [5] ) (Accepts:Whitespace) - Parent: HtmlComment block at (3:0,3 [12] ) -Markup span at (12:0,12 [3] ) (Accepts:None) - Parent: HtmlComment block at (3:0,3 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.diag.txt deleted file mode 100644 index 79250ce2c8e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,4): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'b' are allowed. -(1,8): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'b' are allowed. -(1,13): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'b' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.stree.txt deleted file mode 100644 index 9eda1dc0cbc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..19)::19 - [

                        ] - MarkupBlock - [0..19)::19 - MarkupTagHelperElement - [0..19)::19 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupCommentBlock - [3..15)::12 - MarkupTextLiteral - [3..7)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [15..19)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.tspans.txt deleted file mode 100644 index 8cb202b9d66..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesntAllowSimpleHtmlCommentsAsChildrenWhenFeatureFlagIsOff.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.cspans.txt deleted file mode 100644 index fe9f0e011c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (3:0,3 [4] ) (Accepts:None) - Parent: HtmlComment block at (3:0,3 [12] ) -Markup span at (7:0,7 [5] ) (Accepts:Whitespace) - Parent: HtmlComment block at (3:0,3 [12] ) -Markup span at (12:0,12 [3] ) (Accepts:None) - Parent: HtmlComment block at (3:0,3 [12] ) -Markup span at (15:0,15 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -Markup span at (19:0,19 [4] ) (Accepts:None) - Parent: HtmlComment block at (19:0,19 [12] ) -Markup span at (23:0,23 [5] ) (Accepts:Whitespace) - Parent: HtmlComment block at (19:0,19 [12] ) -Markup span at (28:0,28 [3] ) (Accepts:None) - Parent: HtmlComment block at (19:0,19 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.diag.txt deleted file mode 100644 index 2388259b98d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,16): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'b' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.stree.txt deleted file mode 100644 index 383b82ba4a8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..35)::35 - [

                        asdf

                        ] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupCommentBlock - [3..15)::12 - MarkupTextLiteral - [3..7)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTextLiteral - [15..19)::4 - [asdf] - Gen - SpanEditHandler;Accepts:Any - Text;[asdf]; - MarkupCommentBlock - [19..31)::12 - MarkupTextLiteral - [19..23)::4 - [] - Gen - SpanEditHandler;Accepts:None - DoubleHyphen;[--]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [31..35)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.tspans.txt deleted file mode 100644 index 548e779815a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/FailsForContentWithCommentsAsChildren.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.cspans.txt deleted file mode 100644 index 9244132d921..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.stree.txt deleted file mode 100644 index 69237591cfb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..28)::28 - [

                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - p[StartTagAndEndTag] - pTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..24)::24 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - SingleQuotes - Unbound - [ class='foo'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [14..23)::9 - catchAll - Minimized - Unbound - [ catchAll] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..23)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [24..28)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.tspans.txt deleted file mode 100644 index f9a1aca7323..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - pTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.cspans.txt deleted file mode 100644 index 9244132d921..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.stree.txt deleted file mode 100644 index 9e56cc278d8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..28)::28 - [

                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - p[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..24)::24 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - CLASS - SingleQuotes - Unbound - [ CLASS='foo'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [CLASS] - Gen - SpanEditHandler;Accepts:Any - Text;[CLASS]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [14..23)::9 - CATCHAll - Minimized - Unbound - [ CATCHAll] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..23)::8 - [CATCHAll] - Gen - SpanEditHandler;Accepts:Any - Text;[CATCHAll]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [24..28)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.tspans.txt deleted file mode 100644 index 2a9461471f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.cspans.txt deleted file mode 100644 index 9244132d921..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.stree.txt deleted file mode 100644 index 10d12d82dad..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.stree.txt +++ /dev/null @@ -1,31 +0,0 @@ -RazorDocument - [0..28)::28 - [

                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - P[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..24)::24 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[P]; - MarkupTagHelperAttribute - [2..14)::12 - class - SingleQuotes - Unbound - [ class='foo'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - MarkupMinimizedTagHelperAttribute - [14..23)::9 - CATCHAll - Minimized - Unbound - [ CATCHAll] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..23)::8 - [CATCHAll] - Gen - SpanEditHandler;Accepts:Any - Text;[CATCHAll]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [24..28)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[P]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.tspans.txt deleted file mode 100644 index 2a9461471f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.cspans.txt deleted file mode 100644 index 34f63d813d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [15] ) -Markup span at (2:0,2 [8] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [12] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [12] ) -Markup span at (13:0,13 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [15] ) -Markup span at (15:0,15 [4] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.stree.txt deleted file mode 100644 index 211c7dd3916..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly4.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..19)::19 - [

                        ] - MarkupBlock - [0..19)::19 - MarkupElement - [0..19)::19 - MarkupStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[P]; - MarkupAttributeBlock - [2..14)::12 - [ class='foo'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [15..19)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[P]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.cspans.txt deleted file mode 100644 index 34f63d813d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [15] ) -Markup span at (2:0,2 [8] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [12] ) -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [12] ) -Markup span at (13:0,13 [1] ) (Accepts:Any) - Parent: Markup block at (2:0,2 [12] ) -Markup span at (14:0,14 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [15] ) -Markup span at (15:0,15 [4] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.stree.txt deleted file mode 100644 index 205ae2dfe04..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesCaseSensitiveTagHelpersCorrectly5.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..19)::19 - [

                        ] - MarkupBlock - [0..19)::19 - MarkupElement - [0..19)::19 - MarkupStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupAttributeBlock - [2..14)::12 - [ Class='foo'] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [Class] - Gen - SpanEditHandler;Accepts:Any - Text;[Class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - GenericBlock - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [foo] - MarkupTextLiteral - [10..13)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any - Text;[foo]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any - SingleQuote;[']; - CloseAngle;[>]; - MarkupEndTag - [15..19)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.cspans.txt deleted file mode 100644 index d99115005bb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Transition span at (5:0,5 [1] ) (Accepts:None) - Parent: Statement block at (5:0,5 [9] ) -MetaCode span at (6:0,6 [1] ) (Accepts:None) - Parent: Statement block at (5:0,5 [9] ) -Markup span at (7:0,7 [6] ) (Accepts:None) - Parent: Tag block at (7:0,7 [6] ) -Code span at (13:0,13 [0] ) (Accepts:Any) - Parent: Statement block at (5:0,5 [9] ) -MetaCode span at (13:0,13 [1] ) (Accepts:None) - Parent: Statement block at (5:0,5 [9] ) -Markup span at (14:0,14 [0] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.diag.txt deleted file mode 100644 index 2d09355f58e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,10): Error RZ1026: Encountered end tag "div" with no matching start tag. Are your start/end tags properly balanced? diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.stree.txt deleted file mode 100644 index 798255fcf89..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesMalformedNestedNonTagHelperTags_Correctly.stree.txt +++ /dev/null @@ -1,28 +0,0 @@ -RazorDocument - [0..14)::14 - [
                        @{
                        }] - MarkupBlock - [0..14)::14 - MarkupElement - [0..14)::14 - MarkupStartTag - [0..5)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - CSharpCodeBlock - [5..14)::9 - CSharpStatement - [5..14)::9 - CSharpTransition - [5..6)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpStatementBody - [6..14)::8 - RazorMetaCode - [6..7)::1 - Gen - SpanEditHandler;Accepts:None - LeftBrace;[{]; - CSharpCodeBlock - [7..13)::6 - MarkupBlock - [7..13)::6 - MarkupElement - [7..13)::6 - MarkupEndTag - [7..13)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:None - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - CSharpStatementLiteral - [13..13)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; - RazorMetaCode - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - RightBrace;[}]; - MarkupTextLiteral - [14..14)::0 - [] - Gen - SpanEditHandler;Accepts:Any - Marker;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.cspans.txt deleted file mode 100644 index d7bd4e3d71d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [7] ) -Markup span at (7:0,7 [3] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [18] ) -Markup span at (10:0,10 [8] ) (Accepts:Any) - Parent: Tag block at (10:0,10 [8] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.stree.txt deleted file mode 100644 index 55f62a77312..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/HandlesNonTagHelperStartAndEndVoidTags_Correctly.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..18)::18 - [Foo] - MarkupBlock - [0..18)::18 - MarkupElement - [0..18)::18 - MarkupStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTextLiteral - [7..10)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any - Text;[Foo]; - MarkupEndTag - [10..18)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[input]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.cspans.txt deleted file mode 100644 index 67ad7c62e20..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (6:0,6 [12] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.diag.txt deleted file mode 100644 index 28629d2c011..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,9): Error RZ1034: Found a malformed 'th:strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.stree.txt deleted file mode 100644 index 2dded2ecc6f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..25)::25 - [] - MarkupBlock - [0..25)::25 - MarkupTagHelperElement - [0..25)::25 - th:p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:p]; - CloseAngle;[>]; - MarkupElement - [6..18)::12 - MarkupEndTag - [6..18)::12 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [18..25)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.tspans.txt deleted file mode 100644 index e3e08d013c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/InvalidStructure_UnderstandsTHPrefixAndAllowedChildrenAndRequireParent.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [25] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt deleted file mode 100644 index 4e29c0cde50..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [26] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [3] ) -Markup span at (18:0,18 [4] ) (Accepts:Any) - Parent: Tag block at (18:0,18 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt deleted file mode 100644 index 5ee6707ec50..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..26)::26 - [

                        ] - MarkupBlock - [0..26)::26 - MarkupTagHelperElement - [0..26)::26 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [15..22)::7 - MarkupStartTag - [15..18)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [18..22)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [22..26)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.tspans.txt deleted file mode 100644 index b037dceaaba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [26] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt deleted file mode 100644 index e59c7710029..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [113] ) -Markup span at (22:0,22 [8] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [8] ) -Markup span at (30:0,30 [8] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [8] ) -Markup span at (56:0,56 [2] ) (Accepts:Any) - Parent: Tag block at (38:0,38 [48] ) -Markup span at (60:0,60 [8] ) (Accepts:Any) - Parent: Tag block at (60:0,60 [8] ) -Markup span at (68:0,68 [9] ) (Accepts:Any) - Parent: Tag block at (68:0,68 [9] ) -Markup span at (86:0,86 [9] ) (Accepts:Any) - Parent: Tag block at (86:0,86 [9] ) -Markup span at (95:0,95 [9] ) (Accepts:Any) - Parent: Tag block at (95:0,95 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt deleted file mode 100644 index b489212ead1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt +++ /dev/null @@ -1,80 +0,0 @@ -RazorDocument - [0..113)::113 - [] - MarkupBlock - [0..113)::113 - MarkupTagHelperElement - [0..113)::113 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [22..104)::82 - MarkupStartTag - [22..30)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [30..95)::65 - MarkupStartTag - [30..38)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [38..86)::48 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [38..60)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [45..59)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [45..46)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [46..54)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [55..56)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [56..58)::2 - MarkupLiteralAttributeValue - [56..58)::2 - [hi] - MarkupTextLiteral - [56..58)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [58..59)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [60..77)::17 - MarkupStartTag - [60..68)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [68..77)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [77..86)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [86..95)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [95..104)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [104..113)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt deleted file mode 100644 index 8ea9fb13a54..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [113] ) - catchAllTagHelper -TagHelper span at (38:0,38 [48] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt deleted file mode 100644 index f9e18638d4c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [48] ) -Markup span at (22:0,22 [8] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [8] ) -Markup span at (30:0,30 [9] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt deleted file mode 100644 index c27b0459373..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt +++ /dev/null @@ -1,36 +0,0 @@ -RazorDocument - [0..48)::48 - [] - MarkupBlock - [0..48)::48 - MarkupTagHelperElement - [0..48)::48 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [22..39)::17 - MarkupStartTag - [22..30)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [30..39)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [39..48)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.tspans.txt deleted file mode 100644 index f20c5948bd3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [48] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt deleted file mode 100644 index 285c8a6c095..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [43] ) -Markup span at (15:0,15 [8] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [8] ) -Markup span at (23:0,23 [3] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [3] ) -Markup span at (26:0,26 [4] ) (Accepts:Any) - Parent: Tag block at (26:0,26 [4] ) -Markup span at (30:0,30 [9] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt deleted file mode 100644 index 11851c327af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..43)::43 - [

                        ] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [15..39)::24 - MarkupStartTag - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [23..30)::7 - MarkupStartTag - [23..26)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [26..30)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [30..39)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [39..43)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.tspans.txt deleted file mode 100644 index 9980ee41c69..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt deleted file mode 100644 index b1ebc6b375e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [55] ) -Markup span at (22:0,22 [3] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [3] ) -Markup span at (25:0,25 [8] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [8] ) -Markup span at (33:0,33 [9] ) (Accepts:Any) - Parent: Tag block at (33:0,33 [9] ) -Markup span at (42:0,42 [4] ) (Accepts:Any) - Parent: Tag block at (42:0,42 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt deleted file mode 100644 index 4470ff5da38..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..55)::55 - [

                        ] - MarkupBlock - [0..55)::55 - MarkupTagHelperElement - [0..55)::55 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [22..46)::24 - MarkupStartTag - [22..25)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [25..42)::17 - MarkupStartTag - [25..33)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [33..42)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [42..46)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [46..55)::9 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.tspans.txt deleted file mode 100644 index 14ff8ee19fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [55] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt deleted file mode 100644 index 40bebc3bdc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [57] ) -Markup span at (33:0,33 [2] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [38] ) -Markup span at (37:0,37 [3] ) (Accepts:Any) - Parent: Tag block at (37:0,37 [3] ) -Markup span at (40:0,40 [4] ) (Accepts:Any) - Parent: Tag block at (40:0,40 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt deleted file mode 100644 index 6ae5f26b334..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt +++ /dev/null @@ -1,60 +0,0 @@ -RazorDocument - [0..57)::57 - [

                        ] - MarkupBlock - [0..57)::57 - MarkupTagHelperElement - [0..57)::57 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperElement - [15..53)::38 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [15..37)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [22..36)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [23..31)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [33..35)::2 - MarkupLiteralAttributeValue - [33..35)::2 - [hi] - MarkupTextLiteral - [33..35)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [37..44)::7 - MarkupStartTag - [37..40)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [40..44)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [44..53)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [53..57)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt deleted file mode 100644 index 2075b5b2764..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [57] ) - pTagHelper -TagHelper span at (15:0,15 [38] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt deleted file mode 100644 index 0de746f4eb7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [67] ) -Markup span at (32:0,32 [3] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [36] ) -Markup span at (37:0,37 [8] ) (Accepts:Any) - Parent: Tag block at (37:0,37 [8] ) -Markup span at (45:0,45 [9] ) (Accepts:Any) - Parent: Tag block at (45:0,45 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt deleted file mode 100644 index 49ea5ff24cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt +++ /dev/null @@ -1,60 +0,0 @@ -RazorDocument - [0..67)::67 - [

                        ] - MarkupBlock - [0..67)::67 - MarkupTagHelperElement - [0..67)::67 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperElement - [22..58)::36 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [22..37)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [24..36)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [25..30)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [32..35)::3 - MarkupLiteralAttributeValue - [32..35)::3 - [btn] - MarkupTextLiteral - [32..35)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [37..54)::17 - MarkupStartTag - [37..45)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [45..54)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [54..58)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [58..67)::9 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt deleted file mode 100644 index 5986b904150..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [67] ) - catchAllTagHelper -TagHelper span at (22:0,22 [36] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt deleted file mode 100644 index e964e23037a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [45] ) -Markup span at (25:0,25 [3] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [26] ) -Markup span at (30:0,30 [3] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [3] ) -Markup span at (33:0,33 [4] ) (Accepts:Any) - Parent: Tag block at (33:0,33 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt deleted file mode 100644 index 01e73cba7b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt +++ /dev/null @@ -1,60 +0,0 @@ -RazorDocument - [0..45)::45 - [

                        ] - MarkupBlock - [0..45)::45 - MarkupTagHelperElement - [0..45)::45 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperElement - [15..41)::26 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [15..30)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [17..29)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [18..23)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [25..28)::3 - MarkupLiteralAttributeValue - [25..28)::3 - [btn] - MarkupTextLiteral - [25..28)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [28..29)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [30..37)::7 - MarkupStartTag - [30..33)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [33..37)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [37..41)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [41..45)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt deleted file mode 100644 index cf6b2254412..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [45] ) - pTagHelper -TagHelper span at (15:0,15 [26] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt deleted file mode 100644 index 76cf67d320d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [79] ) -Markup span at (40:0,40 [2] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [48] ) -Markup span at (44:0,44 [8] ) (Accepts:Any) - Parent: Tag block at (44:0,44 [8] ) -Markup span at (52:0,52 [9] ) (Accepts:Any) - Parent: Tag block at (52:0,52 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt deleted file mode 100644 index 3cedd737eba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt +++ /dev/null @@ -1,60 +0,0 @@ -RazorDocument - [0..79)::79 - [] - MarkupBlock - [0..79)::79 - MarkupTagHelperElement - [0..79)::79 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperElement - [22..70)::48 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [22..44)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [29..43)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [30..38)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [39..40)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [40..42)::2 - MarkupLiteralAttributeValue - [40..42)::2 - [hi] - MarkupTextLiteral - [40..42)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [42..43)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [44..61)::17 - MarkupStartTag - [44..52)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [52..61)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [61..70)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [70..79)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt deleted file mode 100644 index fbb7dffddd4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [79] ) - catchAllTagHelper -TagHelper span at (22:0,22 [48] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt deleted file mode 100644 index 0e3e22141ff..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [59] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [3] ) -Markup span at (18:0,18 [3] ) (Accepts:Any) - Parent: Tag block at (18:0,18 [3] ) -Markup span at (31:0,31 [3] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [26] ) -Markup span at (36:0,36 [3] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [3] ) -Markup span at (39:0,39 [4] ) (Accepts:Any) - Parent: Tag block at (39:0,39 [4] ) -Markup span at (47:0,47 [4] ) (Accepts:Any) - Parent: Tag block at (47:0,47 [4] ) -Markup span at (51:0,51 [4] ) (Accepts:Any) - Parent: Tag block at (51:0,51 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt deleted file mode 100644 index b35bc7f9ea5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt +++ /dev/null @@ -1,80 +0,0 @@ -RazorDocument - [0..59)::59 - [

                        ] - MarkupBlock - [0..59)::59 - MarkupTagHelperElement - [0..59)::59 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [15..55)::40 - MarkupStartTag - [15..18)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [18..51)::33 - MarkupStartTag - [18..21)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [21..47)::26 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [21..36)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [23..35)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [24..29)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [31..34)::3 - MarkupLiteralAttributeValue - [31..34)::3 - [btn] - MarkupTextLiteral - [31..34)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [34..35)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupElement - [36..43)::7 - MarkupStartTag - [36..39)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [39..43)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [43..47)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [47..51)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [51..55)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [55..59)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt deleted file mode 100644 index 86c4e400c17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NestedRequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [59] ) - pTagHelper -TagHelper span at (21:0,21 [26] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt deleted file mode 100644 index bdb0fcc4287..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (6:0,6 [8] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [8] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Tag block at (14:0,14 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt deleted file mode 100644 index 55159ceffbe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..30)::30 - [] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - th:p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:p]; - CloseAngle;[>]; - MarkupElement - [6..23)::17 - MarkupStartTag - [6..14)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [14..23)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [23..30)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt deleted file mode 100644 index 2e5914e934a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/NonTagHelperChild_UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.cspans.txt deleted file mode 100644 index 29554cdec9a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (17:0,17 [8] ) (Accepts:Any) - Parent: Tag block at (17:0,17 [8] ) -Markup span at (25:0,25 [9] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.diag.txt deleted file mode 100644 index b4a862c68a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,19): Error RZ2010: The tag is not allowed by parent tag helper. Only child tags with name(s) 'br' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.stree.txt deleted file mode 100644 index b0a45224263..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..43)::43 - [] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..43)::43 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [0..17)::17 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupMinimizedTagHelperAttribute - [7..16)::9 - required - Minimized - Unbound - [ required] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [required] - Gen - SpanEditHandler;Accepts:Any - Text;[required]; - CloseAngle;[>]; - MarkupElement - [17..34)::17 - MarkupStartTag - [17..25)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [25..34)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [34..43)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.tspans.txt deleted file mode 100644 index 43893fed53c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RecoversWhenRequiredAttributeMismatchAndRestrictedChildren.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [43] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.cspans.txt deleted file mode 100644 index f2fa2a31e29..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.stree.txt deleted file mode 100644 index a530591f30a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly1.stree.txt +++ /dev/null @@ -1,7 +0,0 @@ -RazorDocument - [0..2)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.cspans.txt deleted file mode 100644 index 2a68a378d28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (16:0,16 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -Markup span at (27:0,27 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.diag.txt deleted file mode 100644 index bcf9de93f5c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,35): Error RZ1035: Missing close angle for tag helper 'p'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.stree.txt deleted file mode 100644 index ae7efe7aac0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..35)::35 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..19)::17 - notRequired - DoubleQuotes - Unbound - [ notRequired="hi"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..18)::2 - MarkupLiteralAttributeValue - [16..18)::2 - [hi] - MarkupTextLiteral - [16..18)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [19..31)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..25)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..30)::3 - MarkupLiteralAttributeValue - [27..30)::3 - [btn] - MarkupTextLiteral - [27..30)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [31..32)::1 - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTagHelperEndTag - [32..35)::3 - []; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.tspans.txt deleted file mode 100644 index fcef603dfd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.cspans.txt deleted file mode 100644 index 864bb27b433..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [14] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.stree.txt deleted file mode 100644 index 6626113510c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..14)::14 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.tspans.txt deleted file mode 100644 index 22abb2b1183..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [14] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.cspans.txt deleted file mode 100644 index 5835fa92584..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (16:0,16 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) -Markup span at (27:0,27 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.stree.txt deleted file mode 100644 index 7a091f77049..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..31)::31 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..19)::17 - notRequired - DoubleQuotes - Unbound - [ notRequired="hi"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..18)::2 - MarkupLiteralAttributeValue - [16..18)::2 - [hi] - MarkupTextLiteral - [16..18)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [19..31)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..25)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..30)::3 - MarkupLiteralAttributeValue - [27..30)::3 - [btn] - MarkupTextLiteral - [27..30)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.tspans.txt deleted file mode 100644 index ea57174e6d0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.cspans.txt deleted file mode 100644 index 811b313443f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.stree.txt deleted file mode 100644 index f4d112be392..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly4.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..6)::6 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [3..6)::3 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.cspans.txt deleted file mode 100644 index 4fcdd1af8c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.diag.txt deleted file mode 100644 index d26f4a40789..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,18): Error RZ1035: Missing close angle for tag helper 'p'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.stree.txt deleted file mode 100644 index dd234ccf8aa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..18)::18 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [15..18)::3 - []; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.tspans.txt deleted file mode 100644 index 26aeee868e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [18] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.cspans.txt deleted file mode 100644 index 2a68a378d28..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (16:0,16 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -Markup span at (27:0,27 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.diag.txt deleted file mode 100644 index fa993c1831e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,35): Error RZ1035: Missing close angle for tag helper 'p'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.stree.txt deleted file mode 100644 index 5bb9e9e16c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..35)::35 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..19)::17 - notRequired - DoubleQuotes - Unbound - [ notRequired="hi"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..18)::2 - MarkupLiteralAttributeValue - [16..18)::2 - [hi] - MarkupTextLiteral - [16..18)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [19..31)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..25)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..30)::3 - MarkupLiteralAttributeValue - [27..30)::3 - [btn] - MarkupTextLiteral - [27..30)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [32..35)::3 - []; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.tspans.txt deleted file mode 100644 index fcef603dfd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.cspans.txt deleted file mode 100644 index 96cb7028ecb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [18] ) -Markup span at (15:0,15 [3] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.stree.txt deleted file mode 100644 index 344692192b7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..18)::18 - [

                        ] - MarkupBlock - [0..18)::18 - MarkupTagHelperElement - [0..18)::18 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [14..15)::1 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupElement - [15..18)::3 - MarkupStartTag - [15..18)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.tspans.txt deleted file mode 100644 index 26aeee868e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [18] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.cspans.txt deleted file mode 100644 index 3ca120d8abb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (16:0,16 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -Markup span at (27:0,27 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -Markup span at (32:0,32 [3] ) (Accepts:Any) - Parent: Tag block at (32:0,32 [3] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.diag.txt deleted file mode 100644 index b0e5b255ec0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.stree.txt deleted file mode 100644 index 11f8d77b73a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.stree.txt +++ /dev/null @@ -1,43 +0,0 @@ -RazorDocument - [0..35)::35 - [

                        ] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..32)::32 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..19)::17 - notRequired - DoubleQuotes - Unbound - [ notRequired="hi"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..18)::2 - MarkupLiteralAttributeValue - [16..18)::2 - [hi] - MarkupTextLiteral - [16..18)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [19..31)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [20..25)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [27..30)::3 - MarkupLiteralAttributeValue - [27..30)::3 - [btn] - MarkupTextLiteral - [27..30)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [31..32)::1 - MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupElement - [32..35)::3 - MarkupStartTag - [32..35)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.tspans.txt deleted file mode 100644 index fcef603dfd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.cspans.txt deleted file mode 100644 index 4fcdd1af8c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [18] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.diag.txt deleted file mode 100644 index ad599e94e5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1035: Missing close angle for tag helper 'p'. -(1,18): Error RZ1035: Missing close angle for tag helper 'p'. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.stree.txt deleted file mode 100644 index 02201c28609..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.stree.txt +++ /dev/null @@ -1,29 +0,0 @@ -RazorDocument - [0..18)::18 - [

                        - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [14..15)::1 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[]; - MarkupTagHelperEndTag - [15..18)::3 - []; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.tspans.txt deleted file mode 100644 index 26aeee868e4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [18] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt deleted file mode 100644 index c559127169d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt deleted file mode 100644 index 054b8b4abbf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly1.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..5)::5 - [

                        ] - MarkupBlock - [0..5)::5 - MarkupElement - [0..5)::5 - MarkupStartTag - [0..5)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupMiscAttributeContent - [2..3)::1 - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt deleted file mode 100644 index ce7d4197ffd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [24] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt deleted file mode 100644 index 23834d9b7f6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..24)::24 - strong[SelfClosing] - catchAllTagHelper - MarkupTagHelperStartTag - [0..24)::24 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [21..22)::1 - MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt deleted file mode 100644 index fdc44d87e1e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly10.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [24] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.cspans.txt deleted file mode 100644 index b5022db0735..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Expression block at (18:0,18 [13] ) -Code span at (19:0,19 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (18:0,18 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.stree.txt deleted file mode 100644 index d34eb6606fc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..35)::35 - [] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - strong[SelfClosing] - catchAllTagHelper - MarkupTagHelperStartTag - [0..35)::35 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..32)::25 - catchAll - DoubleQuotes - Unbound - [ catchAll="@DateTime.Now"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..31)::13 - MarkupDynamicAttributeValue - [18..31)::13 - [@DateTime.Now] - GenericBlock - [18..31)::13 - CSharpCodeBlock - [18..31)::13 - CSharpImplicitExpression - [18..31)::13 - CSharpTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [19..31)::12 - CSharpCodeBlock - [19..31)::12 - CSharpExpressionLiteral - [19..31)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [31..32)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [32..33)::1 - MarkupTextLiteral - [32..33)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.tspans.txt deleted file mode 100644 index c2c433f5274..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly11.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.cspans.txt deleted file mode 100644 index 022c99d3745..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (18:0,18 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [47] ) -Markup span at (22:0,22 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [47] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.stree.txt deleted file mode 100644 index 7bbca39c693..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..47)::47 - [words and spaces] - MarkupBlock - [0..47)::47 - MarkupTagHelperElement - [0..47)::47 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..22)::22 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..21)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..20)::2 - MarkupLiteralAttributeValue - [18..20)::2 - [hi] - MarkupTextLiteral - [18..20)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [22..38)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [38..47)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.tspans.txt deleted file mode 100644 index 3919132f79a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [47] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.cspans.txt deleted file mode 100644 index 65ac8fc0607..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Transition span at (18:0,18 [1] ) (Accepts:None) - Parent: Expression block at (18:0,18 [13] ) -Code span at (19:0,19 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (18:0,18 [13] ) -Markup span at (33:0,33 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [58] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.stree.txt deleted file mode 100644 index f1cb4746375..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..58)::58 - [words and spaces] - MarkupBlock - [0..58)::58 - MarkupTagHelperElement - [0..58)::58 - strong[StartTagAndEndTag] - catchAllTagHelper - MarkupTagHelperStartTag - [0..33)::33 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupTagHelperAttribute - [7..32)::25 - catchAll - DoubleQuotes - Unbound - [ catchAll="@DateTime.Now"] - MarkupTextLiteral - [7..8)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [8..16)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [18..31)::13 - MarkupDynamicAttributeValue - [18..31)::13 - [@DateTime.Now] - GenericBlock - [18..31)::13 - CSharpCodeBlock - [18..31)::13 - CSharpImplicitExpression - [18..31)::13 - CSharpTransition - [18..19)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [19..31)::12 - CSharpCodeBlock - [19..31)::12 - CSharpExpressionLiteral - [19..31)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [31..32)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [33..49)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [49..58)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.tspans.txt deleted file mode 100644 index 5518b4559b4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly13.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [58] ) - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.cspans.txt deleted file mode 100644 index b66dc822e53..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [19] ) -Markup span at (4:0,4 [8] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (12:0,12 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (16:0,16 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [19] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.stree.txt deleted file mode 100644 index 5592cdc1987..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly14.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..19)::19 - [

                        ] - MarkupBlock - [0..19)::19 - MarkupElement - [0..19)::19 - MarkupStartTag - [0..19)::19 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupAttributeBlock - [4..16)::12 - [ class="btn"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [btn] - MarkupTextLiteral - [12..15)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.cspans.txt deleted file mode 100644 index 01fd0f4301d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [4] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) -Markup span at (4:0,4 [8] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (12:0,12 [3] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Markup block at (4:0,4 [12] ) -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) -Markup span at (17:0,17 [6] ) (Accepts:Any) - Parent: Tag block at (17:0,17 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.stree.txt deleted file mode 100644 index abfb90c4827..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly15.stree.txt +++ /dev/null @@ -1,26 +0,0 @@ -RazorDocument - [0..23)::23 - [
                        ] - MarkupBlock - [0..23)::23 - MarkupElement - [0..23)::23 - MarkupStartTag - [0..17)::17 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupAttributeBlock - [4..16)::12 - [ class="btn"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - GenericBlock - [12..15)::3 - MarkupLiteralAttributeValue - [12..15)::3 - [btn] - MarkupTextLiteral - [12..15)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupEndTag - [17..23)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.cspans.txt deleted file mode 100644 index 266c0f349af..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) -Markup span at (26:0,26 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [33] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.stree.txt deleted file mode 100644 index 3b64e047c26..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..33)::33 - [

                        ] - MarkupBlock - [0..33)::33 - MarkupTagHelperElement - [0..33)::33 - p[SelfClosing] - pTagHelper - MarkupTagHelperStartTag - [0..33)::33 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..18)::16 - notRequired - DoubleQuotes - Unbound - [ notRequired="a"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..17)::1 - MarkupLiteralAttributeValue - [16..17)::1 - [a] - MarkupTextLiteral - [16..17)::1 - [a] - Gen - SpanEditHandler;Accepts:Any - Text;[a]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [18..30)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..24)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [25..26)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [26..29)::3 - MarkupLiteralAttributeValue - [26..29)::3 - [btn] - MarkupTextLiteral - [26..29)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [29..30)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [30..31)::1 - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.tspans.txt deleted file mode 100644 index 523daac96f3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly16.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [33] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.cspans.txt deleted file mode 100644 index 494b62f7a40..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Transition span at (16:0,16 [1] ) (Accepts:None) - Parent: Expression block at (16:0,16 [13] ) -Code span at (17:0,17 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (16:0,16 [13] ) -Markup span at (38:0,38 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.stree.txt deleted file mode 100644 index 7bd28b0ac83..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..45)::45 - [

                        ] - MarkupBlock - [0..45)::45 - MarkupTagHelperElement - [0..45)::45 - p[SelfClosing] - pTagHelper - MarkupTagHelperStartTag - [0..45)::45 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..30)::28 - notRequired - DoubleQuotes - Unbound - [ notRequired="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..29)::13 - MarkupDynamicAttributeValue - [16..29)::13 - [@DateTime.Now] - GenericBlock - [16..29)::13 - CSharpCodeBlock - [16..29)::13 - CSharpImplicitExpression - [16..29)::13 - CSharpTransition - [16..17)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [17..29)::12 - CSharpCodeBlock - [17..29)::12 - CSharpExpressionLiteral - [17..29)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [29..30)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [30..42)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [31..36)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [37..38)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [38..41)::3 - MarkupLiteralAttributeValue - [38..41)::3 - [btn] - MarkupTextLiteral - [38..41)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [41..42)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [42..43)::1 - MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.tspans.txt deleted file mode 100644 index 0209fdf6c5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly17.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [45] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.cspans.txt deleted file mode 100644 index 4962ba5ad60..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (16:0,16 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [51] ) -Markup span at (26:0,26 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [51] ) -Markup span at (31:0,31 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.stree.txt deleted file mode 100644 index 602f472c618..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..51)::51 - [

                        words and spaces

                        ] - MarkupBlock - [0..51)::51 - MarkupTagHelperElement - [0..51)::51 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..31)::31 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..18)::16 - notRequired - DoubleQuotes - Unbound - [ notRequired="a"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..14)::11 - [notRequired] - Gen - SpanEditHandler;Accepts:Any - Text;[notRequired]; - Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [16..17)::1 - MarkupLiteralAttributeValue - [16..17)::1 - [a] - MarkupTextLiteral - [16..17)::1 - [a] - Gen - SpanEditHandler;Accepts:Any - Text;[a]; - MarkupTextLiteral - [17..18)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [18..30)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [19..24)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [25..26)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [26..29)::3 - MarkupLiteralAttributeValue - [26..29)::3 - [btn] - MarkupTextLiteral - [26..29)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [29..30)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [31..47)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [47..51)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.tspans.txt deleted file mode 100644 index 5f0754439ae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly18.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [51] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.cspans.txt deleted file mode 100644 index 2930101dc19..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [28] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [28] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.stree.txt deleted file mode 100644 index 0a1508e9279..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..28)::28 - [
                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - div[SelfClosing] - divTagHelper - MarkupTagHelperStartTag - [0..28)::28 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [25..26)::1 - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.tspans.txt deleted file mode 100644 index 15e7f93acc7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly19.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - divTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt deleted file mode 100644 index 38768af66fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [3] ) -Markup span at (3:0,3 [4] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt deleted file mode 100644 index 946629e678f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly2.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..7)::7 - [

                        ] - MarkupBlock - [0..7)::7 - MarkupElement - [0..7)::7 - MarkupStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [3..7)::4 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.cspans.txt deleted file mode 100644 index 1ff5028dc0d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [13] ) -Code span at (13:0,13 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [13] ) -Markup span at (34:0,34 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [41] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.stree.txt deleted file mode 100644 index ea25294ac43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.stree.txt +++ /dev/null @@ -1,48 +0,0 @@ -RazorDocument - [0..41)::41 - [
                        ] - MarkupBlock - [0..41)::41 - MarkupTagHelperElement - [0..41)::41 - div[SelfClosing] - divTagHelper - MarkupTagHelperStartTag - [0..41)::41 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..26)::22 - style - DoubleQuotes - Unbound - [ style="@DateTime.Now"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..25)::13 - MarkupDynamicAttributeValue - [12..25)::13 - [@DateTime.Now] - GenericBlock - [12..25)::13 - CSharpCodeBlock - [12..25)::13 - CSharpImplicitExpression - [12..25)::13 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..25)::12 - CSharpCodeBlock - [13..25)::12 - CSharpExpressionLiteral - [13..25)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [25..26)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [26..38)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [27..32)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [34..37)::3 - MarkupLiteralAttributeValue - [34..37)::3 - [btn] - MarkupTextLiteral - [34..37)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [37..38)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [38..39)::1 - MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.tspans.txt deleted file mode 100644 index 267c9ba9b43..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly20.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [41] ) - divTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.cspans.txt deleted file mode 100644 index 17da676f686..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [48] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [48] ) -Markup span at (26:0,26 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [48] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.stree.txt deleted file mode 100644 index e86496b7c5a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..48)::48 - [
                        words and spaces
                        ] - MarkupBlock - [0..48)::48 - MarkupTagHelperElement - [0..48)::48 - div[StartTagAndEndTag] - divTagHelper - MarkupTagHelperStartTag - [0..26)::26 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [26..42)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [42..48)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.tspans.txt deleted file mode 100644 index 1fa759ade1c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly21.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [48] ) - divTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.cspans.txt deleted file mode 100644 index b5ef904e185..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [13] ) -Code span at (13:0,13 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [13] ) -Transition span at (34:0,34 [1] ) (Accepts:None) - Parent: Expression block at (34:0,34 [13] ) -Code span at (35:0,35 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (34:0,34 [13] ) -Markup span at (49:0,49 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [71] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.stree.txt deleted file mode 100644 index 4710b0fc3b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.stree.txt +++ /dev/null @@ -1,64 +0,0 @@ -RazorDocument - [0..71)::71 - [
                        words and spaces
                        ] - MarkupBlock - [0..71)::71 - MarkupTagHelperElement - [0..71)::71 - div[StartTagAndEndTag] - divTagHelper - MarkupTagHelperStartTag - [0..49)::49 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..26)::22 - style - DoubleQuotes - Unbound - [ style="@DateTime.Now"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..25)::13 - MarkupDynamicAttributeValue - [12..25)::13 - [@DateTime.Now] - GenericBlock - [12..25)::13 - CSharpCodeBlock - [12..25)::13 - CSharpImplicitExpression - [12..25)::13 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..25)::12 - CSharpCodeBlock - [13..25)::12 - CSharpExpressionLiteral - [13..25)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [25..26)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [26..48)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [27..32)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [34..47)::13 - MarkupDynamicAttributeValue - [34..47)::13 - [@DateTime.Now] - GenericBlock - [34..47)::13 - CSharpCodeBlock - [34..47)::13 - CSharpImplicitExpression - [34..47)::13 - CSharpTransition - [34..35)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [35..47)::12 - CSharpCodeBlock - [35..47)::12 - CSharpExpressionLiteral - [35..47)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [47..48)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [49..65)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [65..71)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.tspans.txt deleted file mode 100644 index dffecb5c263..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly22.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [71] ) - divTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.cspans.txt deleted file mode 100644 index a788e1773e5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (26:0,26 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (31:0,31 [8] ) (Accepts:Any) - Parent: Tag block at (31:0,31 [8] ) -Markup span at (39:0,39 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (42:0,42 [9] ) (Accepts:Any) - Parent: Tag block at (42:0,42 [9] ) -Markup span at (51:0,51 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.stree.txt deleted file mode 100644 index a968b1125d5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.stree.txt +++ /dev/null @@ -1,54 +0,0 @@ -RazorDocument - [0..63)::63 - [
                        wordsandspaces
                        ] - MarkupBlock - [0..63)::63 - MarkupTagHelperElement - [0..63)::63 - div[StartTagAndEndTag] - divTagHelper - MarkupTagHelperStartTag - [0..26)::26 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [26..31)::5 - [words] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - MarkupElement - [31..51)::20 - MarkupStartTag - [31..39)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [39..42)::3 - [and] - Gen - SpanEditHandler;Accepts:Any - Text;[and]; - MarkupEndTag - [42..51)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [51..57)::6 - [spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[spaces]; - MarkupTagHelperEndTag - [57..63)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.tspans.txt deleted file mode 100644 index ed9fa4bce08..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly23.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [63] ) - divTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.cspans.txt deleted file mode 100644 index 0d58538fb82..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) -Markup span at (25:0,25 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [31] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.stree.txt deleted file mode 100644 index 022c83310c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.stree.txt +++ /dev/null @@ -1,39 +0,0 @@ -RazorDocument - [0..31)::31 - [

                        ] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - p[SelfClosing] - pTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..31)::31 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [14..28)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..23)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [25..27)::2 - MarkupLiteralAttributeValue - [25..27)::2 - [hi] - MarkupTextLiteral - [25..27)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [27..28)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.tspans.txt deleted file mode 100644 index 6fb86e93578..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly24.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - pTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.cspans.txt deleted file mode 100644 index 4e62a5fb59a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [49] ) -Markup span at (25:0,25 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [49] ) -Markup span at (29:0,29 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [49] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.stree.txt deleted file mode 100644 index a9c4c20ef5e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.stree.txt +++ /dev/null @@ -1,46 +0,0 @@ -RazorDocument - [0..49)::49 - [

                        words and spaces

                        ] - MarkupBlock - [0..49)::49 - MarkupTagHelperElement - [0..49)::49 - p[StartTagAndEndTag] - pTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..29)::29 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [14..28)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [15..23)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [25..27)::2 - MarkupLiteralAttributeValue - [25..27)::2 - [hi] - MarkupTextLiteral - [25..27)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [27..28)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [29..45)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [45..49)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.tspans.txt deleted file mode 100644 index df0f66ba2b2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly25.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [49] ) - pTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.cspans.txt deleted file mode 100644 index 4a50e7e4a8e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [42] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [42] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [42] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.stree.txt deleted file mode 100644 index 4f7b900664c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.stree.txt +++ /dev/null @@ -1,51 +0,0 @@ -RazorDocument - [0..42)::42 - [
                        ] - MarkupBlock - [0..42)::42 - MarkupTagHelperElement - [0..42)::42 - div[SelfClosing] - divTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..42)::42 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [25..39)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..34)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [36..38)::2 - MarkupLiteralAttributeValue - [36..38)::2 - [hi] - MarkupTextLiteral - [36..38)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [38..39)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [39..40)::1 - MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.tspans.txt deleted file mode 100644 index 4820770a5bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly26.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [42] ) - divTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.cspans.txt deleted file mode 100644 index 49b2350a05e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) -Markup span at (41:0,41 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [63] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.stree.txt deleted file mode 100644 index 063a4bd7a9c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.stree.txt +++ /dev/null @@ -1,61 +0,0 @@ -RazorDocument - [0..63)::63 - [
                        words and spaces
                        ] - MarkupBlock - [0..63)::63 - MarkupTagHelperElement - [0..63)::63 - div[StartTagAndEndTag] - divTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..41)::41 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [25..39)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..34)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [36..38)::2 - MarkupLiteralAttributeValue - [36..38)::2 - [hi] - MarkupTextLiteral - [36..38)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [38..39)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [39..40)::1 - MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [41..57)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [57..63)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.tspans.txt deleted file mode 100644 index 107a34c817a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly27.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [63] ) - divTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.cspans.txt deleted file mode 100644 index b76fbd29f09..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [65] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [65] ) -Markup span at (36:0,36 [1] ) (Accepts:None) - Parent: Markup block at (36:0,36 [2] ) -Markup span at (37:0,37 [1] ) (Accepts:None) - Parent: Markup block at (36:0,36 [2] ) -Markup span at (38:0,38 [2] ) (Accepts:Any) - Parent: Markup block at (36:0,36 [4] ) -Markup span at (43:0,43 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [65] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.stree.txt deleted file mode 100644 index 299d41d22bc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.stree.txt +++ /dev/null @@ -1,66 +0,0 @@ -RazorDocument - [0..65)::65 - [
                        words and spaces
                        ] - MarkupBlock - [0..65)::65 - MarkupTagHelperElement - [0..65)::65 - div[StartTagAndEndTag] - divTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..43)::43 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [25..41)::16 - catchAll - DoubleQuotes - Unbound - [ catchAll="@@hi"] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..34)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [36..40)::4 - MarkupBlock - [36..38)::2 - MarkupTextLiteral - [36..37)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupEphemeralTextLiteral - [37..38)::1 - [@] - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - MarkupLiteralAttributeValue - [38..40)::2 - [hi] - MarkupTextLiteral - [38..40)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [40..41)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [41..42)::1 - MarkupTextLiteral - [41..42)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [43..59)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [59..65)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.tspans.txt deleted file mode 100644 index c45dca540d4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly28.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [65] ) - divTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.cspans.txt deleted file mode 100644 index e1f21dcb283..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Transition span at (12:0,12 [1] ) (Accepts:None) - Parent: Expression block at (12:0,12 [13] ) -Code span at (13:0,13 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (12:0,12 [13] ) -Transition span at (34:0,34 [1] ) (Accepts:None) - Parent: Expression block at (34:0,34 [13] ) -Code span at (35:0,35 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (34:0,34 [13] ) -Transition span at (59:0,59 [1] ) (Accepts:None) - Parent: Expression block at (59:0,59 [13] ) -Code span at (60:0,60 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (59:0,59 [13] ) -Markup span at (75:0,75 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [97] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.stree.txt deleted file mode 100644 index 66753f7bd0f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.stree.txt +++ /dev/null @@ -1,90 +0,0 @@ -RazorDocument - [0..97)::97 - [
                        words and spaces
                        ] - MarkupBlock - [0..97)::97 - MarkupTagHelperElement - [0..97)::97 - div[StartTagAndEndTag] - divTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..75)::75 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..26)::22 - style - DoubleQuotes - Unbound - [ style="@DateTime.Now"] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..25)::13 - MarkupDynamicAttributeValue - [12..25)::13 - [@DateTime.Now] - GenericBlock - [12..25)::13 - CSharpCodeBlock - [12..25)::13 - CSharpImplicitExpression - [12..25)::13 - CSharpTransition - [12..13)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [13..25)::12 - CSharpCodeBlock - [13..25)::12 - CSharpExpressionLiteral - [13..25)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [25..26)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [26..48)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [27..32)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [34..47)::13 - MarkupDynamicAttributeValue - [34..47)::13 - [@DateTime.Now] - GenericBlock - [34..47)::13 - CSharpCodeBlock - [34..47)::13 - CSharpImplicitExpression - [34..47)::13 - CSharpTransition - [34..35)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [35..47)::12 - CSharpCodeBlock - [35..47)::12 - CSharpExpressionLiteral - [35..47)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [47..48)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [48..73)::25 - catchAll - DoubleQuotes - Unbound - [ catchAll="@DateTime.Now"] - MarkupTextLiteral - [48..49)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [49..57)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [58..59)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [59..72)::13 - MarkupDynamicAttributeValue - [59..72)::13 - [@DateTime.Now] - GenericBlock - [59..72)::13 - CSharpCodeBlock - [59..72)::13 - CSharpImplicitExpression - [59..72)::13 - CSharpTransition - [59..60)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [60..72)::12 - CSharpCodeBlock - [60..72)::12 - CSharpExpressionLiteral - [60..72)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [72..73)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [73..74)::1 - MarkupTextLiteral - [73..74)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [75..91)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [91..97)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.tspans.txt deleted file mode 100644 index 5b10442647b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly29.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [97] ) - divTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt deleted file mode 100644 index 4f69cb3f10e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt deleted file mode 100644 index 306fe73b843..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly3.stree.txt +++ /dev/null @@ -1,11 +0,0 @@ -RazorDocument - [0..7)::7 - [
                        ] - MarkupBlock - [0..7)::7 - MarkupElement - [0..7)::7 - MarkupStartTag - [0..7)::7 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupMiscAttributeContent - [4..5)::1 - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.cspans.txt deleted file mode 100644 index 9fec06bb528..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (12:0,12 [0] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [78] ) -Markup span at (21:0,21 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [78] ) -Markup span at (36:0,36 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [78] ) -Markup span at (41:0,41 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [78] ) -Markup span at (46:0,46 [8] ) (Accepts:Any) - Parent: Tag block at (46:0,46 [8] ) -Markup span at (54:0,54 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [78] ) -Markup span at (57:0,57 [9] ) (Accepts:Any) - Parent: Tag block at (57:0,57 [9] ) -Markup span at (66:0,66 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [78] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.stree.txt deleted file mode 100644 index fae4f1917f1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.stree.txt +++ /dev/null @@ -1,71 +0,0 @@ -RazorDocument - [0..78)::78 - [
                        wordsandspaces
                        ] - MarkupBlock - [0..78)::78 - MarkupTagHelperElement - [0..78)::78 - div[StartTagAndEndTag] - divTagHelper - catchAllTagHelper - MarkupTagHelperStartTag - [0..41)::41 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - MarkupTagHelperAttribute - [4..13)::9 - style - DoubleQuotes - Unbound - [ style=""] - MarkupTextLiteral - [4..5)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [5..10)::5 - [style] - Gen - SpanEditHandler;Accepts:Any - Text;[style]; - Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [12..12)::0 - MarkupTextLiteral - [12..12)::0 - [] - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [13..25)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [14..19)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [21..24)::3 - MarkupLiteralAttributeValue - [21..24)::3 - [btn] - MarkupTextLiteral - [21..24)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [24..25)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttribute - [25..39)::14 - catchAll - DoubleQuotes - Unbound - [ catchAll="hi"] - MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [26..34)::8 - [catchAll] - Gen - SpanEditHandler;Accepts:Any - Text;[catchAll]; - Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [36..38)::2 - MarkupLiteralAttributeValue - [36..38)::2 - [hi] - MarkupTextLiteral - [36..38)::2 - [hi] - Gen - SpanEditHandler;Accepts:Any - Text;[hi]; - MarkupTextLiteral - [38..39)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [39..40)::1 - MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - CloseAngle;[>]; - MarkupTextLiteral - [41..46)::5 - [words] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - MarkupElement - [46..66)::20 - MarkupStartTag - [46..54)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [54..57)::3 - [and] - Gen - SpanEditHandler;Accepts:Any - Text;[and]; - MarkupEndTag - [57..66)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [66..72)::6 - [spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[spaces]; - MarkupTagHelperEndTag - [72..78)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.tspans.txt deleted file mode 100644 index e10503a044a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly30.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [78] ) - divTagHelper - catchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt deleted file mode 100644 index b02774d867b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (5:0,5 [6] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt deleted file mode 100644 index 251a137553e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly4.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..11)::11 - [
                        ] - MarkupBlock - [0..11)::11 - MarkupElement - [0..11)::11 - MarkupStartTag - [0..5)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupEndTag - [5..11)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt deleted file mode 100644 index 7514a2b3158..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt deleted file mode 100644 index f801f2c8f13..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..17)::17 - [

                        ] - MarkupBlock - [0..17)::17 - MarkupTagHelperElement - [0..17)::17 - p[SelfClosing] - pTagHelper - MarkupTagHelperStartTag - [0..17)::17 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [14..15)::1 - MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt deleted file mode 100644 index a46dc9658a3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [17] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt deleted file mode 100644 index 0dd5fb10159..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt deleted file mode 100644 index de832b25f74..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.stree.txt +++ /dev/null @@ -1,34 +0,0 @@ -RazorDocument - [0..27)::27 - [

                        ] - MarkupBlock - [0..27)::27 - MarkupTagHelperElement - [0..27)::27 - p[SelfClosing] - pTagHelper - MarkupTagHelperStartTag - [0..27)::27 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..23)::13 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupMiscAttributeContent - [24..25)::1 - MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt deleted file mode 100644 index 13aba97ce92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly6.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [27] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt deleted file mode 100644 index 82a1ccb4b37..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) -Markup span at (15:0,15 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [35] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt deleted file mode 100644 index d6bf5ef2040..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..35)::35 - [

                        words and spaces

                        ] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [15..31)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [31..35)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt deleted file mode 100644 index fcef603dfd9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly7.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt deleted file mode 100644 index 57aac251250..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.cspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -Transition span at (10:0,10 [1] ) (Accepts:None) - Parent: Expression block at (10:0,10 [13] ) -Code span at (11:0,11 [12] ) (Accepts:NonWhitespace) - Parent: Expression block at (10:0,10 [13] ) -Markup span at (25:0,25 [16] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt deleted file mode 100644 index d6ec53fc94e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.stree.txt +++ /dev/null @@ -1,41 +0,0 @@ -RazorDocument - [0..45)::45 - [

                        words and spaces

                        ] - MarkupBlock - [0..45)::45 - MarkupTagHelperElement - [0..45)::45 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..25)::25 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..24)::22 - class - DoubleQuotes - Unbound - [ class="@DateTime.Now"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..23)::13 - MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] - GenericBlock - [10..23)::13 - CSharpCodeBlock - [10..23)::13 - CSharpImplicitExpression - [10..23)::13 - CSharpTransition - [10..11)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [11..23)::12 - CSharpCodeBlock - [11..23)::12 - CSharpExpressionLiteral - [11..23)::12 - [DateTime.Now] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[DateTime]; - Dot;[.]; - Identifier;[Now]; - MarkupTextLiteral - [23..24)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [25..41)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - Whitespace;[ ]; - Text;[and]; - Whitespace;[ ]; - Text;[spaces]; - MarkupTagHelperEndTag - [41..45)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt deleted file mode 100644 index 0209fdf6c5f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly8.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [45] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt deleted file mode 100644 index aac0423123a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [50] ) -Markup span at (15:0,15 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [50] ) -Markup span at (20:0,20 [8] ) (Accepts:Any) - Parent: Tag block at (20:0,20 [8] ) -Markup span at (28:0,28 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [50] ) -Markup span at (31:0,31 [9] ) (Accepts:Any) - Parent: Tag block at (31:0,31 [9] ) -Markup span at (40:0,40 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [50] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt deleted file mode 100644 index 7811d882072..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.stree.txt +++ /dev/null @@ -1,42 +0,0 @@ -RazorDocument - [0..50)::50 - [

                        wordsandspaces

                        ] - MarkupBlock - [0..50)::50 - MarkupTagHelperElement - [0..50)::50 - p[StartTagAndEndTag] - pTagHelper - MarkupTagHelperStartTag - [0..15)::15 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - MarkupTagHelperAttribute - [2..14)::12 - class - DoubleQuotes - Unbound - [ class="btn"] - MarkupTextLiteral - [2..3)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any - Text;[class]; - Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - MarkupTagHelperAttributeValue - [10..13)::3 - MarkupLiteralAttributeValue - [10..13)::3 - [btn] - MarkupTextLiteral - [10..13)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any - Text;[btn]; - MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any - DoubleQuote;["]; - CloseAngle;[>]; - MarkupTextLiteral - [15..20)::5 - [words] - Gen - SpanEditHandler;Accepts:Any - Text;[words]; - MarkupElement - [20..40)::20 - MarkupStartTag - [20..28)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [28..31)::3 - [and] - Gen - SpanEditHandler;Accepts:Any - Text;[and]; - MarkupEndTag - [31..40)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [40..46)::6 - [spaces] - Gen - SpanEditHandler;Accepts:Any - Text;[spaces]; - MarkupTagHelperEndTag - [46..50)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt deleted file mode 100644 index f26abbe0163..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RequiredAttributeDescriptorsCreateTagHelperBlocksCorrectly9.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [50] ) - pTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.stree.txt deleted file mode 100644 index 80fe4a7c6ac..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..18)::18 - [

                        ] - MarkupBlock - [0..18)::18 - MarkupTagHelperElement - [0..18)::18 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..14)::11 - div[StartTagAndEndTag] - divtaghelper - MarkupTagHelperStartTag - [3..8)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [8..14)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [14..18)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.tspans.txt deleted file mode 100644 index c6e74368cc4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks1.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [18] ) - ptaghelper -TagHelper span at (3:0,3 [11] ) - divtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.cspans.txt deleted file mode 100644 index 217baf9220f..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [12] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [30] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.stree.txt deleted file mode 100644 index 878ac67dcb9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..30)::30 - [

                        Hello World

                        ] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..15)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - Whitespace;[ ]; - Text;[World]; - Whitespace;[ ]; - MarkupTagHelperElement - [15..26)::11 - div[StartTagAndEndTag] - divtaghelper - MarkupTagHelperStartTag - [15..20)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [20..26)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [26..30)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.tspans.txt deleted file mode 100644 index a24b08ac0e9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - ptaghelper -TagHelper span at (15:0,15 [11] ) - divtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.cspans.txt deleted file mode 100644 index 5eee6a71605..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [19] ) -Markup span at (9:0,9 [2] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [9] ) -Markup span at (19:0,19 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [43] ) -Markup span at (28:0,28 [5] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.stree.txt deleted file mode 100644 index 1b8b0b82580..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..43)::43 - [

                        Hel

                        lo

                        World

                        ] - MarkupBlock - [0..43)::43 - MarkupTagHelperElement - [0..19)::19 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..6)::3 - [Hel] - Gen - SpanEditHandler;Accepts:Any - Text;[Hel]; - MarkupTagHelperElement - [6..15)::9 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [6..9)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [9..11)::2 - [lo] - Gen - SpanEditHandler;Accepts:Any - Text;[lo]; - MarkupTagHelperEndTag - [11..15)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [15..19)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [20..43)::23 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [20..23)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [23..39)::16 - div[StartTagAndEndTag] - divtaghelper - MarkupTagHelperStartTag - [23..28)::5 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [28..33)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupTagHelperEndTag - [33..39)::6 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [39..43)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.tspans.txt deleted file mode 100644 index 99e05e1570c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks3.tspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -TagHelper span at (0:0,0 [19] ) - ptaghelper -TagHelper span at (6:0,6 [9] ) - ptaghelper -TagHelper span at (20:0,20 [23] ) - ptaghelper -TagHelper span at (23:0,23 [16] ) - divtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.cspans.txt deleted file mode 100644 index 34608d7a1d1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.cspans.txt +++ /dev/null @@ -1,8 +0,0 @@ -Markup span at (3:0,3 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [29] ) -Markup span at (6:0,6 [8] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [8] ) -Markup span at (14:0,14 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [29] ) -Markup span at (16:0,16 [9] ) (Accepts:Any) - Parent: Tag block at (16:0,16 [9] ) -Markup span at (29:0,29 [1] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [55] ) -Markup span at (33:0,33 [6] ) (Accepts:Any) - Parent: Tag block at (33:0,33 [6] ) -Markup span at (39:0,39 [5] ) (Accepts:Any) - Parent: Tag block at (30:0,30 [25] ) -Markup span at (44:0,44 [7] ) (Accepts:Any) - Parent: Tag block at (44:0,44 [7] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.stree.txt deleted file mode 100644 index 23f1042fb18..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.stree.txt +++ /dev/null @@ -1,50 +0,0 @@ -RazorDocument - [0..55)::55 - [

                        Hello

                        World

                        ] - MarkupBlock - [0..55)::55 - MarkupTagHelperElement - [0..29)::29 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..6)::3 - [Hel] - Gen - SpanEditHandler;Accepts:Any - Text;[Hel]; - MarkupElement - [6..25)::19 - MarkupStartTag - [6..14)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [14..16)::2 - [lo] - Gen - SpanEditHandler;Accepts:Any - Text;[lo]; - MarkupEndTag - [16..25)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [25..29)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [30..55)::25 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [30..33)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [33..51)::18 - MarkupStartTag - [33..39)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[span]; - CloseAngle;[>]; - MarkupTextLiteral - [39..44)::5 - [World] - Gen - SpanEditHandler;Accepts:Any - Text;[World]; - MarkupEndTag - [44..51)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[span]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [51..55)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.tspans.txt deleted file mode 100644 index 9ff63342bcd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/RewritesNestedTagHelperTagBlocks4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [29] ) - ptaghelper -TagHelper span at (30:0,30 [25] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.stree.txt deleted file mode 100644 index 8d2006107c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..13)::13 - [


                        ] - MarkupBlock - [0..13)::13 - MarkupTagHelperElement - [0..13)::13 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..9)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [3..9)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [9..13)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.tspans.txt deleted file mode 100644 index f1b18b40655..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren1.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [13] ) - PTagHelper -TagHelper span at (3:0,3 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.cspans.txt deleted file mode 100644 index d2c59556355..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [47] ) -Markup span at (21:0,21 [4] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [4] ) -Markup span at (25:0,25 [11] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [47] ) -Markup span at (36:0,36 [5] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [5] ) -Markup span at (56:0,56 [9] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [69] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.diag.txt deleted file mode 100644 index 251fa1828e8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.diag.txt +++ /dev/null @@ -1,5 +0,0 @@ -(1,12): Error RZ2009: The parent tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong' are allowed. -(1,19): Error RZ2010: The
                        tag is not allowed by parent tag helper. Only child tags with name(s) 'strong' are allowed. -(1,23): Error RZ2010: The tag is not allowed by parent tag helper. Only child tags with name(s) 'strong' are allowed. -(1,52): Error RZ2010: The
                        tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'strong' are allowed. -(1,57): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.stree.txt deleted file mode 100644 index 3bf30508ec4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.stree.txt +++ /dev/null @@ -1,56 +0,0 @@ -RazorDocument - [0..69)::69 - [

                        Title:
                        A Very Cool

                        Something

                        ] - MarkupBlock - [0..69)::69 - MarkupTagHelperElement - [0..69)::69 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..50)::47 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [11..17)::6 - [Title:] - Gen - SpanEditHandler;Accepts:Any - Text;[Title:]; - MarkupTagHelperElement - [17..21)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [17..21)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupElement - [21..41)::20 - MarkupStartTag - [21..25)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[em]; - CloseAngle;[>]; - MarkupTextLiteral - [25..36)::11 - [A Very Cool] - Gen - SpanEditHandler;Accepts:Any - Text;[A]; - Whitespace;[ ]; - Text;[Very]; - Whitespace;[ ]; - Text;[Cool]; - MarkupEndTag - [36..41)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[em]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [41..50)::9 - [
                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [50..56)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [50..56)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [53..54)::1 - MarkupTextLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [56..65)::9 - [Something] - Gen - SpanEditHandler;Accepts:Any - Text;[Something]; - MarkupTagHelperEndTag - [65..69)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.tspans.txt deleted file mode 100644 index 882c9f83326..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren10.tspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -TagHelper span at (0:0,0 [69] ) - PTagHelper -TagHelper span at (3:0,3 [47] ) - StrongTagHelper -TagHelper span at (17:0,17 [4] ) - BRTagHelper -TagHelper span at (50:0,50 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.cspans.txt deleted file mode 100644 index 22b36ea7042..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.cspans.txt +++ /dev/null @@ -1,7 +0,0 @@ -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [8] ) -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [69] ) -Markup span at (21:0,21 [4] ) (Accepts:Any) - Parent: Tag block at (21:0,21 [4] ) -Markup span at (25:0,25 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [69] ) -Markup span at (36:0,36 [5] ) (Accepts:Any) - Parent: Tag block at (36:0,36 [5] ) -Markup span at (41:0,41 [9] ) (Accepts:Any) - Parent: Tag block at (41:0,41 [9] ) -Markup span at (56:0,56 [9] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [69] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.diag.txt deleted file mode 100644 index 6589efa8321..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,52): Error RZ2010: The
                        tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'custom' are allowed. -(1,57): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'custom' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.stree.txt deleted file mode 100644 index 3ff1ebec20c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.stree.txt +++ /dev/null @@ -1,56 +0,0 @@ -RazorDocument - [0..69)::69 - [

                        Title:
                        A Very Cool

                        Something

                        ] - MarkupBlock - [0..69)::69 - MarkupTagHelperElement - [0..69)::69 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..50)::47 - MarkupStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[custom]; - CloseAngle;[>]; - MarkupTextLiteral - [11..17)::6 - [Title:] - Gen - SpanEditHandler;Accepts:Any - Text;[Title:]; - MarkupTagHelperElement - [17..21)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [17..21)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupElement - [21..41)::20 - MarkupStartTag - [21..25)::4 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[em]; - CloseAngle;[>]; - MarkupTextLiteral - [25..36)::11 - [A Very Cool] - Gen - SpanEditHandler;Accepts:Any - Text;[A]; - Whitespace;[ ]; - Text;[Very]; - Whitespace;[ ]; - Text;[Cool]; - MarkupEndTag - [36..41)::5 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[em]; - CloseAngle;[>]; - MarkupEndTag - [41..50)::9 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[custom]; - CloseAngle;[>]; - MarkupTagHelperElement - [50..56)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [50..56)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [53..54)::1 - MarkupTextLiteral - [53..54)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [56..65)::9 - [Something] - Gen - SpanEditHandler;Accepts:Any - Text;[Something]; - MarkupTagHelperEndTag - [65..69)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.tspans.txt deleted file mode 100644 index 9456a2bf5b5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren11.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [69] ) - PTagHelper -TagHelper span at (17:0,17 [4] ) - BRTagHelper -TagHelper span at (50:0,50 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.cspans.txt deleted file mode 100644 index b3958cf71ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.diag.txt deleted file mode 100644 index 063da0eb5b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'custom' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.stree.txt deleted file mode 100644 index 5a9413f6d93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..9)::9 - [

                        ] - MarkupBlock - [0..9)::9 - MarkupTagHelperElement - [0..9)::9 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..5)::2 - MarkupEndTag - [3..5)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [5..9)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.tspans.txt deleted file mode 100644 index 60f53566831..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren12.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [9] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.cspans.txt deleted file mode 100644 index 31c8ea8ce88..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [1] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [1] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.diag.txt deleted file mode 100644 index 063da0eb5b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'custom' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.stree.txt deleted file mode 100644 index 4ca6ee6ef67..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..8)::8 - [

                        <

                        ] - MarkupBlock - [0..8)::8 - MarkupTagHelperElement - [0..8)::8 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..4)::1 - MarkupStartTag - [3..4)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [4..8)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.tspans.txt deleted file mode 100644 index b8f64937bfd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren13.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [8] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.cspans.txt deleted file mode 100644 index 92bc9cb1dc2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (3:0,3 [8] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [8] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [76] ) -Markup span at (32:0,32 [5] ) (Accepts:Any) - Parent: Tag block at (24:0,24 [22] ) -Markup span at (55:0,55 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [76] ) -Markup span at (56:0,56 [7] ) (Accepts:Any) - Parent: Tag block at (56:0,56 [7] ) -Markup span at (63:0,63 [9] ) (Accepts:Any) - Parent: Tag block at (63:0,63 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.diag.txt deleted file mode 100644 index dba76059c7e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,33): Error RZ2009: The parent tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'custom, strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.stree.txt deleted file mode 100644 index 854aed8c29a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..76)::76 - [


                        :Hello:

                        ] - MarkupBlock - [0..76)::76 - MarkupTagHelperElement - [0..76)::76 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..72)::69 - MarkupStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[custom]; - CloseAngle;[>]; - MarkupTagHelperElement - [11..15)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [11..15)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTextLiteral - [15..16)::1 - [:] - Gen - SpanEditHandler;Accepts:Any - Text;[:]; - MarkupTagHelperElement - [16..55)::39 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [16..24)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [24..46)::22 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [24..32)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [32..37)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [37..46)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [46..55)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [55..56)::1 - [:] - Gen - SpanEditHandler;Accepts:Any - Text;[:]; - MarkupElement - [56..63)::7 - MarkupStartTag - [56..63)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupEndTag - [63..72)::9 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[custom]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [72..76)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.tspans.txt deleted file mode 100644 index bcff6cc8825..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren14.tspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -TagHelper span at (0:0,0 [76] ) - PTagHelper -TagHelper span at (11:0,11 [4] ) - BRTagHelper -TagHelper span at (16:0,16 [39] ) - StrongTagHelper -TagHelper span at (24:0,24 [22] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.cspans.txt deleted file mode 100644 index ed768b841c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) -Markup span at (11:1,6 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [17] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.stree.txt deleted file mode 100644 index e7698afb7fa..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.stree.txt +++ /dev/null @@ -1,25 +0,0 @@ -RazorDocument - [0..17)::17 - [

                        LF
                        LF

                        ] - MarkupBlock - [0..17)::17 - MarkupTagHelperElement - [0..17)::17 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..5)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTagHelperElement - [5..11)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [5..11)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [8..9)::1 - MarkupTextLiteral - [8..9)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTagHelperEndTag - [13..17)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.tspans.txt deleted file mode 100644 index e1f410f6046..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [17] ) - PTagHelper -TagHelper span at (5:1,0 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.diag.txt deleted file mode 100644 index a7c54ec3cdc..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ2010: The
                        tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.stree.txt deleted file mode 100644 index d0e1b59dd79..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..11)::11 - [


                        ] - MarkupBlock - [0..11)::11 - MarkupTagHelperElement - [0..11)::11 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..7)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [3..7)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [7..11)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.tspans.txt deleted file mode 100644 index ae1b0f8418b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [11] ) - PTagHelper -TagHelper span at (3:0,3 [4] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.cspans.txt deleted file mode 100644 index 51162d34c34..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [12] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.diag.txt deleted file mode 100644 index e4dbe01b439..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.stree.txt deleted file mode 100644 index 504b072dfbf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.stree.txt +++ /dev/null @@ -1,14 +0,0 @@ -RazorDocument - [0..12)::12 - [

                        Hello

                        ] - MarkupBlock - [0..12)::12 - MarkupTagHelperElement - [0..12)::12 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..8)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [8..12)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.tspans.txt deleted file mode 100644 index 5cd52523a95..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [12] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.cspans.txt deleted file mode 100644 index 85c1b5ca5d3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.diag.txt deleted file mode 100644 index 538e0bf30fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,5): Error RZ2010: The
                        tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'br, strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.stree.txt deleted file mode 100644 index e220712ca92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.stree.txt +++ /dev/null @@ -1,21 +0,0 @@ -RazorDocument - [0..13)::13 - [


                        ] - MarkupBlock - [0..13)::13 - MarkupTagHelperElement - [0..13)::13 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..9)::6 - MarkupStartTag - [3..9)::6 - [


                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[hr]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [9..13)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.tspans.txt deleted file mode 100644 index a947feb3b1e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [13] ) - PTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.cspans.txt deleted file mode 100644 index 5e84b178d6a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (7:0,7 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [16] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.diag.txt deleted file mode 100644 index 42060484635..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,5): Error RZ2010: The
                        tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'strong' are allowed. -(1,8): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.stree.txt deleted file mode 100644 index bbbaa92ea17..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.stree.txt +++ /dev/null @@ -1,19 +0,0 @@ -RazorDocument - [0..16)::16 - [


                        Hello

                        ] - MarkupBlock - [0..16)::16 - MarkupTagHelperElement - [0..16)::16 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..7)::4 - br[StartTagOnly] - BRTagHelper - MarkupTagHelperStartTag - [3..7)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTextLiteral - [7..12)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any - Text;[Hello]; - MarkupTagHelperEndTag - [12..16)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.tspans.txt deleted file mode 100644 index 43f281c42c3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren6.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [16] ) - PTagHelper -TagHelper span at (3:0,3 [4] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.cspans.txt deleted file mode 100644 index 7815c5f7888..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [23] ) -Markup span at (32:0,32 [9] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.diag.txt deleted file mode 100644 index 5c40a3ac802..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.diag.txt +++ /dev/null @@ -1,3 +0,0 @@ -(1,12): Error RZ2009: The parent tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong' are allowed. -(1,28): Error RZ2010: The
                        tag is not allowed by parent

                        tag helper. Only child tags with name(s) 'strong' are allowed. -(1,33): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.stree.txt deleted file mode 100644 index a26f2202b75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..45)::45 - [

                        Title:
                        Something

                        ] - MarkupBlock - [0..45)::45 - MarkupTagHelperElement - [0..45)::45 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..26)::23 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [11..17)::6 - [Title:] - Gen - SpanEditHandler;Accepts:Any - Text;[Title:]; - MarkupTagHelperEndTag - [17..26)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [26..32)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [26..32)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [29..30)::1 - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [32..41)::9 - [Something] - Gen - SpanEditHandler;Accepts:Any - Text;[Something]; - MarkupTagHelperEndTag - [41..45)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.tspans.txt deleted file mode 100644 index c28f7d8242a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren7.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [45] ) - PTagHelper -TagHelper span at (3:0,3 [23] ) - StrongTagHelper -TagHelper span at (26:0,26 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.cspans.txt deleted file mode 100644 index 7815c5f7888..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (11:0,11 [6] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [23] ) -Markup span at (32:0,32 [9] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [45] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.diag.txt deleted file mode 100644 index 97cf99a5353..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,12): Error RZ2009: The parent tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong, br' are allowed. -(1,33): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong, br' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.stree.txt deleted file mode 100644 index a26f2202b75..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.stree.txt +++ /dev/null @@ -1,35 +0,0 @@ -RazorDocument - [0..45)::45 - [

                        Title:
                        Something

                        ] - MarkupBlock - [0..45)::45 - MarkupTagHelperElement - [0..45)::45 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..26)::23 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [11..17)::6 - [Title:] - Gen - SpanEditHandler;Accepts:Any - Text;[Title:]; - MarkupTagHelperEndTag - [17..26)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperElement - [26..32)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [26..32)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [29..30)::1 - MarkupTextLiteral - [29..30)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [32..41)::9 - [Something] - Gen - SpanEditHandler;Accepts:Any - Text;[Something]; - MarkupTagHelperEndTag - [41..45)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.tspans.txt deleted file mode 100644 index c28f7d8242a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren8.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [45] ) - PTagHelper -TagHelper span at (3:0,3 [23] ) - StrongTagHelper -TagHelper span at (26:0,26 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.cspans.txt deleted file mode 100644 index 5b996a5f725..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [51] ) -Markup span at (13:0,13 [6] ) (Accepts:Any) - Parent: Tag block at (5:0,5 [23] ) -Markup span at (28:0,28 [2] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [51] ) -Markup span at (36:0,36 [11] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [51] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.diag.txt deleted file mode 100644 index 8209310bcf1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,14): Error RZ2009: The parent tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong, br' are allowed. -(1,39): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'strong, br' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.stree.txt deleted file mode 100644 index 604ea8b5e8c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..51)::51 - [

                        Title:
                        Something

                        ] - MarkupBlock - [0..51)::51 - MarkupTagHelperElement - [0..51)::51 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTextLiteral - [3..5)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [5..28)::23 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [5..13)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [13..19)::6 - [Title:] - Gen - SpanEditHandler;Accepts:Any - Text;[Title:]; - MarkupTagHelperEndTag - [19..28)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTextLiteral - [28..30)::2 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - MarkupTagHelperElement - [30..36)::6 - br[SelfClosing] - BRTagHelper - MarkupTagHelperStartTag - [30..36)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [33..34)::1 - MarkupTextLiteral - [33..34)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTextLiteral - [36..47)::11 - [ Something] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - Text;[Something]; - MarkupTagHelperEndTag - [47..51)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.tspans.txt deleted file mode 100644 index 6b47d0c8f6c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsAllowedChildren9.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [51] ) - PTagHelper -TagHelper span at (5:0,5 [23] ) - StrongTagHelper -TagHelper span at (30:0,30 [6] ) - BRTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.cspans.txt deleted file mode 100644 index 5b82e351ee1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [9] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.stree.txt deleted file mode 100644 index d0bebed030a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent1.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..17)::17 - [] - MarkupBlock - [0..17)::17 - MarkupElement - [0..17)::17 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [8..17)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.stree.txt deleted file mode 100644 index 585ba3a17c5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..24)::24 - [

                        ] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..24)::24 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..20)::17 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [11..20)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [20..24)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.tspans.txt deleted file mode 100644 index bc23211df68..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [24] ) - PTagHelper -TagHelper span at (3:0,3 [17] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.cspans.txt deleted file mode 100644 index 55c7fac46ea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (0:0,0 [5] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [5] ) -Markup span at (22:0,22 [6] ) (Accepts:Any) - Parent: Tag block at (22:0,22 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.stree.txt deleted file mode 100644 index 540608c5a6a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..28)::28 - [
                        ] - MarkupBlock - [0..28)::28 - MarkupElement - [0..28)::28 - MarkupStartTag - [0..5)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTagHelperElement - [5..22)::17 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [5..13)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [13..22)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [22..28)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.tspans.txt deleted file mode 100644 index fc33dac63f7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent3.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (5:0,5 [17] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.cspans.txt deleted file mode 100644 index 730a1aeeb4a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [8] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [8] ) -Markup span at (8:0,8 [8] ) (Accepts:Any) - Parent: Tag block at (8:0,8 [8] ) -Markup span at (16:0,16 [9] ) (Accepts:Any) - Parent: Tag block at (16:0,16 [9] ) -Markup span at (25:0,25 [9] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.stree.txt deleted file mode 100644 index c4c7affb206..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent4.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..34)::34 - [] - MarkupBlock - [0..34)::34 - MarkupElement - [0..34)::34 - MarkupStartTag - [0..8)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [8..25)::17 - MarkupStartTag - [8..16)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [16..25)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [25..34)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.cspans.txt deleted file mode 100644 index 87adb1fdcf4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (11:0,11 [8] ) (Accepts:Any) - Parent: Tag block at (11:0,11 [8] ) -Markup span at (19:0,19 [9] ) (Accepts:Any) - Parent: Tag block at (19:0,19 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.stree.txt deleted file mode 100644 index af8b35de672..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.stree.txt +++ /dev/null @@ -1,32 +0,0 @@ -RazorDocument - [0..41)::41 - [

                        ] - MarkupBlock - [0..41)::41 - MarkupTagHelperElement - [0..41)::41 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..37)::34 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [11..28)::17 - MarkupStartTag - [11..19)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [19..28)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [28..37)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [37..41)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.tspans.txt deleted file mode 100644 index f75dd01918a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedRequiredParent5.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [41] ) - PTagHelper -TagHelper span at (3:0,3 [34] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.cspans.txt deleted file mode 100644 index 000e3e842a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (7:0,7 [8] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [8] ) -Markup span at (15:0,15 [9] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.stree.txt deleted file mode 100644 index 884fbc2bab6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupElement - [7..24)::17 - MarkupStartTag - [7..15)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [15..24)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.tspans.txt deleted file mode 100644 index 507d5a1ed93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.stree.txt deleted file mode 100644 index e72021baa27..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..31)::31 - [

                        ] - MarkupBlock - [0..31)::31 - MarkupTagHelperElement - [0..31)::31 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..10)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [3..10)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupTagHelperElement - [10..27)::17 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [10..18)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [18..27)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [27..31)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.tspans.txt deleted file mode 100644 index d7fdf8d9099..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent2.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [31] ) - PTagHelper -TagHelper span at (3:0,3 [7] ) - InputTagHelper -TagHelper span at (10:0,10 [17] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.cspans.txt deleted file mode 100644 index fa4040f4e1d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [4] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.stree.txt deleted file mode 100644 index ab191504912..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.stree.txt +++ /dev/null @@ -1,27 +0,0 @@ -RazorDocument - [0..28)::28 - [


                        ] - MarkupBlock - [0..28)::28 - MarkupTagHelperElement - [0..28)::28 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..7)::4 - MarkupStartTag - [3..7)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTagHelperElement - [7..24)::17 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [7..15)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [15..24)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [24..28)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.tspans.txt deleted file mode 100644 index 73e31cf7251..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [28] ) - PTagHelper -TagHelper span at (7:0,7 [17] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.cspans.txt deleted file mode 100644 index 932e4c08478..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (6:0,6 [4] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [4] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.stree.txt deleted file mode 100644 index 305e1730469..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..35)::35 - [


                        ] - MarkupBlock - [0..35)::35 - MarkupTagHelperElement - [0..35)::35 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..14)::11 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [3..6)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [6..10)::4 - MarkupStartTag - [6..10)::4 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [10..14)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [14..31)::17 - strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [14..22)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [22..31)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [31..35)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.tspans.txt deleted file mode 100644 index 0220afb1bcf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent4.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [35] ) - PTagHelper -TagHelper span at (3:0,3 [11] ) - PTagHelper -TagHelper span at (14:0,14 [17] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.cspans.txt deleted file mode 100644 index 000e3e842a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.cspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -Markup span at (7:0,7 [8] ) (Accepts:Any) - Parent: Tag block at (7:0,7 [8] ) -Markup span at (15:0,15 [9] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.stree.txt deleted file mode 100644 index 884fbc2bab6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..24)::24 - [] - MarkupBlock - [0..24)::24 - MarkupTagHelperElement - [0..7)::7 - input[StartTagOnly] - InputTagHelper - MarkupTagHelperStartTag - [0..7)::7 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - CloseAngle;[>]; - MarkupElement - [7..24)::17 - MarkupStartTag - [7..15)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupEndTag - [15..24)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.tspans.txt deleted file mode 100644 index 507d5a1ed93..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent5.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [7] ) - InputTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.stree.txt deleted file mode 100644 index 120d5d3b737..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..26)::26 - [

                        ] - MarkupBlock - [0..26)::26 - MarkupTagHelperElement - [0..26)::26 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..12)::9 - input[SelfClosing] - InputTagHelper - MarkupTagHelperStartTag - [3..12)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[input]; - MarkupMiscAttributeContent - [9..10)::1 - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperElement - [12..22)::10 - strong[SelfClosing] - StrongTagHelper - MarkupTagHelperStartTag - [12..22)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupMiscAttributeContent - [19..20)::1 - MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [22..26)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.tspans.txt deleted file mode 100644 index 64d44d07071..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent6.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [26] ) - PTagHelper -TagHelper span at (3:0,3 [9] ) - InputTagHelper -TagHelper span at (12:0,12 [10] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.cspans.txt deleted file mode 100644 index 85c1b5ca5d3..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [6] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.stree.txt deleted file mode 100644 index ba2a0caa9a7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.stree.txt +++ /dev/null @@ -1,30 +0,0 @@ -RazorDocument - [0..23)::23 - [


                        ] - MarkupBlock - [0..23)::23 - MarkupTagHelperElement - [0..23)::23 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..9)::6 - MarkupStartTag - [3..9)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [6..7)::1 - MarkupTextLiteral - [6..7)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperElement - [9..19)::10 - strong[SelfClosing] - StrongTagHelper - MarkupTagHelperStartTag - [9..19)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupMiscAttributeContent - [16..17)::1 - MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [19..23)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.tspans.txt deleted file mode 100644 index 4148089e225..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent7.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [23] ) - PTagHelper -TagHelper span at (9:0,9 [10] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.cspans.txt deleted file mode 100644 index 42ce74cdcf2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (6:0,6 [6] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.stree.txt deleted file mode 100644 index eaf02a847ae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.stree.txt +++ /dev/null @@ -1,40 +0,0 @@ -RazorDocument - [0..30)::30 - [


                        ] - MarkupBlock - [0..30)::30 - MarkupTagHelperElement - [0..30)::30 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..16)::13 - p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [3..6)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [6..12)::6 - MarkupStartTag - [6..12)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[br]; - MarkupMiscAttributeContent - [9..10)::1 - MarkupTextLiteral - [9..10)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [12..16)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [16..26)::10 - strong[SelfClosing] - StrongTagHelper - MarkupTagHelperStartTag - [16..26)::10 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - MarkupMiscAttributeContent - [23..24)::1 - MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any - Whitespace;[ ]; - ForwardSlash;[/]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [26..30)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.tspans.txt deleted file mode 100644 index 9e2ff7f56f9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNestedVoidSelfClosingRequiredParent8.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [30] ) - PTagHelper -TagHelper span at (3:0,3 [13] ) - PTagHelper -TagHelper span at (16:0,16 [10] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.cspans.txt deleted file mode 100644 index b3958cf71ba..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (3:0,3 [2] ) (Accepts:Any) - Parent: Tag block at (3:0,3 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.diag.txt deleted file mode 100644 index 063da0eb5b0..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,4): Error RZ2009: The parent

                        tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'custom' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.stree.txt deleted file mode 100644 index c3ce3b808ec..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..9)::9 - [

                        ] - MarkupBlock - [0..9)::9 - MarkupTagHelperElement - [0..9)::9 - p[StartTagAndEndTag] - PTagHelper - CatchAllTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [3..5)::2 - MarkupEndTag - [3..5)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [5..9)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.tspans.txt deleted file mode 100644 index 742c49e5527..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAll.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [9] ) - PTagHelper - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.cspans.txt deleted file mode 100644 index 9f25e95db62..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.cspans.txt +++ /dev/null @@ -1 +0,0 @@ -Markup span at (6:0,6 [2] ) (Accepts:Any) - Parent: Tag block at (6:0,6 [2] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.diag.txt deleted file mode 100644 index ea784070ee1..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,7): Error RZ2009: The parent tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) 'custom' are allowed. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.stree.txt deleted file mode 100644 index 96f45425701..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.stree.txt +++ /dev/null @@ -1,18 +0,0 @@ -RazorDocument - [0..15)::15 - [] - MarkupBlock - [0..15)::15 - MarkupTagHelperElement - [0..15)::15 - th:p[StartTagAndEndTag] - PTagHelper - CatchAllTagHelper - MarkupTagHelperStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:p]; - CloseAngle;[>]; - MarkupElement - [6..8)::2 - MarkupEndTag - [6..8)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [8..15)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.tspans.txt deleted file mode 100644 index 9c88cfee633..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsNullTagNameWithAllowedChildrenForCatchAllWithPrefix.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (0:0,0 [15] ) - PTagHelper - CatchAllTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.diag.txt deleted file mode 100644 index 66ca144635b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,5): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.stree.txt deleted file mode 100644 index 7ceb2b793e7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.stree.txt +++ /dev/null @@ -1,12 +0,0 @@ -RazorDocument - [0..11)::11 - [

                        ] - MarkupBlock - [0..11)::11 - MarkupTagHelperElement - [0..11)::11 - p[StartTagAndEndTag] - PTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..11)::8 - strong[StartTagAndEndTag] - StrongTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.tspans.txt deleted file mode 100644 index 90c108ed6fd..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags1.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [11] ) - PTagHelper - CatchALlTagHelper -TagHelper span at (3:0,3 [8] ) - StrongTagHelper - CatchALlTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.diag.txt deleted file mode 100644 index d177eb6df7d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,2): Error RZ1034: Found a malformed 'p' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.stree.txt deleted file mode 100644 index 0fd6778b92e..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.stree.txt +++ /dev/null @@ -1,17 +0,0 @@ -RazorDocument - [0..20)::20 - [

                        ] - MarkupBlock - [0..20)::20 - MarkupTagHelperElement - [0..20)::20 - p[StartTagAndEndTag] - PTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..20)::17 - strong[StartTagAndEndTag] - StrongTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [11..20)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.tspans.txt deleted file mode 100644 index c8452905246..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags2.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [20] ) - PTagHelper - CatchALlTagHelper -TagHelper span at (3:0,3 [17] ) - StrongTagHelper - CatchALlTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.diag.txt deleted file mode 100644 index c430b77abae..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,5): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. -(1,17): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.stree.txt deleted file mode 100644 index f398f7e6219..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..23)::23 - [

                        ] - MarkupBlock - [0..23)::23 - MarkupTagHelperElement - [0..15)::15 - p[StartTagAndEndTag] - PTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [0..3)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [3..11)::8 - strong[StartTagAndEndTag] - StrongTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [3..11)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [11..15)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupTagHelperElement - [15..23)::8 - strong[StartTagAndEndTag] - StrongTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [15..23)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.tspans.txt deleted file mode 100644 index 15f95fc055d..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags3.tspans.txt +++ /dev/null @@ -1,3 +0,0 @@ -TagHelper span at (0:0,0 [15] ) - PTagHelper - CatchALlTagHelper -TagHelper span at (3:0,3 [8] ) - StrongTagHelper - CatchALlTagHelper -TagHelper span at (15:0,15 [8] ) - StrongTagHelper - CatchALlTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.cspans.txt deleted file mode 100644 index 0ddda3f56c2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [1] ) -Markup span at (13:0,13 [2] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [2] ) -Markup span at (23:0,23 [9] ) (Accepts:Any) - Parent: Tag block at (23:0,23 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.diag.txt deleted file mode 100644 index 23376ed5375..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.diag.txt +++ /dev/null @@ -1,2 +0,0 @@ -(1,18): Error RZ1035: Missing close angle for tag helper 'strong'. -(1,26): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.stree.txt deleted file mode 100644 index 7f1b3852f7a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..36)::36 - [<

                        <

                        ] - MarkupBlock - [0..36)::36 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [1..36)::35 - p[StartTagAndEndTag] - PTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [1..4)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [4..5)::1 - MarkupStartTag - [4..5)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [5..23)::18 - strong[StartTagAndEndTag] - StrongTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [5..13)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [13..15)::2 - MarkupEndTag - [13..15)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [15..23)::8 - []; - MarkupElement - [23..32)::9 - MarkupEndTag - [23..32)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [32..36)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.tspans.txt deleted file mode 100644 index a2439ab80fe..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags4.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (1:0,1 [35] ) - PTagHelper - CatchALlTagHelper -TagHelper span at (5:0,5 [18] ) - StrongTagHelper - CatchALlTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.cspans.txt deleted file mode 100644 index 6b5900843d6..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.cspans.txt +++ /dev/null @@ -1,4 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [1] ) -Markup span at (13:0,13 [2] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [2] ) -Markup span at (24:0,24 [9] ) (Accepts:Any) - Parent: Tag block at (24:0,24 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.diag.txt deleted file mode 100644 index 2ec0cc5b469..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,27): Error RZ1034: Found a malformed 'strong' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.stree.txt deleted file mode 100644 index de50b379ce8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.stree.txt +++ /dev/null @@ -1,44 +0,0 @@ -RazorDocument - [0..37)::37 - [<

                        <

                        ] - MarkupBlock - [0..37)::37 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [1..37)::36 - p[StartTagAndEndTag] - PTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [1..4)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [4..5)::1 - MarkupStartTag - [4..5)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [5..24)::19 - strong[StartTagAndEndTag] - StrongTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [5..13)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [13..15)::2 - MarkupEndTag - [13..15)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [15..24)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupElement - [24..33)::9 - MarkupEndTag - [24..33)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [33..37)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.tspans.txt deleted file mode 100644 index 4ba2086e2d2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags5.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (1:0,1 [36] ) - PTagHelper - CatchALlTagHelper -TagHelper span at (5:0,5 [19] ) - StrongTagHelper - CatchALlTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.cspans.txt deleted file mode 100644 index f84fc1d9ebb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.cspans.txt +++ /dev/null @@ -1,5 +0,0 @@ -Markup span at (0:0,0 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [1] ) -Markup span at (4:0,4 [1] ) (Accepts:Any) - Parent: Tag block at (4:0,4 [1] ) -Markup span at (13:0,13 [2] ) (Accepts:Any) - Parent: Tag block at (13:0,13 [2] ) -Markup span at (15:0,15 [1] ) (Accepts:Any) - Parent: Tag block at (15:0,15 [1] ) -Markup span at (25:0,25 [9] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.diag.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.diag.txt deleted file mode 100644 index 593733688cb..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.diag.txt +++ /dev/null @@ -1 +0,0 @@ -(1,28): Error RZ1034: Found a malformed 'custom' tag helper. Tag helpers must have a start and end tag or be self closing. diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.stree.txt deleted file mode 100644 index 22b0433adb7..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.stree.txt +++ /dev/null @@ -1,49 +0,0 @@ -RazorDocument - [0..38)::38 - [<

                        <

                        ] - MarkupBlock - [0..38)::38 - MarkupElement - [0..1)::1 - MarkupStartTag - [0..1)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [1..38)::37 - p[StartTagAndEndTag] - PTagHelper - CatchALlTagHelper - MarkupTagHelperStartTag - [1..4)::3 - [

                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[p]; - CloseAngle;[>]; - MarkupElement - [4..5)::1 - MarkupStartTag - [4..5)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperElement - [5..25)::20 - custom[StartTagAndEndTag] - CatchALlTagHelper - MarkupTagHelperStartTag - [5..13)::8 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[custom]; - CloseAngle;[>]; - MarkupElement - [13..15)::2 - MarkupEndTag - [13..15)::2 - [ - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[]; - CloseAngle;[]; - MarkupElement - [15..16)::1 - MarkupStartTag - [15..16)::1 - [<] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[]; - CloseAngle;[]; - MarkupTagHelperEndTag - [16..25)::9 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[custom]; - CloseAngle;[>]; - MarkupElement - [25..34)::9 - MarkupEndTag - [25..34)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[custom]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [34..38)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.tspans.txt deleted file mode 100644 index 69e6d665e95..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsPartialRequiredParentTags6.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (1:0,1 [37] ) - PTagHelper - CatchALlTagHelper -TagHelper span at (5:0,5 [20] ) - CatchALlTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt deleted file mode 100644 index d4340fbaf92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..36)::36 - [] - MarkupBlock - [0..36)::36 - MarkupTagHelperElement - [0..36)::36 - th:p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:p]; - CloseAngle;[>]; - MarkupTagHelperElement - [6..29)::23 - th:strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [6..17)::11 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [17..29)::12 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [29..36)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt deleted file mode 100644 index 3d7cf53630c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildren.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [36] ) - PTagHelper -TagHelper span at (6:0,6 [23] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.cspans.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.stree.txt deleted file mode 100644 index d4340fbaf92..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.stree.txt +++ /dev/null @@ -1,22 +0,0 @@ -RazorDocument - [0..36)::36 - [] - MarkupBlock - [0..36)::36 - MarkupTagHelperElement - [0..36)::36 - th:p[StartTagAndEndTag] - PTagHelper - MarkupTagHelperStartTag - [0..6)::6 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:p]; - CloseAngle;[>]; - MarkupTagHelperElement - [6..29)::23 - th:strong[StartTagAndEndTag] - StrongTagHelper - MarkupTagHelperStartTag - [6..17)::11 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[th:strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [17..29)::12 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:strong]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [29..36)::7 - [] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[th:p]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.tspans.txt deleted file mode 100644 index 3d7cf53630c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelperPrefixAndAllowedChildrenAndRequireParent.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (0:0,0 [36] ) - PTagHelper -TagHelper span at (6:0,6 [23] ) - StrongTagHelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.cspans.txt deleted file mode 100644 index b5c72f9c7c8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.cspans.txt +++ /dev/null @@ -1,6 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (7:0,7 [7] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (34:0,34 [9] ) (Accepts:Any) - Parent: Tag block at (34:0,34 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.stree.txt deleted file mode 100644 index f96a8ae57bf..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.stree.txt +++ /dev/null @@ -1,37 +0,0 @@ -RazorDocument - [0..43)::43 - [] - MarkupBlock - [0..43)::43 - MarkupElement - [0..43)::43 - MarkupStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.tspans.txt deleted file mode 100644 index d4c27b6e7a4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags1.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (25:0,25 [9] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.cspans.txt deleted file mode 100644 index 8bd8e1509f4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [58] ) -Markup span at (7:0,7 [5] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [15] ) -Markup span at (12:0,12 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [15] ) -Markup span at (21:0,21 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [15] ) -Markup span at (22:0,22 [7] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [17] ) -Markup span at (29:0,29 [9] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [17] ) -Markup span at (38:0,38 [1] ) (Accepts:Any) - Parent: Markup block at (22:0,22 [17] ) -Markup span at (39:0,39 [8] ) (Accepts:Any) - Parent: Markup block at (39:0,39 [18] ) -Markup span at (47:0,47 [9] ) (Accepts:Any) - Parent: Markup block at (39:0,39 [18] ) -Markup span at (56:0,56 [1] ) (Accepts:Any) - Parent: Markup block at (39:0,39 [18] ) -Markup span at (57:0,57 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [58] ) -Markup span at (67:0,67 [9] ) (Accepts:Any) - Parent: Tag block at (67:0,67 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt deleted file mode 100644 index 96cec559788..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt +++ /dev/null @@ -1,65 +0,0 @@ -RazorDocument - [0..76)::76 - [] - MarkupBlock - [0..76)::76 - MarkupElement - [0..76)::76 - MarkupStartTag - [0..58)::58 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.tspans.txt deleted file mode 100644 index 3621fc53bf9..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (58:0,58 [9] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.cspans.txt deleted file mode 100644 index 2d9ed79313c..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.cspans.txt +++ /dev/null @@ -1,12 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (7:0,7 [7] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (28:0,28 [7] ) (Accepts:Any) - Parent: Tag block at (28:0,28 [25] ) -Markup span at (35:0,35 [7] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [17] ) -Markup span at (42:0,42 [9] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [17] ) -Markup span at (51:0,51 [1] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [17] ) -Markup span at (52:0,52 [1] ) (Accepts:Any) - Parent: Tag block at (28:0,28 [25] ) -Markup span at (62:0,62 [9] ) (Accepts:Any) - Parent: Tag block at (62:0,62 [9] ) -Markup span at (75:0,75 [9] ) (Accepts:Any) - Parent: Tag block at (75:0,75 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.stree.txt deleted file mode 100644 index 486a5639200..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.stree.txt +++ /dev/null @@ -1,73 +0,0 @@ -RazorDocument - [0..84)::84 - [

                        ] - MarkupBlock - [0..84)::84 - MarkupElement - [0..84)::84 - MarkupStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [71..75)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [75..84)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.tspans.txt deleted file mode 100644 index 5f9f687beea..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags3.tspans.txt +++ /dev/null @@ -1,2 +0,0 @@ -TagHelper span at (25:0,25 [50] ) - ptaghelper -TagHelper span at (53:0,53 [9] ) - inputtaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.cspans.txt deleted file mode 100644 index b8ce9ee314a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.cspans.txt +++ /dev/null @@ -1,14 +0,0 @@ -Markup span at (0:0,0 [7] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (7:0,7 [7] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (14:0,14 [9] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (23:0,23 [1] ) (Accepts:Any) - Parent: Markup block at (7:0,7 [17] ) -Markup span at (24:0,24 [1] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [25] ) -Markup span at (28:0,28 [7] ) (Accepts:Any) - Parent: Tag block at (28:0,28 [26] ) -Markup span at (35:0,35 [7] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [18] ) -Markup span at (42:0,42 [5] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [18] ) -Markup span at (47:0,47 [5] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [18] ) -Markup span at (52:0,52 [1] ) (Accepts:Any) - Parent: Markup block at (35:0,35 [18] ) -Markup span at (53:0,53 [1] ) (Accepts:Any) - Parent: Tag block at (28:0,28 [26] ) -Markup span at (54:0,54 [9] ) (Accepts:Any) - Parent: Tag block at (25:0,25 [51] ) -Markup span at (63:0,63 [9] ) (Accepts:Any) - Parent: Tag block at (63:0,63 [9] ) -Markup span at (76:0,76 [9] ) (Accepts:Any) - Parent: Tag block at (76:0,76 [9] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.stree.txt deleted file mode 100644 index 29d9adaaa4a..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.stree.txt +++ /dev/null @@ -1,74 +0,0 @@ -RazorDocument - [0..85)::85 - [

                        ] - MarkupBlock - [0..85)::85 - MarkupElement - [0..85)::85 - MarkupStartTag - [0..25)::25 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; - MarkupTagHelperEndTag - [72..76)::4 - [

                        ] - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[p]; - CloseAngle;[>]; - MarkupEndTag - [76..85)::9 - [] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[script]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.tspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.tspans.txt deleted file mode 100644 index 31ab64ca0b4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags4.tspans.txt +++ /dev/null @@ -1 +0,0 @@ -TagHelper span at (25:0,25 [51] ) - ptaghelper diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.cspans.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.cspans.txt deleted file mode 100644 index 64df8a7ddd2..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.cspans.txt +++ /dev/null @@ -1,18 +0,0 @@ -Markup span at (0:0,0 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Markup span at (2:1,0 [5] ) (Accepts:Any) - Parent: Tag block at (2:1,0 [5] ) -Markup span at (7:1,5 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Markup span at (9:2,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Transition span at (13:2,4 [1] ) (Accepts:None) - Parent: Expression block at (13:2,4 [7] ) -Code span at (14:2,5 [6] ) (Accepts:NonWhitespace) - Parent: Expression block at (13:2,4 [7] ) -Markup span at (20:2,11 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Markup span at (22:3,0 [6] ) (Accepts:Any) - Parent: Tag block at (22:3,0 [6] ) -Markup span at (28:3,6 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Markup span at (30:4,0 [5] ) (Accepts:Any) - Parent: Tag block at (30:4,0 [5] ) -Markup span at (35:4,5 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Markup span at (37:5,0 [4] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Transition span at (41:5,4 [1] ) (Accepts:None) - Parent: Expression block at (41:5,4 [9] ) -MetaCode span at (42:5,5 [1] ) (Accepts:None) - Parent: Expression block at (41:5,4 [9] ) -Code span at (43:5,6 [6] ) (Accepts:Any) - Parent: Expression block at (41:5,4 [9] ) -MetaCode span at (49:5,12 [1] ) (Accepts:None) - Parent: Expression block at (41:5,4 [9] ) -Markup span at (50:5,13 [2] ) (Accepts:Any) - Parent: Markup block at (0:0,0 [58] ) -Markup span at (52:6,0 [6] ) (Accepts:Any) - Parent: Tag block at (52:6,0 [6] ) diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.stree.txt b/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.stree.txt deleted file mode 100644 index 6fc0095f30b..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/ParserTests/WhiteSpaceRewriterTest/Moves_Whitespace_Preceeding_ExpressionBlock_To_Parent_Block.stree.txt +++ /dev/null @@ -1,58 +0,0 @@ -RazorDocument - [0..58)::58 - [LF
                        LF @resultLF
                        LF
                        LF @(result)LF
                        ] - MarkupBlock - [0..58)::58 - MarkupTextLiteral - [0..2)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [2..28)::26 - MarkupStartTag - [2..7)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [7..9)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [9..13)::4 - [ ] - Whitespace;[ ]; - CSharpCodeBlock - [13..20)::7 - CSharpImplicitExpression - [13..20)::7 - CSharpTransition - [13..14)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpImplicitExpressionBody - [14..20)::6 - CSharpCodeBlock - [14..20)::6 - CSharpExpressionLiteral - [14..20)::6 - [result] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 - Identifier;[result]; - MarkupTextLiteral - [20..22)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [22..28)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [28..30)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupElement - [30..58)::28 - MarkupStartTag - [30..35)::5 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - Text;[div]; - CloseAngle;[>]; - MarkupTextLiteral - [35..37)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupTextLiteral - [37..41)::4 - [ ] - Whitespace;[ ]; - CSharpCodeBlock - [41..50)::9 - CSharpExplicitExpression - [41..50)::9 - CSharpTransition - [41..42)::1 - Gen - SpanEditHandler;Accepts:None - Transition;[@]; - CSharpExplicitExpressionBody - [42..50)::8 - RazorMetaCode - [42..43)::1 - Gen - SpanEditHandler;Accepts:None - LeftParenthesis;[(]; - CSharpCodeBlock - [43..49)::6 - CSharpExpressionLiteral - [43..49)::6 - [result] - Gen - SpanEditHandler;Accepts:Any - Identifier;[result]; - RazorMetaCode - [49..50)::1 - Gen - SpanEditHandler;Accepts:None - RightParenthesis;[)]; - MarkupTextLiteral - [50..52)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any - NewLine;[LF]; - MarkupEndTag - [52..58)::6 - [
                        ] - Gen - SpanEditHandler;Accepts:Any - OpenAngle;[<]; - ForwardSlash;[/]; - Text;[div]; - CloseAngle;[>]; diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/Source/BasicMarkup.cshtml b/src/Razor/test/RazorLanguage.Test/TestFiles/Source/BasicMarkup.cshtml deleted file mode 100644 index 384a7a6deb4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/Source/BasicMarkup.cshtml +++ /dev/null @@ -1,8 +0,0 @@ - - - This is the title. - - - Link to Contoso. - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestFiles/nested-1000.html b/src/Razor/test/RazorLanguage.Test/TestFiles/nested-1000.html deleted file mode 100644 index 3c35bdbcbe5..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestFiles/nested-1000.html +++ /dev/null @@ -1,2002 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Razor/test/RazorLanguage.Test/TestRazorProject.cs b/src/Razor/test/RazorLanguage.Test/TestRazorProject.cs deleted file mode 100644 index 1c4faa7b5b8..00000000000 --- a/src/Razor/test/RazorLanguage.Test/TestRazorProject.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class TestRazorProject : RazorProject - { - private readonly Dictionary _lookup; - - public TestRazorProject() - : this(new RazorProjectItem[0]) - { - } - - public TestRazorProject(IList items) - { - _lookup = items.ToDictionary(item => item.FilePath); - } - - public override IEnumerable EnumerateItems(string basePath) - { - throw new NotImplementedException(); - } - - [Obsolete("Use GetItem(string path, string fileKind) instead.")] - public override RazorProjectItem GetItem(string path) - { - return GetItem(path, fileKind: null); - } - - public override RazorProjectItem GetItem(string path, string fileKind) - { - if (!_lookup.TryGetValue(path, out var value)) - { - value = new NotFoundProjectItem("", path, fileKind); - } - - return value; - } - - public new string NormalizeAndEnsureValidPath(string path) => base.NormalizeAndEnsureValidPath(path); - } -} diff --git a/src/Razor/test/RazorLanguage.Test/VirtualRazorProjectFileSystemTest.cs b/src/Razor/test/RazorLanguage.Test/VirtualRazorProjectFileSystemTest.cs deleted file mode 100644 index 227ed02e072..00000000000 --- a/src/Razor/test/RazorLanguage.Test/VirtualRazorProjectFileSystemTest.cs +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Xunit; -using DirectoryNode = Microsoft.AspNetCore.Razor.Language.VirtualRazorProjectFileSystem.DirectoryNode; -using FileNode = Microsoft.AspNetCore.Razor.Language.VirtualRazorProjectFileSystem.FileNode; - -namespace Microsoft.AspNetCore.Razor.Language -{ - public class VirtualRazorProjectFileSystemTest - { - [Fact] - public void GetItem_ReturnsNotFound_IfFileDoesNotExistInRoot() - { - // Arrange - var path = "/root-file.cshtml"; - var projectSystem = new VirtualRazorProjectFileSystem(); - - // Act - projectSystem.Add(new TestRazorProjectItem("/different-file.cshtml")); - var result = projectSystem.GetItem(path, fileKind: null); - - // Assert - Assert.False(result.Exists); - } - - [Fact] - public void GetItem_ReturnsItemAddedToRoot() - { - // Arrange - var path = "/root-file.cshtml"; - var projectSystem = new VirtualRazorProjectFileSystem(); - var projectItem = new TestRazorProjectItem(path); - - // Act - projectSystem.Add(projectItem); - var actual = projectSystem.GetItem(path, fileKind: null); - - // Assert - Assert.Same(projectItem, actual); - } - - [Theory] - [InlineData("/subDirectory/file.cshtml")] - [InlineData("/subDirectory/dir2/file.cshtml")] - [InlineData("/subDirectory/dir2/dir3/file.cshtml")] - public void GetItem_ReturnsItemAddedToNestedDirectory(string path) - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - var projectItem = new TestRazorProjectItem(path); - - // Act - projectSystem.Add(projectItem); - var actual = projectSystem.GetItem(path, fileKind: null); - - // Assert - Assert.Same(projectItem, actual); - } - - [Fact] - public void GetItem_ReturnsNotFound_WhenNestedDirectoryDoesNotExist() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - - // Act - var actual = projectSystem.GetItem("/subDirectory/dir3/file.cshtml", fileKind: null); - - // Assert - Assert.False(actual.Exists); - } - - [Fact] - public void GetItem_ReturnsNotFound_WhenNestedDirectoryDoesNotExist_AndPeerDirectoryExists() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - var projectItem = new TestRazorProjectItem("/subDirectory/dir2/file.cshtml"); - - // Act - projectSystem.Add(projectItem); - var actual = projectSystem.GetItem("/subDirectory/dir3/file.cshtml", fileKind: null); - - // Assert - Assert.False(actual.Exists); - } - - [Fact] - public void GetItem_ReturnsNotFound_WhenFileDoesNotExistInNestedDirectory() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - var projectItem = new TestRazorProjectItem("/subDirectory/dir2/file.cshtml"); - - // Act - projectSystem.Add(projectItem); - var actual = projectSystem.GetItem("/subDirectory/dir2/file2.cshtml", fileKind: null); - - // Assert - Assert.False(actual.Exists); - } - - [Fact] - public void EnumerateItems_AtRoot_ReturnsAllFiles() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - var file1 = new TestRazorProjectItem("/subDirectory/dir2/file1.cshtml"); - var file2 = new TestRazorProjectItem("/file2.cshtml"); - var file3 = new TestRazorProjectItem("/dir3/file3.cshtml"); - var file4 = new TestRazorProjectItem("/subDirectory/file4.cshtml"); - projectSystem.Add(file1); - projectSystem.Add(file2); - projectSystem.Add(file3); - projectSystem.Add(file4); - - // Act - var result = projectSystem.EnumerateItems("/"); - - // Assert - Assert.Equal(new[] { file2, file4, file1, file3 }, result); - } - - [Fact] - public void EnumerateItems_AtSubDirectory_ReturnsAllFilesUnderDirectoryHierarchy() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - var file1 = new TestRazorProjectItem("/subDirectory/dir2/file1.cshtml"); - var file2 = new TestRazorProjectItem("/file2.cshtml"); - var file3 = new TestRazorProjectItem("/dir3/file3.cshtml"); - var file4 = new TestRazorProjectItem("/subDirectory/file4.cshtml"); - projectSystem.Add(file1); - projectSystem.Add(file2); - projectSystem.Add(file3); - projectSystem.Add(file4); - - // Act - var result = projectSystem.EnumerateItems("/subDirectory"); - - // Assert - Assert.Equal(new[] { file4, file1 }, result); - } - - [Fact] - public void EnumerateItems_WithNoFilesInRoot_ReturnsEmptySequence() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - - // Act - var result = projectSystem.EnumerateItems("/"); - - // Assert - Assert.Empty(result); - } - - [Fact] - public void EnumerateItems_ForNonExistentDirectory_ReturnsEmptySequence() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - projectSystem.Add(new TestRazorProjectItem("/subDirectory/dir2/file1.cshtml")); - projectSystem.Add(new TestRazorProjectItem("/file2.cshtml")); - - // Act - var result = projectSystem.EnumerateItems("/dir3"); - - // Assert - Assert.Empty(result); - } - - [Fact] - public void GetHierarchicalItems_Works() - { - // Arrange - var projectSystem = new VirtualRazorProjectFileSystem(); - var viewImport1 = new TestRazorProjectItem("/_ViewImports.cshtml"); - var viewImport2 = new TestRazorProjectItem("/Views/Home/_ViewImports.cshtml"); - projectSystem.Add(viewImport1); - projectSystem.Add(viewImport2); - - // Act - var items = projectSystem.FindHierarchicalItems("/", "/Views/Home/Index.cshtml", "_ViewImports.cshtml"); - - // Assert - Assert.Collection( - items, - item => Assert.Same(viewImport2, item), - item => Assert.False(item.Exists), - item => Assert.Same(viewImport1, item)); - } - - [Fact] - public void DirectoryNode_GetDirectory_ReturnsRoot() - { - // Arrange - var root = new DirectoryNode("/"); - - // Act - var result = root.GetDirectory("/"); - - // Assert - Assert.Same(root, result); - } - - [Fact] - public void DirectoryNode_GetDirectory_ReturnsNull_IfDirectoryDoesNotExist() - { - // Arrange - var root = new DirectoryNode("/"); - - // Act - var result = root.GetDirectory("/does-not/exist"); - - // Assert - Assert.Null(result); - } - - [Fact] - public void DirectoryNode_AddFile_CanAddToRoot() - { - // Arrange - var root = new DirectoryNode("/"); - var projectItem = new TestRazorProjectItem("/File.txt"); - - // Act - root.AddFile(new FileNode("/File.txt", projectItem)); - - // Assert - Assert.Empty(root.Directories); - Assert.Collection( - root.Files, - file => Assert.Same(projectItem, file.ProjectItem)); - } - - [Fact] - public void DirectoryNode_AddFile_CanAddToNestedDirectory() - { - // Arrange - var root = new DirectoryNode("/"); - var projectItem = new TestRazorProjectItem("/Pages/Shared/_Layout.cshtml"); - - // Act - root.AddFile(new FileNode("/Pages/Shared/_Layout.cshtml", projectItem)); - - // Assert - Assert.Collection( - root.Directories, - directory => - { - Assert.Equal("/Pages/", directory.Path); - Assert.Empty(directory.Files); - - Assert.Collection( - directory.Directories, - subDirectory => - { - Assert.Equal("/Pages/Shared/", subDirectory.Path); - Assert.Collection( - subDirectory.Files, - file => Assert.Same(projectItem, file.ProjectItem)); - }); - }); - } - - [Fact] - public void DirectoryNode_AddMultipleFiles_ToSameDirectory() - { - // Arrange - var root = new DirectoryNode("/"); - var projectItem1 = new TestRazorProjectItem("/Pages/Shared/_Layout.cshtml"); - var projectItem2 = new TestRazorProjectItem("/Pages/Shared/_Partial.cshtml"); - - // Act - root.AddFile(new FileNode(projectItem1.FilePath, projectItem1)); - root.AddFile(new FileNode(projectItem2.FilePath, projectItem2)); - - // Assert - Assert.Collection( - root.Directories, - directory => - { - Assert.Equal("/Pages/", directory.Path); - Assert.Empty(directory.Files); - - Assert.Collection( - directory.Directories, - subDirectory => - { - Assert.Equal("/Pages/Shared/", subDirectory.Path); - Assert.Collection( - subDirectory.Files, - file => Assert.Same(projectItem1, file.ProjectItem), - file => Assert.Same(projectItem2, file.ProjectItem)); - }); - }); - } - - [Fact] - public void DirectoryNode_AddsFiles_ToSiblingDirectories() - { - // Arrange - var root = new DirectoryNode("/"); - var projectItem1 = new TestRazorProjectItem("/Pages/Products/Index.cshtml"); - var projectItem2 = new TestRazorProjectItem("/Pages/Accounts/About.cshtml"); - - // Act - root.AddFile(new FileNode(projectItem1.FilePath, projectItem1)); - root.AddFile(new FileNode(projectItem2.FilePath, projectItem2)); - - // Assert - Assert.Collection( - root.Directories, - directory => - { - Assert.Equal("/Pages/", directory.Path); - Assert.Empty(directory.Files); - - Assert.Collection( - directory.Directories, - subDirectory => - { - Assert.Equal("/Pages/Products/", subDirectory.Path); - Assert.Collection( - subDirectory.Files, - file => Assert.Same(projectItem1, file.ProjectItem)); - }, - subDirectory => - { - Assert.Equal("/Pages/Accounts/", subDirectory.Path); - Assert.Collection( - subDirectory.Files, - file => Assert.Same(projectItem2, file.ProjectItem)); - }); - }); - } - - [Fact] - public void DirectoryNode_GetItem_ReturnsItemAtRoot() - { - // Arrange - var root = new DirectoryNode("/"); - var projectItem = new TestRazorProjectItem("/_ViewStart.cshtml"); - root.AddFile(new FileNode(projectItem.FilePath, projectItem)); - - // Act - var result = root.GetItem(projectItem.FilePath); - - // Assert - Assert.Same(result, projectItem); - } - - [Fact] - public void DirectoryNode_GetItem_WhenFilePathSharesSameNameAsSiblingDirectory() - { - // Arrange - var root = new DirectoryNode("/"); - var projectItem1 = new TestRazorProjectItem("/Home.cshtml"); - var projectItem2 = new TestRazorProjectItem("/Home/About.cshtml"); - root.AddFile(new FileNode(projectItem1.FilePath, projectItem1)); - root.AddFile(new FileNode(projectItem2.FilePath, projectItem2)); - - // Act - var result = root.GetItem(projectItem1.FilePath); - - // Assert - Assert.Same(result, projectItem1); - } - - [Fact] - public void DirectoryNode_GetItem_WhenFileNameIsSameAsDirectoryName() - { - // Arrange - var projectItem1 = new TestRazorProjectItem("/Home/Home.cshtml"); - var projectItem2 = new TestRazorProjectItem("/Home/About.cshtml"); - var root = new DirectoryNode("/") - { - Directories = - { - new DirectoryNode("/Home/") - { - Files = - { - new FileNode(projectItem1.FilePath, projectItem1), - new FileNode(projectItem2.FilePath, projectItem2), - } - } - }, - }; - - // Act - var result = root.GetItem(projectItem1.FilePath); - - // Assert - Assert.Same(result, projectItem1); - } - } -} diff --git a/src/Razor/test/RazorLanguage.Test/xunit.runner.json b/src/Razor/test/RazorLanguage.Test/xunit.runner.json deleted file mode 100644 index fcf172c8fc4..00000000000 --- a/src/Razor/test/RazorLanguage.Test/xunit.runner.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "methodDisplay": "method", - "shadowCopy": false -} \ No newline at end of file diff --git a/src/Razor/test/RazorPageGenerator.Test/RazorPageGenerator.Test.csproj b/src/Razor/test/RazorPageGenerator.Test/RazorPageGenerator.Test.csproj deleted file mode 100644 index 3dd3f4992dd..00000000000 --- a/src/Razor/test/RazorPageGenerator.Test/RazorPageGenerator.Test.csproj +++ /dev/null @@ -1,30 +0,0 @@ - - - - $(DefaultNetCoreTargetFramework) - - $(DefineConstants);GENERATE_BASELINES - $(DefineConstants);__RemoveThisBitTo__GENERATE_BASELINES - $(DefaultItemExcludes);TestFiles\**\* - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Razor/test/RazorPageGenerator.Test/RazorPageGeneratorTest.cs b/src/Razor/test/RazorPageGenerator.Test/RazorPageGeneratorTest.cs deleted file mode 100644 index 613df16b0cc..00000000000 --- a/src/Razor/test/RazorPageGenerator.Test/RazorPageGeneratorTest.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.IO; -using Microsoft.AspNetCore.Razor.Language; -using Xunit; - -namespace RazorPageGenerator.Test -{ - public class RazorPageGeneratorTest - { - -#if GENERATE_BASELINES - private static readonly bool GenerateBaselines = true; -#else - private static readonly bool GenerateBaselines = false; -#endif - - - [Fact] - public void Generator_ReturnsNonZeroExitCode_WhenArgsAreNotSupplied() - { - // Arrange - var args = new string[0]; - - // Act - var exitCode = Program.Main(args); - - // Assert - Assert.NotEqual(0, exitCode); - } - - [Fact] - public void Generator_GeneratesCodeForFilesIntheViewsDirectory() - { - // Arrange - var projectDirectory = TestProject.GetProjectDirectory(GetType()); - var projectEngine = Program.CreateProjectEngine("Microsoft.AspNetCore.TestGenerated", projectDirectory); - - // Act - var results = Program.MainCore(projectEngine, projectDirectory); - - // Assert - Assert.Collection(results, - result => - { - var expectedPath = Path.Combine(projectDirectory, "TestFiles", "Views", "TestView.Designer.cs"); - var expectedFile = Path.ChangeExtension(expectedPath, ".expected.cs"); - Assert.Equal(expectedPath, result.FilePath); - - var generatedCode = result.GeneratedCode - .Replace("\r", "") - .Replace("\n", "\r\n") - .Replace("\\r", "") - .Replace("\\n", "\\r\\n"); - - if (GenerateBaselines) - { - File.WriteAllText(expectedFile, generatedCode); - } - else - { - var expectedContent = File.ReadAllText(expectedFile).Replace("\r", "").Replace("\n", "\r\n"); - Assert.Equal(expectedContent, generatedCode); - } - }); - } - } -} diff --git a/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestFile.js b/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestFile.js deleted file mode 100644 index 694294cae22..00000000000 --- a/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestFile.js +++ /dev/null @@ -1 +0,0 @@ -window.alert("Hello world"); \ No newline at end of file diff --git a/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.Designer.expected.cs b/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.Designer.expected.cs deleted file mode 100644 index cef031e53c8..00000000000 --- a/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.Designer.expected.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -#pragma warning disable 1591 -namespace Microsoft.AspNetCore.TestGenerated -{ - #line hidden - using System; - using System.Threading.Tasks; - internal class TestView : Microsoft.Extensions.RazorViews.BaseView - { - #pragma warning disable 1998 - public async override global::System.Threading.Tasks.Task ExecuteAsync() - { - WriteLiteral("The time is "); -#nullable restore -#line 1 "TestView.cshtml" - Write(DateTime.UtcNow); - -#line default -#line hidden -#nullable disable - WriteLiteral("\r\nwindow.alert(\"Hello world\");\r\nFooter goes here."); - } - #pragma warning restore 1998 - } -} -#pragma warning restore 1591 diff --git a/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.cshtml b/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.cshtml deleted file mode 100644 index 75074862cce..00000000000 --- a/src/Razor/test/RazorPageGenerator.Test/TestFiles/Views/TestView.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -The time is @DateTime.UtcNow -<%$ include: TestFile.js %> -Footer goes here. \ No newline at end of file diff --git a/src/Razor/test/RazorPageGenerator.Test/xunit.runner.json b/src/Razor/test/RazorPageGenerator.Test/xunit.runner.json deleted file mode 100644 index fcf172c8fc4..00000000000 --- a/src/Razor/test/RazorPageGenerator.Test/xunit.runner.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "methodDisplay": "method", - "shadowCopy": false -} \ No newline at end of file From dea15b6276dc728f8f4bf07685da06ef2a6e1eab Mon Sep 17 00:00:00 2001 From: John Luo Date: Wed, 27 May 2020 01:36:27 -0700 Subject: [PATCH 02/15] Reference migrated projects as packages --- .github/CODEOWNERS | 2 - eng/AfterSigning.targets | 2 +- eng/Publishing.props | 2 +- eng/Version.Details.xml | 70 +++++--- eng/Versions.props | 28 +-- src/Razor/Razor.NoVsix.sln | 165 ------------------ src/Razor/Razor.Slim.sln | 109 +----------- src/Razor/Razor.sln | 165 ------------------ ...rosoft.AspNetCore.Razor.Performance.csproj | 2 +- ...NetCore.Razor.LanguageServer.Common.csproj | 6 +- ...osoft.CodeAnalysis.Razor.Workspaces.csproj | 5 +- ...Microsoft.CodeAnalysis.Remote.Razor.csproj | 2 +- ...VisualStudio.LanguageServices.Razor.csproj | 3 +- .../Rules/RazorGenerateWithTargetPath.cs | 6 +- ...crosoft.VisualStudio.Mac.RazorAddin.csproj | 28 +-- ...crosoft.VisualStudio.RazorExtension.csproj | 15 +- ...rosoft.AspNetCore.Razor.Test.Common.csproj | 4 +- .../Microsoft.CodeAnalysis.Razor.Test.csproj | 4 +- ...alysis.Razor.Workspaces.Test.Common.csproj | 2 +- ...soft.VisualStudio.Editor.Razor.Test.csproj | 6 +- ...lStudio.LanguageServices.Razor.Test.csproj | 4 +- src/Razor/test/testapps/Directory.Build.props | 14 +- 22 files changed, 122 insertions(+), 522 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1518caaa4e8..32915d1d4b6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,5 +8,3 @@ /eng/Versions.props @dotnet-maestro-bot @dougbu /eng/Version.Details.xml @dotnet-maestro-bot @dougbu /src/Razor/ @ajaybhargavb @NTaylorMullen @ryanbrandenburg @TanayParikh @noahbkim -/src/Razor/src/Microsoft.NET.Sdk.Razor/ @ajaybhargavb @NTaylorMullen @pranavkm @javiercn -/src/Razor/test/Microsoft.NET.Sdk.Razor.Test/ @ajaybhargavb @NTaylorMullen @pranavkm @javiercn diff --git a/eng/AfterSigning.targets b/eng/AfterSigning.targets index 88a266e8bc9..71fddd49f57 100644 --- a/eng/AfterSigning.targets +++ b/eng/AfterSigning.targets @@ -11,7 +11,7 @@ - diff --git a/eng/Publishing.props b/eng/Publishing.props index 589acafdd6c..435e0f6192d 100644 --- a/eng/Publishing.props +++ b/eng/Publishing.props @@ -18,7 +18,7 @@ - diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index e7fb94adccd..ebbdc194858 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,62 +1,86 @@ - + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d + + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d + + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d + + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d + + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d + + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - + https://github.com/dotnet/runtime - 567a7a2bb62e180ddb224ba820297e48b1879df1 + c44dc40b763b7c74012622a0a6120cd8ffa35ce4 https://github.com/dotnet/arcade 898e51ed5fdcc4871087ac5754ca9056e58e575d - + https://github.com/dotnet/roslyn f598328fb99345233f52a67f5a65cd39affa9fd4 diff --git a/eng/Versions.props b/eng/Versions.props index e61ac7b5624..0ed7213901c 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -48,17 +48,23 @@ --> - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 - 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20271.10 3.7.0-3.20271.4 diff --git a/src/Razor/Razor.NoVsix.sln b/src/Razor/Razor.NoVsix.sln index 029fac0787c..803f6a3946d 100644 --- a/src/Razor/Razor.NoVsix.sln +++ b/src/Razor/Razor.NoVsix.sln @@ -10,40 +10,22 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3C0D6505-79B EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{92463391-81BE-462B-AC3C-78C6C760741F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorPageGenerator", "src\RazorPageGenerator\RazorPageGenerator.csproj", "{7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Language", "src\Microsoft.AspNetCore.Razor.Language\Microsoft.AspNetCore.Razor.Language.csproj", "{932F3C9C-A6C0-40D3-BA50-9309886242FC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Language.Test", "test\RazorLanguage.Test\Microsoft.AspNetCore.Razor.Language.Test.csproj", "{969357A4-CCF1-46D9-B002-9AA072AFC75C}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces", "src\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj", "{0F265874-C592-448B-BC4F-3430AB03E0DC}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor", "src\Microsoft.CodeAnalysis.Razor\Microsoft.CodeAnalysis.Razor.csproj", "{42403DAF-F0BC-4F3A-B7F2-46D7013345D8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Test", "test\Microsoft.CodeAnalysis.Razor.Test\Microsoft.CodeAnalysis.Razor.Test.csproj", "{7A8A1664-37CE-4376-81CA-1862CF5F91D9}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorPageGenerator.Test", "test\RazorPageGenerator.Test\RazorPageGenerator.Test.csproj", "{96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions\Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj", "{995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj", "{7CFD5646-A757-4498-9E01-9C8528ED60AE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.Common", "test\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj", "{078AEF36-F319-4CE2-BAA2-5B58A6536B46}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim", "test\Microsoft.AspNetCore.Razor.Test.MvcShim\Microsoft.AspNetCore.Razor.Test.MvcShim.csproj", "{8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.csproj", "{C61AAE12-5007-4205-A220-68F354A7F235}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj", "{F1538809-7347-45D2-A7AC-C1D89CF0BBD4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test.csproj", "{296D4516-0323-4D28-955D-B0324E4F10BE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj", "{AC5CA24B-B81E-4B20-B193-2E3983B1896C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Editor.Razor", "src\Microsoft.VisualStudio.Editor.Razor\Microsoft.VisualStudio.Editor.Razor.csproj", "{0BCDE75A-A438-46C7-95E9-391F029D07C5}" @@ -56,26 +38,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test.csproj", "{B8A3E4CA-D54A-441F-A3BF-E00F060CA042}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.NET.Sdk.Razor.Test", "test\Microsoft.NET.Sdk.Razor.Test\Microsoft.NET.Sdk.Razor.Test.csproj", "{1D90F276-E1CA-4FDF-A173-EB889E7D3150}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Performance", "benchmarks\Microsoft.AspNetCore.Razor.Performance\Microsoft.AspNetCore.Razor.Performance.csproj", "{6205467F-E381-4C42-AEEC-763BD62B3D5E}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{C2C98051-0F39-47F2-80B6-E72B29159F2C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj", "{933101DA-C4CC-401A-AA01-2784E1025B7F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Tools", "src\Microsoft.AspNetCore.Razor.Tools\Microsoft.AspNetCore.Razor.Tools.csproj", "{3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.NET.Sdk.Razor", "src\Microsoft.NET.Sdk.Razor\Microsoft.NET.Sdk.Razor.csproj", "{7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Tools.Test", "test\Microsoft.AspNetCore.Razor.Tools.Test\Microsoft.AspNetCore.Razor.Tools.Test.csproj", "{6EA56B2B-89EC-4C38-A384-97D203375B06}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib.csproj", "{72E89155-86C7-454E-BDD9-39F497F2F61B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj", "{0693CA32-BB75-401E-BC08-72D6DEEB4C99}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test.csproj", "{495A006C-D2B9-4AD0-9D33-60820BA501D8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj", "{D87E5501-B832-46B6-ACD3-EC989E3D14ED}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.RazorExtension", "src\Microsoft.VisualStudio.RazorExtension\Microsoft.VisualStudio.RazorExtension.csproj", "{BCF712D4-329A-4C7A-8292-9EFC864B2ABA}" @@ -118,30 +88,6 @@ Global ReleaseNoVSIX|Any CPU = ReleaseNoVSIX|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Release|Any CPU.Build.0 = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Release|Any CPU.Build.0 = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Release|Any CPU.Build.0 = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.Build.0 = Debug|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -158,14 +104,6 @@ Global {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Release|Any CPU.Build.0 = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.Build.0 = Debug|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -182,14 +120,6 @@ Global {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.Build.0 = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Debug|Any CPU.Build.0 = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Release|Any CPU.ActiveCfg = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Release|Any CPU.Build.0 = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.Build.0 = Debug|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -198,22 +128,6 @@ Global {37E61BDB-658E-4F44-A499-D64CC6D35485}.Release|Any CPU.Build.0 = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Debug|Any CPU.Build.0 = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Release|Any CPU.ActiveCfg = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Release|Any CPU.Build.0 = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Release|Any CPU.Build.0 = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.Build.0 = Debug|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -238,22 +152,6 @@ Global {C61AAE12-5007-4205-A220-68F354A7F235}.Release|Any CPU.Build.0 = Release|Any CPU {C61AAE12-5007-4205-A220-68F354A7F235}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {C61AAE12-5007-4205-A220-68F354A7F235}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Release|Any CPU.Build.0 = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Release|Any CPU.Build.0 = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.Build.0 = Debug|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -302,14 +200,6 @@ Global {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Release|Any CPU.Build.0 = Release|Any CPU {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Release|Any CPU.Build.0 = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -326,30 +216,6 @@ Global {933101DA-C4CC-401A-AA01-2784E1025B7F}.Release|Any CPU.Build.0 = Release|Any CPU {933101DA-C4CC-401A-AA01-2784E1025B7F}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {933101DA-C4CC-401A-AA01-2784E1025B7F}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Release|Any CPU.Build.0 = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Release|Any CPU.Build.0 = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Release|Any CPU.Build.0 = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.Build.0 = Debug|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -358,22 +224,6 @@ Global {72E89155-86C7-454E-BDD9-39F497F2F61B}.Release|Any CPU.Build.0 = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Release|Any CPU.Build.0 = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Release|Any CPU.Build.0 = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.Build.0 = Debug|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -515,38 +365,23 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {932F3C9C-A6C0-40D3-BA50-9309886242FC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {969357A4-CCF1-46D9-B002-9AA072AFC75C} = {92463391-81BE-462B-AC3C-78C6C760741F} {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {7A8A1664-37CE-4376-81CA-1862CF5F91D9} = {92463391-81BE-462B-AC3C-78C6C760741F} {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63} = {92463391-81BE-462B-AC3C-78C6C760741F} {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7CFD5646-A757-4498-9E01-9C8528ED60AE} = {92463391-81BE-462B-AC3C-78C6C760741F} {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90} = {92463391-81BE-462B-AC3C-78C6C760741F} {C61AAE12-5007-4205-A220-68F354A7F235} = {92463391-81BE-462B-AC3C-78C6C760741F} - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {296D4516-0323-4D28-955D-B0324E4F10BE} = {92463391-81BE-462B-AC3C-78C6C760741F} {AC5CA24B-B81E-4B20-B193-2E3983B1896C} = {92463391-81BE-462B-AC3C-78C6C760741F} {0BCDE75A-A438-46C7-95E9-391F029D07C5} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7} = {92463391-81BE-462B-AC3C-78C6C760741F} {FC684D4F-D23C-407C-9C68-E10EF3B38560} = {92463391-81BE-462B-AC3C-78C6C760741F} {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {B8A3E4CA-D54A-441F-A3BF-E00F060CA042} = {92463391-81BE-462B-AC3C-78C6C760741F} - {1D90F276-E1CA-4FDF-A173-EB889E7D3150} = {92463391-81BE-462B-AC3C-78C6C760741F} {6205467F-E381-4C42-AEEC-763BD62B3D5E} = {C2C98051-0F39-47F2-80B6-E72B29159F2C} {933101DA-C4CC-401A-AA01-2784E1025B7F} = {92463391-81BE-462B-AC3C-78C6C760741F} - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {6EA56B2B-89EC-4C38-A384-97D203375B06} = {92463391-81BE-462B-AC3C-78C6C760741F} {72E89155-86C7-454E-BDD9-39F497F2F61B} = {92463391-81BE-462B-AC3C-78C6C760741F} - {0693CA32-BB75-401E-BC08-72D6DEEB4C99} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {495A006C-D2B9-4AD0-9D33-60820BA501D8} = {92463391-81BE-462B-AC3C-78C6C760741F} {D87E5501-B832-46B6-ACD3-EC989E3D14ED} = {92463391-81BE-462B-AC3C-78C6C760741F} {BCF712D4-329A-4C7A-8292-9EFC864B2ABA} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {A34CCC12-687B-4D12-AA0E-F5BE800DE19C} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} diff --git a/src/Razor/Razor.Slim.sln b/src/Razor/Razor.Slim.sln index 2195bb1b816..c300abe7afc 100644 --- a/src/Razor/Razor.Slim.sln +++ b/src/Razor/Razor.Slim.sln @@ -10,40 +10,22 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3C0D6505-79B EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{92463391-81BE-462B-AC3C-78C6C760741F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorPageGenerator", "src\RazorPageGenerator\RazorPageGenerator.csproj", "{7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Language", "src\Microsoft.AspNetCore.Razor.Language\Microsoft.AspNetCore.Razor.Language.csproj", "{932F3C9C-A6C0-40D3-BA50-9309886242FC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Language.Test", "test\RazorLanguage.Test\Microsoft.AspNetCore.Razor.Language.Test.csproj", "{969357A4-CCF1-46D9-B002-9AA072AFC75C}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces", "src\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj", "{0F265874-C592-448B-BC4F-3430AB03E0DC}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor", "src\Microsoft.CodeAnalysis.Razor\Microsoft.CodeAnalysis.Razor.csproj", "{42403DAF-F0BC-4F3A-B7F2-46D7013345D8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Test", "test\Microsoft.CodeAnalysis.Razor.Test\Microsoft.CodeAnalysis.Razor.Test.csproj", "{7A8A1664-37CE-4376-81CA-1862CF5F91D9}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorPageGenerator.Test", "test\RazorPageGenerator.Test\RazorPageGenerator.Test.csproj", "{96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions\Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj", "{995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj", "{7CFD5646-A757-4498-9E01-9C8528ED60AE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.Common", "test\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj", "{078AEF36-F319-4CE2-BAA2-5B58A6536B46}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim", "test\Microsoft.AspNetCore.Razor.Test.MvcShim\Microsoft.AspNetCore.Razor.Test.MvcShim.csproj", "{8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.csproj", "{C61AAE12-5007-4205-A220-68F354A7F235}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj", "{F1538809-7347-45D2-A7AC-C1D89CF0BBD4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test.csproj", "{296D4516-0323-4D28-955D-B0324E4F10BE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj", "{AC5CA24B-B81E-4B20-B193-2E3983B1896C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Editor.Razor", "src\Microsoft.VisualStudio.Editor.Razor\Microsoft.VisualStudio.Editor.Razor.csproj", "{0BCDE75A-A438-46C7-95E9-391F029D07C5}" @@ -56,35 +38,23 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test.csproj", "{B8A3E4CA-D54A-441F-A3BF-E00F060CA042}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.NET.Sdk.Razor.Test", "test\Microsoft.NET.Sdk.Razor.Test\Microsoft.NET.Sdk.Razor.Test.csproj", "{1D90F276-E1CA-4FDF-A173-EB889E7D3150}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Performance", "benchmarks\Microsoft.AspNetCore.Razor.Performance\Microsoft.AspNetCore.Razor.Performance.csproj", "{6205467F-E381-4C42-AEEC-763BD62B3D5E}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{C2C98051-0F39-47F2-80B6-E72B29159F2C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj", "{933101DA-C4CC-401A-AA01-2784E1025B7F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Tools", "src\Microsoft.AspNetCore.Razor.Tools\Microsoft.AspNetCore.Razor.Tools.csproj", "{3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.NET.Sdk.Razor", "src\Microsoft.NET.Sdk.Razor\Microsoft.NET.Sdk.Razor.csproj", "{7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Tools.Test", "test\Microsoft.AspNetCore.Razor.Tools.Test\Microsoft.AspNetCore.Razor.Tools.Test.csproj", "{6EA56B2B-89EC-4C38-A384-97D203375B06}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib.csproj", "{72E89155-86C7-454E-BDD9-39F497F2F61B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj", "{0693CA32-BB75-401E-BC08-72D6DEEB4C99}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test.csproj", "{495A006C-D2B9-4AD0-9D33-60820BA501D8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj", "{D87E5501-B832-46B6-ACD3-EC989E3D14ED}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.RazorAddin", "src\Microsoft.VisualStudio.Mac.RazorAddin\Microsoft.VisualStudio.Mac.RazorAddin.csproj", "{A34CCC12-687B-4D12-AA0E-F5BE800DE19C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.ComponentShim", "test\Microsoft.AspNetCore.Razor.Test.ComponentShim\Microsoft.AspNetCore.Razor.Test.ComponentShim.csproj", "{A9FDA40B-0EE4-4B00-8E24-F1C8B62154BE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.VisualStudio.LiveShare.Razor", "src\Microsoft.VisualStudio.LiveShare.Razor\Microsoft.VisualStudio.LiveShare.Razor.csproj", "{CD06AFC8-81C6-4A26-A818-072AB2C44E8C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LiveShare.Razor", "src\Microsoft.VisualStudio.LiveShare.Razor\Microsoft.VisualStudio.LiveShare.Razor.csproj", "{CD06AFC8-81C6-4A26-A818-072AB2C44E8C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.VisualStudio.LiveShare.Razor.Test", "test\Microsoft.VisualStudio.LiveShare.Razor.Test\Microsoft.VisualStudio.LiveShare.Razor.Test.csproj", "{0C7B8131-1150-4345-837F-6F6AD2CAE606}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LiveShare.Razor.Test", "test\Microsoft.VisualStudio.LiveShare.Razor.Test\Microsoft.VisualStudio.LiveShare.Razor.Test.csproj", "{0C7B8131-1150-4345-837F-6F6AD2CAE606}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -92,18 +62,6 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Release|Any CPU.Build.0 = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Release|Any CPU.Build.0 = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Release|Any CPU.Build.0 = Release|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.Build.0 = Debug|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -112,10 +70,6 @@ Global {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Debug|Any CPU.Build.0 = Debug|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.ActiveCfg = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Release|Any CPU.Build.0 = Release|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.Build.0 = Debug|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -124,22 +78,10 @@ Global {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.Build.0 = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.ActiveCfg = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.Build.0 = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Debug|Any CPU.Build.0 = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Release|Any CPU.ActiveCfg = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Release|Any CPU.Build.0 = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.Build.0 = Debug|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Release|Any CPU.ActiveCfg = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Release|Any CPU.Build.0 = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Debug|Any CPU.Build.0 = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Release|Any CPU.ActiveCfg = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Release|Any CPU.Build.0 = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Release|Any CPU.Build.0 = Release|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.Build.0 = Debug|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -152,14 +94,6 @@ Global {C61AAE12-5007-4205-A220-68F354A7F235}.Debug|Any CPU.Build.0 = Debug|Any CPU {C61AAE12-5007-4205-A220-68F354A7F235}.Release|Any CPU.ActiveCfg = Release|Any CPU {C61AAE12-5007-4205-A220-68F354A7F235}.Release|Any CPU.Build.0 = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Release|Any CPU.Build.0 = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Release|Any CPU.Build.0 = Release|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.Build.0 = Debug|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -184,10 +118,6 @@ Global {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Debug|Any CPU.Build.0 = Debug|Any CPU {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Release|Any CPU.ActiveCfg = Release|Any CPU {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Release|Any CPU.Build.0 = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Release|Any CPU.Build.0 = Release|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -196,30 +126,10 @@ Global {933101DA-C4CC-401A-AA01-2784E1025B7F}.Debug|Any CPU.Build.0 = Debug|Any CPU {933101DA-C4CC-401A-AA01-2784E1025B7F}.Release|Any CPU.ActiveCfg = Release|Any CPU {933101DA-C4CC-401A-AA01-2784E1025B7F}.Release|Any CPU.Build.0 = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Release|Any CPU.Build.0 = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Release|Any CPU.Build.0 = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Release|Any CPU.Build.0 = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.Build.0 = Debug|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Release|Any CPU.ActiveCfg = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Release|Any CPU.Build.0 = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Release|Any CPU.Build.0 = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Release|Any CPU.Build.0 = Release|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.Build.0 = Debug|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -245,38 +155,23 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {932F3C9C-A6C0-40D3-BA50-9309886242FC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {969357A4-CCF1-46D9-B002-9AA072AFC75C} = {92463391-81BE-462B-AC3C-78C6C760741F} {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {7A8A1664-37CE-4376-81CA-1862CF5F91D9} = {92463391-81BE-462B-AC3C-78C6C760741F} {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63} = {92463391-81BE-462B-AC3C-78C6C760741F} {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7CFD5646-A757-4498-9E01-9C8528ED60AE} = {92463391-81BE-462B-AC3C-78C6C760741F} {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90} = {92463391-81BE-462B-AC3C-78C6C760741F} {C61AAE12-5007-4205-A220-68F354A7F235} = {92463391-81BE-462B-AC3C-78C6C760741F} - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {296D4516-0323-4D28-955D-B0324E4F10BE} = {92463391-81BE-462B-AC3C-78C6C760741F} {AC5CA24B-B81E-4B20-B193-2E3983B1896C} = {92463391-81BE-462B-AC3C-78C6C760741F} {0BCDE75A-A438-46C7-95E9-391F029D07C5} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7} = {92463391-81BE-462B-AC3C-78C6C760741F} {FC684D4F-D23C-407C-9C68-E10EF3B38560} = {92463391-81BE-462B-AC3C-78C6C760741F} {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {B8A3E4CA-D54A-441F-A3BF-E00F060CA042} = {92463391-81BE-462B-AC3C-78C6C760741F} - {1D90F276-E1CA-4FDF-A173-EB889E7D3150} = {92463391-81BE-462B-AC3C-78C6C760741F} {6205467F-E381-4C42-AEEC-763BD62B3D5E} = {C2C98051-0F39-47F2-80B6-E72B29159F2C} {933101DA-C4CC-401A-AA01-2784E1025B7F} = {92463391-81BE-462B-AC3C-78C6C760741F} - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {6EA56B2B-89EC-4C38-A384-97D203375B06} = {92463391-81BE-462B-AC3C-78C6C760741F} {72E89155-86C7-454E-BDD9-39F497F2F61B} = {92463391-81BE-462B-AC3C-78C6C760741F} - {0693CA32-BB75-401E-BC08-72D6DEEB4C99} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {495A006C-D2B9-4AD0-9D33-60820BA501D8} = {92463391-81BE-462B-AC3C-78C6C760741F} {D87E5501-B832-46B6-ACD3-EC989E3D14ED} = {92463391-81BE-462B-AC3C-78C6C760741F} {A34CCC12-687B-4D12-AA0E-F5BE800DE19C} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {A9FDA40B-0EE4-4B00-8E24-F1C8B62154BE} = {92463391-81BE-462B-AC3C-78C6C760741F} diff --git a/src/Razor/Razor.sln b/src/Razor/Razor.sln index 029fac0787c..803f6a3946d 100644 --- a/src/Razor/Razor.sln +++ b/src/Razor/Razor.sln @@ -10,40 +10,22 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3C0D6505-79B EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{92463391-81BE-462B-AC3C-78C6C760741F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorPageGenerator", "src\RazorPageGenerator\RazorPageGenerator.csproj", "{7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Language", "src\Microsoft.AspNetCore.Razor.Language\Microsoft.AspNetCore.Razor.Language.csproj", "{932F3C9C-A6C0-40D3-BA50-9309886242FC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Language.Test", "test\RazorLanguage.Test\Microsoft.AspNetCore.Razor.Language.Test.csproj", "{969357A4-CCF1-46D9-B002-9AA072AFC75C}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces", "src\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj", "{0F265874-C592-448B-BC4F-3430AB03E0DC}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor", "src\Microsoft.CodeAnalysis.Razor\Microsoft.CodeAnalysis.Razor.csproj", "{42403DAF-F0BC-4F3A-B7F2-46D7013345D8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Test", "test\Microsoft.CodeAnalysis.Razor.Test\Microsoft.CodeAnalysis.Razor.Test.csproj", "{7A8A1664-37CE-4376-81CA-1862CF5F91D9}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorPageGenerator.Test", "test\RazorPageGenerator.Test\RazorPageGenerator.Test.csproj", "{96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions\Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj", "{995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj", "{7CFD5646-A757-4498-9E01-9C8528ED60AE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.Common", "test\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj", "{078AEF36-F319-4CE2-BAA2-5B58A6536B46}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim", "test\Microsoft.AspNetCore.Razor.Test.MvcShim\Microsoft.AspNetCore.Razor.Test.MvcShim.csproj", "{8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.csproj", "{C61AAE12-5007-4205-A220-68F354A7F235}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj", "{F1538809-7347-45D2-A7AC-C1D89CF0BBD4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test.csproj", "{296D4516-0323-4D28-955D-B0324E4F10BE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj", "{AC5CA24B-B81E-4B20-B193-2E3983B1896C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Editor.Razor", "src\Microsoft.VisualStudio.Editor.Razor\Microsoft.VisualStudio.Editor.Razor.csproj", "{0BCDE75A-A438-46C7-95E9-391F029D07C5}" @@ -56,26 +38,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test.csproj", "{B8A3E4CA-D54A-441F-A3BF-E00F060CA042}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.NET.Sdk.Razor.Test", "test\Microsoft.NET.Sdk.Razor.Test\Microsoft.NET.Sdk.Razor.Test.csproj", "{1D90F276-E1CA-4FDF-A173-EB889E7D3150}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Performance", "benchmarks\Microsoft.AspNetCore.Razor.Performance\Microsoft.AspNetCore.Razor.Performance.csproj", "{6205467F-E381-4C42-AEEC-763BD62B3D5E}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{C2C98051-0F39-47F2-80B6-E72B29159F2C}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj", "{933101DA-C4CC-401A-AA01-2784E1025B7F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Tools", "src\Microsoft.AspNetCore.Razor.Tools\Microsoft.AspNetCore.Razor.Tools.csproj", "{3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.NET.Sdk.Razor", "src\Microsoft.NET.Sdk.Razor\Microsoft.NET.Sdk.Razor.csproj", "{7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Tools.Test", "test\Microsoft.AspNetCore.Razor.Tools.Test\Microsoft.AspNetCore.Razor.Tools.Test.csproj", "{6EA56B2B-89EC-4C38-A384-97D203375B06}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib.csproj", "{72E89155-86C7-454E-BDD9-39F497F2F61B}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X", "src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.csproj", "{0693CA32-BB75-401E-BC08-72D6DEEB4C99}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test", "test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test.csproj", "{495A006C-D2B9-4AD0-9D33-60820BA501D8}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj", "{D87E5501-B832-46B6-ACD3-EC989E3D14ED}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.RazorExtension", "src\Microsoft.VisualStudio.RazorExtension\Microsoft.VisualStudio.RazorExtension.csproj", "{BCF712D4-329A-4C7A-8292-9EFC864B2ABA}" @@ -118,30 +88,6 @@ Global ReleaseNoVSIX|Any CPU = ReleaseNoVSIX|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.Release|Any CPU.Build.0 = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.Release|Any CPU.Build.0 = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {932F3C9C-A6C0-40D3-BA50-9309886242FC}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.Release|Any CPU.Build.0 = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {969357A4-CCF1-46D9-B002-9AA072AFC75C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.Build.0 = Debug|Any CPU {0F265874-C592-448B-BC4F-3430AB03E0DC}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -158,14 +104,6 @@ Global {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.Release|Any CPU.Build.0 = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.Build.0 = Debug|Any CPU {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -182,14 +120,6 @@ Global {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.Build.0 = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Debug|Any CPU.Build.0 = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Release|Any CPU.ActiveCfg = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.Release|Any CPU.Build.0 = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.Build.0 = Debug|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -198,22 +128,6 @@ Global {37E61BDB-658E-4F44-A499-D64CC6D35485}.Release|Any CPU.Build.0 = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {37E61BDB-658E-4F44-A499-D64CC6D35485}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Debug|Any CPU.Build.0 = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Release|Any CPU.ActiveCfg = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.Release|Any CPU.Build.0 = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.Release|Any CPU.Build.0 = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7CFD5646-A757-4498-9E01-9C8528ED60AE}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.Build.0 = Debug|Any CPU {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -238,22 +152,6 @@ Global {C61AAE12-5007-4205-A220-68F354A7F235}.Release|Any CPU.Build.0 = Release|Any CPU {C61AAE12-5007-4205-A220-68F354A7F235}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {C61AAE12-5007-4205-A220-68F354A7F235}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.Release|Any CPU.Build.0 = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.Release|Any CPU.Build.0 = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {296D4516-0323-4D28-955D-B0324E4F10BE}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.Build.0 = Debug|Any CPU {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -302,14 +200,6 @@ Global {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Release|Any CPU.Build.0 = Release|Any CPU {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.Release|Any CPU.Build.0 = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {1D90F276-E1CA-4FDF-A173-EB889E7D3150}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU {6205467F-E381-4C42-AEEC-763BD62B3D5E}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -326,30 +216,6 @@ Global {933101DA-C4CC-401A-AA01-2784E1025B7F}.Release|Any CPU.Build.0 = Release|Any CPU {933101DA-C4CC-401A-AA01-2784E1025B7F}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {933101DA-C4CC-401A-AA01-2784E1025B7F}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.Release|Any CPU.Build.0 = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.Release|Any CPU.Build.0 = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.Release|Any CPU.Build.0 = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {6EA56B2B-89EC-4C38-A384-97D203375B06}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.Build.0 = Debug|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -358,22 +224,6 @@ Global {72E89155-86C7-454E-BDD9-39F497F2F61B}.Release|Any CPU.Build.0 = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {72E89155-86C7-454E-BDD9-39F497F2F61B}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.Release|Any CPU.Build.0 = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {0693CA32-BB75-401E-BC08-72D6DEEB4C99}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.Release|Any CPU.Build.0 = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {495A006C-D2B9-4AD0-9D33-60820BA501D8}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.Build.0 = Debug|Any CPU {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -515,38 +365,23 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {7BE58880-36AD-4CD5-9E16-2A5AFEA790EF} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {932F3C9C-A6C0-40D3-BA50-9309886242FC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {969357A4-CCF1-46D9-B002-9AA072AFC75C} = {92463391-81BE-462B-AC3C-78C6C760741F} {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {42403DAF-F0BC-4F3A-B7F2-46D7013345D8} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {7A8A1664-37CE-4376-81CA-1862CF5F91D9} = {92463391-81BE-462B-AC3C-78C6C760741F} {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {96EB1BD4-B8E0-4F52-A068-BBCACA7E3F63} = {92463391-81BE-462B-AC3C-78C6C760741F} {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} - {995F2FEB-65FA-4399-B1C0-16E0B3FBDB15} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7CFD5646-A757-4498-9E01-9C8528ED60AE} = {92463391-81BE-462B-AC3C-78C6C760741F} {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90} = {92463391-81BE-462B-AC3C-78C6C760741F} {C61AAE12-5007-4205-A220-68F354A7F235} = {92463391-81BE-462B-AC3C-78C6C760741F} - {F1538809-7347-45D2-A7AC-C1D89CF0BBD4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {296D4516-0323-4D28-955D-B0324E4F10BE} = {92463391-81BE-462B-AC3C-78C6C760741F} {AC5CA24B-B81E-4B20-B193-2E3983B1896C} = {92463391-81BE-462B-AC3C-78C6C760741F} {0BCDE75A-A438-46C7-95E9-391F029D07C5} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7} = {92463391-81BE-462B-AC3C-78C6C760741F} {FC684D4F-D23C-407C-9C68-E10EF3B38560} = {92463391-81BE-462B-AC3C-78C6C760741F} {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {B8A3E4CA-D54A-441F-A3BF-E00F060CA042} = {92463391-81BE-462B-AC3C-78C6C760741F} - {1D90F276-E1CA-4FDF-A173-EB889E7D3150} = {92463391-81BE-462B-AC3C-78C6C760741F} {6205467F-E381-4C42-AEEC-763BD62B3D5E} = {C2C98051-0F39-47F2-80B6-E72B29159F2C} {933101DA-C4CC-401A-AA01-2784E1025B7F} = {92463391-81BE-462B-AC3C-78C6C760741F} - {3E7F2D49-3B45-45A8-9893-F73EC1EEBAAB} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7D9ECCEE-71D1-4A42-ABEE-876AFA1B4FC9} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {6EA56B2B-89EC-4C38-A384-97D203375B06} = {92463391-81BE-462B-AC3C-78C6C760741F} {72E89155-86C7-454E-BDD9-39F497F2F61B} = {92463391-81BE-462B-AC3C-78C6C760741F} - {0693CA32-BB75-401E-BC08-72D6DEEB4C99} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {495A006C-D2B9-4AD0-9D33-60820BA501D8} = {92463391-81BE-462B-AC3C-78C6C760741F} {D87E5501-B832-46B6-ACD3-EC989E3D14ED} = {92463391-81BE-462B-AC3C-78C6C760741F} {BCF712D4-329A-4C7A-8292-9EFC864B2ABA} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {A34CCC12-687B-4D12-AA0E-F5BE800DE19C} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} diff --git a/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/Microsoft.AspNetCore.Razor.Performance.csproj b/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/Microsoft.AspNetCore.Razor.Performance.csproj index e38908b0672..d38659f53ed 100644 --- a/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/Microsoft.AspNetCore.Razor.Performance.csproj +++ b/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/Microsoft.AspNetCore.Razor.Performance.csproj @@ -10,7 +10,6 @@ - @@ -36,6 +35,7 @@ + diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/Microsoft.AspNetCore.Razor.LanguageServer.Common.csproj b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/Microsoft.AspNetCore.Razor.LanguageServer.Common.csproj index b19a1752482..cb0a2a3622a 100644 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/Microsoft.AspNetCore.Razor.LanguageServer.Common.csproj +++ b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/Microsoft.AspNetCore.Razor.LanguageServer.Common.csproj @@ -9,12 +9,12 @@ + + + - - - diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Microsoft.CodeAnalysis.Razor.Workspaces.csproj b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Microsoft.CodeAnalysis.Razor.Workspaces.csproj index ce5cfe1d857..ac2470311b4 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Microsoft.CodeAnalysis.Razor.Workspaces.csproj +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Microsoft.CodeAnalysis.Razor.Workspaces.csproj @@ -8,13 +8,10 @@ true - - - - + diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Microsoft.CodeAnalysis.Remote.Razor.csproj b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Microsoft.CodeAnalysis.Remote.Razor.csproj index 76a72065f29..efaea3be997 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Microsoft.CodeAnalysis.Remote.Razor.csproj +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Microsoft.CodeAnalysis.Remote.Razor.csproj @@ -23,10 +23,10 @@ - + diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj index 3ea0d8e1307..18f81aeb0de 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj @@ -4,7 +4,7 @@ net472 Razor is a markup syntax for adding server-side logic to web pages. This package contains the Razor design-time infrastructure for Visual Studio. false - ..\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Rules\ + $(PkgMicrosoft_NET_Sdk_Razor)\build\netstandard2.0\Rules\ Microsoft.VisualStudio.LanguageServices.Razor.ruleset false true @@ -27,6 +27,7 @@ + diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs index 584a23db237..3b58d8dd23f 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs @@ -10,8 +10,11 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem.Rules { + + internal partial class RazorGenerateWithTargetPath { + /// Backing field for deserialized rule.. private static Microsoft.Build.Framework.XamlTypes.Rule deserializedFallbackRule; @@ -228,7 +231,8 @@ private void InitializeFallbackRule() } internal partial class RazorProjectProperties - { + { + private static System.Func>, object, RazorGenerateWithTargetPath> CreateRazorGenerateWithTargetPathPropertiesDelegate = new System.Func>, object, RazorGenerateWithTargetPath>(CreateRazorGenerateWithTargetPathProperties); private static RazorGenerateWithTargetPath CreateRazorGenerateWithTargetPathProperties(System.Threading.Tasks.Task> namedCatalogs, object state) diff --git a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj index 5f381903f4f..f23cc1d0516 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj @@ -42,35 +42,37 @@ + + + + + - - - - - + + + + + - - - - - + + + + + - - - diff --git a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj index 3b3392a793e..a27d54ab828 100644 --- a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj @@ -27,12 +27,12 @@ - + true MSBuild Microsoft\VisualStudio\Razor\ - + true MSBuild Microsoft\VisualStudio\Razor\Rules\ @@ -147,12 +147,7 @@ - - - - - @@ -164,7 +159,13 @@ + + + + + + diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj index d0c78e7bdff..1d184c95dce 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj +++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj @@ -8,14 +8,14 @@ - - + + diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj index 44fb5d161be..9a8560e6492 100644 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj +++ b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj @@ -12,8 +12,6 @@ - - @@ -21,7 +19,9 @@ + + diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj index e3d7c0aecab..230628252a7 100644 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj +++ b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common/Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj @@ -6,7 +6,6 @@ - @@ -15,6 +14,7 @@ + diff --git a/src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test/Microsoft.VisualStudio.Editor.Razor.Test.csproj b/src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test/Microsoft.VisualStudio.Editor.Razor.Test.csproj index 38563988965..1a9df2617e3 100644 --- a/src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test/Microsoft.VisualStudio.Editor.Razor.Test.csproj +++ b/src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test/Microsoft.VisualStudio.Editor.Razor.Test.csproj @@ -22,13 +22,13 @@ - - - + + + diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj index 4d316ddb2c6..c054cf1f499 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj @@ -28,13 +28,13 @@ - - + + diff --git a/src/Razor/test/testapps/Directory.Build.props b/src/Razor/test/testapps/Directory.Build.props index 95150933088..722030acaf7 100644 --- a/src/Razor/test/testapps/Directory.Build.props +++ b/src/Razor/test/testapps/Directory.Build.props @@ -12,14 +12,16 @@ --> false true - - - $(SolutionRoot)..\..\artifacts\bin\Microsoft.NET.Sdk.Razor\ - - $(SolutionRoot)src\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.props - $(SolutionRoot)src\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets + + + + + From 93e22bab2adbba85dda6f65479b1d0c32ee1227f Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Wed, 27 May 2020 11:18:44 -0700 Subject: [PATCH 03/15] Fix Assembly.Load test failures. --- .../LegacyProjectEngineFactory_1_0.cs | 2 +- .../LegacyProjectEngineFactory_1_1.cs | 2 +- .../LegacyProjectEngineFactory_2_0.cs | 2 +- .../LegacyProjectEngineFactory_2_1.cs | 2 +- .../LegacyProjectEngineFactory_3_0.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_0.cs b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_0.cs index 9b3b92eb898..577d13de6b6 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_0.cs +++ b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_0.cs @@ -16,7 +16,7 @@ internal class LegacyProjectEngineFactory_1_0 : IProjectEngineFactory public RazorProjectEngine Create(RazorConfiguration configuration, RazorProjectFileSystem fileSystem, Action configure) { // Rewrite the assembly name into a full name just like this one, but with the name of the MVC design time assembly. - var assemblyName = new AssemblyName(typeof(LegacyProjectEngineFactory_1_0).Assembly.FullName); + var assemblyName = new AssemblyName(typeof(RazorProjectEngine).Assembly.FullName); assemblyName.Name = AssemblyName; var extension = new AssemblyExtension(configuration.ConfigurationName, Assembly.Load(assemblyName)); diff --git a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_1.cs b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_1.cs index d01e6999a82..484051cddeb 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_1.cs +++ b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_1_1.cs @@ -16,7 +16,7 @@ internal class LegacyProjectEngineFactory_1_1 : IProjectEngineFactory public RazorProjectEngine Create(RazorConfiguration configuration, RazorProjectFileSystem fileSystem, Action configure) { // Rewrite the assembly name into a full name just like this one, but with the name of the MVC design time assembly. - var assemblyName = new AssemblyName(typeof(LegacyProjectEngineFactory_1_1).Assembly.FullName); + var assemblyName = new AssemblyName(typeof(RazorProjectEngine).Assembly.FullName); assemblyName.Name = AssemblyName; var extension = new AssemblyExtension(configuration.ConfigurationName, Assembly.Load(assemblyName)); diff --git a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_0.cs b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_0.cs index ef3c1779f02..10608f20f1f 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_0.cs +++ b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_0.cs @@ -15,7 +15,7 @@ internal class LegacyProjectEngineFactory_2_0 : IProjectEngineFactory public RazorProjectEngine Create(RazorConfiguration configuration, RazorProjectFileSystem fileSystem, Action configure) { // Rewrite the assembly name into a full name just like this one, but with the name of the MVC design time assembly. - var assemblyName = new AssemblyName(typeof(LegacyProjectEngineFactory_2_0).Assembly.FullName); + var assemblyName = new AssemblyName(typeof(RazorProjectEngine).Assembly.FullName); assemblyName.Name = AssemblyName; var extension = new AssemblyExtension(configuration.ConfigurationName, Assembly.Load(assemblyName)); diff --git a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_1.cs b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_1.cs index 35ec395c2e6..2157fc7d165 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_1.cs +++ b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_2_1.cs @@ -17,7 +17,7 @@ internal class LegacyProjectEngineFactory_2_1 : IProjectEngineFactory public RazorProjectEngine Create(RazorConfiguration configuration, RazorProjectFileSystem fileSystem, Action configure) { // Rewrite the assembly name into a full name just like this one, but with the name of the MVC design time assembly. - var assemblyName = new AssemblyName(typeof(LegacyProjectEngineFactory_2_1).Assembly.FullName); + var assemblyName = new AssemblyName(typeof(RazorProjectEngine).Assembly.FullName); assemblyName.Name = AssemblyName; var extension = new AssemblyExtension(configuration.ConfigurationName, Assembly.Load(assemblyName)); diff --git a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_3_0.cs b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_3_0.cs index f2d37ff98c4..18fbd7b21b5 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_3_0.cs +++ b/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/LegacyProjectEngineFactory_3_0.cs @@ -17,7 +17,7 @@ internal class LegacyProjectEngineFactory_3_0 : IProjectEngineFactory public RazorProjectEngine Create(RazorConfiguration configuration, RazorProjectFileSystem fileSystem, Action configure) { // Rewrite the assembly name into a full name just like this one, but with the name of the MVC design time assembly. - var assemblyName = new AssemblyName(typeof(LegacyProjectEngineFactory_3_0).Assembly.FullName); + var assemblyName = new AssemblyName(typeof(RazorProjectEngine).Assembly.FullName); assemblyName.Name = AssemblyName; var extension = new AssemblyExtension(configuration.ConfigurationName, Assembly.Load(assemblyName)); From 0948f7b1c29ec0e7df0f0aa71b97ac96d1605977 Mon Sep 17 00:00:00 2001 From: John Luo Date: Wed, 27 May 2020 11:53:45 -0700 Subject: [PATCH 04/15] Rever unintended changes - remove CodeAnalysis.Razor.Tests - remove source build step --- azure-pipelines.yml | 55 - src/Razor/Razor.NoVsix.sln | 11 - src/Razor/Razor.Slim.sln | 7 - src/Razor/Razor.sln | 11 - .../Rules/RazorGenerateWithTargetPath.cs | 6 +- .../BaseTagHelperDescriptorProviderTest.cs | 69 - .../BindTagHelperDescriptorProviderTest.cs | 905 ------- .../CompilationTagHelperFeatureTest.cs | 131 - ...omponentTagHelperDescriptorProviderTest.cs | 1588 ----------- .../DefaultTagHelperDescriptorFactoryTest.cs | 2384 ----------------- .../DefaultTagHelperDescriptorProviderTest.cs | 54 - ...tHandlerTagHelperDescriptorProviderTest.cs | 130 - .../GenericTypeNameRewriterTest.cs | 44 - .../GlobalQualifiedTypeNameRewriterTest.cs | 35 - .../KeyTagHelperDescriptorProviderTest.cs | 90 - .../Microsoft.CodeAnalysis.Razor.Test.csproj | 29 - ...RazorProjectEngineBuilderExtensionsTest.cs | 31 - .../RefTagHelperDescriptorProviderTest.cs | 90 - .../SplatTagHelperDescriptorProviderTest.cs | 88 - .../TagHelperDescriptorFactoryTagHelpers.cs | 463 ---- .../TagHelperTypeVisitorTest.cs | 118 - .../xunit.runner.json | 4 - 22 files changed, 1 insertion(+), 6342 deletions(-) delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BaseTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BindTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/CompilationTagHelperFeatureTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/ComponentTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorFactoryTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/EventHandlerTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GenericTypeNameRewriterTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GlobalQualifiedTypeNameRewriterTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/KeyTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RazorProjectEngineBuilderExtensionsTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RefTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/SplatTagHelperDescriptorProviderTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperDescriptorFactoryTagHelpers.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperTypeVisitorTest.cs delete mode 100644 src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/xunit.runner.json diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ce1a1980544..6419d372a6e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -81,61 +81,6 @@ stages: - powershell: ./restore.cmd -msbuildEngine dotnet -ci $(_InternalRuntimeDownloadArgs); ./eng/scripts/CodeCheck.ps1 -ci displayName: Run eng/scripts/CodeCheck.ps1 - - job: Source_Build - jobName: Source_Build - displayName: 'Test: Linux Source Build' - container: - image: centos:7 - options: --init # This ensures all the stray defunct processes are reaped. - pool: - vmImage: ubuntu-16.04 - variables: - - DotNetCoreSdkDir: $(Agent.ToolsDirectory)/dotnet - - DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true - - _BuildConfig: Release - steps: - - task: NodeTool@0 - displayName: Install Node 10.x - inputs: - versionSpec: 10.x - - script: | - source eng/common/native/common-library.sh - mkdir -p $HOME/bin - GetFile https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 $HOME/bin/jq - chmod +x $HOME/bin/jq - echo "##vso[task.prependpath]$HOME/bin" - displayName: Install jq - - ${{ if ne(variables['System.TeamProject'], 'public') }}: - - task: Bash@3 - displayName: Setup Private Feeds Credentials - inputs: - filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh - arguments: $(Build.SourcesDirectory)/NuGet.config $Token - env: - Token: $(dn-bot-dnceng-artifact-feeds-rw) - - script: ./eng/scripts/ci-source-build.sh --ci --configuration $(_BuildConfig) /p:BuildNodeJs=false - displayName: Run ci-source-build.sh - - - task: PublishBuildArtifacts@1 - displayName: Upload package artifacts - # Only capture source build artifacts in PRs for the sake of inspecting - # changes that impact source-build. The artifacts from this build pipeline are never actually used. - condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) - inputs: - pathtoPublish: artifacts/packages/ - artifactName: Source_Build_Packages - artifactType: Container - parallel: true - - - task: PublishBuildArtifacts@1 - displayName: Publish Logs - inputs: - PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)' - PublishLocation: Container - ArtifactName: Source_Build_Logs - continueOnError: true - condition: always() - # Three jobs for each of the three OSes we want to run on - template: /eng/common/templates/jobs/jobs.yml parameters: diff --git a/src/Razor/Razor.NoVsix.sln b/src/Razor/Razor.NoVsix.sln index 803f6a3946d..789f48a5cfb 100644 --- a/src/Razor/Razor.NoVsix.sln +++ b/src/Razor/Razor.NoVsix.sln @@ -14,8 +14,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razo EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Test", "test\Microsoft.CodeAnalysis.Razor.Test\Microsoft.CodeAnalysis.Razor.Test.csproj", "{7A8A1664-37CE-4376-81CA-1862CF5F91D9}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" @@ -104,14 +102,6 @@ Global {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.Build.0 = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.Build.0 = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -367,7 +357,6 @@ Global GlobalSection(NestedProjects) = preSolution {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7A8A1664-37CE-4376-81CA-1862CF5F91D9} = {92463391-81BE-462B-AC3C-78C6C760741F} {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} diff --git a/src/Razor/Razor.Slim.sln b/src/Razor/Razor.Slim.sln index c300abe7afc..d531a6cc34c 100644 --- a/src/Razor/Razor.Slim.sln +++ b/src/Razor/Razor.Slim.sln @@ -14,8 +14,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razo EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Test", "test\Microsoft.CodeAnalysis.Razor.Test\Microsoft.CodeAnalysis.Razor.Test.csproj", "{7A8A1664-37CE-4376-81CA-1862CF5F91D9}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" @@ -70,10 +68,6 @@ Global {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Debug|Any CPU.Build.0 = Debug|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.ActiveCfg = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.Build.0 = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.Build.0 = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -157,7 +151,6 @@ Global GlobalSection(NestedProjects) = preSolution {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7A8A1664-37CE-4376-81CA-1862CF5F91D9} = {92463391-81BE-462B-AC3C-78C6C760741F} {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} diff --git a/src/Razor/Razor.sln b/src/Razor/Razor.sln index 803f6a3946d..789f48a5cfb 100644 --- a/src/Razor/Razor.sln +++ b/src/Razor/Razor.sln @@ -14,8 +14,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razo EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Test", "test\Microsoft.CodeAnalysis.Razor.Test\Microsoft.CodeAnalysis.Razor.Test.csproj", "{7A8A1664-37CE-4376-81CA-1862CF5F91D9}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" @@ -104,14 +102,6 @@ Global {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.Release|Any CPU.Build.0 = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {7A8A1664-37CE-4376-81CA-1862CF5F91D9}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.Build.0 = Debug|Any CPU {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU @@ -367,7 +357,6 @@ Global GlobalSection(NestedProjects) = preSolution {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {7A8A1664-37CE-4376-81CA-1862CF5F91D9} = {92463391-81BE-462B-AC3C-78C6C760741F} {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs index 3b58d8dd23f..584a23db237 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/Rules/RazorGenerateWithTargetPath.cs @@ -10,11 +10,8 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem.Rules { - - internal partial class RazorGenerateWithTargetPath { - /// Backing field for deserialized rule.. private static Microsoft.Build.Framework.XamlTypes.Rule deserializedFallbackRule; @@ -231,8 +228,7 @@ private void InitializeFallbackRule() } internal partial class RazorProjectProperties - { - + { private static System.Func>, object, RazorGenerateWithTargetPath> CreateRazorGenerateWithTargetPathPropertiesDelegate = new System.Func>, object, RazorGenerateWithTargetPath>(CreateRazorGenerateWithTargetPathProperties); private static RazorGenerateWithTargetPath CreateRazorGenerateWithTargetPathProperties(System.Threading.Tasks.Task> namedCatalogs, object state) diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BaseTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BaseTagHelperDescriptorProviderTest.cs deleted file mode 100644 index bd19fc23cb6..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BaseTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public abstract class TagHelperDescriptorProviderTestBase - { - static TagHelperDescriptorProviderTestBase() - { - BaseCompilation = TestCompilation.Create(typeof(ComponentTagHelperDescriptorProviderTest).Assembly); - CSharpParseOptions = new CSharpParseOptions(LanguageVersion.CSharp7_3); - } - - protected static Compilation BaseCompilation { get; } - - protected static CSharpParseOptions CSharpParseOptions { get; } - - protected static CSharpSyntaxTree Parse(string text) - { - return (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(text, CSharpParseOptions); - } - - // For simplicity in testing, exclude the built-in components. We'll add more and we - // don't want to update the tests when that happens. - protected static TagHelperDescriptor[] ExcludeBuiltInComponents(TagHelperDescriptorProviderContext context) - { - var results = - context.Results - .Where(c => c.AssemblyName != "Microsoft.AspNetCore.Razor.Test.ComponentShim") - .Where(c => !c.DisplayName.StartsWith("Microsoft.AspNetCore.Components.Web")) - .Where(c => c.GetTypeName() != "Microsoft.AspNetCore.Components.Bind") - .OrderBy(c => c.Name) - .ToArray(); - - return results; - } - - protected static TagHelperDescriptor[] AssertAndExcludeFullyQualifiedNameMatchComponents( - TagHelperDescriptor[] components, - int expectedCount) - { - var componentLookup = new Dictionary>(); - var fullyQualifiedNameMatchComponents = components.Where(c => c.IsComponentFullyQualifiedNameMatch()).ToArray(); - Assert.Equal(expectedCount, fullyQualifiedNameMatchComponents.Length); - - var shortNameMatchComponents = components.Where(c => !c.IsComponentFullyQualifiedNameMatch()).ToArray(); - - // For every fully qualified name component, we want to make sure we have a corresponding short name component. - foreach (var fullNameComponent in fullyQualifiedNameMatchComponents) - { - Assert.Contains(shortNameMatchComponents, component => - { - return component.Name == fullNameComponent.Name && - component.Kind == fullNameComponent.Kind && - component.BoundAttributes.SequenceEqual(fullNameComponent.BoundAttributes, BoundAttributeDescriptorComparer.Default); - }); - } - - return shortNameMatchComponents; - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BindTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BindTagHelperDescriptorProviderTest.cs deleted file mode 100644 index f097b079f71..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/BindTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,905 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class BindTagHelperDescriptorProviderTest : TagHelperDescriptorProviderTestBase - { - [Fact] - public void Execute_FindsBindTagHelperOnComponentType_Delegate_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using System.Linq.Expressions; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Attach(RenderHandle renderHandle) { } - - public Task SetParametersAsync(ParameterView parameters) - { - return Task.CompletedTask; - } - - [Parameter] - public string MyProperty { get; set; } - - [Parameter] - public Action MyPropertyChanged { get; set; } - - [Parameter] - public Expression> MyPropertyExpression { get; set; } - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - // We run after component discovery and depend on the results. - var componentProvider = new ComponentTagHelperDescriptorProvider(); - componentProvider.Execute(context); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 1); - var bind = Assert.Single(matches); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(ComponentMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - Assert.False(bind.IsComponentOrChildContentTagHelper()); - Assert.True(bind.CaseSensitive); - - Assert.Equal("MyProperty", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("MyPropertyChanged", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.Equal("MyPropertyExpression", bind.Metadata[ComponentMetadata.Bind.ExpressionAttribute]); - - Assert.Equal( - "Binds the provided expression to the 'MyProperty' property and a change event " + - "delegate to the 'MyPropertyChanged' property of the component.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", bind.AssemblyName); - Assert.Equal("Test.MyComponent", bind.Name); - Assert.Equal("Test.MyComponent", bind.DisplayName); - Assert.Equal("Test.MyComponent", bind.GetTypeName()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("MyComponent", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@bind-MyProperty", requiredAttribute.DisplayName); - Assert.Equal("@bind-MyProperty", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Binds the provided expression to the 'MyProperty' property and a change event " + - "delegate to the 'MyPropertyChanged' property of the component.", - attribute.Documentation); - - Assert.Equal("@bind-MyProperty", attribute.Name); - Assert.Equal("MyProperty", attribute.GetPropertyName()); - Assert.Equal("System.Action Test.MyComponent.MyProperty", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.Action", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - [Fact] - public void Execute_FindsBindTagHelperOnComponentType_EventCallback_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Attach(RenderHandle renderHandle) { } - - public Task SetParametersAsync(ParameterView parameters) - { - return Task.CompletedTask; - } - - [Parameter] - public string MyProperty { get; set; } - - [Parameter] - public EventCallback MyPropertyChanged { get; set; } - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - // We run after component discovery and depend on the results. - var componentProvider = new ComponentTagHelperDescriptorProvider(); - componentProvider.Execute(context); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 1); - var bind = Assert.Single(matches); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(ComponentMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - Assert.False(bind.IsComponentOrChildContentTagHelper()); - Assert.True(bind.CaseSensitive); - - Assert.Equal("MyProperty", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("MyPropertyChanged", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - - Assert.Equal( - "Binds the provided expression to the 'MyProperty' property and a change event " + - "delegate to the 'MyPropertyChanged' property of the component.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", bind.AssemblyName); - Assert.Equal("Test.MyComponent", bind.Name); - Assert.Equal("Test.MyComponent", bind.DisplayName); - Assert.Equal("Test.MyComponent", bind.GetTypeName()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("MyComponent", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@bind-MyProperty", requiredAttribute.DisplayName); - Assert.Equal("@bind-MyProperty", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Binds the provided expression to the 'MyProperty' property and a change event " + - "delegate to the 'MyPropertyChanged' property of the component.", - attribute.Documentation); - - Assert.Equal("@bind-MyProperty", attribute.Name); - Assert.Equal("MyProperty", attribute.GetPropertyName()); - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback Test.MyComponent.MyProperty", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - [Fact] - public void Execute_NoMatchedPropertiesOnComponent_IgnoresComponent() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Attach(RenderHandle renderHandle) { } - - public Task SetParametersAsync(ParameterView parameters) - { - return Task.CompletedTask; - } - - public string MyProperty { get; set; } - - public Action MyPropertyChangedNotMatch { get; set; } - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - // We run after component discovery and depend on the results. - var componentProvider = new ComponentTagHelperDescriptorProvider(); - componentProvider.Execute(context); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - Assert.Empty(matches); - } - - [Fact] - public void Execute_BindOnElement_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", null, ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - var bind = Assert.Single(matches); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(bool.TrueString, bind.Metadata[TagHelperMetadata.Common.ClassifyAttributesOnly]); - Assert.Equal(ComponentMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - Assert.False(bind.IsComponentOrChildContentTagHelper()); - Assert.True(bind.CaseSensitive); - - Assert.Equal("myprop", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.False(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - Assert.Equal( - "Binds the provided expression to the 'myprop' attribute and a change event " + - "delegate to the 'myevent' attribute.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("Microsoft.AspNetCore.Components", bind.AssemblyName); - Assert.Equal("Bind", bind.Name); - Assert.Equal("Test.BindAttributes", bind.DisplayName); - Assert.Equal("Test.BindAttributes", bind.GetTypeName()); - - // The tag matching rule for a bind-Component is always the component name + the attribute name - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("div", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@bind", requiredAttribute.DisplayName); - Assert.Equal("@bind", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("@bind")); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Binds the provided expression to the 'myprop' attribute and a change event " + - "delegate to the 'myevent' attribute.", - attribute.Documentation); - - Assert.Equal("@bind", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.Object", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - - var parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("format")); - - // Invariants - Assert.Empty(parameter.Diagnostics); - Assert.False(parameter.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, parameter.Kind); - Assert.False(parameter.IsDefaultKind()); - - Assert.Equal( - "Specifies a format to convert the value specified by the '@bind' attribute. " + - "The format string can currently only be used with expressions of type DateTime.", - parameter.Documentation); - - Assert.Equal("format", parameter.Name); - Assert.Equal("Format_myprop", parameter.GetPropertyName()); - Assert.Equal(":format", parameter.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", parameter.TypeName); - Assert.True(parameter.IsStringProperty); - Assert.False(parameter.IsBooleanProperty); - Assert.False(parameter.IsEnum); - - parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("culture")); - - // Invariants - Assert.Empty(parameter.Diagnostics); - Assert.False(parameter.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, parameter.Kind); - Assert.False(parameter.IsDefaultKind()); - - Assert.Equal( - "Specifies the culture to use for conversions.", - parameter.Documentation); - - Assert.Equal("culture", parameter.Name); - Assert.Equal("Culture", parameter.GetPropertyName()); - Assert.Equal(":culture", parameter.DisplayName); - - // Defined from the property type - Assert.Equal("System.Globalization.CultureInfo", parameter.TypeName); - Assert.False(parameter.IsStringProperty); - Assert.False(parameter.IsBooleanProperty); - Assert.False(parameter.IsEnum); - } - - [Fact] - public void Execute_BindOnElementWithSuffix_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindElement(""div"", ""myprop"", ""myprop"", ""myevent"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.False(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("div", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Equal("@bind-myprop", requiredAttribute.DisplayName); - Assert.Equal("@bind-myprop", requiredAttribute.Name); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("@bind")); - Assert.Equal("@bind-myprop", attribute.Name); - Assert.Equal("Bind_myprop", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind_myprop", attribute.DisplayName); - - attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("format")); - Assert.Equal("format-myprop", attribute.Name); - Assert.Equal("Format_myprop", attribute.GetPropertyName()); - Assert.Equal("string Test.BindAttributes.Format_myprop", attribute.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithoutTypeAttribute_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(null, null, ""myprop"", ""myevent"", false, null)] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.False(bind.Metadata.ContainsKey(ComponentMetadata.Bind.TypeAttribute)); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.True(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("input", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Equal("@bind", requiredAttribute.DisplayName); - Assert.Equal("@bind", requiredAttribute.Name); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("@bind")); - Assert.Equal("@bind", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind", attribute.DisplayName); - - var parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("format")); - Assert.Equal("format", parameter.Name); - Assert.Equal("Format_myprop", parameter.GetPropertyName()); - Assert.Equal(":format", parameter.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithTypeAttribute_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""checkbox"", null, ""myprop"", ""myevent"", false, null)] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.Equal("checkbox", bind.Metadata[ComponentMetadata.Bind.TypeAttribute]); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("input", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - Assert.Collection( - rule.Attributes, - a => - { - Assert.Equal("type", a.DisplayName); - Assert.Equal("type", a.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, a.NameComparison); - Assert.Equal("checkbox", a.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch, a.ValueComparison); - }, - a => - { - Assert.Equal("@bind", a.DisplayName); - Assert.Equal("@bind", a.Name); - }); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("@bind")); - Assert.Equal("@bind", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind", attribute.DisplayName); - - var parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("format")); - Assert.Equal("format", parameter.Name); - Assert.Equal("Format_myprop", parameter.GetPropertyName()); - Assert.Equal(":format", parameter.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithTypeAttributeAndSuffix_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""checkbox"", ""somevalue"", ""myprop"", ""myevent"", false, null)] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - var bind = Assert.Single(matches); - - Assert.Equal("myprop", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("myevent", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.Equal("checkbox", bind.Metadata[ComponentMetadata.Bind.TypeAttribute]); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - Assert.False(bind.IsInvariantCultureBindTagHelper()); - Assert.Null(bind.GetFormat()); - - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Equal("input", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - Assert.Collection( - rule.Attributes, - a => - { - Assert.Equal("type", a.DisplayName); - Assert.Equal("type", a.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, a.NameComparison); - Assert.Equal("checkbox", a.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch, a.ValueComparison); - }, - a => - { - Assert.Equal("@bind-somevalue", a.DisplayName); - Assert.Equal("@bind-somevalue", a.Name); - }); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("@bind")); - Assert.Equal("@bind-somevalue", attribute.Name); - Assert.Equal("Bind_somevalue", attribute.GetPropertyName()); - Assert.Equal("object Test.BindAttributes.Bind_somevalue", attribute.DisplayName); - - var parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("format")); - Assert.Equal("format", parameter.Name); - Assert.Equal("Format_somevalue", parameter.GetPropertyName()); - Assert.Equal(":format", parameter.DisplayName); - } - - [Fact] - public void Execute_BindOnInputElementWithTypeAttributeAndSuffixAndInvariantCultureAndFormat_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - [BindInputElement(""number"", null, ""value"", ""onchange"", isInvariantCulture: true, format: ""0.00"")] - public class BindAttributes - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetBindTagHelpers(context); - matches = AssertAndExcludeFullyQualifiedNameMatchComponents(matches, expectedCount: 0); - var bind = Assert.Single(matches); - - Assert.Equal("value", bind.Metadata[ComponentMetadata.Bind.ValueAttribute]); - Assert.Equal("onchange", bind.Metadata[ComponentMetadata.Bind.ChangeAttribute]); - Assert.Equal("number", bind.Metadata[ComponentMetadata.Bind.TypeAttribute]); - Assert.True(bind.IsInputElementBindTagHelper()); - Assert.False(bind.IsInputElementFallbackBindTagHelper()); - Assert.True(bind.IsInvariantCultureBindTagHelper()); - Assert.Equal("0.00", bind.GetFormat()); - } - - [Fact] - public void Execute_BindFallback_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation; - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new BindTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var bind = Assert.Single(context.Results, r => r.IsFallbackBindTagHelper()); - - // These are features Bind Tags Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(bind.AllowedChildTags); - Assert.Null(bind.TagOutputHint); - - // These are features that are invariants of all Bind Tag Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(bind.Diagnostics); - Assert.False(bind.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, bind.Kind); - Assert.Equal(bool.TrueString, bind.Metadata[TagHelperMetadata.Common.ClassifyAttributesOnly]); - Assert.Equal(ComponentMetadata.Bind.RuntimeName, bind.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(bind.IsDefaultKind()); - Assert.False(bind.KindUsesDefaultTagHelperRuntime()); - Assert.False(bind.IsComponentOrChildContentTagHelper()); - Assert.True(bind.CaseSensitive); - - Assert.False(bind.Metadata.ContainsKey(ComponentMetadata.Bind.ValueAttribute)); - Assert.False(bind.Metadata.ContainsKey(ComponentMetadata.Bind.ChangeAttribute)); - Assert.True(bind.IsFallbackBindTagHelper()); - - Assert.Equal( - "Binds the provided expression to an attribute and a change event, based on the naming of " + - "the bind attribute. For example: @bind-value=\"...\" and @bind-value:event=\"onchange\" will assign the " + - "current value of the expression to the 'value' attribute, and assign a delegate that attempts " + - "to set the value to the 'onchange' attribute.", - bind.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("Microsoft.AspNetCore.Components", bind.AssemblyName); - Assert.Equal("Bind", bind.Name); - Assert.Equal("Microsoft.AspNetCore.Components.Bind", bind.DisplayName); - Assert.Equal("Microsoft.AspNetCore.Components.Bind", bind.GetTypeName()); - - // The tag matching rule for a bind-Component is always the component name + the attribute name - var rule = Assert.Single(bind.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@bind-...", requiredAttribute.DisplayName); - Assert.Equal("@bind-", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(bind.BoundAttributes, a => a.Name.StartsWith("@bind")); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.True(attribute.HasIndexer); - Assert.Equal("@bind-", attribute.IndexerNamePrefix); - Assert.Equal("System.Object", attribute.IndexerTypeName); - - Assert.Equal( - "Binds the provided expression to an attribute and a change event, based on the naming of " + - "the bind attribute. For example: @bind-value=\"...\" and @bind-value:event=\"onchange\" will assign the " + - "current value of the expression to the 'value' attribute, and assign a delegate that attempts " + - "to set the value to the 'onchange' attribute.", - attribute.Documentation); - - Assert.Equal("@bind-...", attribute.Name); - Assert.Equal("Bind", attribute.GetPropertyName()); - Assert.Equal( - "System.Collections.Generic.Dictionary Microsoft.AspNetCore.Components.Bind.Bind", - attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.Collections.Generic.Dictionary", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - - var parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("format")); - - // Invariants - Assert.Empty(parameter.Diagnostics); - Assert.False(parameter.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, parameter.Kind); - Assert.False(parameter.IsDefaultKind()); - - Assert.Equal( - "Specifies a format to convert the value specified by the corresponding bind attribute. " + - "For example: @bind-value:format=\"...\" will apply a format string to the value " + - "specified in @bind-value=\"...\". The format string can currently only be used with " + - "expressions of type DateTime.", - parameter.Documentation); - - Assert.Equal("format", parameter.Name); - Assert.Equal("Format", parameter.GetPropertyName()); - Assert.Equal(":format", parameter.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", parameter.TypeName); - Assert.True(parameter.IsStringProperty); - Assert.False(parameter.IsBooleanProperty); - Assert.False(parameter.IsEnum); - - parameter = Assert.Single(attribute.BoundAttributeParameters, a => a.Name.Equals("culture")); - - // Invariants - Assert.Empty(parameter.Diagnostics); - Assert.False(parameter.HasErrors); - Assert.Equal(ComponentMetadata.Bind.TagHelperKind, parameter.Kind); - Assert.False(parameter.IsDefaultKind()); - - Assert.Equal( - "Specifies the culture to use for conversions.", - parameter.Documentation); - - Assert.Equal("culture", parameter.Name); - Assert.Equal("Culture", parameter.GetPropertyName()); - Assert.Equal(":culture", parameter.DisplayName); - - // Defined from the property type - Assert.Equal("System.Globalization.CultureInfo", parameter.TypeName); - Assert.False(parameter.IsStringProperty); - Assert.False(parameter.IsBooleanProperty); - Assert.False(parameter.IsEnum); - } - - private static TagHelperDescriptor[] GetBindTagHelpers(TagHelperDescriptorProviderContext context) - { - return ExcludeBuiltInComponents(context).Where(t => t.IsBindTagHelper()).ToArray(); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/CompilationTagHelperFeatureTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/CompilationTagHelperFeatureTest.cs deleted file mode 100644 index 53aeb980317..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/CompilationTagHelperFeatureTest.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.TagHelpers; -using Microsoft.CodeAnalysis.CSharp; -using Moq; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class CompilationTagHelperFeatureTest - { - [Fact] - public void IsValidCompilation_ReturnsTrueIfTagHelperInterfaceCannotBeFound() - { - // Arrange - var references = new[] - { - MetadataReference.CreateFromFile(typeof(string).Assembly.Location), - }; - var compilation = CSharpCompilation.Create("Test", references: references); - - // Act - var result = CompilationTagHelperFeature.IsValidCompilation(compilation); - - // Assert - Assert.True(result); - } - - [Fact] - public void IsValidCompilation_ReturnsFalseIfSystemStringCannotBeFound() - { - // Arrange - var references = new[] - { - MetadataReference.CreateFromFile(typeof(ITagHelper).Assembly.Location), - }; - var compilation = CSharpCompilation.Create("Test", references: references); - - // Act - var result = CompilationTagHelperFeature.IsValidCompilation(compilation); - - // Assert - Assert.False(result); - } - - [Fact] - public void IsValidCompilation_ReturnsTrueIfWellKnownTypesAreFound() - { - // Arrange - var references = new[] - { - MetadataReference.CreateFromFile(typeof(string).Assembly.Location), - MetadataReference.CreateFromFile(typeof(ITagHelper).Assembly.Location), - }; - var compilation = CSharpCompilation.Create("Test", references: references); - - // Act - var result = CompilationTagHelperFeature.IsValidCompilation(compilation); - - // Assert - Assert.True(result); - } - - [Fact] - public void GetDescriptors_DoesNotSetCompilation_IfCompilationIsInvalid() - { - // Arrange - Compilation compilation = null; - var provider = new Mock(); - provider.Setup(c => c.Execute(It.IsAny())) - .Callback(c => compilation = c.GetCompilation()) - .Verifiable(); - - var engine = RazorProjectEngine.Create( - configure => - { - configure.Features.Add(new DefaultMetadataReferenceFeature()); - configure.Features.Add(provider.Object); - configure.Features.Add(new CompilationTagHelperFeature()); - }); - - var feature = engine.EngineFeatures.OfType().First(); - - // Act - var result = feature.GetDescriptors(); - - // Assert - Assert.Empty(result); - provider.Verify(); - Assert.Null(compilation); - } - - [Fact] - public void GetDescriptors_SetsCompilation_IfCompilationIsValid() - { - // Arrange - Compilation compilation = null; - var provider = new Mock(); - provider.Setup(c => c.Execute(It.IsAny())) - .Callback(c => compilation = c.GetCompilation()) - .Verifiable(); - - var references = new[] - { - MetadataReference.CreateFromFile(typeof(string).Assembly.Location), - MetadataReference.CreateFromFile(typeof(ITagHelper).Assembly.Location), - }; - - var engine = RazorProjectEngine.Create( - configure => - { - configure.Features.Add(new DefaultMetadataReferenceFeature { References = references }); - configure.Features.Add(provider.Object); - configure.Features.Add(new CompilationTagHelperFeature()); - }); - - var feature = engine.EngineFeatures.OfType().First(); - - // Act - var result = feature.GetDescriptors(); - - // Assert - Assert.Empty(result); - provider.Verify(); - Assert.NotNull(compilation); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/ComponentTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/ComponentTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 28d2986df68..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/ComponentTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,1588 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class ComponentTagHelperDescriptorProviderTest : TagHelperDescriptorProviderTestBase - { - [Fact] - public void Execute_FindsIComponentType_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Attach(RenderHandle renderHandle) { } - - public Task SetParametersAsync(ParameterView parameters) - { - return Task.CompletedTask; - } - - [Parameter] - public string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - // These are features Components don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(component.AllowedChildTags); - Assert.Null(component.TagOutputHint); - - // These are features that are invariants of all Components. Verifying them once - // here and then ignoring them. - Assert.Empty(component.Diagnostics); - Assert.False(component.HasErrors); - Assert.Equal(ComponentMetadata.Component.TagHelperKind, component.Kind); - Assert.False(component.IsDefaultKind()); - Assert.False(component.KindUsesDefaultTagHelperRuntime()); - Assert.True(component.IsComponentOrChildContentTagHelper()); - Assert.True(component.CaseSensitive); - - // No documentation in this test - Assert.Null(component.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - Assert.Equal("Test.MyComponent", component.DisplayName); - Assert.Equal("Test.MyComponent", component.GetTypeName()); - - // Our use of matching rules is also very simple, and derived from the name. Verifying - // it once in detail here and then ignoring it. - var rule = Assert.Single(component.TagMatchingRules); - Assert.Empty(rule.Attributes); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("MyComponent", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - // Our use of metadata is also (for now) an invariant for all Components - other than the type name - // which is trivial. Verifying it once in detail and then ignoring it. - Assert.Collection( - component.Metadata.OrderBy(kvp => kvp.Key), - kvp => { Assert.Equal(TagHelperMetadata.Common.TypeName, kvp.Key); Assert.Equal("Test.MyComponent", kvp.Value); }, - kvp => { Assert.Equal(TagHelperMetadata.Runtime.Name, kvp.Key); Assert.Equal("Components.IComponent", kvp.Value); }); - - // Our use of bound attributes is what tests will focus on. As you might expect right now, this test - // is going to cover a lot of trivial stuff that will be true for all components/component-properties. - var attribute = Assert.Single(component.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal("Components.Component", attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - - // Related to dictionaries/indexers, not supported currently, not sure if we ever will - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - Assert.True(component.CaseSensitive); - - // No documentation in this test - Assert.Null(attribute.Documentation); - - // Names are trivially derived from the property name - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("MyProperty", attribute.GetPropertyName()); - Assert.Equal("string Test.MyComponent.MyProperty", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("System.String", attribute.TypeName); - Assert.True(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - - // Our use of metadata is also (for now) an invariant for all Component properties - other than the type name - // which is trivial. Verifying it once in detail and then ignoring it. - Assert.Collection( - attribute.Metadata.OrderBy(kvp => kvp.Key), - kvp => { Assert.Equal(TagHelperMetadata.Common.PropertyName, kvp.Key); Assert.Equal("MyProperty", kvp.Value); }); - } - - [Fact] - public void Execute_FindsIComponentType_CreatesDescriptor_Generic() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : IComponent - { - public void Attach(RenderHandle renderHandle) { } - - public Task SetParametersAsync(ParameterView parameters) - { - return Task.CompletedTask; - } - - [Parameter] - public string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - Assert.Equal("Test.MyComponent", component.DisplayName); - Assert.Equal("Test.MyComponent", component.GetTypeName()); - - Assert.True(component.IsGenericTypedComponent()); - - var rule = Assert.Single(component.TagMatchingRules); - Assert.Equal("MyComponent", rule.TagName); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("MyProperty", a.Name); - Assert.Equal("MyProperty", a.GetPropertyName()); - Assert.Equal("string Test.MyComponent.MyProperty", a.DisplayName); - Assert.Equal("System.String", a.TypeName); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_FindsBlazorComponentType_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("System.String", attribute.TypeName); - } - - [Fact] - public void Execute_IgnoresPrivateParameters_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - private string MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Empty(component.BoundAttributes); - } - - [Fact] - public void Execute_IgnoresParametersWithPrivateSetters_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public string MyProperty { get; private set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Empty(component.BoundAttributes); - } - - [Fact] // bool properties support minimized attributes - public void Execute_BoolProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public bool MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("System.Boolean", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.True(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - } - - [Fact] // enum properties have some special intellisense behavior - public void Execute_EnumProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public enum MyEnum - { - One, - Two - } - - public class MyComponent : ComponentBase - { - [Parameter] - public MyEnum MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("MyProperty", attribute.Name); - Assert.Equal("Test.MyEnum", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.True(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - } - - [Fact] - public void Execute_GenericProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public T MyProperty { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("MyProperty", a.Name); - Assert.Equal("MyProperty", a.GetPropertyName()); - Assert.Equal("T Test.MyComponent.MyProperty", a.DisplayName); - Assert.Equal("T", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_MultipleGenerics_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public T MyProperty1 { get; set; } - - [Parameter] - public U MyProperty2 { get; set; } - - [Parameter] - public V MyProperty3 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("MyProperty1", a.Name); - Assert.Equal("T", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal("MyProperty2", a.Name); - Assert.Equal("U", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal("MyProperty3", a.Name); - Assert.Equal("V", a.TypeName); - Assert.True(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.True(a.IsTypeParameterProperty()); - }, - a => - { - Assert.Equal("U", a.Name); - Assert.True(a.IsTypeParameterProperty()); - }, - a => - { - Assert.Equal("V", a.Name); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_DelegateProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public Action OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("OnClick", attribute.Name); - Assert.Equal("System.Action", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - Assert.True(attribute.IsDelegateProperty()); - Assert.False(attribute.IsChildContentProperty()); - } - - [Fact] - public void Execute_DelegateProperty_CreatesDescriptor_Generic() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public Action OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("OnClick", a.Name); - Assert.Equal("System.Action", a.TypeName); - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.True(a.IsDelegateProperty()); - Assert.False(a.IsChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_EventCallbackProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("OnClick", attribute.Name); - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - Assert.True(attribute.IsEventCallbackProperty()); - Assert.False(attribute.IsDelegateProperty()); - Assert.False(attribute.IsChildContentProperty()); - } - - [Fact] - public void Execute_EventCallbackProperty_CreatesDescriptor_ClosedGeneric() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("OnClick", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback", a.TypeName); - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.True(a.IsEventCallbackProperty()); - Assert.False(a.IsDelegateProperty()); - Assert.False(a.IsChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - - }); - } - - [Fact] - public void Execute_EventCallbackProperty_CreatesDescriptor_OpenGeneric() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public EventCallback OnClick { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("OnClick", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback", a.TypeName); - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.True(a.IsEventCallbackProperty()); - Assert.False(a.IsDelegateProperty()); - Assert.False(a.IsChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - } - - [Fact] - public void Execute_RenderFragmentProperty_CreatesDescriptors() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - var attribute = Assert.Single(component.BoundAttributes); - Assert.Equal("ChildContent2", attribute.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", attribute.TypeName); - - Assert.False(attribute.HasIndexer); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(attribute.IsChildContentProperty()); - Assert.False(attribute.IsParameterizedChildContentProperty()); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - Assert.Empty(childContent.BoundAttributes); - } - - [Fact] - public void Execute_RenderFragmentOfTProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes, - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentOfTProperty_ComponentDefinesContextParameter() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent2 { get; set; } - - [Parameter] - public string Context { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes, - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.False(a.IsChildContentParameterNameProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentGenericProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentClosedGenericListProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment> ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment>", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.False(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentGenericListProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System.Collections.Generic; -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment> ChildContent2 { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment>", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - Assert.True(contextAttribute.IsChildContentParameterNameProperty()); - } - - [Fact] - public void Execute_RenderFragmentGenericContextProperty_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent2 { get; set; } - - public class Context - { - public T Item { get; set; } - } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 2); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent2", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment.Context>", a.TypeName); - - Assert.False(a.HasIndexer); - Assert.False(a.IsBooleanProperty); - Assert.False(a.IsEnum); - Assert.False(a.IsStringProperty); - Assert.False(a.IsDelegateProperty()); // We treat RenderFragment as separate from generalized delegates - Assert.True(a.IsChildContentProperty()); - Assert.True(a.IsParameterizedChildContentProperty()); - Assert.True(a.IsGenericTypedProperty()); - - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("T", a.Name); - Assert.Equal("T", a.GetPropertyName()); - Assert.Equal("T", a.DisplayName); - Assert.Equal("System.Type", a.TypeName); - Assert.True(a.IsTypeParameterProperty()); - }); - - var childContent = Assert.Single(components, c => c.IsChildContentTagHelper()); - - Assert.Equal("TestAssembly", childContent.AssemblyName); - Assert.Equal("Test.MyComponent.ChildContent2", childContent.Name); - - // A RenderFragment tag helper has a parameter to allow you to set the lambda parameter name. - var contextAttribute = Assert.Single(childContent.BoundAttributes); - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, contextAttribute.Name); - Assert.Equal("System.String", contextAttribute.TypeName); - Assert.Equal("Specifies the parameter name for the 'ChildContent2' child content expression.", contextAttribute.Documentation); - } - - [Fact] - public void Execute_MultipleRenderFragmentProperties_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public class MyComponent : ComponentBase - { - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public RenderFragment Header { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 4); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("ChildContent", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - Assert.True(a.IsChildContentProperty()); - }, - a => - { - Assert.Equal(ComponentMetadata.ChildContent.ParameterAttributeName, a.Name); - Assert.True(a.IsChildContentParameterNameProperty()); - }, - a => - { - Assert.Equal("Footer", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - Assert.True(a.IsChildContentProperty()); - }, - a => - { - Assert.Equal("Header", a.Name); - Assert.Equal("Microsoft.AspNetCore.Components.RenderFragment", a.TypeName); - Assert.True(a.IsChildContentProperty()); - }); - - - var childContents = components.Where(c => c.IsChildContentTagHelper()).OrderBy(c => c.Name); - Assert.Collection( - childContents, - c => Assert.Equal("Test.MyComponent.ChildContent", c.Name), - c => Assert.Equal("Test.MyComponent.Footer", c.Name), - c => Assert.Equal("Test.MyComponent.Header", c.Name)); - } - - [Fact] // This component has lots of properties that don't become components. - public void Execute_IgnoredProperties_CreatesDescriptor() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public abstract class MyBase : ComponentBase - { - [Parameter] - public string Hidden { get; set; } - } - - public class MyComponent : MyBase - { - [Parameter] - public string NoSetter { get; } - - [Parameter] - public static string StaticProperty { get; set; } - - public string NoParameterAttribute { get; set; } - - // No attribute here, hides base-class property of the same name. - public new int Hidden { get; set; } - - public string this[int i] - { - get { throw null; } - set { throw null; } - } - } -} - -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyComponent", component.Name); - - Assert.Empty(component.BoundAttributes); - } - - [Fact] // Testing multilevel overrides with the [Parameter] attribute on different levels. - public void Execute_MultiLevelOverriddenProperties_CreatesDescriptorCorrectly() - { - // Arrange - - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using Microsoft.AspNetCore.Components; - -namespace Test -{ - public abstract class MyBaseComponent : ComponentBase - { - [Parameter] - public virtual string Header { get; set; } - - public virtual string Footer { get; set; } - } - - public abstract class MyDerivedComponent1 : MyBaseComponent - { - public override string Header { get; set; } - - [Parameter] - public override string Footer { get; set; } - } - - public class MyDerivedComponent2 : MyDerivedComponent1 - { - public override string Header { get; set; } - - public override string Footer { get; set; } - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new ComponentTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var components = ExcludeBuiltInComponents(context); - components = AssertAndExcludeFullyQualifiedNameMatchComponents(components, expectedCount: 1); - var component = Assert.Single(components, c => c.IsComponentTagHelper()); - - Assert.Equal("TestAssembly", component.AssemblyName); - Assert.Equal("Test.MyDerivedComponent2", component.Name); - - Assert.Collection( - component.BoundAttributes.OrderBy(a => a.Name), - a => - { - Assert.Equal("Footer", a.Name); - Assert.Equal("System.String", a.TypeName); - }, - a => - { - Assert.Equal("Header", a.Name); - Assert.Equal("System.String", a.TypeName); - }); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorFactoryTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorFactoryTest.cs deleted file mode 100644 index 7465c6e9030..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorFactoryTest.cs +++ /dev/null @@ -1,2384 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Legacy; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Razor.Workspaces.Test; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor.Workspaces -{ - public class DefaultTagHelperDescriptorFactoryTest - { - private static readonly Assembly _assembly = typeof(DefaultTagHelperDescriptorFactoryTest).GetTypeInfo().Assembly; - - protected static readonly AssemblyName TagHelperDescriptorFactoryTestAssembly = _assembly.GetName(); - - protected static readonly string AssemblyName = TagHelperDescriptorFactoryTestAssembly.Name; - - private static Compilation Compilation { get; } = TestCompilation.Create(_assembly); - - public static TheoryData RequiredAttributeParserErrorData - { - get - { - return new TheoryData[]> - { - { - "name,", - new Action[] - { - builder => builder - .Name("name") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("name,")), - } - }, - { - " ", - new Action[] - { - builder => builder - .Name(string.Empty) - .AddDiagnostic(AspNetCore.Razor.Language.RazorDiagnosticFactory.CreateTagHelper_InvalidTargetedAttributeNameNullOrWhitespace()), - } - }, - { - "n@me", - new Action[] - { - builder => builder - .Name("n@me") - .AddDiagnostic(AspNetCore.Razor.Language.RazorDiagnosticFactory.CreateTagHelper_InvalidTargetedAttributeName("n@me", '@')), - } - }, - { - "name extra", - new Action[] - { - builder => builder - .Name("name") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_InvalidRequiredAttributeCharacter('e', "name extra")), - } - }, - { - "[[ ", - new Action[] - { - builder => builder - .Name("[") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("[[ ")), - } - }, - { - "[ ", - new Action[] - { - builder => builder - .Name("") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("[ ")), - } - }, - { - "[name='unended]", - new Action[] - { - builder => builder - .Name("name") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_InvalidRequiredAttributeMismatchedQuotes('\'', "[name='unended]")), - } - }, - { - "[name='unended", - new Action[] - { - builder => builder - .Name("name") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_InvalidRequiredAttributeMismatchedQuotes('\'', "[name='unended")), - } - }, - { - "[name", - new Action[] - { - builder => builder - .Name("name") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("[name")), - } - }, - { - "[ ]", - new Action[] - { - builder => builder - .Name(string.Empty) - .AddDiagnostic(AspNetCore.Razor.Language.RazorDiagnosticFactory.CreateTagHelper_InvalidTargetedAttributeNameNullOrWhitespace()), - } - }, - { - "[n@me]", - new Action[] - { - builder => builder - .Name("n@me") - .AddDiagnostic(AspNetCore.Razor.Language.RazorDiagnosticFactory.CreateTagHelper_InvalidTargetedAttributeName("n@me", '@')), - } - }, - { - "[name@]", - new Action[] - { - builder => builder - .Name("name@") - .AddDiagnostic(AspNetCore.Razor.Language.RazorDiagnosticFactory.CreateTagHelper_InvalidTargetedAttributeName("name@", '@')), - } - }, - { - "[name^]", - new Action[] - { - builder => builder - .Name("name") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_PartialRequiredAttributeOperator('^', "[name^]")), - } - }, - { - "[name='value'", - new Action[] - { - builder => builder - .Name("name") - .Value("value") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("[name='value'")), - } - }, - { - "[name ", - new Action[] - { - builder => builder - .Name("name") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("[name ")), - } - }, - { - "[name extra]", - new Action[] - { - builder => builder - .Name("name") - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_InvalidRequiredAttributeOperator('e', "[name extra]")), - } - }, - { - "[name=value ", - new Action[] - { - builder => builder - .Name("name") - .Value("value") - .ValueComparisonMode(RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_CouldNotFindMatchingEndBrace("[name=value ")), - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(RequiredAttributeParserErrorData))] - public void RequiredAttributeParser_ParsesRequiredAttributesAndLogsDiagnosticsCorrectly( - string requiredAttributes, - IEnumerable> configureBuilders) - { - // Arrange - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - var ruleBuilder = new DefaultTagMatchingRuleDescriptorBuilder(tagHelperBuilder); - - var expectedRules = new List(); - foreach (var configureBuilder in configureBuilders) - { - var builder = new DefaultRequiredAttributeDescriptorBuilder(ruleBuilder); - configureBuilder(builder); - - expectedRules.Add(builder.Build()); - } - - // Act - RequiredAttributeParser.AddRequiredAttributes(requiredAttributes, ruleBuilder); - - // Assert - var descriptors = ruleBuilder.Build().Attributes; - Assert.Equal(expectedRules, descriptors, RequiredAttributeDescriptorComparer.Default); - } - - public static TheoryData RequiredAttributeParserData - { - get - { - Func> plain = - (name, nameComparison) => (builder) => builder - .Name(name) - .NameComparisonMode(nameComparison); - - Func> css = - (name, value, valueComparison) => (builder) => builder - .Name(name) - .Value(value) - .ValueComparisonMode(valueComparison); - - return new TheoryData>> - { - { null, Enumerable.Empty>() }, - { string.Empty, Enumerable.Empty>() }, - { "name", new[] { plain("name", RequiredAttributeDescriptor.NameComparisonMode.FullMatch) } }, - { "name-*", new[] { plain("name-", RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch) } }, - { " name-* ", new[] { plain("name-", RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch) } }, - { - "asp-route-*,valid , name-* ,extra", - new[] - { - plain("asp-route-", RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - plain("valid", RequiredAttributeDescriptor.NameComparisonMode.FullMatch), - plain("name-", RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - plain("extra", RequiredAttributeDescriptor.NameComparisonMode.FullMatch), - } - }, - { "[name]", new[] { css("name", null, RequiredAttributeDescriptor.ValueComparisonMode.None) } }, - { "[ name ]", new[] { css("name", null, RequiredAttributeDescriptor.ValueComparisonMode.None) } }, - { " [ name ] ", new[] { css("name", null, RequiredAttributeDescriptor.ValueComparisonMode.None) } }, - { "[name=]", new[] { css("name", "", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } }, - { "[name='']", new[] { css("name", "", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } }, - { "[name ^=]", new[] { css("name", "", RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch) } }, - { "[name=hello]", new[] { css("name", "hello", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } }, - { "[name= hello]", new[] { css("name", "hello", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } }, - { "[name='hello']", new[] { css("name", "hello", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } }, - { "[name=\"hello\"]", new[] { css("name", "hello", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } }, - { " [ name $= \" hello\" ] ", new[] { css("name", " hello", RequiredAttributeDescriptor.ValueComparisonMode.SuffixMatch) } }, - { - "[name=\"hello\"],[other^=something ], [val = 'cool']", - new[] - { - css("name", "hello", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch), - css("other", "something", RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch), - css("val", "cool", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch) } - }, - { - "asp-route-*,[name=\"hello\"],valid ,[other^=something ], name-* ,[val = 'cool'],extra", - new[] - { - plain("asp-route-", RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - css("name", "hello", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch), - plain("valid", RequiredAttributeDescriptor.NameComparisonMode.FullMatch), - css("other", "something", RequiredAttributeDescriptor.ValueComparisonMode.PrefixMatch), - plain("name-", RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch), - css("val", "cool", RequiredAttributeDescriptor.ValueComparisonMode.FullMatch), - plain("extra", RequiredAttributeDescriptor.NameComparisonMode.FullMatch), - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(RequiredAttributeParserData))] - public void RequiredAttributeParser_ParsesRequiredAttributesCorrectly( - string requiredAttributes, - IEnumerable> configureBuilders) - { - // Arrange - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, "TestTagHelper", "Test"); - var ruleBuilder = new DefaultTagMatchingRuleDescriptorBuilder(tagHelperBuilder); - - var expectedRules = new List(); - foreach (var configureBuilder in configureBuilders) - { - var builder = new DefaultRequiredAttributeDescriptorBuilder(ruleBuilder); - configureBuilder(builder); - - expectedRules.Add(builder.Build()); - } - - // Act - RequiredAttributeParser.AddRequiredAttributes(requiredAttributes, ruleBuilder); - - // Assert - var descriptors = ruleBuilder.Build().Attributes; - Assert.Equal(expectedRules, descriptors, RequiredAttributeDescriptorComparer.Default); - } - - public static TheoryData IsEnumData - { - get - { - // tagHelperType, expectedDescriptor - return new TheoryData - { - { - typeof(EnumTagHelper), - TagHelperDescriptorBuilder.Create(typeof(EnumTagHelper).FullName, AssemblyName) - .TypeName(typeof(EnumTagHelper).FullName) - .TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName("enum")) - .BoundAttributeDescriptor(builder => - builder - .Name("non-enum-property") - .PropertyName(nameof(EnumTagHelper.NonEnumProperty)) - .TypeName(typeof(int).FullName)) - .BoundAttributeDescriptor(builder => - builder - .Name("enum-property") - .PropertyName(nameof(EnumTagHelper.EnumProperty)) - .TypeName(typeof(CustomEnum).FullName) - .AsEnum()) - .Build() - }, - { - typeof(MultiEnumTagHelper), - TagHelperDescriptorBuilder.Create(typeof(MultiEnumTagHelper).FullName, AssemblyName) - .TypeName(typeof(MultiEnumTagHelper).FullName) - .TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName("p")) - .TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName("input")) - .BoundAttributeDescriptor(builder => - builder - .Name("non-enum-property") - .PropertyName(nameof(MultiEnumTagHelper.NonEnumProperty)) - .TypeName(typeof(int).FullName)) - .BoundAttributeDescriptor(builder => - builder - .Name("enum-property") - .PropertyName(nameof(MultiEnumTagHelper.EnumProperty)) - .TypeName(typeof(CustomEnum).FullName) - .AsEnum()) - .Build() - }, - { - typeof(NestedEnumTagHelper), - TagHelperDescriptorBuilder.Create(typeof(NestedEnumTagHelper).FullName, AssemblyName) - .TypeName(typeof(NestedEnumTagHelper).FullName) - .TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName("nested-enum")) - .BoundAttributeDescriptor(builder => - builder - .Name("non-enum-property") - .PropertyName(nameof(NestedEnumTagHelper.NonEnumProperty)) - .TypeName(typeof(int).FullName)) - .BoundAttributeDescriptor(builder => - builder - .Name("enum-property") - .PropertyName(nameof(NestedEnumTagHelper.EnumProperty)) - .TypeName(typeof(CustomEnum).FullName) - .AsEnum()) - .BoundAttributeDescriptor(builder => - builder - .Name("nested-enum-property") - .PropertyName(nameof(NestedEnumTagHelper.NestedEnumProperty)) - .TypeName($"{typeof(NestedEnumTagHelper).FullName}.{nameof(NestedEnumTagHelper.NestedEnum)}") - .AsEnum()) - .Build() - }, - }; - } - } - - [Theory] - [MemberData(nameof(IsEnumData))] - public void CreateDescriptor_IsEnumIsSetCorrectly( - Type tagHelperType, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData RequiredParentData - { - get - { - // tagHelperType, expectedDescriptor - return new TheoryData - { - { - typeof(RequiredParentTagHelper), - TagHelperDescriptorBuilder.Create(typeof(RequiredParentTagHelper).FullName, AssemblyName) - .TypeName(typeof(RequiredParentTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("input").RequireParentTag("div")) - .Build() - }, - { - typeof(MultiSpecifiedRequiredParentTagHelper), - TagHelperDescriptorBuilder.Create(typeof(MultiSpecifiedRequiredParentTagHelper).FullName, AssemblyName) - .TypeName(typeof(MultiSpecifiedRequiredParentTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("p").RequireParentTag("div")) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("input").RequireParentTag("section")) - .Build() - }, - { - typeof(MultiWithUnspecifiedRequiredParentTagHelper), - TagHelperDescriptorBuilder.Create(typeof(MultiWithUnspecifiedRequiredParentTagHelper).FullName, AssemblyName) - .TypeName(typeof(MultiWithUnspecifiedRequiredParentTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("p")) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("input").RequireParentTag("div")) - .Build() - }, - }; - } - } - - [Theory] - [MemberData(nameof(RequiredParentData))] - public void CreateDescriptor_CreatesDesignTimeDescriptorsWithRequiredParent( - Type tagHelperType, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData RestrictChildrenData - { - get - { - // tagHelperType, expectedDescriptor - return new TheoryData - { - { - typeof(RestrictChildrenTagHelper), - TagHelperDescriptorBuilder.Create(typeof(RestrictChildrenTagHelper).FullName, AssemblyName) - .TypeName(typeof(RestrictChildrenTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("restrict-children")) - .AllowChildTag("p") - .Build() - }, - { - typeof(DoubleRestrictChildrenTagHelper), - TagHelperDescriptorBuilder.Create(typeof(DoubleRestrictChildrenTagHelper).FullName, AssemblyName) - .TypeName(typeof(DoubleRestrictChildrenTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("double-restrict-children")) - .AllowChildTag("p") - .AllowChildTag("strong") - .Build() - }, - { - typeof(MultiTargetRestrictChildrenTagHelper), - TagHelperDescriptorBuilder.Create(typeof(MultiTargetRestrictChildrenTagHelper).FullName, AssemblyName) - .TypeName(typeof(MultiTargetRestrictChildrenTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("p")) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("div")) - .AllowChildTag("p") - .AllowChildTag("strong") - .Build() - }, - }; - } - } - - - [Theory] - [MemberData(nameof(RestrictChildrenData))] - public void CreateDescriptor_CreatesDescriptorsWithAllowedChildren( - Type tagHelperType, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData TagStructureData - { - get - { - // tagHelperType, expectedDescriptor - return new TheoryData - { - { - typeof(TagStructureTagHelper), - TagHelperDescriptorBuilder.Create(typeof(TagStructureTagHelper).FullName, AssemblyName) - .TypeName(typeof(TagStructureTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build() - }, - { - typeof(MultiSpecifiedTagStructureTagHelper), - TagHelperDescriptorBuilder.Create(typeof(MultiSpecifiedTagStructureTagHelper).FullName, AssemblyName) - .TypeName(typeof(MultiSpecifiedTagStructureTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder - .RequireTagName("p") - .RequireTagStructure(TagStructure.NormalOrSelfClosing)) - .TagMatchingRuleDescriptor(builder => builder - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build() - }, - { - typeof(MultiWithUnspecifiedTagStructureTagHelper), - TagHelperDescriptorBuilder.Create(typeof(MultiWithUnspecifiedTagStructureTagHelper).FullName, AssemblyName) - .TypeName(typeof(MultiWithUnspecifiedTagStructureTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder - .RequireTagName("p")) - .TagMatchingRuleDescriptor(builder => builder - .RequireTagName("input") - .RequireTagStructure(TagStructure.WithoutEndTag)) - .Build() - }, - }; - } - } - - [Theory] - [MemberData(nameof(TagStructureData))] - public void CreateDescriptor_CreatesDesignTimeDescriptorsWithTagStructure( - Type tagHelperType, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData EditorBrowsableData - { - get - { - // tagHelperType, designTime, expectedDescriptor - return new TheoryData - { - { - typeof(InheritedEditorBrowsableTagHelper), - true, - CreateTagHelperDescriptor( - tagName: "inherited-editor-browsable", - typeName: typeof(InheritedEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property") - .PropertyName(nameof(InheritedEditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - }) - }, - { typeof(EditorBrowsableTagHelper), true, null }, - { - typeof(EditorBrowsableTagHelper), - false, - CreateTagHelperDescriptor( - tagName: "editor-browsable", - typeName: typeof(EditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property") - .PropertyName(nameof(EditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - }) - }, - { - typeof(HiddenPropertyEditorBrowsableTagHelper), - true, - CreateTagHelperDescriptor( - tagName: "hidden-property-editor-browsable", - typeName: typeof(HiddenPropertyEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName) - }, - { - typeof(HiddenPropertyEditorBrowsableTagHelper), - false, - CreateTagHelperDescriptor( - tagName: "hidden-property-editor-browsable", - typeName: typeof(HiddenPropertyEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property") - .PropertyName(nameof(HiddenPropertyEditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - }) - }, - { - typeof(OverriddenEditorBrowsableTagHelper), - true, - CreateTagHelperDescriptor( - tagName: "overridden-editor-browsable", - typeName: typeof(OverriddenEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property") - .PropertyName(nameof(OverriddenEditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - }) - }, - { - typeof(MultiPropertyEditorBrowsableTagHelper), - true, - CreateTagHelperDescriptor( - tagName: "multi-property-editor-browsable", - typeName: typeof(MultiPropertyEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property2") - .PropertyName(nameof(MultiPropertyEditorBrowsableTagHelper.Property2)) - .TypeName(typeof(int).FullName), - }) - }, - { - typeof(MultiPropertyEditorBrowsableTagHelper), - false, - CreateTagHelperDescriptor( - tagName: "multi-property-editor-browsable", - typeName: typeof(MultiPropertyEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property") - .PropertyName(nameof(MultiPropertyEditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - builder => builder - .Name("property2") - .PropertyName(nameof(MultiPropertyEditorBrowsableTagHelper.Property2)) - .TypeName(typeof(int).FullName), - }) - }, - { - typeof(OverriddenPropertyEditorBrowsableTagHelper), - true, - CreateTagHelperDescriptor( - tagName: "overridden-property-editor-browsable", - typeName: typeof(OverriddenPropertyEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName) - }, - { - typeof(OverriddenPropertyEditorBrowsableTagHelper), - false, - CreateTagHelperDescriptor( - tagName: "overridden-property-editor-browsable", - typeName: typeof(OverriddenPropertyEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property2") - .PropertyName(nameof(OverriddenPropertyEditorBrowsableTagHelper.Property2)) - .TypeName(typeof(int).FullName), - builder => builder - .Name("property") - .PropertyName(nameof(OverriddenPropertyEditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - }) - }, - { - typeof(DefaultEditorBrowsableTagHelper), - true, - CreateTagHelperDescriptor( - tagName: "default-editor-browsable", - typeName: typeof(DefaultEditorBrowsableTagHelper).FullName, - assemblyName: AssemblyName, - attributes: new Action[] - { - builder => builder - .Name("property") - .PropertyName(nameof(DefaultEditorBrowsableTagHelper.Property)) - .TypeName(typeof(int).FullName), - }) - }, - { typeof(MultiEditorBrowsableTagHelper), true, null } - }; - } - } - - [Theory] - [MemberData(nameof(EditorBrowsableData))] - public void CreateDescriptor_UnderstandsEditorBrowsableAttribute( - Type tagHelperType, - bool designTime, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, designTime, designTime); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData AttributeTargetData - { - get - { - var attributes = Enumerable.Empty(); - - // tagHelperType, expectedDescriptor - return new TheoryData - { - { - typeof(AttributeTargetingTagHelper), - CreateTagHelperDescriptor( - TagHelperMatchingConventions.ElementCatchAllName, - typeof(AttributeTargetingTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("class")), - }) - }, - { - typeof(MultiAttributeTargetingTagHelper), - CreateTagHelperDescriptor( - TagHelperMatchingConventions.ElementCatchAllName, - typeof(MultiAttributeTargetingTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => - { - builder - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style")); - }, - }) - }, - { - typeof(MultiAttributeAttributeTargetingTagHelper), - CreateTagHelperDescriptor( - TagHelperMatchingConventions.ElementCatchAllName, - typeof(MultiAttributeAttributeTargetingTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("custom")), - builder => - { - builder - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style")); - }, - }) - }, - { - typeof(InheritedAttributeTargetingTagHelper), - CreateTagHelperDescriptor( - TagHelperMatchingConventions.ElementCatchAllName, - typeof(InheritedAttributeTargetingTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("style")), - }) - }, - { - typeof(RequiredAttributeTagHelper), - CreateTagHelperDescriptor( - "input", - typeof(RequiredAttributeTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("class")), - }) - }, - { - typeof(InheritedRequiredAttributeTagHelper), - CreateTagHelperDescriptor( - "div", - typeof(InheritedRequiredAttributeTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("class")), - }) - }, - { - typeof(MultiAttributeRequiredAttributeTagHelper), - CreateTagHelperDescriptor( - "div", - typeof(MultiAttributeRequiredAttributeTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder - .RequireTagName("div") - .RequireAttributeDescriptor(attribute => attribute.Name("class")), - builder => builder - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => attribute.Name("class")), - }) - }, - { - typeof(MultiAttributeSameTagRequiredAttributeTagHelper), - CreateTagHelperDescriptor( - "input", - typeof(MultiAttributeSameTagRequiredAttributeTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("style")), - builder => builder.RequireAttributeDescriptor(attribute => attribute.Name("class")), - }) - }, - { - typeof(MultiRequiredAttributeTagHelper), - CreateTagHelperDescriptor( - "input", - typeof(MultiRequiredAttributeTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style")), - }) - }, - { - typeof(MultiTagMultiRequiredAttributeTagHelper), - CreateTagHelperDescriptor( - "div", - typeof(MultiTagMultiRequiredAttributeTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder - .RequireTagName("div") - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style")), - builder => builder - .RequireTagName("input") - .RequireAttributeDescriptor(attribute => attribute.Name("class")) - .RequireAttributeDescriptor(attribute => attribute.Name("style")), - }) - }, - { - typeof(AttributeWildcardTargetingTagHelper), - CreateTagHelperDescriptor( - TagHelperMatchingConventions.ElementCatchAllName, - typeof(AttributeWildcardTargetingTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("class") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch)), - }) - }, - { - typeof(MultiAttributeWildcardTargetingTagHelper), - CreateTagHelperDescriptor( - TagHelperMatchingConventions.ElementCatchAllName, - typeof(MultiAttributeWildcardTargetingTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder - .RequireAttributeDescriptor(attribute => attribute - .Name("class") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch)) - .RequireAttributeDescriptor(attribute => attribute - .Name("style") - .NameComparisonMode(RequiredAttributeDescriptor.NameComparisonMode.PrefixMatch)), - }) - }, - }; - } - } - - [Theory] - [MemberData(nameof(AttributeTargetData))] - public void CreateDescriptor_ReturnsExpectedDescriptors( - Type tagHelperType, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData HtmlCaseData - { - get - { - // tagHelperType, expectedTagName, expectedAttributeName - return new TheoryData - { - { typeof(SingleAttributeTagHelper), "single-attribute", "int-attribute" }, - { typeof(ALLCAPSTAGHELPER), "allcaps", "allcapsattribute" }, - { typeof(CAPSOnOUTSIDETagHelper), "caps-on-outside", "caps-on-outsideattribute" }, - { typeof(capsONInsideTagHelper), "caps-on-inside", "caps-on-insideattribute" }, - { typeof(One1Two2Three3TagHelper), "one1-two2-three3", "one1-two2-three3-attribute" }, - { typeof(ONE1TWO2THREE3TagHelper), "one1two2three3", "one1two2three3-attribute" }, - { typeof(First_Second_ThirdHiTagHelper), "first_second_third-hi", "first_second_third-attribute" }, - { typeof(UNSuffixedCLASS), "un-suffixed-class", "un-suffixed-attribute" }, - }; - } - } - - [Theory] - [MemberData(nameof(HtmlCaseData))] - public void CreateDescriptor_HtmlCasesTagNameAndAttributeName( - Type tagHelperType, - string expectedTagName, - string expectedAttributeName) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - var rule = Assert.Single(descriptor.TagMatchingRules); - Assert.Equal(expectedTagName, rule.TagName, StringComparer.Ordinal); - var attributeDescriptor = Assert.Single(descriptor.BoundAttributes); - Assert.Equal(expectedAttributeName, attributeDescriptor.Name); - } - - [Fact] - public void CreateDescriptor_OverridesAttributeNameFromAttribute() - { - // Arrange - var validProperty1 = typeof(OverriddenAttributeTagHelper).GetProperty( - nameof(OverriddenAttributeTagHelper.ValidAttribute1)); - var validProperty2 = typeof(OverriddenAttributeTagHelper).GetProperty( - nameof(OverriddenAttributeTagHelper.ValidAttribute2)); - var expectedDescriptor = - CreateTagHelperDescriptor( - "overridden-attribute", - typeof(OverriddenAttributeTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("SomethingElse") - .PropertyName(validProperty1.Name) - .TypeName(validProperty1.PropertyType.FullName), - builder => builder - .Name("Something-Else") - .PropertyName(validProperty2.Name) - .TypeName(validProperty2.PropertyType.FullName), - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(OverriddenAttributeTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_DoesNotInheritOverridenAttributeName() - { - // Arrange - var validProperty1 = typeof(InheritedOverriddenAttributeTagHelper).GetProperty( - nameof(InheritedOverriddenAttributeTagHelper.ValidAttribute1)); - var validProperty2 = typeof(InheritedOverriddenAttributeTagHelper).GetProperty( - nameof(InheritedOverriddenAttributeTagHelper.ValidAttribute2)); - var expectedDescriptor = - CreateTagHelperDescriptor( - "inherited-overridden-attribute", - typeof(InheritedOverriddenAttributeTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("valid-attribute1") - .PropertyName(validProperty1.Name) - .TypeName(validProperty1.PropertyType.FullName), - builder => builder - .Name("Something-Else") - .PropertyName(validProperty2.Name) - .TypeName(validProperty2.PropertyType.FullName), - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(InheritedOverriddenAttributeTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_AllowsOverriddenAttributeNameOnUnimplementedVirtual() - { - // Arrange - var validProperty1 = typeof(InheritedNotOverriddenAttributeTagHelper).GetProperty( - nameof(InheritedNotOverriddenAttributeTagHelper.ValidAttribute1)); - var validProperty2 = typeof(InheritedNotOverriddenAttributeTagHelper).GetProperty( - nameof(InheritedNotOverriddenAttributeTagHelper.ValidAttribute2)); - - var expectedDescriptor = CreateTagHelperDescriptor( - "inherited-not-overridden-attribute", - typeof(InheritedNotOverriddenAttributeTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("SomethingElse") - .PropertyName(validProperty1.Name) - .TypeName(validProperty1.PropertyType.FullName), - builder => builder - .Name("Something-Else") - .PropertyName(validProperty2.Name) - .TypeName(validProperty2.PropertyType.FullName), - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(InheritedNotOverriddenAttributeTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_BuildsDescriptorsWithInheritedProperties() - { - // Arrange - var expectedDescriptor = CreateTagHelperDescriptor( - "inherited-single-attribute", - typeof(InheritedSingleAttributeTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("int-attribute") - .PropertyName(nameof(InheritedSingleAttributeTagHelper.IntAttribute)) - .TypeName(typeof(int).FullName) - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(InheritedSingleAttributeTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_BuildsDescriptorsWithConventionNames() - { - // Arrange - var intProperty = typeof(SingleAttributeTagHelper).GetProperty(nameof(SingleAttributeTagHelper.IntAttribute)); - var expectedDescriptor = CreateTagHelperDescriptor( - "single-attribute", - typeof(SingleAttributeTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("int-attribute") - .PropertyName(intProperty.Name) - .TypeName(intProperty.PropertyType.FullName) - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(SingleAttributeTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_OnlyAcceptsPropertiesWithGetAndSet() - { - // Arrange - var validProperty = typeof(MissingAccessorTagHelper).GetProperty( - nameof(MissingAccessorTagHelper.ValidAttribute)); - var expectedDescriptor = CreateTagHelperDescriptor( - "missing-accessor", - typeof(MissingAccessorTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("valid-attribute") - .PropertyName(validProperty.Name) - .TypeName(validProperty.PropertyType.FullName) - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(MissingAccessorTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_OnlyAcceptsPropertiesWithPublicGetAndSet() - { - // Arrange - var validProperty = typeof(NonPublicAccessorTagHelper).GetProperty( - nameof(NonPublicAccessorTagHelper.ValidAttribute)); - var expectedDescriptor = CreateTagHelperDescriptor( - "non-public-accessor", - typeof(NonPublicAccessorTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("valid-attribute") - .PropertyName(validProperty.Name) - .TypeName(validProperty.PropertyType.FullName) - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(NonPublicAccessorTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_DoesNotIncludePropertiesWithNotBound() - { - // Arrange - var expectedDescriptor = CreateTagHelperDescriptor( - "not-bound-attribute", - typeof(NotBoundAttributeTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("bound-property") - .PropertyName(nameof(NotBoundAttributeTagHelper.BoundProperty)) - .TypeName(typeof(object).FullName) - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(NotBoundAttributeTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_ResolvesMultipleTagHelperDescriptorsFromSingleType() - { - // Arrange - var expectedDescriptor = - CreateTagHelperDescriptor( - string.Empty, - typeof(MultiTagTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("valid-attribute") - .PropertyName(nameof(MultiTagTagHelper.ValidAttribute)) - .TypeName(typeof(string).FullName), - }, - new Action[] - { - builder => builder.RequireTagName("p"), - builder => builder.RequireTagName("div"), - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(MultiTagTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_DoesNotResolveInheritedTagNames() - { - // Arrange - var validProp = typeof(InheritedMultiTagTagHelper).GetProperty(nameof(InheritedMultiTagTagHelper.ValidAttribute)); - var expectedDescriptor = CreateTagHelperDescriptor( - "inherited-multi-tag", - typeof(InheritedMultiTagTagHelper).FullName, - AssemblyName, - new Action[] - { - builder => builder - .Name("valid-attribute") - .PropertyName(validProp.Name) - .TypeName(validProp.PropertyType.FullName), - }); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(InheritedMultiTagTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_IgnoresDuplicateTagNamesFromAttribute() - { - // Arrange - var expectedDescriptor = CreateTagHelperDescriptor( - string.Empty, - typeof(DuplicateTagNameTagHelper).FullName, - AssemblyName, - ruleBuilders: new Action[] - { - builder => builder.RequireTagName("p"), - builder => builder.RequireTagName("div"), - }); - - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(DuplicateTagNameTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_OverridesTagNameFromAttribute() - { - // Arrange - var expectedDescriptor = - CreateTagHelperDescriptor( - "data-condition", - typeof(OverrideNameTagHelper).FullName, - AssemblyName); - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(OverrideNameTagHelper).FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - // name, expectedErrorMessages - public static TheoryData InvalidNameData - { - get - { - Func onNameError = - (invalidText, invalidCharacter) => $"Tag helpers cannot target tag name '{invalidText}' because it contains a '{invalidCharacter}' character."; - var whitespaceErrorString = "Targeted tag name cannot be null or whitespace."; - - var data = GetInvalidNameOrPrefixData(onNameError, whitespaceErrorString, onDataError: null); - data.Add(string.Empty, new[] { whitespaceErrorString }); - - return data; - } - } - - [Theory] - [MemberData(nameof(InvalidNameData))] - public void CreateDescriptor_CreatesErrorOnInvalidNames( - string name, string[] expectedErrorMessages) - { - // Arrange - name = name.Replace("\n", "\\n").Replace("\r", "\\r").Replace("\"", "\\\""); - var text = $@" - [{typeof(AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute).FullName}(""{name}"")] - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var attribute = tagHelperType.GetAttributes().Single(); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - var rule = Assert.Single(descriptor.TagMatchingRules); - var errorMessages = rule.GetAllDiagnostics().Select(diagnostic => diagnostic.GetMessage()).ToArray(); - Assert.Equal(expectedErrorMessages.Length, errorMessages.Length); - for (var i = 0; i < expectedErrorMessages.Length; i++) - { - Assert.Equal(expectedErrorMessages[i], errorMessages[i], StringComparer.Ordinal); - } - } - - public static TheoryData ValidNameData - { - get - { - // name, expectedNames - return new TheoryData> - { - { "p", new[] { "p" } }, - { " p", new[] { "p" } }, - { "p ", new[] { "p" } }, - { " p ", new[] { "p" } }, - { "p,div", new[] { "p", "div" } }, - { " p,div", new[] { "p", "div" } }, - { "p ,div", new[] { "p", "div" } }, - { " p ,div", new[] { "p", "div" } }, - { "p, div", new[] { "p", "div" } }, - { "p,div ", new[] { "p", "div" } }, - { "p, div ", new[] { "p", "div" } }, - { " p, div ", new[] { "p", "div" } }, - { " p , div ", new[] { "p", "div" } }, - }; - } - } - - public static TheoryData InvalidTagHelperAttributeDescriptorData - { - get - { - var invalidBoundAttributeBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, nameof(InvalidBoundAttribute), "Test"); - invalidBoundAttributeBuilder.TypeName(typeof(InvalidBoundAttribute).FullName); - - // type, expectedAttributeDescriptors - return new TheoryData> - { - { - typeof(InvalidBoundAttribute), - new[] - { - CreateAttributeFor(typeof(InvalidBoundAttribute), attribute => - { - attribute - .Name("data-something") - .PropertyName(nameof(InvalidBoundAttribute.DataSomething)) - .TypeName(typeof(string).FullName); - }), - } - }, - { - typeof(InvalidBoundAttributeWithValid), - new[] - { - CreateAttributeFor(typeof(InvalidBoundAttributeWithValid), attribute => - { - attribute - .Name("data-something") - .PropertyName(nameof(InvalidBoundAttributeWithValid.DataSomething)) - .TypeName(typeof(string).FullName); ; - }), - CreateAttributeFor(typeof(InvalidBoundAttributeWithValid), attribute => - { - attribute - .Name("int-attribute") - .PropertyName(nameof(InvalidBoundAttributeWithValid.IntAttribute)) - .TypeName(typeof(int).FullName); - }), - } - }, - { - typeof(OverriddenInvalidBoundAttributeWithValid), - new[] - { - CreateAttributeFor(typeof(OverriddenInvalidBoundAttributeWithValid), attribute => - { - attribute - .Name("valid-something") - .PropertyName(nameof(OverriddenInvalidBoundAttributeWithValid.DataSomething)) - .TypeName(typeof(string).FullName); - }), - } - }, - { - typeof(OverriddenValidBoundAttributeWithInvalid), - new[] - { - CreateAttributeFor(typeof(OverriddenValidBoundAttributeWithInvalid), attribute => - { - attribute - .Name("data-something") - .PropertyName(nameof(OverriddenValidBoundAttributeWithInvalid.ValidSomething)) - .TypeName(typeof(string).FullName); - }), - } - }, - { - typeof(OverriddenValidBoundAttributeWithInvalidUpperCase), - new[] - { - CreateAttributeFor(typeof(OverriddenValidBoundAttributeWithInvalidUpperCase), attribute => - { - attribute - .Name("DATA-SOMETHING") - .PropertyName(nameof(OverriddenValidBoundAttributeWithInvalidUpperCase.ValidSomething)) - .TypeName(typeof(string).FullName); - }), - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(InvalidTagHelperAttributeDescriptorData))] - public void CreateDescriptor_DoesNotAllowDataDashAttributes( - Type type, - IEnumerable expectedAttributeDescriptors) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(type.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal( - expectedAttributeDescriptors, - descriptor.BoundAttributes, - BoundAttributeDescriptorComparer.Default); - - var id = AspNetCore.Razor.Language.RazorDiagnosticFactory.TagHelper_InvalidBoundAttributeNameStartsWith.Id; - foreach (var attribute in descriptor.BoundAttributes.Where(a => a.Name.StartsWith("data-", StringComparison.OrdinalIgnoreCase))) - { - var diagnostic = Assert.Single(attribute.Diagnostics); - Assert.Equal(id, diagnostic.Id); - } - } - - public static TheoryData ValidAttributeNameData - { - get - { - return new TheoryData - { - "data", - "dataa-", - "ValidName", - "valid-name", - "--valid--name--", - ",,--__..oddly.valid::;;", - }; - } - } - - [Theory] - [MemberData(nameof(ValidAttributeNameData))] - public void CreateDescriptor_WithValidAttributeName_HasNoErrors(string name) - { - // Arrange - var text = $@" - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - [{typeof(AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute).FullName}(""{name}"")] - public string SomeAttribute {{ get; set; }} - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - Assert.False(descriptor.HasErrors); - } - - public static TheoryData ValidAttributePrefixData - { - get - { - return new TheoryData - { - string.Empty, - "data", - "dataa-", - "ValidName", - "valid-name", - "--valid--name--", - ",,--__..oddly.valid::;;", - }; - } - } - - [Theory] - [MemberData(nameof(ValidAttributePrefixData))] - public void CreateDescriptor_WithValidAttributePrefix_HasNoErrors(string prefix) - { - // Arrange - var text = $@" - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - [{typeof(AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute).FullName}({nameof(AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute.DictionaryAttributePrefix)} = ""{prefix}"")] - public System.Collections.Generic.IDictionary SomeAttribute {{ get; set; }} - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - Assert.False(descriptor.HasErrors); - } - - // name, expectedErrorMessages - public static TheoryData InvalidAttributeNameData - { - get - { - Func onNameError = (invalidText, invalidCharacter) => - "Invalid tag helper bound property 'string DynamicTestTagHelper.InvalidProperty' on tag helper 'DynamicTestTagHelper'. Tag helpers " + - $"cannot bind to HTML attributes with name '{invalidText}' because the name contains a '{invalidCharacter}' character."; - var whitespaceErrorString = - "Invalid tag helper bound property 'string DynamicTestTagHelper.InvalidProperty' on tag helper 'DynamicTestTagHelper'. Tag helpers cannot " + - "bind to HTML attributes with a null or empty name."; - Func onDataError = invalidText => - "Invalid tag helper bound property 'string DynamicTestTagHelper.InvalidProperty' on tag helper 'DynamicTestTagHelper'. Tag helpers cannot bind " + - $"to HTML attributes with name '{invalidText}' because the name starts with 'data-'."; - - return GetInvalidNameOrPrefixData(onNameError, whitespaceErrorString, onDataError); - } - } - - [Theory] - [MemberData(nameof(InvalidAttributeNameData))] - public void CreateDescriptor_WithInvalidAttributeName_HasErrors(string name, string[] expectedErrorMessages) - { - // Arrange - name = name.Replace("\n", "\\n").Replace("\r", "\\r").Replace("\"", "\\\""); - var text = $@" - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - [{typeof(AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute).FullName}(""{name}"")] - public string InvalidProperty {{ get; set; }} - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.GetMessage()); - Assert.Equal(expectedErrorMessages, errorMessages); - } - - // prefix, expectedErrorMessages - public static TheoryData InvalidAttributePrefixData - { - get - { - Func onPrefixError = (invalidText, invalidCharacter) => - "Invalid tag helper bound property 'System.Collections.Generic.IDictionary DynamicTestTagHelper.InvalidProperty' " + - "on tag helper 'DynamicTestTagHelper'. Tag helpers " + - $"cannot bind to HTML attributes with prefix '{invalidText}' because the prefix contains a '{invalidCharacter}' character."; - var whitespaceErrorString = - "Invalid tag helper bound property 'System.Collections.Generic.IDictionary DynamicTestTagHelper.InvalidProperty' " + - "on tag helper 'DynamicTestTagHelper'. Tag helpers cannot bind to HTML attributes with a null or empty name."; - Func onDataError = invalidText => - "Invalid tag helper bound property 'System.Collections.Generic.IDictionary DynamicTestTagHelper.InvalidProperty' " + - "on tag helper 'DynamicTestTagHelper'. Tag helpers cannot bind to HTML attributes " + - $"with prefix '{invalidText}' because the prefix starts with 'data-'."; - - return GetInvalidNameOrPrefixData(onPrefixError, whitespaceErrorString, onDataError); - } - } - - [Theory] - [MemberData(nameof(InvalidAttributePrefixData))] - public void CreateDescriptor_WithInvalidAttributePrefix_HasErrors(string prefix, string[] expectedErrorMessages) - { - // Arrange - prefix = prefix.Replace("\n", "\\n").Replace("\r", "\\r").Replace("\"", "\\\""); - var text = $@" - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - [{typeof(AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute).FullName}({nameof(AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute.DictionaryAttributePrefix)} = ""{prefix}"")] - public System.Collections.Generic.IDictionary InvalidProperty {{ get; set; }} - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.GetMessage()); - Assert.Equal(expectedErrorMessages, errorMessages); - } - - public static TheoryData InvalidRestrictChildrenNameData - { - get - { - var nullOrWhiteSpaceError = - AspNetCore.Razor.Language.Resources.FormatTagHelper_InvalidRestrictedChildNullOrWhitespace("DynamicTestTagHelper"); - - return GetInvalidNameOrPrefixData( - onNameError: (invalidInput, invalidCharacter) => - AspNetCore.Razor.Language.Resources.FormatTagHelper_InvalidRestrictedChild( - "DynamicTestTagHelper", - invalidInput, - invalidCharacter), - whitespaceErrorString: nullOrWhiteSpaceError, - onDataError: null); - } - } - - [Theory] - [MemberData(nameof(InvalidRestrictChildrenNameData))] - public void CreateDescriptor_WithInvalidAllowedChildren_HasErrors(string name, string[] expectedErrorMessages) - { - // Arrange - name = name.Replace("\n", "\\n").Replace("\r", "\\r").Replace("\"", "\\\""); - var text = $@" - [{typeof(AspNetCore.Razor.TagHelpers.RestrictChildrenAttribute).FullName}(""{name}"")] - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.GetMessage()); - Assert.Equal(expectedErrorMessages, errorMessages); - } - - public static TheoryData InvalidParentTagData - { - get - { - var nullOrWhiteSpaceError = - AspNetCore.Razor.Language.Resources.TagHelper_InvalidTargetedParentTagNameNullOrWhitespace; - - return GetInvalidNameOrPrefixData( - onNameError: (invalidInput, invalidCharacter) => - AspNetCore.Razor.Language.Resources.FormatTagHelper_InvalidTargetedParentTagName( - invalidInput, - invalidCharacter), - whitespaceErrorString: nullOrWhiteSpaceError, - onDataError: null); - } - } - - [Theory] - [MemberData(nameof(InvalidParentTagData))] - public void CreateDescriptor_WithInvalidParentTag_HasErrors(string name, string[] expectedErrorMessages) - { - // Arrange - name = name.Replace("\n", "\\n").Replace("\r", "\\r").Replace("\"", "\\\""); - var text = $@" - [{typeof(AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute).FullName}({nameof(AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute.ParentTag)} = ""{name}"")] - public class DynamicTestTagHelper : {typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName} - {{ - }}"; - var syntaxTree = CSharpSyntaxTree.ParseText(text); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var tagHelperType = compilation.GetTypeByMetadataName("DynamicTestTagHelper"); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: false, excludeHidden: false); - - // Act - var descriptor = factory.CreateDescriptor(tagHelperType); - - // Assert - var errorMessages = descriptor.GetAllDiagnostics().Select(diagnostic => diagnostic.GetMessage()); - Assert.Equal(expectedErrorMessages, errorMessages); - } - - [Fact] - public void CreateDescriptor_BuildsDescriptorsFromSimpleTypes() - { - // Arrange - var objectAssemblyName = typeof(Enumerable).GetTypeInfo().Assembly.GetName().Name; - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(typeof(Enumerable).FullName); - var expectedDescriptor = - CreateTagHelperDescriptor("enumerable", "System.Linq.Enumerable", typeSymbol.ContainingAssembly.Identity.Name); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - public static TheoryData TagHelperWithPrefixData - { - get - { - var dictionaryNamespace = typeof(IDictionary<,>).FullName; - dictionaryNamespace = dictionaryNamespace.Substring(0, dictionaryNamespace.IndexOf('`')); - - // tagHelperType, expectedAttributeDescriptors, expectedDiagnostics - return new TheoryData, IEnumerable> - { - { - typeof(DefaultValidHtmlAttributePrefix), - new[] - { - CreateAttributeFor(typeof(DefaultValidHtmlAttributePrefix), attribute => - { - attribute - .Name("dictionary-property") - .PropertyName(nameof(DefaultValidHtmlAttributePrefix.DictionaryProperty)) - .TypeName($"{dictionaryNamespace}") - .AsDictionaryAttribute("dictionary-property-", typeof(string).FullName); - }), - }, - Enumerable.Empty() - }, - { - typeof(SingleValidHtmlAttributePrefix), - new[] - { - CreateAttributeFor(typeof(SingleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name") - .PropertyName(nameof(SingleValidHtmlAttributePrefix.DictionaryProperty)) - .TypeName($"{dictionaryNamespace}") - .AsDictionaryAttribute("valid-name-", typeof(string).FullName); - }), - }, - Enumerable.Empty() - }, - { - typeof(MultipleValidHtmlAttributePrefix), - new[] - { - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name1") - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.DictionaryProperty)) - .TypeName($"{typeof(Dictionary<,>).Namespace}.Dictionary") - .AsDictionaryAttribute("valid-prefix1-", typeof(object).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name2") - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.DictionarySubclassProperty)) - .TypeName(typeof(DictionarySubclass).FullName) - .AsDictionaryAttribute("valid-prefix2-", typeof(string).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name3") - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.DictionaryWithoutParameterlessConstructorProperty)) - .TypeName(typeof(DictionaryWithoutParameterlessConstructor).FullName) - .AsDictionaryAttribute("valid-prefix3-", typeof(string).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name4") - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.GenericDictionarySubclassProperty)) - .TypeName(typeof(GenericDictionarySubclass).Namespace + ".GenericDictionarySubclass") - .AsDictionaryAttribute("valid-prefix4-", typeof(object).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name5") - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.SortedDictionaryProperty)) - .TypeName(typeof(SortedDictionary).Namespace + ".SortedDictionary") - .AsDictionaryAttribute("valid-prefix5-", typeof(int).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name6") - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.StringProperty)) - .TypeName(typeof(string).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.GetOnlyDictionaryProperty)) - .TypeName($"{dictionaryNamespace}") - .AsDictionaryAttribute("get-only-dictionary-property-", typeof(int).FullName); - }), - CreateAttributeFor(typeof(MultipleValidHtmlAttributePrefix), attribute => - { - attribute - .PropertyName(nameof(MultipleValidHtmlAttributePrefix.GetOnlyDictionaryPropertyWithAttributePrefix)) - .TypeName($"{dictionaryNamespace}") - .AsDictionaryAttribute("valid-prefix6", typeof(string).FullName); - }), - }, - Enumerable.Empty() - }, - { - typeof(SingleInvalidHtmlAttributePrefix), - new[] - { - CreateAttributeFor(typeof(SingleInvalidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name") - .PropertyName(nameof(SingleInvalidHtmlAttributePrefix.StringProperty)) - .TypeName(typeof(string).FullName) - .AddDiagnostic(RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(SingleInvalidHtmlAttributePrefix).FullName, - nameof(SingleInvalidHtmlAttributePrefix.StringProperty))); - }), - }, - new[] - { - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(SingleInvalidHtmlAttributePrefix).FullName, - nameof(SingleInvalidHtmlAttributePrefix.StringProperty)) - } - }, - { - typeof(MultipleInvalidHtmlAttributePrefix), - new[] - { - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name1") - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.LongProperty)) - .TypeName(typeof(long).FullName); - }), - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name2") - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.DictionaryOfIntProperty)) - .TypeName($"{typeof(Dictionary<,>).Namespace}.Dictionary") - .AsDictionaryAttribute("valid-prefix2-", typeof(string).FullName) - .AddDiagnostic( - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.DictionaryOfIntProperty))); - }), - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name3") - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.ReadOnlyDictionaryProperty)) - .TypeName($"{typeof(IReadOnlyDictionary<,>).Namespace}.IReadOnlyDictionary") - .AddDiagnostic( - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.ReadOnlyDictionaryProperty))); - }), - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name4") - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.IntProperty)) - .TypeName(typeof(int).FullName) - .AddDiagnostic( - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.IntProperty))); - }), - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .Name("valid-name5") - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.DictionaryOfIntSubclassProperty)) - .TypeName(typeof(DictionaryOfIntSubclass).FullName) - .AsDictionaryAttribute("valid-prefix5-", typeof(string).FullName) - .AddDiagnostic( - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.DictionaryOfIntSubclassProperty))); - }), - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.GetOnlyDictionaryAttributePrefix)) - .TypeName($"{dictionaryNamespace}") - .AsDictionaryAttribute("valid-prefix6", typeof(string).FullName) - .AddDiagnostic( - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.GetOnlyDictionaryAttributePrefix))); - }), - CreateAttributeFor(typeof(MultipleInvalidHtmlAttributePrefix), attribute => - { - attribute - .PropertyName(nameof(MultipleInvalidHtmlAttributePrefix.GetOnlyDictionaryPropertyWithAttributeName)) - .TypeName($"{dictionaryNamespace}") - .AsDictionaryAttribute("invalid-name7-", typeof(object).FullName) - .AddDiagnostic( - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.GetOnlyDictionaryPropertyWithAttributeName))); - }), - }, - new[] - { - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.DictionaryOfIntProperty)), - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.ReadOnlyDictionaryProperty)), - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.IntProperty)), - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.DictionaryOfIntSubclassProperty)), - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNotNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.GetOnlyDictionaryAttributePrefix)), - RazorDiagnosticFactory.CreateTagHelper_InvalidAttributePrefixNull( - typeof(MultipleInvalidHtmlAttributePrefix).FullName, - nameof(MultipleInvalidHtmlAttributePrefix.GetOnlyDictionaryPropertyWithAttributeName)), - } - }, - }; - } - } - - [Theory] - [MemberData(nameof(TagHelperWithPrefixData))] - public void CreateDescriptor_WithPrefixes_ReturnsExpectedAttributeDescriptors( - Type tagHelperType, - IEnumerable expectedAttributeDescriptors, - IEnumerable expectedDiagnostics) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal( - expectedAttributeDescriptors, - descriptor.BoundAttributes, - BoundAttributeDescriptorComparer.Default); - Assert.Equal(expectedDiagnostics, descriptor.GetAllDiagnostics()); - } - - public static TheoryData TagOutputHintData - { - get - { - // tagHelperType, expectedDescriptor - return new TheoryData - { - { - typeof(MultipleDescriptorTagHelperWithOutputElementHint), - TagHelperDescriptorBuilder.Create(typeof(MultipleDescriptorTagHelperWithOutputElementHint).FullName, AssemblyName) - .TypeName(typeof(MultipleDescriptorTagHelperWithOutputElementHint).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("a")) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("p")) - .TagOutputHint("div") - .Build() - }, - { - typeof(InheritedOutputElementHintTagHelper), - TagHelperDescriptorBuilder.Create(typeof(InheritedOutputElementHintTagHelper).FullName, AssemblyName) - .TypeName(typeof(InheritedOutputElementHintTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("inherited-output-element-hint")) - .Build() - }, - { - typeof(OutputElementHintTagHelper), - TagHelperDescriptorBuilder.Create(typeof(OutputElementHintTagHelper).FullName, AssemblyName) - .TypeName(typeof(OutputElementHintTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("output-element-hint")) - .TagOutputHint("hinted-value") - .Build() - }, - { - typeof(OverriddenOutputElementHintTagHelper), - TagHelperDescriptorBuilder.Create(typeof(OverriddenOutputElementHintTagHelper).FullName, AssemblyName) - .TypeName(typeof(OverriddenOutputElementHintTagHelper).FullName) - .TagMatchingRuleDescriptor(builder => builder.RequireTagName("overridden-output-element-hint")) - .TagOutputHint("overridden") - .Build() - }, - }; - } - } - - [Theory] - [MemberData(nameof(TagOutputHintData))] - public void CreateDescriptor_CreatesDescriptorsWithOutputElementHint( - Type tagHelperType, - TagHelperDescriptor expectedDescriptor) - { - // Arrange - var factory = new DefaultTagHelperDescriptorFactory(Compilation, includeDocumentation: false, excludeHidden: false); - var typeSymbol = Compilation.GetTypeByMetadataName(tagHelperType.FullName); - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDescriptor, descriptor, TagHelperDescriptorComparer.Default); - } - - [Fact] - public void CreateDescriptor_CapturesDocumentationOnTagHelperClass() - { - // Arrange - var errorSink = new ErrorSink(); - var syntaxTree = CSharpSyntaxTree.ParseText(@" - using Microsoft.AspNetCore.Razor.TagHelpers; - - /// - /// The summary for . - /// - /// - /// Inherits from . - /// - public class DocumentedTagHelper : " + typeof(AspNetCore.Razor.TagHelpers.TagHelper).Name + @" - { - }"); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: true, excludeHidden: false); - var typeSymbol = compilation.GetTypeByMetadataName("DocumentedTagHelper"); - var expectedDocumentation = -@" - - The summary for . - - - Inherits from . - - -"; - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - Assert.Equal(expectedDocumentation, descriptor.Documentation); - } - - [Fact] - public void CreateDescriptor_CapturesDocumentationOnTagHelperProperties() - { - // Arrange - var errorSink = new ErrorSink(); - var syntaxTree = CSharpSyntaxTree.ParseText(@" - using System.Collections.Generic; - - public class DocumentedTagHelper : " + typeof(AspNetCore.Razor.TagHelpers.TagHelper).FullName + @" - { - /// - /// This is of type . - /// - public string SummaryProperty { get; set; } - - /// - /// The may be null. - /// - public int RemarksProperty { get; set; } - - /// - /// This is a complex . - /// - /// - /// - /// - public List RemarksAndSummaryProperty { get; set; } - }"); - var compilation = TestCompilation.Create(_assembly, syntaxTree); - var factory = new DefaultTagHelperDescriptorFactory(compilation, includeDocumentation: true, excludeHidden: false); - var typeSymbol = compilation.GetTypeByMetadataName("DocumentedTagHelper"); - var expectedDocumentations = new[] - { - -@" - - This is of type . - - -", -@" - - The may be null. - - -", -@" - - This is a complex . - - - - - -", - }; - - // Act - var descriptor = factory.CreateDescriptor(typeSymbol); - - // Assert - var documentations = descriptor.BoundAttributes.Select(boundAttribute => boundAttribute.Documentation); - Assert.Equal(expectedDocumentations, documentations); - } - - private static TheoryData GetInvalidNameOrPrefixData( - Func onNameError, - string whitespaceErrorString, - Func onDataError) - { - // name, expectedErrorMessages - var data = new TheoryData - { - { "!", new[] { onNameError("!", "!") } }, - { "hello!", new[] { onNameError("hello!", "!") } }, - { "!hello", new[] { onNameError("!hello", "!") } }, - { "he!lo", new[] { onNameError("he!lo", "!") } }, - { "!he!lo!", new[] { onNameError("!he!lo!", "!") } }, - { "@", new[] { onNameError("@", "@") } }, - { "hello@", new[] { onNameError("hello@", "@") } }, - { "@hello", new[] { onNameError("@hello", "@") } }, - { "he@lo", new[] { onNameError("he@lo", "@") } }, - { "@he@lo@", new[] { onNameError("@he@lo@", "@") } }, - { "/", new[] { onNameError("/", "/") } }, - { "hello/", new[] { onNameError("hello/", "/") } }, - { "/hello", new[] { onNameError("/hello", "/") } }, - { "he/lo", new[] { onNameError("he/lo", "/") } }, - { "/he/lo/", new[] { onNameError("/he/lo/", "/") } }, - { "<", new[] { onNameError("<", "<") } }, - { "hello<", new[] { onNameError("hello<", "<") } }, - { "", new[] { onNameError(">", ">") } }, - { "hello>", new[] { onNameError("hello>", ">") } }, - { ">hello", new[] { onNameError(">hello", ">") } }, - { "he>lo", new[] { onNameError("he>lo", ">") } }, - { ">he>lo>", new[] { onNameError(">he>lo>", ">") } }, - { "]", new[] { onNameError("]", "]") } }, - { "hello]", new[] { onNameError("hello]", "]") } }, - { "]hello", new[] { onNameError("]hello", "]") } }, - { "he]lo", new[] { onNameError("he]lo", "]") } }, - { "]he]lo]", new[] { onNameError("]he]lo]", "]") } }, - { "=", new[] { onNameError("=", "=") } }, - { "hello=", new[] { onNameError("hello=", "=") } }, - { "=hello", new[] { onNameError("=hello", "=") } }, - { "he=lo", new[] { onNameError("he=lo", "=") } }, - { "=he=lo=", new[] { onNameError("=he=lo=", "=") } }, - { "\"", new[] { onNameError("\"", "\"") } }, - { "hello\"", new[] { onNameError("hello\"", "\"") } }, - { "\"hello", new[] { onNameError("\"hello", "\"") } }, - { "he\"lo", new[] { onNameError("he\"lo", "\"") } }, - { "\"he\"lo\"", new[] { onNameError("\"he\"lo\"", "\"") } }, - { "'", new[] { onNameError("'", "'") } }, - { "hello'", new[] { onNameError("hello'", "'") } }, - { "'hello", new[] { onNameError("'hello", "'") } }, - { "he'lo", new[] { onNameError("he'lo", "'") } }, - { "'he'lo'", new[] { onNameError("'he'lo'", "'") } }, - { "hello*", new[] { onNameError("hello*", "*") } }, - { "*hello", new[] { onNameError("*hello", "*") } }, - { "he*lo", new[] { onNameError("he*lo", "*") } }, - { "*he*lo*", new[] { onNameError("*he*lo*", "*") } }, - { Environment.NewLine, new[] { whitespaceErrorString } }, - { "\t", new[] { whitespaceErrorString } }, - { " \t ", new[] { whitespaceErrorString } }, - { " ", new[] { whitespaceErrorString } }, - { Environment.NewLine + " ", new[] { whitespaceErrorString } }, - { - "! \t\r\n@/<>?[]=\"'*", - new[] - { - onNameError("! \t\r\n@/<>?[]=\"'*", "!"), - onNameError("! \t\r\n@/<>?[]=\"'*", " "), - onNameError("! \t\r\n@/<>?[]=\"'*", "\t"), - onNameError("! \t\r\n@/<>?[]=\"'*", "\r"), - onNameError("! \t\r\n@/<>?[]=\"'*", "\n"), - onNameError("! \t\r\n@/<>?[]=\"'*", "@"), - onNameError("! \t\r\n@/<>?[]=\"'*", "/"), - onNameError("! \t\r\n@/<>?[]=\"'*", "<"), - onNameError("! \t\r\n@/<>?[]=\"'*", ">"), - onNameError("! \t\r\n@/<>?[]=\"'*", "?"), - onNameError("! \t\r\n@/<>?[]=\"'*", "["), - onNameError("! \t\r\n@/<>?[]=\"'*", "]"), - onNameError("! \t\r\n@/<>?[]=\"'*", "="), - onNameError("! \t\r\n@/<>?[]=\"'*", "\""), - onNameError("! \t\r\n@/<>?[]=\"'*", "'"), - onNameError("! \t\r\n@/<>?[]=\"'*", "*"), - } - }, - { - "! \tv\ra\nl@i/d<>?[]=\"'*", - new[] - { - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "!"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", " "), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "\t"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "\r"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "\n"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "@"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "/"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "<"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", ">"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "?"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "["), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "]"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "="), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "\""), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "'"), - onNameError("! \tv\ra\nl@i/d<>?[]=\"'*", "*"), - } - }, - }; - - if (onDataError != null) - { - data.Add("data-", new[] { onDataError("data-") }); - data.Add("data-something", new[] { onDataError("data-something") }); - data.Add("Data-Something", new[] { onDataError("Data-Something") }); - data.Add("DATA-SOMETHING", new[] { onDataError("DATA-SOMETHING") }); - } - - return data; - } - - protected static TagHelperDescriptor CreateTagHelperDescriptor( - string tagName, - string typeName, - string assemblyName, - IEnumerable> attributes = null, - IEnumerable> ruleBuilders = null) - { - var builder = TagHelperDescriptorBuilder.Create(typeName, assemblyName); - builder.TypeName(typeName); - - if (attributes != null) - { - foreach (var attributeBuilder in attributes) - { - builder.BoundAttributeDescriptor(attributeBuilder); - } - } - - if (ruleBuilders != null) - { - foreach (var ruleBuilder in ruleBuilders) - { - builder.TagMatchingRuleDescriptor(innerRuleBuilder => - { - innerRuleBuilder.RequireTagName(tagName); - ruleBuilder(innerRuleBuilder); - }); - } - } - else - { - builder.TagMatchingRuleDescriptor(ruleBuilder => ruleBuilder.RequireTagName(tagName)); - } - - var descriptor = builder.Build(); - - return descriptor; - } - - private static BoundAttributeDescriptor CreateAttributeFor(Type tagHelperType, Action configure) - { - var tagHelperBuilder = new DefaultTagHelperDescriptorBuilder(TagHelperConventions.DefaultKind, tagHelperType.Name, "Test"); - tagHelperBuilder.TypeName(tagHelperType.FullName); - - var attributeBuilder = new DefaultBoundAttributeDescriptorBuilder(tagHelperBuilder, TagHelperConventions.DefaultKind); - configure(attributeBuilder); - return attributeBuilder.Build(); - } - } - - [AspNetCore.Razor.TagHelpers.OutputElementHint("hinted-value")] - public class OutputElementHintTagHelper : AspNetCore.Razor.TagHelpers.TagHelper - { - } - - public class InheritedOutputElementHintTagHelper : OutputElementHintTagHelper - { - } - - [AspNetCore.Razor.TagHelpers.OutputElementHint("overridden")] - public class OverriddenOutputElementHintTagHelper : OutputElementHintTagHelper - { - } -} \ No newline at end of file diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 0a933ed34f2..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/DefaultTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using System.Reflection; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class DefaultTagHelperDescriptorProviderTest - { - private static readonly Assembly _assembly = typeof(DefaultTagHelperDescriptorProviderTest).GetTypeInfo().Assembly; - - [Fact] - public void Execute_DoesNotAddEditorBrowsableNeverDescriptorsAtDesignTime() - { - // Arrange - var editorBrowsableTypeName = "Microsoft.CodeAnalysis.Razor.Workspaces.Test.EditorBrowsableTagHelper"; - var compilation = TestCompilation.Create(_assembly); - var descriptorProvider = new DefaultTagHelperDescriptorProvider(); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - context.ExcludeHidden = true; - - // Act - descriptorProvider.Execute(context); - - // Assert - Assert.NotNull(compilation.GetTypeByMetadataName(editorBrowsableTypeName)); - var nullDescriptors = context.Results.Where(descriptor => descriptor == null); - Assert.Empty(nullDescriptors); - var editorBrowsableDescriptor = context.Results.Where(descriptor => descriptor.GetTypeName() == editorBrowsableTypeName); - Assert.Empty(editorBrowsableDescriptor); - } - - [Fact] - public void Execute_NoOpsIfCompilationIsNotSet() - { - // Arrange - var descriptorProvider = new DefaultTagHelperDescriptorProvider(); - - var context = TagHelperDescriptorProviderContext.Create(); - - // Act - descriptorProvider.Execute(context); - - // Assert - Assert.Empty(context.Results); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/EventHandlerTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/EventHandlerTagHelperDescriptorProviderTest.cs deleted file mode 100644 index f242f4995d9..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/EventHandlerTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class EventHandlerTagHelperDescriptorProviderTest : TagHelperDescriptorProviderTestBase - { - [Fact] - public void Execute_EventHandler_CreatesDescriptor() - { - // Arrange - var compilation = BaseCompilation.AddSyntaxTrees(Parse(@" -using System; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; - -namespace Test -{ - [EventHandler(""onclick"", typeof(Action))] - public class EventHandlers - { - } -} -")); - - Assert.Empty(compilation.GetDiagnostics()); - - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(compilation); - - var provider = new EventHandlerTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = GetEventHandlerTagHelpers(context); - var item = Assert.Single(matches); - - // These are features Event Handler Tag Helpers don't use. Verifying them once here and - // then ignoring them. - Assert.Empty(item.AllowedChildTags); - Assert.Null(item.TagOutputHint); - - // These are features that are invariants of all Event Handler Helpers. Verifying them once - // here and then ignoring them. - Assert.Empty(item.Diagnostics); - Assert.False(item.HasErrors); - Assert.Equal(ComponentMetadata.EventHandler.TagHelperKind, item.Kind); - Assert.Equal(bool.TrueString, item.Metadata[TagHelperMetadata.Common.ClassifyAttributesOnly]); - Assert.Equal(ComponentMetadata.EventHandler.RuntimeName, item.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(item.IsDefaultKind()); - Assert.False(item.KindUsesDefaultTagHelperRuntime()); - Assert.False(item.IsComponentOrChildContentTagHelper()); - Assert.True(item.CaseSensitive); - - Assert.Equal( - "Sets the '@onclick' attribute to the provided string or delegate value. " + - "A delegate value should be of type 'System.Action'.", - item.Documentation); - - // These are all trivially derived from the assembly/namespace/type name - Assert.Equal("Microsoft.AspNetCore.Components", item.AssemblyName); - Assert.Equal("onclick", item.Name); - Assert.Equal("Test.EventHandlers", item.DisplayName); - Assert.Equal("Test.EventHandlers", item.GetTypeName()); - - // The tag matching rule for an event handler is just the attribute name - var rule = Assert.Single(item.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@onclick", requiredAttribute.DisplayName); - Assert.Equal("@onclick", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(item.BoundAttributes); - - // Invariants - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.EventHandler.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Collection( - attribute.Metadata.OrderBy(kvp => kvp.Key), - kvp => Assert.Equal(kvp, new KeyValuePair(ComponentMetadata.Common.DirectiveAttribute, bool.TrueString)), - kvp => Assert.Equal(kvp, new KeyValuePair("Common.PropertyName", "onclick")), - kvp => Assert.Equal(kvp, new KeyValuePair(ComponentMetadata.Component.WeaklyTypedKey, bool.TrueString))); - - Assert.Equal( - "Sets the '@onclick' attribute to the provided string or delegate value. " + - "A delegate value should be of type 'System.Action'.", - attribute.Documentation); - - Assert.Equal("@onclick", attribute.Name); - Assert.Equal("onclick", attribute.GetPropertyName()); - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback> Test.EventHandlers.onclick", attribute.DisplayName); - - // Defined from the property type - Assert.Equal("Microsoft.AspNetCore.Components.EventCallback>", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - - private static TagHelperDescriptor[] GetEventHandlerTagHelpers(TagHelperDescriptorProviderContext context) - { - return ExcludeBuiltInComponents(context).Where(t => t.IsEventHandlerTagHelper()).ToArray(); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GenericTypeNameRewriterTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GenericTypeNameRewriterTest.cs deleted file mode 100644 index 9dfd35dbc57..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GenericTypeNameRewriterTest.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class GenericTypeNameRewriterTest - { - [Theory] - [InlineData("TItem2", "Type2")] - - // Unspecified argument -> System.Object - [InlineData("TItem3", "System.Object")] - - // Not a type parameter - [InlineData("TItem4", "TItem4")] - - // In a qualified name, not a type parameter - [InlineData("TItem1.TItem2", "TItem1.TItem2")] - - // Type parameters can't have type parameters - [InlineData("TItem1.TItem2", "TItem1.TItem2")] - [InlineData("TItem2, System.TItem2, RenderFragment>", "TItem2, System.TItem2, RenderFragment>")] - public void GenericTypeNameRewriter_CanReplaceTypeParametersWithTypeArguments(string original, string expected) - { - // Arrange - var visitor = new GenericTypeNameRewriter(new Dictionary() - { - { "TItem1", "Type1" }, - { "TItem2", "Type2" }, - { "TItem3", null }, - }); - - // Act - var actual = visitor.Rewrite(original); - - // Assert - Assert.Equal(expected, actual.ToString()); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GlobalQualifiedTypeNameRewriterTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GlobalQualifiedTypeNameRewriterTest.cs deleted file mode 100644 index 26ed2e94b6b..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/GlobalQualifiedTypeNameRewriterTest.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class GlobalQualifiedTypeNameRewriterTest - { - [Theory] - [InlineData("String", "global::String")] - [InlineData("System.String", "global::System.String")] - [InlineData("TItem2", "TItem2")] - [InlineData("System.Collections.Generic.List", "global::System.Collections.Generic.List")] - [InlineData("System.Collections.Generic.Dictionary", "global::System.Collections.Generic.Dictionary")] - [InlineData("System.Collections.TItem3.Dictionary", "global::System.Collections.TItem3.Dictionary")] - [InlineData("System.Collections.TItem3.TItem1", "global::System.Collections.TItem3.TItem1")] - - // This case is interesting because we know TITem2 to be a generic type parameter, - // and we know that this will never be valid, which is why we don't bother rewriting. - [InlineData("TItem2", "TItem2")] - public void GlobalQualifiedTypeNameRewriter_CanQualifyNames(string original, string expected) - { - // Arrange - var visitor = new GlobalQualifiedTypeNameRewriter(new[] { "TItem1", "TItem2", "TItem3" }); - - // Act - var actual = visitor.Rewrite(original); - - // Assert - Assert.Equal(expected, actual.ToString()); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/KeyTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/KeyTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 3018afea558..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/KeyTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class KeyTagHelperDescriptorProviderTest : TagHelperDescriptorProviderTestBase - { - [Fact] - public void Execute_CreatesDescriptor() - { - // Arrange - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(BaseCompilation); - - var provider = new KeyTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = context.Results.Where(result => result.IsKeyTagHelper()); - var item = Assert.Single(matches); - - Assert.Empty(item.AllowedChildTags); - Assert.Null(item.TagOutputHint); - Assert.Empty(item.Diagnostics); - Assert.False(item.HasErrors); - Assert.Equal(ComponentMetadata.Key.TagHelperKind, item.Kind); - Assert.Equal(bool.TrueString, item.Metadata[TagHelperMetadata.Common.ClassifyAttributesOnly]); - Assert.Equal(ComponentMetadata.Key.RuntimeName, item.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(item.IsDefaultKind()); - Assert.False(item.KindUsesDefaultTagHelperRuntime()); - Assert.False(item.IsComponentOrChildContentTagHelper()); - Assert.True(item.CaseSensitive); - - Assert.Equal( - "Ensures that the component or element will be preserved across renders if (and only if) the supplied key value matches.", - item.Documentation); - - Assert.Equal("Microsoft.AspNetCore.Components", item.AssemblyName); - Assert.Equal("Key", item.Name); - Assert.Equal("Microsoft.AspNetCore.Components.Key", item.DisplayName); - Assert.Equal("Microsoft.AspNetCore.Components.Key", item.GetTypeName()); - - // The tag matching rule for a key is just the attribute name "key" - var rule = Assert.Single(item.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@key", requiredAttribute.DisplayName); - Assert.Equal("@key", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(item.BoundAttributes); - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Key.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Ensures that the component or element will be preserved across renders if (and only if) the supplied key value matches.", - attribute.Documentation); - - Assert.Equal("@key", attribute.Name); - Assert.Equal("Key", attribute.GetPropertyName()); - Assert.Equal("object Microsoft.AspNetCore.Components.Key.Key", attribute.DisplayName); - Assert.Equal("System.Object", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj deleted file mode 100644 index 9a8560e6492..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/Microsoft.CodeAnalysis.Razor.Test.csproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - $(StandardTestTfms) - $(DefaultItemExcludes);TestFiles\**\* - true - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RazorProjectEngineBuilderExtensionsTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RazorProjectEngineBuilderExtensionsTest.cs deleted file mode 100644 index fd31ccc33d0..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RazorProjectEngineBuilderExtensionsTest.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Xunit; -using static Microsoft.CodeAnalysis.Razor.RazorProjectEngineBuilderExtensions; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class RazorProjectEngineBuilderExtensionsTest - { - [Fact] - public void SetCSharpLanguageVersion_ResolvesNonNumericCSharpLangVersions() - { - // Arrange - var csharpLanguageVersion = CSharp.LanguageVersion.Latest; - - // Act - var projectEngine = RazorProjectEngine.Create(builder => - { - builder.SetCSharpLanguageVersion(csharpLanguageVersion); - }); - - // Assert - var feature = projectEngine.EngineFeatures.OfType().FirstOrDefault(); - Assert.NotNull(feature); - Assert.NotEqual(csharpLanguageVersion, feature.CSharpLanguageVersion); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RefTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RefTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 140520153ea..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/RefTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class RefTagHelperDescriptorProviderTest : TagHelperDescriptorProviderTestBase - { - [Fact] - public void Execute_CreatesDescriptor() - { - // Arrange - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(BaseCompilation); - - var provider = new RefTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = context.Results.Where(result => result.IsRefTagHelper()); - var item = Assert.Single(matches); - - Assert.Empty(item.AllowedChildTags); - Assert.Null(item.TagOutputHint); - Assert.Empty(item.Diagnostics); - Assert.False(item.HasErrors); - Assert.Equal(ComponentMetadata.Ref.TagHelperKind, item.Kind); - Assert.Equal(bool.TrueString, item.Metadata[TagHelperMetadata.Common.ClassifyAttributesOnly]); - Assert.Equal(ComponentMetadata.Ref.RuntimeName, item.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(item.IsDefaultKind()); - Assert.False(item.KindUsesDefaultTagHelperRuntime()); - Assert.False(item.IsComponentOrChildContentTagHelper()); - Assert.True(item.CaseSensitive); - - Assert.Equal( - "Populates the specified field or property with a reference to the element or component.", - item.Documentation); - - Assert.Equal("Microsoft.AspNetCore.Components", item.AssemblyName); - Assert.Equal("Ref", item.Name); - Assert.Equal("Microsoft.AspNetCore.Components.Ref", item.DisplayName); - Assert.Equal("Microsoft.AspNetCore.Components.Ref", item.GetTypeName()); - - // The tag matching rule for a ref is just the attribute name "ref" - var rule = Assert.Single(item.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@ref", requiredAttribute.DisplayName); - Assert.Equal("@ref", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(item.BoundAttributes); - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Ref.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Populates the specified field or property with a reference to the element or component.", - attribute.Documentation); - - Assert.Equal("@ref", attribute.Name); - Assert.Equal("Ref", attribute.GetPropertyName()); - Assert.Equal("object Microsoft.AspNetCore.Components.Ref.Ref", attribute.DisplayName); - Assert.Equal("System.Object", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/SplatTagHelperDescriptorProviderTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/SplatTagHelperDescriptorProviderTest.cs deleted file mode 100644 index 7832da05ac4..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/SplatTagHelperDescriptorProviderTest.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; -using Microsoft.AspNetCore.Razor.Language; -using Microsoft.AspNetCore.Razor.Language.Components; -using Xunit; - -namespace Microsoft.CodeAnalysis.Razor -{ - public class SplatTagHelperDescriptorProviderTest : TagHelperDescriptorProviderTestBase - { - [Fact] - public void Execute_CreatesDescriptor() - { - // Arrange - var context = TagHelperDescriptorProviderContext.Create(); - context.SetCompilation(BaseCompilation); - - var provider = new SplatTagHelperDescriptorProvider(); - - // Act - provider.Execute(context); - - // Assert - var matches = context.Results.Where(result => result.IsSplatTagHelper()); - var item = Assert.Single(matches); - - Assert.Empty(item.AllowedChildTags); - Assert.Null(item.TagOutputHint); - Assert.Empty(item.Diagnostics); - Assert.False(item.HasErrors); - Assert.Equal(ComponentMetadata.Splat.TagHelperKind, item.Kind); - Assert.Equal(bool.TrueString, item.Metadata[TagHelperMetadata.Common.ClassifyAttributesOnly]); - Assert.Equal(ComponentMetadata.Splat.RuntimeName, item.Metadata[TagHelperMetadata.Runtime.Name]); - Assert.False(item.IsDefaultKind()); - Assert.False(item.KindUsesDefaultTagHelperRuntime()); - Assert.True(item.CaseSensitive); - - Assert.Equal( - "Merges a collection of attributes into the current element or component.", - item.Documentation); - - Assert.Equal("Microsoft.AspNetCore.Components", item.AssemblyName); - Assert.Equal("Attributes", item.Name); - Assert.Equal("Microsoft.AspNetCore.Components.Attributes", item.DisplayName); - Assert.Equal("Microsoft.AspNetCore.Components.Attributes", item.GetTypeName()); - - var rule = Assert.Single(item.TagMatchingRules); - Assert.Empty(rule.Diagnostics); - Assert.False(rule.HasErrors); - Assert.Null(rule.ParentTag); - Assert.Equal("*", rule.TagName); - Assert.Equal(TagStructure.Unspecified, rule.TagStructure); - - var requiredAttribute = Assert.Single(rule.Attributes); - Assert.Empty(requiredAttribute.Diagnostics); - Assert.Equal("@attributes", requiredAttribute.DisplayName); - Assert.Equal("@attributes", requiredAttribute.Name); - Assert.Equal(RequiredAttributeDescriptor.NameComparisonMode.FullMatch, requiredAttribute.NameComparison); - Assert.Null(requiredAttribute.Value); - Assert.Equal(RequiredAttributeDescriptor.ValueComparisonMode.None, requiredAttribute.ValueComparison); - - var attribute = Assert.Single(item.BoundAttributes); - Assert.Empty(attribute.Diagnostics); - Assert.False(attribute.HasErrors); - Assert.Equal(ComponentMetadata.Splat.TagHelperKind, attribute.Kind); - Assert.False(attribute.IsDefaultKind()); - Assert.False(attribute.HasIndexer); - Assert.Null(attribute.IndexerNamePrefix); - Assert.Null(attribute.IndexerTypeName); - Assert.False(attribute.IsIndexerBooleanProperty); - Assert.False(attribute.IsIndexerStringProperty); - - Assert.Equal( - "Merges a collection of attributes into the current element or component.", - attribute.Documentation); - - Assert.Equal("@attributes", attribute.Name); - Assert.Equal("Attributes", attribute.GetPropertyName()); - Assert.Equal("object Microsoft.AspNetCore.Components.Attributes.Attributes", attribute.DisplayName); - Assert.Equal("System.Object", attribute.TypeName); - Assert.False(attribute.IsStringProperty); - Assert.False(attribute.IsBooleanProperty); - Assert.False(attribute.IsEnum); - } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperDescriptorFactoryTagHelpers.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperDescriptorFactoryTagHelpers.cs deleted file mode 100644 index 658fca5d948..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperDescriptorFactoryTagHelpers.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.ComponentModel; -using Microsoft.AspNetCore.Razor.TagHelpers; - -namespace Microsoft.CodeAnalysis.Razor.Workspaces.Test -{ - public enum CustomEnum - { - FirstValue, - SecondValue - } - - public class EnumTagHelper : TagHelper - { - public int NonEnumProperty { get; set; } - - public CustomEnum EnumProperty { get; set; } - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("input")] - public class MultiEnumTagHelper : EnumTagHelper - { - } - - public class NestedEnumTagHelper : EnumTagHelper - { - public NestedEnum NestedEnumProperty { get; set; } - - public enum NestedEnum - { - NestedOne, - NestedTwo - } - } - - [HtmlTargetElement("input", ParentTag = "div")] - public class RequiredParentTagHelper : TagHelper - { - } - - [HtmlTargetElement("p", ParentTag = "div")] - [HtmlTargetElement("input", ParentTag = "section")] - public class MultiSpecifiedRequiredParentTagHelper : TagHelper - { - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("input", ParentTag = "div")] - public class MultiWithUnspecifiedRequiredParentTagHelper : TagHelper - { - } - - - [RestrictChildren("p")] - public class RestrictChildrenTagHelper - { - } - - [RestrictChildren("p", "strong")] - public class DoubleRestrictChildrenTagHelper - { - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("div")] - [RestrictChildren("p", "strong")] - public class MultiTargetRestrictChildrenTagHelper - { - } - - [HtmlTargetElement("input", TagStructure = TagStructure.WithoutEndTag)] - public class TagStructureTagHelper : TagHelper - { - } - - [HtmlTargetElement("p", TagStructure = TagStructure.NormalOrSelfClosing)] - [HtmlTargetElement("input", TagStructure = TagStructure.WithoutEndTag)] - public class MultiSpecifiedTagStructureTagHelper : TagHelper - { - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("input", TagStructure = TagStructure.WithoutEndTag)] - public class MultiWithUnspecifiedTagStructureTagHelper : TagHelper - { - } - - [EditorBrowsable(EditorBrowsableState.Always)] - public class DefaultEditorBrowsableTagHelper : TagHelper - { - [EditorBrowsable(EditorBrowsableState.Always)] - public int Property { get; set; } - } - - public class HiddenPropertyEditorBrowsableTagHelper : TagHelper - { - [EditorBrowsable(EditorBrowsableState.Never)] - public int Property { get; set; } - } - - public class MultiPropertyEditorBrowsableTagHelper : TagHelper - { - [EditorBrowsable(EditorBrowsableState.Never)] - public int Property { get; set; } - - public virtual int Property2 { get; set; } - } - - public class OverriddenPropertyEditorBrowsableTagHelper : MultiPropertyEditorBrowsableTagHelper - { - [EditorBrowsable(EditorBrowsableState.Never)] - public override int Property2 { get; set; } - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public class EditorBrowsableTagHelper : TagHelper - { - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual int Property { get; set; } - } - - public class InheritedEditorBrowsableTagHelper : EditorBrowsableTagHelper - { - public override int Property { get; set; } - } - - [EditorBrowsable(EditorBrowsableState.Advanced)] - public class OverriddenEditorBrowsableTagHelper : EditorBrowsableTagHelper - { - [EditorBrowsable(EditorBrowsableState.Advanced)] - public override int Property { get; set; } - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("div")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class MultiEditorBrowsableTagHelper : TagHelper - { - } - - [HtmlTargetElement(Attributes = "class*")] - public class AttributeWildcardTargetingTagHelper : TagHelper - { - } - - [HtmlTargetElement(Attributes = "class*,style*")] - public class MultiAttributeWildcardTargetingTagHelper : TagHelper - { - } - - [HtmlTargetElement(Attributes = "class")] - public class AttributeTargetingTagHelper : TagHelper - { - } - - [HtmlTargetElement(Attributes = "class,style")] - public class MultiAttributeTargetingTagHelper : TagHelper - { - } - - [HtmlTargetElement(Attributes = "custom")] - [HtmlTargetElement(Attributes = "class,style")] - public class MultiAttributeAttributeTargetingTagHelper : TagHelper - { - } - - [HtmlTargetElement(Attributes = "style")] - public class InheritedAttributeTargetingTagHelper : AttributeTargetingTagHelper - { - } - - [HtmlTargetElement("input", Attributes = "class")] - public class RequiredAttributeTagHelper : TagHelper - { - } - - [HtmlTargetElement("div", Attributes = "class")] - public class InheritedRequiredAttributeTagHelper : RequiredAttributeTagHelper - { - } - - [HtmlTargetElement("div", Attributes = "class")] - [HtmlTargetElement("input", Attributes = "class")] - public class MultiAttributeRequiredAttributeTagHelper : TagHelper - { - } - - [HtmlTargetElement("input", Attributes = "style")] - [HtmlTargetElement("input", Attributes = "class")] - public class MultiAttributeSameTagRequiredAttributeTagHelper : TagHelper - { - } - - [HtmlTargetElement("input", Attributes = "class,style")] - public class MultiRequiredAttributeTagHelper : TagHelper - { - } - - [HtmlTargetElement("div", Attributes = "style")] - public class InheritedMultiRequiredAttributeTagHelper : MultiRequiredAttributeTagHelper - { - } - - [HtmlTargetElement("div", Attributes = "class,style")] - [HtmlTargetElement("input", Attributes = "class,style")] - public class MultiTagMultiRequiredAttributeTagHelper : TagHelper - { - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("div")] - public class MultiTagTagHelper - { - public string ValidAttribute { get; set; } - } - - public class InheritedMultiTagTagHelper : MultiTagTagHelper - { - } - - [HtmlTargetElement("p")] - [HtmlTargetElement("p")] - [HtmlTargetElement("div")] - [HtmlTargetElement("div")] - public class DuplicateTagNameTagHelper - { - } - - [HtmlTargetElement("data-condition")] - public class OverrideNameTagHelper - { - } - - public class InheritedSingleAttributeTagHelper : SingleAttributeTagHelper - { - } - - public class DuplicateAttributeNameTagHelper - { - public string MyNameIsLegion { get; set; } - - [HtmlAttributeName("my-name-is-legion")] - public string Fred { get; set; } - } - - public class NotBoundAttributeTagHelper - { - public object BoundProperty { get; set; } - - [HtmlAttributeNotBound] - public string NotBoundProperty { get; set; } - - [HtmlAttributeName("unused")] - [HtmlAttributeNotBound] - public string NamedNotBoundProperty { get; set; } - } - - public class OverriddenAttributeTagHelper - { - [HtmlAttributeName("SomethingElse")] - public virtual string ValidAttribute1 { get; set; } - - [HtmlAttributeName("Something-Else")] - public string ValidAttribute2 { get; set; } - } - - public class InheritedOverriddenAttributeTagHelper : OverriddenAttributeTagHelper - { - public override string ValidAttribute1 { get; set; } - } - - public class InheritedNotOverriddenAttributeTagHelper : OverriddenAttributeTagHelper - { - } - - public class ALLCAPSTAGHELPER : TagHelper - { - public int ALLCAPSATTRIBUTE { get; set; } - } - - public class CAPSOnOUTSIDETagHelper : TagHelper - { - public int CAPSOnOUTSIDEATTRIBUTE { get; set; } - } - - public class capsONInsideTagHelper : TagHelper - { - public int capsONInsideattribute { get; set; } - } - - public class One1Two2Three3TagHelper : TagHelper - { - public int One1Two2Three3Attribute { get; set; } - } - - public class ONE1TWO2THREE3TagHelper : TagHelper - { - public int ONE1TWO2THREE3Attribute { get; set; } - } - - public class First_Second_ThirdHiTagHelper : TagHelper - { - public int First_Second_ThirdAttribute { get; set; } - } - - public class UNSuffixedCLASS : TagHelper - { - public int UNSuffixedATTRIBUTE { get; set; } - } - - public class InvalidBoundAttribute : TagHelper - { - public string DataSomething { get; set; } - } - - public class InvalidBoundAttributeWithValid : SingleAttributeTagHelper - { - public string DataSomething { get; set; } - } - - public class OverriddenInvalidBoundAttributeWithValid : TagHelper - { - [HtmlAttributeName("valid-something")] - public string DataSomething { get; set; } - } - - public class OverriddenValidBoundAttributeWithInvalid : TagHelper - { - [HtmlAttributeName("data-something")] - public string ValidSomething { get; set; } - } - - public class OverriddenValidBoundAttributeWithInvalidUpperCase : TagHelper - { - [HtmlAttributeName("DATA-SOMETHING")] - public string ValidSomething { get; set; } - } - - public class DefaultValidHtmlAttributePrefix : TagHelper - { - public IDictionary DictionaryProperty { get; set; } - } - - public class SingleValidHtmlAttributePrefix : TagHelper - { - [HtmlAttributeName("valid-name")] - public IDictionary DictionaryProperty { get; set; } - } - - public class MultipleValidHtmlAttributePrefix : TagHelper - { - [HtmlAttributeName("valid-name1", DictionaryAttributePrefix = "valid-prefix1-")] - public Dictionary DictionaryProperty { get; set; } - - [HtmlAttributeName("valid-name2", DictionaryAttributePrefix = "valid-prefix2-")] - public DictionarySubclass DictionarySubclassProperty { get; set; } - - [HtmlAttributeName("valid-name3", DictionaryAttributePrefix = "valid-prefix3-")] - public DictionaryWithoutParameterlessConstructor DictionaryWithoutParameterlessConstructorProperty { get; set; } - - [HtmlAttributeName("valid-name4", DictionaryAttributePrefix = "valid-prefix4-")] - public GenericDictionarySubclass GenericDictionarySubclassProperty { get; set; } - - [HtmlAttributeName("valid-name5", DictionaryAttributePrefix = "valid-prefix5-")] - public SortedDictionary SortedDictionaryProperty { get; set; } - - [HtmlAttributeName("valid-name6")] - public string StringProperty { get; set; } - - public IDictionary GetOnlyDictionaryProperty { get; } - - [HtmlAttributeName(DictionaryAttributePrefix = "valid-prefix6")] - public IDictionary GetOnlyDictionaryPropertyWithAttributePrefix { get; } - } - - public class SingleInvalidHtmlAttributePrefix : TagHelper - { - [HtmlAttributeName("valid-name", DictionaryAttributePrefix = "valid-prefix")] - public string StringProperty { get; set; } - } - - public class MultipleInvalidHtmlAttributePrefix : TagHelper - { - [HtmlAttributeName("valid-name1")] - public long LongProperty { get; set; } - - [HtmlAttributeName("valid-name2", DictionaryAttributePrefix = "valid-prefix2-")] - public Dictionary DictionaryOfIntProperty { get; set; } - - [HtmlAttributeName("valid-name3", DictionaryAttributePrefix = "valid-prefix3-")] - public IReadOnlyDictionary ReadOnlyDictionaryProperty { get; set; } - - [HtmlAttributeName("valid-name4", DictionaryAttributePrefix = "valid-prefix4-")] - public int IntProperty { get; set; } - - [HtmlAttributeName("valid-name5", DictionaryAttributePrefix = "valid-prefix5-")] - public DictionaryOfIntSubclass DictionaryOfIntSubclassProperty { get; set; } - - [HtmlAttributeName(DictionaryAttributePrefix = "valid-prefix6")] - public IDictionary GetOnlyDictionaryAttributePrefix { get; } - - [HtmlAttributeName("invalid-name7")] - public IDictionary GetOnlyDictionaryPropertyWithAttributeName { get; } - } - - public class DictionarySubclass : Dictionary - { - } - - public class DictionaryWithoutParameterlessConstructor : Dictionary - { - public DictionaryWithoutParameterlessConstructor(int count) - : base() - { - } - } - - public class DictionaryOfIntSubclass : Dictionary - { - } - - public class GenericDictionarySubclass : Dictionary - { - } - - [OutputElementHint("strong")] - public class OutputElementHintTagHelper : TagHelper - { - } - - [HtmlTargetElement("a")] - [HtmlTargetElement("p")] - [OutputElementHint("div")] - public class MultipleDescriptorTagHelperWithOutputElementHint : TagHelper - { - } - - public class NonPublicAccessorTagHelper : TagHelper - { - public string ValidAttribute { get; set; } - public string InvalidPrivateSetAttribute { get; private set; } - public string InvalidPrivateGetAttribute { private get; set; } - protected string InvalidProtectedAttribute { get; set; } - internal string InvalidInternalAttribute { get; set; } - protected internal string InvalidProtectedInternalAttribute { get; set; } - } - - public class SingleAttributeTagHelper : TagHelper - { - public int IntAttribute { get; set; } - } - - public class MissingAccessorTagHelper : TagHelper - { - public string ValidAttribute { get; set; } - public string InvalidNoGetAttribute { set { } } - public string InvalidNoSetAttribute { get { return string.Empty; } } - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperTypeVisitorTest.cs b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperTypeVisitorTest.cs deleted file mode 100644 index 77a85be01ae..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/TagHelperTypeVisitorTest.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using Microsoft.AspNetCore.Razor.TagHelpers; -using System.Collections.Generic; -using Xunit; -using System.Reflection; - -namespace Microsoft.CodeAnalysis.Razor.Workspaces -{ - public class TagHelperTypeVisitorTest - { - private static readonly Assembly _assembly = typeof(TagHelperTypeVisitorTest).GetTypeInfo().Assembly; - - private static Compilation Compilation { get; } = TestCompilation.Create(_assembly); - - private static INamedTypeSymbol ITagHelperSymbol { get; } = Compilation.GetTypeByMetadataName(TagHelperTypes.ITagHelper); - - [Fact] - public void IsTagHelper_PlainTagHelper_ReturnsTrue() - { - // Arrange - var testVisitor = new TagHelperTypeVisitor(ITagHelperSymbol, new List()); - var tagHelperSymbol = Compilation.GetTypeByMetadataName(typeof(Valid_PlainTagHelper).FullName); - - // Act - var isTagHelper = testVisitor.IsTagHelper(tagHelperSymbol); - - // Assert - Assert.True(isTagHelper); - } - - [Fact] - public void IsTagHelper_InheritedTagHelper_ReturnsTrue() - { - // Arrange - var testVisitor = new TagHelperTypeVisitor(ITagHelperSymbol, new List()); - var tagHelperSymbol = Compilation.GetTypeByMetadataName(typeof(Valid_InheritedTagHelper).FullName); - - // Act - var isTagHelper = testVisitor.IsTagHelper(tagHelperSymbol); - - // Assert - Assert.True(isTagHelper); - } - - [Fact] - public void IsTagHelper_AbstractTagHelper_ReturnsFalse() - { - // Arrange - var testVisitor = new TagHelperTypeVisitor(ITagHelperSymbol, new List()); - var tagHelperSymbol = Compilation.GetTypeByMetadataName(typeof(Invalid_AbstractTagHelper).FullName); - - // Act - var isTagHelper = testVisitor.IsTagHelper(tagHelperSymbol); - - // Assert - Assert.False(isTagHelper); - } - - [Fact] - public void IsTagHelper_GenericTagHelper_ReturnsFalse() - { - // Arrange - var testVisitor = new TagHelperTypeVisitor(ITagHelperSymbol, new List()); - var tagHelperSymbol = Compilation.GetTypeByMetadataName(typeof(Invalid_GenericTagHelper<>).FullName); - - // Act - var isTagHelper = testVisitor.IsTagHelper(tagHelperSymbol); - - // Assert - Assert.False(isTagHelper); - } - - [Fact] - public void IsTagHelper_InternalTagHelper_ReturnsFalse() - { - // Arrange - var testVisitor = new TagHelperTypeVisitor(ITagHelperSymbol, new List()); - var tagHelperSymbol = Compilation.GetTypeByMetadataName(typeof(Invalid_InternalTagHelper).FullName); - - // Act - var isTagHelper = testVisitor.IsTagHelper(tagHelperSymbol); - - // Assert - Assert.False(isTagHelper); - } - - public class Invalid_NestedPublicTagHelper : TagHelper - { - } - - public class Valid_NestedPublicViewComponent - { - public string Invoke(string foo) => null; - } - } - - public abstract class Invalid_AbstractTagHelper : TagHelper - { - } - - public class Invalid_GenericTagHelper : TagHelper - { - } - - internal class Invalid_InternalTagHelper : TagHelper - { - } - - public class Valid_PlainTagHelper : TagHelper - { - } - - public class Valid_InheritedTagHelper : Valid_PlainTagHelper - { - } -} diff --git a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/xunit.runner.json b/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/xunit.runner.json deleted file mode 100644 index c04bb61fe68..00000000000 --- a/src/Razor/test/Microsoft.CodeAnalysis.Razor.Test/xunit.runner.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "methodDisplay": "method", - "shadowCopy": false -} \ No newline at end of file From c566014a51cc8b55adb9c88339ff1b36870ab191 Mon Sep 17 00:00:00 2001 From: John Luo Date: Wed, 27 May 2020 17:18:05 -0700 Subject: [PATCH 05/15] Remove migrated benchmarks --- .../CodeGenerationBenchmark.cs | 58 -------------- .../SyntaxTreeGenerationBenckmark.cs | 77 ------------------- 2 files changed, 135 deletions(-) delete mode 100644 src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/CodeGenerationBenchmark.cs delete mode 100644 src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/SyntaxTreeGenerationBenckmark.cs diff --git a/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/CodeGenerationBenchmark.cs b/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/CodeGenerationBenchmark.cs deleted file mode 100644 index 0748ccf4efd..00000000000 --- a/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/CodeGenerationBenchmark.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using BenchmarkDotNet.Attributes; -using Microsoft.AspNetCore.Mvc.Razor.Extensions; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Razor.Performance -{ - public class CodeGenerationBenchmark - { - public CodeGenerationBenchmark() - { - var current = new DirectoryInfo(AppContext.BaseDirectory); - while (current != null && !File.Exists(Path.Combine(current.FullName, "MSN.cshtml"))) - { - current = current.Parent; - } - - var root = current; - var fileSystem = RazorProjectFileSystem.Create(root.FullName); - - ProjectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, fileSystem, b => RazorExtensions.Register(b)); ; - - MSN = fileSystem.GetItem(Path.Combine(root.FullName, "MSN.cshtml"), FileKinds.Legacy); - } - - public RazorProjectEngine ProjectEngine { get; } - - public RazorProjectItem MSN { get; } - - [Benchmark(Description = "Razor Design Time Code Generation of MSN.com")] - public void CodeGeneration_DesignTime_LargeStaticFile() - { - var codeDocument = ProjectEngine.ProcessDesignTime(MSN); - var generated = codeDocument.GetCSharpDocument(); - - if (generated.Diagnostics.Count != 0) - { - throw new Exception("Error!" + Environment.NewLine + string.Join(Environment.NewLine, generated.Diagnostics)); - } - } - - [Benchmark(Description = "Razor Runtime Code Generation of MSN.com")] - public void CodeGeneration_Runtime_LargeStaticFile() - { - var codeDocument = ProjectEngine.Process(MSN); - var generated = codeDocument.GetCSharpDocument(); - - if (generated.Diagnostics.Count != 0) - { - throw new Exception("Error!" + Environment.NewLine + string.Join(Environment.NewLine, generated.Diagnostics)); - } - } - } -} diff --git a/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/SyntaxTreeGenerationBenckmark.cs b/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/SyntaxTreeGenerationBenckmark.cs deleted file mode 100644 index fa1e1c2e643..00000000000 --- a/src/Razor/benchmarks/Microsoft.AspNetCore.Razor.Performance/SyntaxTreeGenerationBenckmark.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Linq; -using BenchmarkDotNet.Attributes; -using Microsoft.AspNetCore.Mvc.Razor.Extensions; -using Microsoft.AspNetCore.Razor.Language; - -namespace Microsoft.AspNetCore.Razor.Performance -{ - public class SyntaxTreeGenerationBenchmark - { - public SyntaxTreeGenerationBenchmark() - { - var current = new DirectoryInfo(AppContext.BaseDirectory); - while (current != null && !File.Exists(Path.Combine(current.FullName, "MSN.cshtml"))) - { - current = current.Parent; - } - - var root = current; - var fileSystem = RazorProjectFileSystem.Create(root.FullName); - - ProjectEngine = RazorProjectEngine.Create(RazorConfiguration.Default, fileSystem, b => RazorExtensions.Register(b)); ; - - var projectItem = fileSystem.GetItem(Path.Combine(root.FullName, "MSN.cshtml"), FileKinds.Legacy); - MSN = RazorSourceDocument.ReadFrom(projectItem); - - var directiveFeature = ProjectEngine.EngineFeatures.OfType().FirstOrDefault(); - Directives = directiveFeature?.Directives.ToArray() ?? Array.Empty(); - } - - public RazorProjectEngine ProjectEngine { get; } - - public RazorSourceDocument MSN { get; } - - public DirectiveDescriptor[] Directives { get; } - - [Benchmark(Description = "Razor Design Time Syntax Tree Generation of MSN.com")] - public void SyntaxTreeGeneration_DesignTime_LargeStaticFile() - { - var options = RazorParserOptions.CreateDesignTime(o => - { - foreach (var directive in Directives) - { - o.Directives.Add(directive); - } - }); - var syntaxTree = RazorSyntaxTree.Parse(MSN, options); - - if (syntaxTree.Diagnostics.Count != 0) - { - throw new Exception("Error!" + Environment.NewLine + string.Join(Environment.NewLine, syntaxTree.Diagnostics)); - } - } - - [Benchmark(Description = "Razor Runtime Syntax Tree Generation of MSN.com")] - public void SyntaxTreeGeneration_Runtime_LargeStaticFile() - { - var options = RazorParserOptions.Create(o => - { - foreach (var directive in Directives) - { - o.Directives.Add(directive); - } - }); - var syntaxTree = RazorSyntaxTree.Parse(MSN, options); - - if (syntaxTree.Diagnostics.Count != 0) - { - throw new Exception("Error!" + Environment.NewLine + string.Join(Environment.NewLine, syntaxTree.Diagnostics)); - } - } - } -} From 0c1c67bea1fb25c2fe8f225cd9784f4b5812dfa9 Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 28 May 2020 16:32:08 -0700 Subject: [PATCH 06/15] Remove RazorSyntaxGenerator --- .../AbstractFileWriter.cs | 358 --- .../Model/AbstractNode.cs | 14 - .../RazorSyntaxGenerator/Model/Comment.cs | 14 - .../tools/RazorSyntaxGenerator/Model/Field.cs | 32 - .../tools/RazorSyntaxGenerator/Model/Kind.cs | 13 - .../tools/RazorSyntaxGenerator/Model/Node.cs | 23 - .../Model/PredefinedNode.cs | 9 - .../tools/RazorSyntaxGenerator/Model/Tree.cs | 20 - .../RazorSyntaxGenerator/Model/TreeType.cs | 22 - .../tools/RazorSyntaxGenerator/Program.cs | 112 - .../tools/RazorSyntaxGenerator/README.md | 7 - .../RazorSyntaxGenerator.csproj | 12 - .../RazorSyntaxGenerator/SignatureWriter.cs | 130 - .../RazorSyntaxGenerator/SourceWriter.cs | 2262 ----------------- 14 files changed, 3028 deletions(-) delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/AbstractFileWriter.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/AbstractNode.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/Comment.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/Field.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/Kind.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/Node.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/PredefinedNode.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/Tree.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Model/TreeType.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/Program.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/README.md delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/SignatureWriter.cs delete mode 100644 src/Razor/tools/RazorSyntaxGenerator/SourceWriter.cs diff --git a/src/Razor/tools/RazorSyntaxGenerator/AbstractFileWriter.cs b/src/Razor/tools/RazorSyntaxGenerator/AbstractFileWriter.cs deleted file mode 100644 index bae61b5e74a..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/AbstractFileWriter.cs +++ /dev/null @@ -1,358 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; - -namespace RazorSyntaxGenerator -{ - internal abstract class AbstractFileWriter - { - private readonly TextWriter _writer; - private readonly Tree _tree; - private readonly IDictionary _parentMap; - private readonly ILookup _childMap; - private readonly IDictionary _nodeMap; - private readonly IDictionary _typeMap; - - private const int INDENT_SIZE = 4; - private int _indentLevel; - private bool _needIndent = true; - - protected AbstractFileWriter(TextWriter writer, Tree tree) - { - _writer = writer; - _tree = tree; - _nodeMap = tree.Types.OfType().ToDictionary(n => n.Name); - _typeMap = tree.Types.ToDictionary(n => n.Name); - _parentMap = tree.Types.ToDictionary(n => n.Name, n => n.Base); - _parentMap.Add(tree.Root, null); - _childMap = tree.Types.ToLookup(n => n.Base, n => n.Name); - } - - protected IDictionary ParentMap { get { return _parentMap; } } - protected ILookup ChildMap { get { return _childMap; } } - protected Tree Tree { get { return _tree; } } - - #region Output helpers - - protected void Indent() - { - _indentLevel++; - } - - protected void Unindent() - { - if (_indentLevel <= 0) - { - throw new InvalidOperationException("Cannot unindent from base level"); - } - _indentLevel--; - } - - protected void Write(string msg) - { - WriteIndentIfNeeded(); - _writer.Write(msg); - } - - protected void Write(string msg, params object[] args) - { - WriteIndentIfNeeded(); - _writer.Write(msg, args); - } - - protected void WriteLine() - { - WriteLine(""); - } - - protected void WriteLine(string msg) - { - WriteIndentIfNeeded(); - _writer.WriteLine(msg); - _needIndent = true; //need an indent after each line break - } - - protected void WriteLine(string msg, params object[] args) - { - WriteIndentIfNeeded(); - _writer.WriteLine(msg, args); - _needIndent = true; //need an indent after each line break - } - - private void WriteIndentIfNeeded() - { - if (_needIndent) - { - _writer.Write(new string(' ', _indentLevel * INDENT_SIZE)); - _needIndent = false; - } - } - - protected void OpenBlock() - { - WriteLine("{"); - Indent(); - } - - protected void CloseBlock() - { - Unindent(); - WriteLine("}"); - } - - #endregion Output helpers - - #region Node helpers - - protected static string OverrideOrNewModifier(Field field) - { - return IsOverride(field) ? "override " : IsNew(field) ? "new " : ""; - } - - protected static bool CanBeField(Field field) - { - return field.Type != "SyntaxToken" && !IsAnyList(field.Type) && !IsOverride(field) && !IsNew(field); - } - - protected static string GetFieldType(Field field, bool green) - { - if (IsAnyList(field.Type)) - { - return green - ? "GreenNode" - : "SyntaxNode"; - } - - return field.Type; - } - - protected bool IsDerivedOrListOfDerived(string baseType, string derivedType) - { - return IsDerivedType(baseType, derivedType) - || ((IsNodeList(derivedType) || IsSeparatedNodeList(derivedType)) - && IsDerivedType(baseType, GetElementType(derivedType))); - } - - protected static bool IsSeparatedNodeList(string typeName) - { - return typeName.StartsWith("SeparatedSyntaxList<", StringComparison.Ordinal); - } - - protected static bool IsNodeList(string typeName) - { - return typeName.StartsWith("SyntaxList<", StringComparison.Ordinal); - } - - protected static bool IsAnyNodeList(string typeName) - { - return IsNodeList(typeName) || IsSeparatedNodeList(typeName); - } - - protected bool IsNodeOrNodeList(string typeName) - { - return IsNode(typeName) || IsNodeList(typeName) || IsSeparatedNodeList(typeName) || typeName == "SyntaxNodeOrTokenList"; - } - - protected static string GetElementType(string typeName) - { - if (!typeName.Contains("<")) - return string.Empty; - var iStart = typeName.IndexOf('<'); - var iEnd = typeName.IndexOf('>', iStart + 1); - if (iEnd < iStart) - return string.Empty; - var sub = typeName.Substring(iStart + 1, iEnd - iStart - 1); - return sub; - } - - protected static bool IsAnyList(string typeName) - { - return IsNodeList(typeName) || IsSeparatedNodeList(typeName) || typeName == "SyntaxNodeOrTokenList"; - } - - protected bool IsDerivedType(string typeName, string derivedTypeName) - { - if (typeName == derivedTypeName) - return true; - if (derivedTypeName != null && _parentMap.TryGetValue(derivedTypeName, out var baseType)) - { - return IsDerivedType(typeName, baseType); - } - return false; - } - - protected static bool IsRoot(Node n) - { - return n.Root != null && string.Compare(n.Root, "true", true) == 0; - } - - protected bool IsNode(string typeName) - { - return _parentMap.ContainsKey(typeName); - } - - protected Node GetNode(string typeName) - => _nodeMap.TryGetValue(typeName, out var node) ? node : null; - - protected TreeType GetTreeType(string typeName) - => _typeMap.TryGetValue(typeName, out var node) ? node : null; - - protected static bool IsOptional(Field f) - { - return f.Optional != null && string.Compare(f.Optional, "true", true) == 0; - } - - protected static bool IsOverride(Field f) - { - return f.Override != null && string.Compare(f.Override, "true", true) == 0; - } - - protected static bool IsNew(Field f) - { - return f.New != null && string.Compare(f.New, "true", true) == 0; - } - - protected static bool HasErrors(Node n) - { - return n.Errors == null || string.Compare(n.Errors, "true", true) == 0; - } - - protected static string CamelCase(string name) - { - if (char.IsUpper(name[0])) - { - name = char.ToLowerInvariant(name[0]) + name.Substring(1); - } - return FixKeyword(name); - } - - protected static string FixKeyword(string name) - { - if (IsKeyword(name)) - { - return "@" + name; - } - return name; - } - - protected static string UnderscoreCamelCase(string name) - { - return "_" + CamelCase(name); - } - - protected string StripNode(string name) - { - return (_tree.Root.EndsWith("Node", StringComparison.Ordinal)) ? _tree.Root.Substring(0, _tree.Root.Length - 4) : _tree.Root; - } - - protected string StripRoot(string name) - { - var root = StripNode(_tree.Root); - if (name.EndsWith(root, StringComparison.Ordinal)) - { - return name.Substring(0, name.Length - root.Length); - } - return name; - } - - protected static string StripPost(string name, string post) - { - return name.EndsWith(post, StringComparison.Ordinal) - ? name.Substring(0, name.Length - post.Length) - : name; - } - - protected static bool IsKeyword(string name) - { - switch (name) - { - case "bool": - case "byte": - case "sbyte": - case "short": - case "ushort": - case "int": - case "uint": - case "long": - case "ulong": - case "double": - case "float": - case "decimal": - case "string": - case "char": - case "object": - case "typeof": - case "sizeof": - case "null": - case "true": - case "false": - case "if": - case "else": - case "while": - case "for": - case "foreach": - case "do": - case "switch": - case "case": - case "default": - case "lock": - case "try": - case "throw": - case "catch": - case "finally": - case "goto": - case "break": - case "continue": - case "return": - case "public": - case "private": - case "internal": - case "protected": - case "static": - case "readonly": - case "sealed": - case "const": - case "new": - case "override": - case "abstract": - case "virtual": - case "partial": - case "ref": - case "out": - case "in": - case "where": - case "params": - case "this": - case "base": - case "namespace": - case "using": - case "class": - case "struct": - case "interface": - case "delegate": - case "checked": - case "get": - case "set": - case "add": - case "remove": - case "operator": - case "implicit": - case "explicit": - case "fixed": - case "extern": - case "event": - case "enum": - case "unsafe": - return true; - default: - return false; - } - } - - #endregion Node helpers - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/AbstractNode.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/AbstractNode.cs deleted file mode 100644 index bc120f8095c..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/AbstractNode.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class AbstractNode : TreeType - { - [XmlElement(ElementName = "Field", Type = typeof(Field))] - public List Fields; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/Comment.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/Comment.cs deleted file mode 100644 index 7b26ed940b2..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/Comment.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Xml; -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class Comment - { - [XmlAnyElement] - public XmlElement[] Body; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/Field.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/Field.cs deleted file mode 100644 index fe900160b0f..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/Field.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class Field - { - [XmlAttribute] - public string Name; - - [XmlAttribute] - public string Type; - - [XmlAttribute] - public string Optional; - - [XmlAttribute] - public string Override; - - [XmlAttribute] - public string New; - - [XmlElement(ElementName = "Kind", Type = typeof(Kind))] - public List Kinds; - - [XmlElement] - public Comment PropertyComment; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/Kind.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/Kind.cs deleted file mode 100644 index fb1254d500f..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/Kind.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class Kind - { - [XmlAttribute] - public string Name; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/Node.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/Node.cs deleted file mode 100644 index 365bc4d3934..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/Node.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class Node : TreeType - { - [XmlAttribute] - public string Root; - - [XmlAttribute] - public string Errors; - - [XmlElement(ElementName = "Kind", Type = typeof(Kind))] - public List Kinds; - - [XmlElement(ElementName = "Field", Type = typeof(Field))] - public List Fields; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/PredefinedNode.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/PredefinedNode.cs deleted file mode 100644 index 8fb09e6ca8d..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/PredefinedNode.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace RazorSyntaxGenerator -{ - public class PredefinedNode : TreeType - { - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/Tree.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/Tree.cs deleted file mode 100644 index 000b5aaf19e..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/Tree.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections.Generic; -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - [XmlRoot] - public class Tree - { - [XmlAttribute] - public string Root; - - [XmlElement(ElementName = "Node", Type = typeof(Node))] - [XmlElement(ElementName = "AbstractNode", Type = typeof(AbstractNode))] - [XmlElement(ElementName = "PredefinedNode", Type = typeof(PredefinedNode))] - public List Types; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Model/TreeType.cs b/src/Razor/tools/RazorSyntaxGenerator/Model/TreeType.cs deleted file mode 100644 index 8900c786f44..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Model/TreeType.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class TreeType - { - [XmlAttribute] - public string Name; - - [XmlAttribute] - public string Base; - - [XmlElement] - public Comment TypeComment; - - [XmlElement] - public Comment FactoryComment; - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/Program.cs b/src/Razor/tools/RazorSyntaxGenerator/Program.cs deleted file mode 100644 index 63989d26e64..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/Program.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.IO; -using System.Reflection; -using System.Text; -using System.Xml; -using System.Xml.Serialization; - -namespace RazorSyntaxGenerator -{ - public class Program - { - public static int Main(string[] args) - { - if (args.Length < 2 || args.Length > 2) - { - WriteUsage(); - return 1; - } - - var inputFile = args[0]; - - if (!File.Exists(inputFile)) - { - Console.WriteLine(Directory.GetCurrentDirectory()); - Console.WriteLine(inputFile + " not found."); - return 1; - } - - var writeSource = true; - var writeSignatures = false; - string outputFile = null; - - if (args.Length == 2) - { - if (args[1] == "/sig") - { - writeSignatures = true; - } - else - { - outputFile = args[1]; - } - } - - var reader = XmlReader.Create(inputFile, new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit }); - var serializer = new XmlSerializer(typeof(Tree)); - var tree = (Tree)serializer.Deserialize(reader); - - if (writeSignatures) - { - SignatureWriter.Write(Console.Out, tree); - } - else - { - if (writeSource) - { - var outputPath = outputFile.Trim('"'); - var prefix = Path.GetFileName(inputFile); - var outputMainFile = Path.Combine(outputPath, $"{prefix}.Main.Generated.cs"); - var outputInternalFile = Path.Combine(outputPath, $"{prefix}.Internal.Generated.cs"); - var outputSyntaxFile = Path.Combine(outputPath, $"{prefix}.Syntax.Generated.cs"); - - WriteToFile(tree, SourceWriter.WriteMain, outputMainFile); - WriteToFile(tree, SourceWriter.WriteInternal, outputInternalFile); - WriteToFile(tree, SourceWriter.WriteSyntax, outputSyntaxFile); - } - //if (writeTests) - //{ - // WriteToFile(tree, TestWriter.Write, outputFile); - //} - } - - return 0; - } - - private static void WriteUsage() - { - Console.WriteLine("Invalid usage"); - Console.WriteLine(typeof(Program).GetTypeInfo().Assembly.ManifestModule.Name + " input-file output-file [/write-test]"); - } - - private static void WriteToFile(Tree tree, Action writeAction, string outputFile) - { - var stringBuilder = new StringBuilder(); - var writer = new StringWriter(stringBuilder); - writeAction(writer, tree); - - var text = stringBuilder.ToString(); - int length; - do - { - length = text.Length; - text = text.Replace("{\r\n\r\n", "{\r\n"); - } while (text.Length != length); - - try - { - using (var outFile = new StreamWriter(File.Open(outputFile, FileMode.Create), Encoding.UTF8)) - { - outFile.Write(text); - } - } - catch (UnauthorizedAccessException) - { - Console.WriteLine("Unable to access {0}. Is it checked out?", outputFile); - } - } - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/README.md b/src/Razor/tools/RazorSyntaxGenerator/README.md deleted file mode 100644 index c19e1d681b5..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Razor syntax generator - -Syntax generator tool for the Razor syntax tree. This is a modified version of Roslyn's [CSharpSyntaxGenerator](https://github.com/dotnet/roslyn/tree/master/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator). For internal use only. - -## Usage - -dotnet run `full/path/to/Syntax.xml` `full/path/to/generated/output` \ No newline at end of file diff --git a/src/Razor/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj b/src/Razor/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj deleted file mode 100644 index 93665f7d14d..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - Generates Razor syntax nodes from xml. For internal use only. - netcoreapp2.1 - dotnet-razorsyntaxgenerator - RazorSyntaxGenerator - Exe - false - - - diff --git a/src/Razor/tools/RazorSyntaxGenerator/SignatureWriter.cs b/src/Razor/tools/RazorSyntaxGenerator/SignatureWriter.cs deleted file mode 100644 index e7aefb38b9b..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/SignatureWriter.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; - -namespace RazorSyntaxGenerator -{ - internal class SignatureWriter - { - private readonly TextWriter _writer; - private readonly Tree _tree; - private readonly Dictionary _typeMap; - - private SignatureWriter(TextWriter writer, Tree tree) - { - _writer = writer; - _tree = tree; - _typeMap = tree.Types.ToDictionary(n => n.Name, n => n.Base); - _typeMap.Add(tree.Root, null); - } - - public static void Write(TextWriter writer, Tree tree) - { - new SignatureWriter(writer, tree).WriteFile(); - } - - private void WriteFile() - { - _writer.WriteLine("using System;"); - _writer.WriteLine("using System.Collections;"); - _writer.WriteLine("using System.Collections.Generic;"); - _writer.WriteLine("using System.Linq;"); - _writer.WriteLine("using System.Threading;"); - _writer.WriteLine(); - _writer.WriteLine("namespace Microsoft.AspNetCore.Razor.Language.Syntax"); - _writer.WriteLine("{"); - - this.WriteTypes(); - - _writer.WriteLine("}"); - } - - private void WriteTypes() - { - var nodes = _tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - for (int i = 0, n = nodes.Count; i < n; i++) - { - var node = nodes[i]; - _writer.WriteLine(); - WriteType(node); - } - } - - private void WriteType(TreeType node) - { - if (node is AbstractNode abstractNode) - { - _writer.WriteLine(" public abstract partial class {0} : {1}", node.Name, node.Base); - _writer.WriteLine(" {"); - for (int i = 0, n = abstractNode.Fields.Count; i < n; i++) - { - var field = abstractNode.Fields[i]; - if (IsNodeOrNodeList(field.Type)) - { - _writer.WriteLine(" public abstract {0}{1} {2} {{ get; }}", "", field.Type, field.Name); - } - } - _writer.WriteLine(" }"); - } - else if (node is Node nd) - { - _writer.WriteLine(" public partial class {0} : {1}", node.Name, node.Base); - _writer.WriteLine(" {"); - - WriteKinds(nd.Kinds); - - var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - _writer.WriteLine(" public {0}{1}{2} {3} {{ get; }}", "", "", field.Type, field.Name); - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - _writer.WriteLine(" public {0}{1}{2} {3} {{ get; }}", "", "", field.Type, field.Name); - } - - _writer.WriteLine(" }"); - } - } - - private void WriteKinds(List kinds) - { - if (kinds.Count > 1) - { - foreach (var kind in kinds) - { - _writer.WriteLine(" // {0}", kind.Name); - } - } - } - - private bool IsSeparatedNodeList(string typeName) - { - return typeName.StartsWith("SeparatedSyntaxList<", StringComparison.Ordinal); - } - - private bool IsNodeList(string typeName) - { - return typeName.StartsWith("SyntaxList<", StringComparison.Ordinal); - } - - public bool IsNodeOrNodeList(string typeName) - { - return IsNode(typeName) || IsNodeList(typeName) || IsSeparatedNodeList(typeName); - } - - private bool IsNode(string typeName) - { - return _typeMap.ContainsKey(typeName); - } - } -} diff --git a/src/Razor/tools/RazorSyntaxGenerator/SourceWriter.cs b/src/Razor/tools/RazorSyntaxGenerator/SourceWriter.cs deleted file mode 100644 index 5a9a7112bbd..00000000000 --- a/src/Razor/tools/RazorSyntaxGenerator/SourceWriter.cs +++ /dev/null @@ -1,2262 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Xml; - -namespace RazorSyntaxGenerator -{ - internal class SourceWriter : AbstractFileWriter - { - private SourceWriter(TextWriter writer, Tree tree) - : base(writer, tree) - { - } - - public static void WriteMain(TextWriter writer, Tree tree) => new SourceWriter(writer, tree).WriteMain(); - - public static void WriteInternal(TextWriter writer, Tree tree) => new SourceWriter(writer, tree).WriteInternal(); - - public static void WriteSyntax(TextWriter writer, Tree tree) => new SourceWriter(writer, tree).WriteSyntax(); - - private void WriteFileHeader() - { - WriteLine("// "); - WriteLine(); - WriteLine("using System;"); - WriteLine("using System.Collections;"); - WriteLine("using System.Collections.Generic;"); - WriteLine("using System.Linq;"); - WriteLine("using System.Threading;"); - WriteLine(); - } - - private void WriteInternal() - { - WriteFileHeader(); - - WriteLine("namespace Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax"); - WriteLine("{"); - WriteLine(); - WriteGreenTypes(); - WriteGreenVisitors(); - WriteGreenRewriter(); - WriteStaticGreenFactories(); - WriteLine("}"); - } - - private void WriteSyntax() - { - WriteFileHeader(); - - WriteLine(); - WriteLine("namespace Microsoft.AspNetCore.Razor.Language.Syntax"); - WriteLine("{"); - WriteLine(); - WriteRedTypes(); - WriteLine("}"); - } - - private void WriteMain() - { - WriteFileHeader(); - - WriteLine(); - WriteLine("namespace Microsoft.AspNetCore.Razor.Language.Syntax"); - WriteLine("{"); - //WriteLine(" using Microsoft.AspNetCore.Razor.Language.Syntax;"); - //WriteLine(); - WriteRedVisitors(); - WriteRedRewriter(); - WriteRedFactories(); - WriteLine("}"); - } - - private void WriteGreenTypes() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - for (int i = 0, n = nodes.Count; i < n; i++) - { - var node = nodes[i]; - WriteLine(); - WriteGreenType(node); - } - } - - private void WriteGreenType(TreeType node) - { - WriteComment(node.TypeComment, " "); - - if (node is AbstractNode) - { - AbstractNode nd = (AbstractNode)node; - WriteLine(" internal abstract partial class {0} : {1}", node.Name, node.Base == "SyntaxNode" ? "GreenNode" : node.Base); - WriteLine(" {"); - - // ctor with diagnostics and annotations - WriteLine(" internal {0}(SyntaxKind kind, RazorDiagnostic[] diagnostics, SyntaxAnnotation[] annotations)", node.Name); - WriteLine(" : base(kind, diagnostics, annotations)"); - WriteLine(" {"); - if (node.Name == "DirectiveTriviaSyntax") - { - WriteLine(" _flags |= NodeFlags.ContainsDirectives;"); - } - WriteLine(" }"); - - // ctor without diagnostics and annotations - WriteLine(" internal {0}(SyntaxKind kind)", node.Name); - WriteLine(" : base(kind)"); - WriteLine(" {"); - if (node.Name == "DirectiveTriviaSyntax") - { - WriteLine(" _flags |= NodeFlags.ContainsDirectives;"); - } - WriteLine(" }"); - - /* Remove - // object reader constructor - WriteLine(); - WriteLine(" protected {0}(ObjectReader reader)", node.Name); - WriteLine(" : base(reader)"); - WriteLine(" {"); - if (node.Name == "DirectiveTriviaSyntax") - { - WriteLine(" _flags |= NodeFlags.ContainsDirectives;"); - } - WriteLine(" }"); */ - - var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - if (IsNodeOrNodeList(field.Type)) - { - WriteLine(); - WriteComment(field.PropertyComment, " "); - - if (IsSeparatedNodeList(field.Type) || - IsNodeList(field.Type)) - { - WriteLine(" public abstract {0}{1} {2} {{ get; }}", - (IsNew(field) ? "new " : ""), field.Type, field.Name); - } - else - { - WriteLine(" public abstract {0}{1} {2} {{ get; }}", - (IsNew(field) ? "new " : ""), field.Type, field.Name); - } - } - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - WriteLine(); - WriteComment(field.PropertyComment, " "); - - WriteLine(" public abstract {0}{1} {2} {{ get; }}", - (IsNew(field) ? "new " : ""), field.Type, field.Name); - } - - WriteLine(" }"); - } - else if (node is Node) - { - Node nd = (Node)node; - - WriteLine(" internal sealed partial class {0} : {1}", node.Name, node.Base); - WriteLine(" {"); - - var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - var type = GetFieldType(field, green: true); - WriteLine(" private readonly {0} {1};", type, UnderscoreCamelCase(field.Name)); - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - WriteLine(" private readonly {0} {1};", field.Type, UnderscoreCamelCase(field.Name)); - } - - // write constructor with diagnostics and annotations - WriteLine(); - Write(" internal {0}(SyntaxKind kind", node.Name); - - WriteGreenNodeConstructorArgs(nodeFields, valueFields); - - WriteLine(", RazorDiagnostic[] diagnostics, SyntaxAnnotation[] annotations)"); - WriteLine(" : base(kind, diagnostics, annotations)"); - WriteLine(" {"); - WriteCtorBody(valueFields, nodeFields); - WriteLine(" }"); - WriteLine(); - - /* Remove - // write constructor with async - WriteLine(); - Write(" internal {0}(SyntaxKind kind", node.Name); - - WriteGreenNodeConstructorArgs(nodeFields, valueFields); - - WriteLine(", SyntaxFactoryContext context)"); - WriteLine(" : base(kind)"); - WriteLine(" {"); - WriteLine(" this.SetFactoryContext(context);"); - WriteCtorBody(valueFields, nodeFields); - WriteLine(" }"); - WriteLine(); */ - - // write constructor without diagnostics and annotations - WriteLine(); - Write(" internal {0}(SyntaxKind kind", node.Name); - - WriteGreenNodeConstructorArgs(nodeFields, valueFields); - - WriteLine(")"); - WriteLine(" : base(kind)"); - WriteLine(" {"); - WriteCtorBody(valueFields, nodeFields); - WriteLine(" }"); - WriteLine(); - - // property accessors - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - WriteComment(field.PropertyComment, " "); - if (IsNodeList(field.Type)) - { - WriteLine(" public {0}{1} {2} {{ get {{ return new {1}({3}); }} }}", - OverrideOrNewModifier(field), field.Type, field.Name, UnderscoreCamelCase(field.Name) - ); - } - else if (IsSeparatedNodeList(field.Type)) - { - WriteLine(" public {0}{1} {2} {{ get {{ return new {1}(new SyntaxList({3})); }} }}", - OverrideOrNewModifier(field), field.Type, field.Name, UnderscoreCamelCase(field.Name), i - ); - } - else if (field.Type == "SyntaxNodeOrTokenList") - { - WriteLine(" public {0}SyntaxList {1} {{ get {{ return new SyntaxList({2}); }} }}", - OverrideOrNewModifier(field), field.Name, UnderscoreCamelCase(field.Name) - ); - } - else - { - WriteLine(" public {0}{1} {2} {{ get {{ return {3}; }} }}", - OverrideOrNewModifier(field), field.Type, field.Name, UnderscoreCamelCase(field.Name) - ); - } - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - WriteComment(field.PropertyComment, " "); - WriteLine(" public {0}{1} {2} {{ get {{ return {3}; }} }}", - OverrideOrNewModifier(field), field.Type, field.Name, UnderscoreCamelCase(field.Name) - ); - } - - // GetSlot - WriteLine(); - WriteLine(" internal override GreenNode GetSlot(int index)"); - WriteLine(" {"); - WriteLine(" switch (index)"); - WriteLine(" {"); - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - WriteLine(" case {0}: return {1};", i, UnderscoreCamelCase(field.Name)); - } - WriteLine(" default: return null;"); - WriteLine(" }"); - WriteLine(" }"); - - WriteLine(); - WriteLine(" internal override SyntaxNode CreateRed(SyntaxNode parent, int position)"); - WriteLine(" {"); - WriteLine(" return new Syntax.{0}(this, parent, position);", node.Name); - WriteLine(" }"); - - WriteGreenAcceptMethods(nd); - WriteGreenUpdateMethod(nd); - WriteSetDiagnostics(nd); - WriteSetAnnotations(nd); - - WriteLine(" }"); - } - } - - private void WriteGreenNodeConstructorArgs(List nodeFields, List valueFields) - { - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - string type = GetFieldType(field, green: true); - - Write(", {0} {1}", type, CamelCase(field.Name)); - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - Write(", {0} {1}", field.Type, CamelCase(field.Name)); - } - } - - private void WriteGreenSerialization(Node node) - { - var valueFields = node.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = node.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); - - // object reader constructor - WriteLine(); - WriteLine(" internal {0}(ObjectReader reader)", node.Name); - WriteLine(" : base(reader)"); - WriteLine(" {"); - - WriteLine(" this.SlotCount = {0};", nodeFields.Count); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - string type = GetFieldType(field, green: true); - WriteLine(" var {0} = ({1})reader.ReadValue();", CamelCase(field.Name), type); - WriteLine(" if ({0} != null)", CamelCase(field.Name)); - WriteLine(" {"); - WriteLine(" AdjustFlagsAndWidth({0});", CamelCase(field.Name)); - WriteLine(" this.{0} = {0};", CamelCase(field.Name), type); - WriteLine(" }"); - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - string type = GetFieldType(field, green: true); - WriteLine(" this.{0} = ({1})reader.{2}();", CamelCase(field.Name), type, GetReaderMethod(type)); - } - - WriteLine(" }"); - - // IWritable - WriteLine(); - WriteLine(" internal override void WriteTo(ObjectWriter writer)"); - WriteLine(" {"); - WriteLine(" base.WriteTo(writer);"); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - string type = GetFieldType(field, green: true); - WriteLine(" writer.WriteValue(this.{0});", CamelCase(field.Name)); - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - var type = GetFieldType(field, green: true); - WriteLine(" writer.{0}(this.{1});", GetWriterMethod(type), CamelCase(field.Name)); - } - - WriteLine(" }"); - - // IReadable - WriteLine(); - WriteLine(" static {0}()", node.Name); - WriteLine(" {"); - WriteLine(" ObjectBinder.RegisterTypeReader(typeof({0}), r => new {0}(r));", node.Name); - WriteLine(" }"); - } - - private string GetWriterMethod(string type) - { - switch (type) - { - case "bool": - return "WriteBoolean"; - default: - throw new InvalidOperationException(string.Format("Type '{0}' not supported for object reader serialization.", type)); - } - } - - private string GetReaderMethod(string type) - { - switch (type) - { - case "bool": - return "ReadBoolean"; - default: - throw new InvalidOperationException(string.Format("Type '{0}' not supported for object reader serialization.", type)); - } - } - - private void WriteCtorBody(List valueFields, List nodeFields) - { - // constructor body - WriteLine(" SlotCount = {0};", nodeFields.Count); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - if (IsAnyList(field.Type) || IsOptional(field)) - { - WriteLine(" if ({0} != null)", CamelCase(field.Name)); - WriteLine(" {"); - WriteLine(" AdjustFlagsAndWidth({0});", CamelCase(field.Name)); - WriteLine(" {0} = {1};", UnderscoreCamelCase(field.Name), CamelCase(field.Name)); - WriteLine(" }"); - } - else - { - WriteLine(" AdjustFlagsAndWidth({0});", CamelCase(field.Name)); - WriteLine(" {0} = {1};", UnderscoreCamelCase(field.Name), CamelCase(field.Name)); - } - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - WriteLine(" {0} = {1};", UnderscoreCamelCase(field.Name), CamelCase(field.Name)); - } - } - - private void WriteSetAnnotations(Node node) - { - WriteLine(); - WriteLine(" internal override GreenNode SetAnnotations(SyntaxAnnotation[] annotations)"); - WriteLine(" {"); - - Write(" return new {0}(", node.Name); - Write("Kind, "); - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - Write("{0}", UnderscoreCamelCase(field.Name)); - } - WriteLine(", GetDiagnostics(), annotations);"); - WriteLine(" }"); - } - - private void WriteSetDiagnostics(Node node) - { - WriteLine(); - WriteLine(" internal override GreenNode SetDiagnostics(RazorDiagnostic[] diagnostics)"); - WriteLine(" {"); - - Write(" return new {0}(", node.Name); - Write("Kind, "); - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - Write("{0}", UnderscoreCamelCase(field.Name)); - } - WriteLine(", diagnostics, GetAnnotations());"); - WriteLine(" }"); - } - - private void WriteGreenAcceptMethods(Node node) - { - //WriteLine(); - //WriteLine(" public override TResult Accept(SyntaxVisitor visitor, TArgument argument)"); - //WriteLine(" {"); - //WriteLine(" return visitor.Visit{0}(this, argument);", StripPost(node.Name, "Syntax")); - //WriteLine(" }"); - WriteLine(); - WriteLine(" public override TResult Accept(SyntaxVisitor visitor)"); - WriteLine(" {"); - WriteLine(" return visitor.Visit{0}(this);", StripPost(node.Name, "Syntax")); - WriteLine(" }"); - WriteLine(); - WriteLine(" public override void Accept(SyntaxVisitor visitor)"); - WriteLine(" {"); - WriteLine(" visitor.Visit{0}(this);", StripPost(node.Name, "Syntax")); - WriteLine(" }"); - } - - private void WriteGreenVisitors() - { - //WriteGreenVisitor(true, true); - //WriteLine(); - WriteGreenVisitor(false, true); - WriteLine(); - WriteGreenVisitor(false, false); - } - - private void WriteGreenVisitor(bool withArgument, bool withResult) - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - - WriteLine(); - WriteLine(" internal partial class SyntaxVisitor" + (withResult ? "<" + (withArgument ? "TArgument, " : "") + "TResult>" : "")); - WriteLine(" {"); - int nWritten = 0; - for (int i = 0, n = nodes.Count; i < n; i++) - { - if (nodes[i] is Node node) - { - if (nWritten > 0) - WriteLine(); - nWritten++; - WriteLine(" public virtual " + (withResult ? "TResult" : "void") + " Visit{0}({1} node{2})", StripPost(node.Name, "Syntax"), node.Name, withArgument ? ", TArgument argument" : ""); - WriteLine(" {"); - WriteLine(" " + (withResult ? "return " : "") + "DefaultVisit(node{0});", withArgument ? ", argument" : ""); - WriteLine(" }"); - } - } - WriteLine(" }"); - } - - private void WriteGreenUpdateMethod(Node node) - { - WriteLine(); - Write(" public {0} Update(", node.Name); - - // parameters - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - - var type = - field.Type == "SyntaxNodeOrTokenList" ? "Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax.SyntaxList" : - field.Type == "SyntaxTokenList" ? "Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax.SyntaxList" : - IsNodeList(field.Type) ? "Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax." + field.Type : - IsSeparatedNodeList(field.Type) ? "Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax." + field.Type : - field.Type; - - Write("{0} {1}", type, CamelCase(field.Name)); - } - WriteLine(")"); - WriteLine(" {"); - - Write(" if ("); - int nCompared = 0; - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (IsDerivedOrListOfDerived("SyntaxNode", field.Type) || IsDerivedOrListOfDerived("SyntaxToken", field.Type) || field.Type == "SyntaxNodeOrTokenList") - { - if (nCompared > 0) - Write(" || "); - Write("{0} != {1}", CamelCase(field.Name), field.Name); - nCompared++; - } - } - if (nCompared > 0) - { - WriteLine(")"); - WriteLine(" {"); - Write(" var newNode = SyntaxFactory.{0}(", StripPost(node.Name, "Syntax")); - if (node.Kinds.Count > 1) - { - Write("Kind, "); - } - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - Write(CamelCase(field.Name)); - } - WriteLine(");"); - WriteLine(" var diags = GetDiagnostics();"); - WriteLine(" if (diags != null && diags.Length > 0)"); - WriteLine(" newNode = newNode.WithDiagnosticsGreen(diags);"); - WriteLine(" var annotations = GetAnnotations();"); - WriteLine(" if (annotations != null && annotations.Length > 0)"); - WriteLine(" newNode = newNode.WithAnnotationsGreen(annotations);"); - WriteLine(" return newNode;"); - WriteLine(" }"); - } - - WriteLine(); - WriteLine(" return this;"); - WriteLine(" }"); - } - - private void WriteGreenRewriter() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - - WriteLine(); - WriteLine(" internal partial class SyntaxRewriter : SyntaxVisitor"); - WriteLine(" {"); - int nWritten = 0; - for (int i = 0, n = nodes.Count; i < n; i++) - { - if (nodes[i] is Node node) - { - var nodeFields = node.Fields.Where(nd => IsNodeOrNodeList(nd.Type)).ToList(); - - if (nWritten > 0) - WriteLine(); - nWritten++; - WriteLine(" public override GreenNode Visit{0}({1} node)", StripPost(node.Name, "Syntax"), node.Name); - WriteLine(" {"); - for (int f = 0; f < nodeFields.Count; f++) - { - var field = nodeFields[f]; - if (IsAnyList(field.Type)) - { - WriteLine(" var {0} = VisitList(node.{1});", CamelCase(field.Name), field.Name); - } - else - { - WriteLine(" var {0} = ({1})Visit(node.{2});", CamelCase(field.Name), field.Type, field.Name); - } - } - if (nodeFields.Count > 0) - { - Write(" return node.Update("); - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - if (IsNodeOrNodeList(field.Type)) - { - Write(CamelCase(field.Name)); - } - else - { - Write("node.{0}", field.Name); - } - } - WriteLine(");"); - } - else - { - WriteLine(" return node;"); - } - WriteLine(" }"); - } - } - WriteLine(" }"); - } - - private void WriteContextualGreenFactories() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode) && !(n is AbstractNode)).ToList(); - WriteLine(); - WriteLine(" internal partial class ContextAwareSyntax"); - WriteLine(" {"); - - WriteLine(); - WriteLine(" private SyntaxFactoryContext context;"); - WriteLine(); - - WriteLine(); - WriteLine(" public ContextAwareSyntax(SyntaxFactoryContext context)"); - WriteLine(" {"); - WriteLine(" this.context = context;"); - WriteLine(" }"); - - WriteGreenFactories(nodes, withSyntaxFactoryContext: true); - - WriteLine(" }"); - } - - private void WriteStaticGreenFactories() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode) && !(n is AbstractNode)).ToList(); - WriteLine(); - WriteLine(" internal static partial class SyntaxFactory"); - WriteLine(" {"); - - WriteGreenFactories(nodes); - - WriteGreenTypeList(); - - WriteLine(" }"); - } - - private void WriteGreenFactories(List nodes, bool withSyntaxFactoryContext = false) - { - for (int i = 0, n = nodes.Count; i < n; i++) - { - var node = nodes[i]; - WriteGreenFactory((Node)node, withSyntaxFactoryContext); - if (i < n - 1) - WriteLine(); - } - } - - private void WriteGreenTypeList() - { - WriteLine(); - WriteLine(" internal static IEnumerable GetNodeTypes()"); - WriteLine(" {"); - WriteLine(" return new Type[] {"); - - var nodes = Tree.Types.Where(n => !(n is PredefinedNode) && !(n is AbstractNode)).ToList(); - for (int i = 0, n = nodes.Count; i < n; i++) - { - var node = nodes[i]; - Write(" typeof({0})", node.Name); - if (i < n - 1) - Write(","); - WriteLine(); - } - - WriteLine(" };"); - WriteLine(" }"); - } - - - private void WriteGreenFactory(Node nd, bool withSyntaxFactoryContext = false) - { - var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); - - Write(" public {0}{1} {2}(", withSyntaxFactoryContext ? "" : "static ", nd.Name, StripPost(nd.Name, "Syntax")); - WriteGreenFactoryParameters(nd); - WriteLine(")"); - WriteLine(" {"); - - // validate kind - if (nd.Kinds.Count > 1) - { - WriteLine(" switch (kind)"); - WriteLine(" {"); - foreach (var k in nd.Kinds) - { - WriteLine(" case SyntaxKind.{0}:", k.Name); - } - WriteLine(" break;"); - WriteLine(" default:"); - WriteLine(" throw new ArgumentException(\"kind\");"); - WriteLine(" }"); - } - - // validate parameters - //WriteLine("#if DEBUG"); - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - var pname = CamelCase(field.Name); - - if (!IsAnyList(field.Type) && !IsOptional(field)) - { - WriteLine(" if ({0} == null)", CamelCase(field.Name)); - WriteLine(" throw new ArgumentNullException(nameof({0}));", CamelCase(field.Name)); - } - if (field.Type == "SyntaxToken" && field.Kinds != null && field.Kinds.Count > 0) - { - if (IsOptional(field)) - { - WriteLine(" if ({0} != null)", CamelCase(field.Name)); - WriteLine(" {"); - } - WriteLine(" switch ({0}.Kind)", pname); - WriteLine(" {"); - foreach (var kind in field.Kinds) - { - WriteLine(" case SyntaxKind.{0}:", kind.Name); - } - //we need to check for Kind=None as well as node == null because that's what the red factory will pass - if (IsOptional(field)) - { - WriteLine(" case SyntaxKind.None:"); - } - WriteLine(" break;"); - WriteLine(" default:"); - WriteLine(" throw new ArgumentException(\"{0}\");", pname); - WriteLine(" }"); - if (IsOptional(field)) - { - WriteLine(" }"); - } - } - } - - //WriteLine("#endif"); - - if (nd.Name != "SkippedTokensTriviaSyntax" && - nd.Name != "DocumentationCommentTriviaSyntax" && - nd.Name != "IncompleteMemberSyntax" && - valueFields.Count + nodeFields.Count <= 3) - { - //int hash; - //var cached = SyntaxNodeCache.TryGetNode((int)SyntaxKind.IdentifierName, identifier, this.context, out hash); - //if (cached != null) return (IdentifierNameSyntax)cached; - - //var result = new IdentifierNameSyntax(SyntaxKind.IdentifierName, identifier, this.context); - //if (hash >= 0) - //{ - // SyntaxNodeCache.AddNode(result, hash); - //} - - //return result; - - WriteLine(); - - /* Remove - //int hash; - WriteLine(" int hash;"); - //SyntaxNode cached = SyntaxNodeCache.TryGetNode(SyntaxKind.IdentifierName, identifier, this.context, out hash); - if (withSyntaxFactoryContext) - { - Write(" var cached = CSharpSyntaxNodeCache.TryGetNode((int)"); - } - else - { - Write(" var cached = SyntaxNodeCache.TryGetNode((int)"); - } - - WriteCtorArgList(nd, withSyntaxFactoryContext, valueFields, nodeFields); - WriteLine(", out hash);"); - // if (cached != null) return (IdentifierNameSyntax)cached; - WriteLine(" if (cached != null) return ({0})cached;", nd.Name); - WriteLine(); */ - - //var result = new IdentifierNameSyntax(SyntaxKind.IdentifierName, identifier); - Write(" var result = new {0}(", nd.Name); - WriteCtorArgList(nd, withSyntaxFactoryContext, valueFields, nodeFields); - WriteLine(");"); - - /* Remove - //if (hash >= 0) - WriteLine(" if (hash >= 0)"); - //{ - WriteLine(" {"); - // SyntaxNodeCache.AddNode(result, hash); - WriteLine(" SyntaxNodeCache.AddNode(result, hash);"); - //} - WriteLine(" }"); */ - WriteLine(); - - //return result; - WriteLine(" return result;"); - } - else - { - WriteLine(); - Write(" return new {0}(", nd.Name); - WriteCtorArgList(nd, withSyntaxFactoryContext, valueFields, nodeFields); - WriteLine(");"); - } - - WriteLine(" }"); - } - - private void WriteGreenFactoryParameters(Node nd) - { - if (nd.Kinds.Count > 1) - { - Write("SyntaxKind kind, "); - } - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - if (i > 0) - Write(", "); - var type = field.Type; - if (type == "SyntaxNodeOrTokenList") - { - type = "SyntaxList"; - } - else if (IsSeparatedNodeList(field.Type) || - IsNodeList(field.Type)) - { - type = "Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax." + type; - } - Write("{0} {1}", type, CamelCase(field.Name)); - } - } - - private void WriteCtorArgList(Node nd, bool withSyntaxFactoryContext, List valueFields, List nodeFields) - { - if (nd.Kinds.Count == 1) - { - Write("SyntaxKind."); - Write(nd.Kinds[0].Name); - } - else - { - Write("kind"); - } - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - Write(", "); - if (field.Type == "SyntaxList" || IsAnyList(field.Type)) - { - Write("{0}.Node", CamelCase(field.Name)); - } - else - { - Write(CamelCase(field.Name)); - } - } - // values are at end - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - Write(", "); - Write(UnderscoreCamelCase(field.Name)); - } - if (withSyntaxFactoryContext) - { - Write(", this.context"); - } - } - - private void WriteRedTypes() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - for (int i = 0, n = nodes.Count; i < n; i++) - { - var node = nodes[i]; - WriteLine(); - WriteRedType(node); - } - } - - private List GetNodeOrNodeListFields(TreeType node) - => node is AbstractNode an - ? an.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList() - : node is Node nd - ? nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList() - : new List(); - - private void WriteRedType(TreeType node) - { - WriteComment(node.TypeComment, " "); - - if (node is AbstractNode) - { - AbstractNode nd = (AbstractNode)node; - WriteLine(" internal abstract partial class {0} : {1}", node.Name, node.Base); - WriteLine(" {"); - WriteLine(" internal {0}(GreenNode green, SyntaxNode parent, int position)", node.Name); - WriteLine(" : base(green, parent, position)"); - WriteLine(" {"); - WriteLine(" }"); - - var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = GetNodeOrNodeListFields(nd); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - if (IsNodeOrNodeList(field.Type)) - { - //red SyntaxLists can't contain tokens, so we switch to SyntaxTokenList - var fieldType = GetRedFieldType(field); - WriteLine(); - WriteComment(field.PropertyComment, " "); - WriteLine(" {0} abstract {1}{2} {3} {{ get; }}", "public", (IsNew(field) ? "new " : ""), fieldType, field.Name); - WriteLine($" public {node.Name} With{field.Name}({fieldType} {CamelCase(field.Name)}) => With{field.Name}Core({CamelCase(field.Name)});"); - WriteLine($" internal abstract {node.Name} With{field.Name}Core({fieldType} {CamelCase(field.Name)});"); - - if (IsAnyList(field.Type)) - { - var argType = GetElementType(field.Type); - WriteLine(); - WriteLine(" public {0} Add{1}(params {2}[] items) => Add{1}Core(items);", node.Name, field.Name, argType); - WriteLine(" internal abstract {0} Add{1}Core(params {2}[] items);", node.Name, field.Name, argType); - } - else - { - var referencedNode = TryGetNodeForNestedList(field); - if (referencedNode != null) - { - for (int rf = 0; rf < referencedNode.Fields.Count; rf++) - { - var referencedNodeField = referencedNode.Fields[rf]; - if (IsAnyList(referencedNodeField.Type)) - { - var argType = GetElementType(referencedNodeField.Type); - - WriteLine(); - WriteLine(" public {0} Add{1}{2}(params {3}[] items) => Add{1}{2}Core(items);", node.Name, StripPost(field.Name, "Opt"), referencedNodeField.Name, argType); - WriteLine(" internal abstract {0} Add{1}{2}Core(params {3}[] items);", node.Name, StripPost(field.Name, "Opt"), referencedNodeField.Name, argType); - } - } - } - } - } - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - WriteLine(); - WriteComment(field.PropertyComment, " "); - WriteLine(" {0} abstract {1}{2} {3} {{ get; }}", "public", (IsNew(field) ? "new " : ""), field.Type, field.Name); - } - - var baseType = GetTreeType(node.Base); - if (baseType != null) - { - var baseNodeFields = GetNodeOrNodeListFields(baseType); - if (baseNodeFields.Count > 0) - { - WriteLine(); - } - - foreach (var baseField in baseNodeFields) - { - WriteLine($" public new {node.Name} With{baseField.Name}({GetRedFieldType(baseField)} {CamelCase(baseField.Name)}) => ({node.Name})With{baseField.Name}Core({CamelCase(baseField.Name)});"); - } - - foreach (var baseField in baseNodeFields) - { - if (IsAnyList(baseField.Type)) - { - var argType = GetElementType(baseField.Type); - WriteLine(); - WriteLine(" public new {0} Add{1}(params {2}[] items) => ({0})Add{1}Core(items);", node.Name, baseField.Name, argType); - } - else - { - var referencedNode = TryGetNodeForNestedList(baseField); - if (referencedNode != null) - { - // look for list members... - for (int rf = 0; rf < referencedNode.Fields.Count; rf++) - { - var referencedNodeField = referencedNode.Fields[rf]; - if (IsAnyList(referencedNodeField.Type)) - { - var argType = GetElementType(referencedNodeField.Type); - - WriteLine(); - WriteLine(" public new {0} Add{1}{2}(params {3}[] items) => Add{1}{2}Core(items);", baseType.Name, StripPost(baseField.Name, "Opt"), referencedNodeField.Name, argType); - } - } - } - } - } - } - - WriteLine(" }"); - } - else if (node is Node) - { - Node nd = (Node)node; - WriteLine(" internal sealed partial class {0} : {1}", node.Name, node.Base); - WriteLine(" {"); - - var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); - var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); - - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - //if (field.Type != "SyntaxToken" - // && field.Type != "SyntaxList" - // ) - //{ - if (IsSeparatedNodeList(field.Type) || field.Type == "SyntaxNodeOrTokenList") - { - WriteLine(" private SyntaxNode {0};", UnderscoreCamelCase(field.Name)); - } - else - { - var type = GetFieldType(field, green: false); - WriteLine(" private {0} {1};", type, UnderscoreCamelCase(field.Name)); - } - //} - } - - // write constructor - WriteLine(); - WriteLine(" internal {0}(GreenNode green, SyntaxNode parent, int position)", node.Name); - WriteLine(" : base(green, parent, position)"); - WriteLine(" {"); - WriteLine(" }"); - WriteLine(); - - // property accessors - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - //if (field.Type == "SyntaxToken") - //{ - // WriteComment(field.PropertyComment, " "); - // WriteLine(" {0} {1}{2} {3} ", "public", OverrideOrNewModifier(field), field.Type, field.Name); - // WriteLine(" {"); - // if (IsOptional(field)) - // { - // WriteLine(" get"); - // WriteLine(" {"); - // WriteLine(" var slot = ((InternalSyntax.{0})Green).{1};", node.Name, field.Name); - // WriteLine(" if (slot != null)"); - // WriteLine(" return new SyntaxToken(slot, this, {0});", GetChildPosition(i)/*, GetChildIndex(i)*/); - // WriteLine(); - // WriteLine(" return default(SyntaxToken);"); - // WriteLine(" }"); - // } - // else - // { - // WriteLine(" get {{ return new SyntaxToken(((InternalSyntax.{0})Green).{1}, this, {2}); }}", node.Name, field.Name, GetChildPosition(i)/*, GetChildIndex(i)*/); - // } - // WriteLine(" }"); - //} - /* Remove - else if (field.Type == "SyntaxList") - { - WriteComment(field.PropertyComment, " "); - WriteLine(" {0} {1}SyntaxTokenList {2} ", "public", OverrideOrNewModifier(field), field.Name); - WriteLine(" {"); - WriteLine(" get"); - WriteLine(" {"); - WriteLine(" var slot = Green.GetSlot({0});", i); - WriteLine(" if (slot != null)"); - WriteLine(" return new SyntaxTokenList(this, slot, {0}, {1});", GetChildPosition(i), GetChildIndex(i)); - WriteLine(); - WriteLine(" return default(SyntaxTokenList);"); - WriteLine(" }"); - WriteLine(" }"); - } */ - //else - //{ - WriteComment(field.PropertyComment, " "); - WriteLine(" {0} {1}{2} {3} ", "public", OverrideOrNewModifier(field), field.Type, field.Name); - WriteLine(" {"); - WriteLine(" get"); - WriteLine(" {"); - - if (IsNodeList(field.Type)) - { - WriteLine(" return new {0}(GetRed(ref {1}, {2}));", field.Type, UnderscoreCamelCase(field.Name), i); - } - else if (IsSeparatedNodeList(field.Type)) - { - WriteLine(" var red = GetRed(ref {0}, {1});", UnderscoreCamelCase(field.Name), i); - WriteLine(" if (red != null)", i); - WriteLine(" return new {0}(red, {1});", field.Type, GetChildIndex(i)); - WriteLine(); - WriteLine(" return default({0});", field.Type); - } - else if (field.Type == "SyntaxNodeOrTokenList") - { - throw new InvalidOperationException("field cannot be a random SyntaxNodeOrTokenList"); - } - else - { - if (i == 0) - { - WriteLine(" return GetRedAtZero(ref {0});", UnderscoreCamelCase(field.Name)); - } - else - { - WriteLine(" return GetRed(ref {0}, {1});", UnderscoreCamelCase(field.Name), i); - } - } - WriteLine(" }"); - WriteLine(" }"); - //} - WriteLine(); - } - - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - WriteComment(field.PropertyComment, " "); - WriteLine(" {0} {1}{2} {3} {{ get {{ return ((InternalSyntax.{4})Green).{3}; }} }}", - "public", OverrideOrNewModifier(field), field.Type, field.Name, node.Name - ); - WriteLine(); - } - - //GetNodeSlot forces creation of a red node. - WriteLine(" internal override SyntaxNode GetNodeSlot(int index)"); - WriteLine(" {"); - WriteLine(" switch (index)"); - WriteLine(" {"); - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - - //if (field.Type != "SyntaxToken" && field.Type != "SyntaxList") - if (true) - { - if (i == 0) - { - WriteLine(" case {0}: return GetRedAtZero(ref {1});", i, UnderscoreCamelCase(field.Name)); - } - else - { - WriteLine(" case {0}: return GetRed(ref {1}, {0});", i, UnderscoreCamelCase(field.Name)); - } - } - } - WriteLine(" default: return null;"); - WriteLine(" }"); - WriteLine(" }"); - - //GetCachedSlot returns a red node if we have it. - WriteLine(" internal override SyntaxNode GetCachedSlot(int index)"); - WriteLine(" {"); - WriteLine(" switch (index)"); - WriteLine(" {"); - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - //if (field.Type != "SyntaxToken" && field.Type != "SyntaxList") - if (true) - { - WriteLine(" case {0}: return {1};", i, UnderscoreCamelCase(field.Name)); - } - } - WriteLine(" default: return null;"); - WriteLine(" }"); - WriteLine(" }"); - - - WriteRedAcceptMethods(nd); - WriteRedUpdateMethod(nd); - WriteRedWithMethods(nd); - WriteRedListHelperMethods(nd); - - WriteLine(" }"); - } - } - - private static string GetRedFieldType(Field field) - { - //return field.Type == "SyntaxList" ? "SyntaxTokenList" : field.Type; - return field.Type; - } - - private string GetChildPosition(int i) - { - if (i == 0) - { - return "Position"; - } - else - { - return "GetChildPosition(" + i + ")"; - } - } - - private string GetChildIndex(int i) - { - if (i == 0) - { - return "0"; - } - else - { - return "GetChildIndex(" + i + ")"; - } - } - - private void WriteRedAcceptMethods(Node node) - { - //WriteRedAcceptMethod(node, true, true); - WriteRedAcceptMethod(node, false, true); - WriteRedAcceptMethod(node, false, false); - } - - private void WriteRedAcceptMethod(Node node, bool genericArgument, bool genericResult) - { - string genericArgs = - (genericResult && genericArgument) ? "" : - genericResult ? "" : ""; - WriteLine(); - WriteLine(" public override " + (genericResult ? "TResult" : "void") + " Accept" + genericArgs + "(SyntaxVisitor" + genericArgs + " visitor{0})", genericArgument ? ", TArgument argument" : ""); - WriteLine(" {"); - WriteLine(" " + (genericResult ? "return " : "") + "visitor.Visit{0}(this{1});", StripPost(node.Name, "Syntax"), genericArgument ? ", argument" : ""); - WriteLine(" }"); - } - - private void WriteRedVisitors() - { - //WriteRedVisitor(true, true); - WriteRedVisitor(false, true); - WriteRedVisitor(false, false); - } - - private void WriteRedVisitor(bool genericArgument, bool genericResult) - { - string genericArgs = - (genericResult && genericArgument) ? "" : - genericResult ? "" : ""; - var nodes = Tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - - WriteLine(); - WriteLine(" internal partial class SyntaxVisitor" + genericArgs); - WriteLine(" {"); - int nWritten = 0; - for (int i = 0, n = nodes.Count; i < n; i++) - { - if (nodes[i] is Node node) - { - if (nWritten > 0) - WriteLine(); - nWritten++; - WriteComment(string.Format("Called when the visitor visits a {0} node.", node.Name), " "); - WriteLine(" public virtual " + (genericResult ? "TResult" : "void") + " Visit{0}({1} node{2})", StripPost(node.Name, "Syntax"), node.Name, genericArgument ? ", TArgument argument" : ""); - WriteLine(" {"); - WriteLine(" " + (genericResult ? "return " : "") + "DefaultVisit(node{0});", genericArgument ? ", argument" : ""); - WriteLine(" }"); - } - } - WriteLine(" }"); - } - - private void WriteRedUpdateMethod(Node node) - { - WriteLine(); - Write(" {0} {1} Update(", "public", node.Name); - - // parameters - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - //var type = field.Type == "SyntaxList" ? "SyntaxTokenList" : field.Type; - var type = field.Type; - Write("{0} {1}", type, CamelCase(field.Name)); - } - WriteLine(")"); - WriteLine(" {"); - - Write(" if ("); - int nCompared = 0; - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (IsDerivedOrListOfDerived("SyntaxNode", field.Type) || IsDerivedOrListOfDerived("SyntaxToken", field.Type) || field.Type == "SyntaxNodeOrTokenList") - { - if (nCompared > 0) - Write(" || "); - Write("{0} != {1}", CamelCase(field.Name), field.Name); - nCompared++; - } - } - if (nCompared > 0) - { - WriteLine(")"); - WriteLine(" {"); - Write(" var newNode = SyntaxFactory.{0}(", StripPost(node.Name, "Syntax")); - if (node.Kinds.Count > 1) - { - Write("Kind(), "); - } - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - Write(CamelCase(field.Name)); - } - WriteLine(");"); - WriteLine(" var diagnostics = GetDiagnostics();"); - WriteLine(" if (diagnostics != null && diagnostics.Length > 0)"); - WriteLine(" newNode = newNode.WithDiagnostics(diagnostics);"); - WriteLine(" var annotations = GetAnnotations();"); - WriteLine(" if (annotations != null && annotations.Length > 0)"); - WriteLine(" return newNode.WithAnnotations(annotations);"); - WriteLine(" return newNode;"); - WriteLine(" }"); - } - - WriteLine(); - WriteLine(" return this;"); - WriteLine(" }"); - } - - private void WriteRedWithMethod(Node node) - { - WriteLine(); - Write(" public {0} With(", node.Name); - - // parameters - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - var type = GetRedPropertyType(field); - Write("Optional<{0}> {1} = default(Optional<{0}>)", type, UnderscoreCamelCase(field.Name)); - if (f < node.Fields.Count - 1) - Write(", "); - } - WriteLine(")"); - WriteLine(" {"); - - Write(" return Update("); - - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - var parameterName = UnderscoreCamelCase(field.Name); - WriteLine(); - Write(" {0}.HasValue ? {0}.Value : {1}", parameterName, field.Name); - if (f < node.Fields.Count - 1) - Write(","); - } - - WriteLine(); - WriteLine(" );"); - - WriteLine(" }"); - } - - private void WriteRedWithMethods(Node node) - { - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - var type = GetRedPropertyType(field); - - WriteLine(); - - var isNew = false; - if (IsOverride(field)) - { - var baseType = GetHighestBaseTypeWithField(node, field.Name); - if (baseType != null) - { - WriteLine($" internal override {baseType.Name} With{field.Name}Core({type} {CamelCase(field.Name)}) => With{field.Name}({CamelCase(field.Name)});"); - isNew = true; - } - } - - WriteLine($" public{(isNew ? " new " : " ")}{node.Name} With{StripPost(field.Name, "Opt")}({type} {CamelCase(field.Name)})"); - WriteLine(" {"); - - // call update inside each setter - Write(" return Update("); - for (int f2 = 0; f2 < node.Fields.Count; f2++) - { - var field2 = node.Fields[f2]; - if (f2 > 0) - Write(", "); - - if (field2 == field) - { - Write("{0}", CamelCase(field2.Name)); - } - else - { - Write("{0}", field2.Name); - } - } - WriteLine(");"); - - WriteLine(" }"); - } - } - - private TreeType GetHighestBaseTypeWithField(TreeType node, string name) - { - TreeType bestType = null; - for (var current = node; current != null; current = TryGetBaseType(current)) - { - var fields = GetNodeOrNodeListFields(current); - var field = fields.FirstOrDefault(f => f.Name == name); - if (field != null) - { - bestType = current; - } - } - - return bestType; - } - - private TreeType TryGetBaseType(TreeType node) - => node is AbstractNode an - ? GetTreeType(an.Base) - : node is Node n - ? GetTreeType(n.Base) - : null; - - private void WriteRedListHelperMethods(Node node) - { - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - - if (IsAnyList(field.Type)) - { - // write list helper methods for list properties - WriteRedListHelperMethods(node, field); - } - else - { - var referencedNode = TryGetNodeForNestedList(field); - if (referencedNode != null) - { - // look for list members... - for (int rf = 0; rf < referencedNode.Fields.Count; rf++) - { - var referencedNodeField = referencedNode.Fields[rf]; - if (IsAnyList(referencedNodeField.Type)) - { - WriteRedNestedListHelperMethods(node, field, referencedNode, referencedNodeField); - } - } - } - } - } - } - - private Node TryGetNodeForNestedList(Field field) - { - Node referencedNode = GetNode(field.Type); - if (referencedNode != null && (!IsOptional(field) || RequiredFactoryArgumentCount(referencedNode) == 0)) - { - return referencedNode; - } - - return null; - } - - private void WriteRedListHelperMethods(Node node, Field field) - { - var argType = GetElementType(field.Type); - - var isNew = false; - if (IsOverride(field)) - { - var baseType = GetHighestBaseTypeWithField(node, field.Name); - if (baseType != null) - { - WriteLine(" internal override {0} Add{1}Core(params {2}[] items) => Add{1}(items);", baseType.Name, field.Name, argType); - isNew = true; - } - } - - WriteLine(); - WriteLine($" public{(isNew ? " new " : " ")}{node.Name} Add{field.Name}(params {argType}[] items)"); - WriteLine(" {"); - WriteLine(" return With{0}(this.{1}.AddRange(items));", StripPost(field.Name, "Opt"), field.Name); - WriteLine(" }"); - } - - private void WriteRedNestedListHelperMethods(Node node, Field field, Node referencedNode, Field referencedNodeField) - { - var argType = GetElementType(referencedNodeField.Type); - - var isNew = false; - if (IsOverride(field)) - { - var baseType = GetHighestBaseTypeWithField(node, field.Name); - if (baseType != null) - { - WriteLine(" internal override {0} Add{1}{2}Core(params {3}[] items) => Add{1}{2}(items);", baseType.Name, StripPost(field.Name, "Opt"), referencedNodeField.Name, argType); - isNew = true; - } - } - - // AddBaseListTypes - WriteLine(); - WriteLine($" public{(isNew ? " new " : " ")}{node.Name} Add{StripPost(field.Name, "Opt")}{referencedNodeField.Name}(params {argType}[] items)"); - WriteLine(" {"); - - if (IsOptional(field)) - { - var factoryName = StripPost(referencedNode.Name, "Syntax"); - var varName = StripPost(UnderscoreCamelCase(field.Name), "Opt"); - WriteLine(" var {0} = this.{1} ?? SyntaxFactory.{2}();", varName, field.Name, factoryName); - WriteLine(" return this.With{0}({1}.With{2}({1}.{3}.AddRange(items)));", StripPost(field.Name, "Opt"), varName, StripPost(referencedNodeField.Name, "Opt"), referencedNodeField.Name); - } - else - { - WriteLine(" return this.With{0}(this.{1}.With{2}(this.{1}.{3}.AddRange(items)));", StripPost(field.Name, "Opt"), field.Name, StripPost(referencedNodeField.Name, "Opt"), referencedNodeField.Name); - } - - WriteLine(" }"); - } - - private void WriteRedRewriter() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode)).ToList(); - - WriteLine(); - WriteLine(" internal partial class SyntaxRewriter : SyntaxVisitor"); - WriteLine(" {"); - int nWritten = 0; - for (int i = 0, n = nodes.Count; i < n; i++) - { - if (nodes[i] is Node node) - { - var nodeFields = node.Fields.Where(nd => IsNodeOrNodeList(nd.Type)).ToList(); - - if (nWritten > 0) - WriteLine(); - nWritten++; - WriteLine(" public override SyntaxNode Visit{0}({1} node)", StripPost(node.Name, "Syntax"), node.Name); - WriteLine(" {"); - for (int f = 0; f < nodeFields.Count; f++) - { - var field = nodeFields[f]; - if (IsAnyList(field.Type)) - { - WriteLine(" var {0} = VisitList(node.{1});", CamelCase(field.Name), field.Name); - } - else if (field.Type == "SyntaxToken") - { - WriteLine(" var {0} = ({1})VisitToken(node.{2});", CamelCase(field.Name), field.Type, field.Name); - } - else - { - WriteLine(" var {0} = ({1})Visit(node.{2});", CamelCase(field.Name), field.Type, field.Name); - } - } - if (nodeFields.Count > 0) - { - Write(" return node.Update("); - for (int f = 0; f < node.Fields.Count; f++) - { - var field = node.Fields[f]; - if (f > 0) - Write(", "); - if (IsNodeOrNodeList(field.Type)) - { - Write(CamelCase(field.Name)); - } - else - { - Write("node.{0}", field.Name); - } - } - WriteLine(");"); - } - else - { - WriteLine(" return node;"); - } - WriteLine(" }"); - } - } - WriteLine(" }"); - } - - private void WriteRedFactories() - { - var nodes = Tree.Types.Where(n => !(n is PredefinedNode) && !(n is AbstractNode)).OfType().ToList(); - WriteLine(); - WriteLine(" internal static partial class SyntaxFactory"); - WriteLine(" {"); - - for (int i = 0, n = nodes.Count; i < n; i++) - { - var node = nodes[i]; - WriteRedFactory(node); - WriteRedFactoryWithNoAutoCreatableTokens(node); - WriteRedMinimalFactory(node); - WriteRedMinimalFactory(node, withStringNames: true); - WriteKindConverters(node); - } - - WriteLine(" }"); - } - - protected bool CanBeAutoCreated(Node node, Field field) - { - return IsAutoCreatableToken(node, field) || IsAutoCreatableNode(node, field); - } - - private bool IsAutoCreatableToken(Node node, Field field) - { - return field.Type == "SyntaxToken" - && field.Kinds != null - && ((field.Kinds.Count == 1 && field.Kinds[0].Name != "IdentifierToken" && !field.Kinds[0].Name.EndsWith("LiteralToken", StringComparison.Ordinal)) || (field.Kinds.Count > 1 && field.Kinds.Count == node.Kinds.Count)); - } - - private bool IsAutoCreatableNode(Node node, Field field) - { - var referencedNode = GetNode(field.Type); - return (referencedNode != null && RequiredFactoryArgumentCount(referencedNode) == 0); - } - - private bool IsRequiredFactoryField(Node node, Field field) - { - return (!IsOptional(field) && !IsAnyList(field.Type) && !CanBeAutoCreated(node, field)) || IsValueField(field); - } - - private bool IsValueField(Field field) - { - return !IsNodeOrNodeList(field.Type); - } - - private int RequiredFactoryArgumentCount(Node nd, bool includeKind = true) - { - int count = 0; - - // kind must be specified in factory - if (nd.Kinds.Count > 1 && includeKind) - { - count++; - } - - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - if (IsRequiredFactoryField(nd, field)) - { - count++; - } - } - - return count; - } - - private int OptionalFactoryArgumentCount(Node nd) - { - int count = 0; - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - if (IsOptional(field) || CanBeAutoCreated(nd, field) || IsAnyList(field.Type)) - { - count++; - } - } - - return count; - } - - // full factory signature with nothing optional - private void WriteRedFactory(Node nd) - { - WriteLine(); - - var valueFields = nd.Fields.Where(n => IsValueField(n)).ToList(); - var nodeFields = nd.Fields.Where(n => !IsValueField(n)).ToList(); - - WriteComment(string.Format("Creates a new {0} instance.", nd.Name), " "); - - Write(" {0} static {1} {2}(", "public", nd.Name, StripPost(nd.Name, "Syntax")); - WriteRedFactoryParameters(nd); - - WriteLine(")"); - WriteLine(" {"); - - // validate kinds - if (nd.Kinds.Count > 1) - { - WriteLine(" switch (kind)"); - WriteLine(" {"); - foreach (var kind in nd.Kinds) - { - WriteLine(" case SyntaxKind.{0}:", kind.Name); - } - WriteLine(" break;"); - WriteLine(" default:"); - WriteLine(" throw new ArgumentException(\"kind\");"); - WriteLine(" }"); - } - - // validate parameters - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - var pname = CamelCase(field.Name); - - if (field.Type == "SyntaxToken") - { - if (field.Kinds != null && field.Kinds.Count > 0) - { - if (IsOptional(field)) - { - WriteLine(" if ({0} != null)", CamelCase(field.Name)); - WriteLine(" {"); - } - WriteLine(" switch ({0}.Kind)", pname); - WriteLine(" {"); - foreach (var kind in field.Kinds) - { - WriteLine(" case SyntaxKind.{0}:", kind.Name); - } - if (IsOptional(field)) - { - WriteLine(" case SyntaxKind.None:"); - } - WriteLine(" break;"); - WriteLine(" default:"); - WriteLine(" throw new ArgumentException(\"{0}\");", pname); - WriteLine(" }"); - if (IsOptional(field)) - { - WriteLine(" }"); - } - } - } - else if (!IsAnyList(field.Type) && !IsOptional(field)) - { - WriteLine(" if ({0} == null)", CamelCase(field.Name)); - WriteLine(" throw new ArgumentNullException(nameof({0}));", CamelCase(field.Name)); - } - } - - Write(" return ({0})InternalSyntax.SyntaxFactory.{1}(", nd.Name, StripPost(nd.Name, "Syntax")); - if (nd.Kinds.Count > 1) - { - Write("kind, "); - } - for (int i = 0, n = nodeFields.Count; i < n; i++) - { - var field = nodeFields[i]; - if (i > 0) - Write(", "); - if (field.Type == "SyntaxToken") - { - if (IsOptional(field)) - { - Write("(Syntax.InternalSyntax.SyntaxToken){0}?.Green", CamelCase(field.Name)); - } - else - { - Write("(Syntax.InternalSyntax.SyntaxToken){0}.Green", CamelCase(field.Name)); - } - } - else if (field.Type == "SyntaxList") - { - Write("{0}.Node.ToGreenList()", CamelCase(field.Name)); - } - else if (IsNodeList(field.Type)) - { - Write("{0}.Node.ToGreenList()", CamelCase(field.Name), GetElementType(field.Type)); - } - else if (IsSeparatedNodeList(field.Type)) - { - Write("{0}.Node.ToGreenSeparatedList()", CamelCase(field.Name), GetElementType(field.Type)); - } - else if (field.Type == "SyntaxNodeOrTokenList") - { - Write("{0}.Node.ToGreenList()", CamelCase(field.Name)); - } - else - { - Write("{0} == null ? null : (InternalSyntax.{1}){0}.Green", CamelCase(field.Name), field.Type); - } - } - - // values are at end - for (int i = 0, n = valueFields.Count; i < n; i++) - { - var field = valueFields[i]; - Write(", "); - Write(CamelCase(field.Name)); - } - - WriteLine(").CreateRed();"); - WriteLine(" }"); - - //WriteLine(); - } - - private void WriteRedFactoryParameters(Node nd) - { - if (nd.Kinds.Count > 1) - { - Write("SyntaxKind kind, "); - } - - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - if (i > 0) - Write(", "); - var type = GetRedPropertyType(field); - - Write("{0} {1}", type, CamelCase(field.Name)); - } - } - - private string GetRedPropertyType(Field field) - { - //if (field.Type == "SyntaxList") - // return "SyntaxTokenList"; - return field.Type; - } - - private string GetDefaultValue(Node nd, Field field) - { - if (IsRequiredFactoryField(nd, field)) - { - Console.WriteLine(nd.Name); - Console.WriteLine(field.Name); - } - System.Diagnostics.Debug.Assert(!IsRequiredFactoryField(nd, field)); - - if (IsOptional(field) || IsAnyList(field.Type)) - { - return string.Format("default({0})", GetRedPropertyType(field)); - } - else if (field.Type == "SyntaxToken") - { - // auto construct token? - if (field.Kinds.Count == 1) - { - return string.Format("SyntaxFactory.Token(SyntaxKind.{0})", field.Kinds[0].Name); - } - else - { - return string.Format("SyntaxFactory.Token(Get{0}{1}Kind(kind))", StripPost(nd.Name, "Syntax"), StripPost(field.Name, "Opt")); - } - } - else - { - var referencedNode = GetNode(field.Type); - return string.Format("SyntaxFactory.{0}()", StripPost(referencedNode.Name, "Syntax")); - } - } - - // Writes GetKind() methods for converting between node kind and member token kinds... - private void WriteKindConverters(Node nd) - { - for (int f = 0; f < nd.Fields.Count; f++) - { - var field = nd.Fields[f]; - - if (field.Type == "SyntaxToken" && CanBeAutoCreated(nd, field) && field.Kinds.Count > 1) - { - WriteLine(); - WriteLine(" private static SyntaxKind Get{0}{1}Kind(SyntaxKind kind)", StripPost(nd.Name, "Syntax"), StripPost(field.Name, "Opt")); - WriteLine(" {"); - - WriteLine(" switch (kind)"); - WriteLine(" {"); - - for (int k = 0; k < field.Kinds.Count; k++) - { - var nKind = nd.Kinds[k]; - var pKind = field.Kinds[k]; - WriteLine(" case SyntaxKind.{0}:", nKind.Name); - WriteLine(" return SyntaxKind.{0};", pKind.Name); - } - - WriteLine(" default:"); - WriteLine(" throw new ArgumentOutOfRangeException();"); - WriteLine(" }"); - WriteLine(" }"); - } - } - } - - private IEnumerable DetermineRedFactoryWithNoAutoCreatableTokenFields(Node nd) - { - return nd.Fields.Where(f => !IsAutoCreatableToken(nd, f)); - } - - // creates a factory without auto-creatable token arguments - private void WriteRedFactoryWithNoAutoCreatableTokens(Node nd) - { - var nAutoCreatableTokens = nd.Fields.Count(f => IsAutoCreatableToken(nd, f)); - if (nAutoCreatableTokens == 0) - return; // already handled by general factory - - var factoryWithNoAutoCreatableTokenFields = new HashSet(DetermineRedFactoryWithNoAutoCreatableTokenFields(nd)); - var minimalFactoryFields = DetermineMinimalFactoryFields(nd); - if (minimalFactoryFields != null && factoryWithNoAutoCreatableTokenFields.SetEquals(minimalFactoryFields)) - { - return; // will be handled in minimal factory case - } - - WriteLine(); - - WriteComment(string.Format("Creates a new {0} instance.", nd.Name), " "); - Write(" {0} static {1} {2}(", "public", nd.Name, StripPost(nd.Name, "Syntax")); - - bool hasPreviousParameter = false; - if (nd.Kinds.Count > 1) - { - Write("SyntaxKind kind"); - hasPreviousParameter = true; - } - - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - - if (factoryWithNoAutoCreatableTokenFields.Contains(field)) - { - if (hasPreviousParameter) - Write(", "); - - Write("{0} {1}", GetRedPropertyType(field), CamelCase(field.Name)); - - hasPreviousParameter = true; - } - } - WriteLine(")"); - - WriteLine(" {"); - - Write(" return SyntaxFactory.{0}(", StripPost(nd.Name, "Syntax")); - - bool hasPreviousArgument = false; - if (nd.Kinds.Count > 1) - { - Write("kind"); - hasPreviousArgument = true; - } - - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - - if (hasPreviousArgument) - Write(", "); - - if (factoryWithNoAutoCreatableTokenFields.Contains(field)) - { - // pass supplied parameter on to general factory - Write("{0}", CamelCase(field.Name)); - } - else - { - // pass an auto-created token to the general factory - Write("{0}", GetDefaultValue(nd, field)); - } - - hasPreviousArgument = true; - } - - WriteLine(");"); - - WriteLine(" }"); - } - - private Field DetermineMinimalOptionalField(Node nd) - { - // first if there is a single list, then choose the list because it would not have been optional - int listCount = nd.Fields.Count(f => IsAnyNodeList(f.Type)); - if (listCount == 1) - { - return nd.Fields.First(f => IsAnyNodeList(f.Type)); - } - else - { - // otherwise, if there is a single optional node, use that.. - int nodeCount = nd.Fields.Count(f => IsNode(f.Type) && f.Type != "SyntaxToken"); - if (nodeCount == 1) - { - return nd.Fields.First(f => IsNode(f.Type) && f.Type != "SyntaxToken"); - } - else - { - return null; - } - } - } - - private IEnumerable DetermineMinimalFactoryFields(Node nd) - { - // special case to allow a single optional argument if there would have been no arguments - // and we can determine a best single argument. - Field allowOptionalField = null; - - var optionalCount = OptionalFactoryArgumentCount(nd); - if (optionalCount == 0) - { - return null; // no fields... - } - - var requiredCount = RequiredFactoryArgumentCount(nd, includeKind: false); - if (requiredCount == 0 && optionalCount > 1) - { - allowOptionalField = DetermineMinimalOptionalField(nd); - } - - return nd.Fields.Where(f => IsRequiredFactoryField(nd, f) || allowOptionalField == f); - } - - // creates a factory with only the required arguments (everything else is defaulted) - private void WriteRedMinimalFactory(Node nd, bool withStringNames = false) - { - var optionalCount = OptionalFactoryArgumentCount(nd); - if (optionalCount == 0) - return; // already handled w/ general factory method - - var minimalFactoryfields = new HashSet(DetermineMinimalFactoryFields(nd)); - - if (withStringNames && minimalFactoryfields.Count(f => IsRequiredFactoryField(nd, f) && CanAutoConvertFromString(f)) == 0) - return; // no string-name overload necessary - - WriteLine(); - - WriteComment(string.Format("Creates a new {0} instance.", nd.Name), " "); - Write(" {0} static {1} {2}(", "public", nd.Name, StripPost(nd.Name, "Syntax")); - - bool hasPreviousParameter = false; - if (nd.Kinds.Count > 1) - { - Write("SyntaxKind kind"); - hasPreviousParameter = true; - } - - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - - if (minimalFactoryfields.Contains(field)) - { - var type = GetRedPropertyType(field); - - if (IsRequiredFactoryField(nd, field)) - { - if (hasPreviousParameter) - Write(", "); - - if (withStringNames && CanAutoConvertFromString(field)) - { - type = "string"; - } - - Write("{0} {1}", type, CamelCase(field.Name)); - - hasPreviousParameter = true; - } - else - { - if (hasPreviousParameter) - Write(", "); - - Write("{0} {1} = default({0})", type, CamelCase(field.Name)); - - hasPreviousParameter = true; - } - } - } - WriteLine(")"); - - WriteLine(" {"); - - Write(" return SyntaxFactory.{0}(", StripPost(nd.Name, "Syntax")); - - bool hasPreviousArgument = false; - if (nd.Kinds.Count > 1) - { - Write("kind"); - hasPreviousArgument = true; - } - - for (int i = 0, n = nd.Fields.Count; i < n; i++) - { - var field = nd.Fields[i]; - - if (hasPreviousArgument) - Write(", "); - - if (minimalFactoryfields.Contains(field)) - { - if (IsRequiredFactoryField(nd, field)) - { - if (withStringNames && CanAutoConvertFromString(field)) - { - Write("{0}({1})", GetStringConverterMethod(field), CamelCase(field.Name)); - } - else - { - Write("{0}", CamelCase(field.Name)); - } - } - else - { - if (IsOptional(field) || IsAnyList(field.Type)) - { - Write("{0}", CamelCase(field.Name)); - } - else - { - Write("{0} ?? {1}", CamelCase(field.Name), GetDefaultValue(nd, field)); - } - } - } - else - { - var defaultValue = GetDefaultValue(nd, field); - Write(defaultValue); - } - - hasPreviousArgument = true; - } - - WriteLine(");"); - - WriteLine(" }"); - } - - private bool CanAutoConvertFromString(Field field) - { - return IsIdentifierToken(field) || IsIdentifierNameSyntax(field); - } - - private bool IsIdentifierToken(Field field) - { - return field.Type == "SyntaxToken" && field.Kinds != null && field.Kinds.Count == 1 && field.Kinds[0].Name == "IdentifierToken"; - } - - private bool IsIdentifierNameSyntax(Field field) - { - return field.Type == "IdentifierNameSyntax"; - } - - private string GetStringConverterMethod(Field field) - { - if (IsIdentifierToken(field)) - { - return "SyntaxFactory.Identifier"; - } - else if (IsIdentifierNameSyntax(field)) - { - return "SyntaxFactory.IdentifierName"; - } - else - { - throw new NotSupportedException(); - } - } - - /// - /// Anything inside a <Comment> tag gets written out (escaping untouched) as the - /// XML doc comment. Line breaks will be preserved. - /// - private void WriteComment(string comment, string indent) - { - if (comment != null) - { - var lines = comment.Split(new string[] { "\r", "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries); - foreach (var line in lines.Where(l => !string.IsNullOrWhiteSpace(l))) - { - WriteLine("{0}/// {1}", indent, line.TrimStart()); - } - } - } - - /// - /// Anything inside a <Comment> tag gets written out (escaping untouched) as the - /// XML doc comment. Line breaks will be preserved. - /// - private void WriteComment(Comment comment, string indent) - { - if (comment != null) - { - foreach (XmlElement element in comment.Body) - { - string[] lines = element.OuterXml.Split(new string[] { "\r", "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries); - foreach (string line in lines.Where(l => !string.IsNullOrWhiteSpace(l))) - { - WriteLine("{0}/// {1}", indent, line.TrimStart()); - } - } - } - } - } -} From 8b52a9c49906a906d4e552f253804d74871bdcbf Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 28 May 2020 18:43:08 -0700 Subject: [PATCH 07/15] Feedback --- eng/Version.Details.xml | 4 ---- eng/Versions.props | 6 ------ .../Microsoft.VisualStudio.LanguageServices.Razor.csproj | 2 +- .../Microsoft.VisualStudio.Mac.RazorAddin.csproj | 4 ++-- .../Microsoft.VisualStudio.RazorExtension.csproj | 2 +- 5 files changed, 4 insertions(+), 14 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index ebbdc194858..23b4ae70660 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -37,10 +37,6 @@ https://github.com/dotnet/runtime c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - - https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 - https://github.com/dotnet/runtime c44dc40b763b7c74012622a0a6120cd8ffa35ce4 diff --git a/eng/Versions.props b/eng/Versions.props index 0ed7213901c..34807889539 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -64,7 +64,6 @@ 5.0.0-preview.6.20271.10 5.0.0-preview.6.20271.10 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 3.7.0-3.20271.4 @@ -93,10 +92,8 @@ 15.8.166 1.2.6 15.8.166 - 15.8.166 14.3.25407-alpha $(MicrosoftNETCoreAppRuntimewinx64PackageVersion) - 1.0.0-alpha-5 2.6.3 16.4.280 16.0.467 @@ -109,7 +106,6 @@ 16.4.29519.181 0.3.1074 7.10.6071 - 16.0.201-pre-g7d366164d0 3.0.0-beta1-63607-01 16.0.201-pre-g7d366164d0 16.3.14 @@ -134,11 +130,9 @@ 4.3.2 12.0.2 12.0.2 - 3.4.0 3.4.0 2.3.103 3.7.0-2.20257.6 - 16.0.4-master 3.0.0 3.7.0-2.20257.6 3.7.0-2.20257.6 diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj index 18f81aeb0de..ead285a2382 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/Microsoft.VisualStudio.LanguageServices.Razor.csproj @@ -27,7 +27,7 @@ - + diff --git a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj index f23cc1d0516..155d412a2fa 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj @@ -45,8 +45,8 @@ - - + + diff --git a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj index a27d54ab828..b9964061f6c 100644 --- a/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj @@ -165,7 +165,7 @@ - + From dd4b65b9f0bbb358e677d62a63a9c84af1c01bf5 Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 02:41:07 -0700 Subject: [PATCH 08/15] Rebase updates --- eng/Version.Details.xml | 44 ++++++++++++++++++++++------------------- eng/Versions.props | 21 ++++++++++---------- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 23b4ae70660..c6da4250f85 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -5,6 +5,10 @@ https://github.com/dotnet/aspnetcore 66dd4919dafcb21c57a923a661cdbb0ff351713d + + https://github.com/dotnet/aspnetcore + 66dd4919dafcb21c57a923a661cdbb0ff351713d + https://github.com/dotnet/aspnetcore 66dd4919dafcb21c57a923a661cdbb0ff351713d @@ -21,56 +25,56 @@ https://github.com/dotnet/aspnetcore 66dd4919dafcb21c57a923a661cdbb0ff351713d - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 https://github.com/dotnet/aspnetcore 66dd4919dafcb21c57a923a661cdbb0ff351713d - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime - c44dc40b763b7c74012622a0a6120cd8ffa35ce4 + 35aa7989884dda8347899dcea162daf0c9318051 https://github.com/dotnet/arcade diff --git a/eng/Versions.props b/eng/Versions.props index 34807889539..d8e71edab7a 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -49,21 +49,22 @@ --> 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20276.6 5.0.0-preview.6.20276.6 5.0.0-preview.6.20276.6 5.0.0-preview.6.20276.6 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 - 5.0.0-preview.6.20271.10 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20277.12 3.7.0-3.20271.4 From 8047839c68d17e3e58f26be5c4c3fc984478186d Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 02:41:26 -0700 Subject: [PATCH 09/15] Use internal transport --- .../Microsoft.VisualStudio.Mac.RazorAddin.csproj | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj index 155d412a2fa..24f1d0ef551 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj @@ -45,6 +45,7 @@ + @@ -62,11 +63,7 @@ - - - - - + From 11ac17a07a969658c269256cd934c3338c039bd0 Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 02:42:49 -0700 Subject: [PATCH 10/15] Update dependencies via darc --- eng/Version.Details.xml | 48 ++++++++++++++++++++--------------------- eng/Versions.props | 14 ++++++------ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index c6da4250f85..8a1c6398eca 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,63 +1,63 @@ - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/aspnetcore - 66dd4919dafcb21c57a923a661cdbb0ff351713d + a799bf68e45c63e62060a7916ebb6d4f87a9aa1b - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 @@ -65,14 +65,14 @@ Win-x64 is used here because we have picked an arbitrary runtime identifier to flow the version of the latest NETCore.App runtime. All Runtime.$rid packages should have the same version. --> - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 - + https://github.com/dotnet/runtime 35aa7989884dda8347899dcea162daf0c9318051 @@ -80,7 +80,7 @@ https://github.com/dotnet/arcade 898e51ed5fdcc4871087ac5754ca9056e58e575d - + https://github.com/dotnet/roslyn f598328fb99345233f52a67f5a65cd39affa9fd4 diff --git a/eng/Versions.props b/eng/Versions.props index d8e71edab7a..aadd27ba42c 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -48,12 +48,12 @@ --> - 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20276.6 - 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20278.12 + 5.0.0-preview.6.20278.12 + 5.0.0-preview.6.20278.12 + 5.0.0-preview.6.20278.12 + 5.0.0-preview.6.20278.12 + 5.0.0-preview.6.20278.12 5.0.0-preview.6.20277.12 5.0.0-preview.6.20277.12 5.0.0-preview.6.20277.12 @@ -61,7 +61,7 @@ 5.0.0-preview.6.20277.12 5.0.0-preview.6.20277.12 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20276.6 + 5.0.0-preview.6.20278.12 5.0.0-preview.6.20277.12 5.0.0-preview.6.20277.12 5.0.0-preview.6.20277.12 From bb9181a374df96bd787d27c1c34a747decb38f74 Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 02:48:47 -0700 Subject: [PATCH 11/15] Typo --- .../Microsoft.VisualStudio.Mac.RazorAddin.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj index 24f1d0ef551..fec93139ed3 100644 --- a/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj +++ b/src/Razor/src/Microsoft.VisualStudio.Mac.RazorAddin/Microsoft.VisualStudio.Mac.RazorAddin.csproj @@ -63,7 +63,7 @@ - + From 3bb71afb2946561c0b06f2b0ffb5d9baf735f9de Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 11:02:20 -0700 Subject: [PATCH 12/15] Try using tooling CA.CSharp version --- eng/Versions.props | 1 - .../Microsoft.AspNetCore.Razor.Test.Common.csproj | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/Versions.props b/eng/Versions.props index aadd27ba42c..8254ee8fe94 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -131,7 +131,6 @@ 4.3.2 12.0.2 12.0.2 - 3.4.0 2.3.103 3.7.0-2.20257.6 3.0.0 diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj index 1d184c95dce..584404b1625 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj +++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Microsoft.AspNetCore.Razor.Test.Common.csproj @@ -14,7 +14,7 @@ - + From af4d028a4321fd1430e2c14a26c143e9baed9e77 Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 12:06:19 -0700 Subject: [PATCH 13/15] Remove unused test aspps --- .../AppWithP2PReference.csproj | 36 ------ .../Models/ErrorViewModel.cs | 11 -- .../testapps/AppWithP2PReference/Program.cs | 13 --- .../Views/Home/About.cshtml | 7 -- .../Views/Home/Contact.cshtml | 17 --- .../Views/Home/Index.cshtml | 108 ------------------ .../Views/Shared/Error.cshtml | 22 ---- .../Shared/_ValidationScriptsPartial.cshtml | 18 --- .../Views/_ViewImports.cshtml | 3 - .../Views/_ViewStart.cshtml | 3 - .../AppWithPackageAndP2PReference.csproj | 43 ------- .../AppWithPackageAndP2PReference/Program.cs | 13 --- ...AppWithPackageAndP2PReferenceAndRID.csproj | 47 -------- .../Program.cs | 13 --- .../test/testapps/ClassLibrary/Class1.cs | 7 -- .../testapps/ClassLibrary/ClassLibrary.csproj | 36 ------ .../ClassLibrary/Views/Shared/_Layout.cshtml | 71 ------------ .../ClassLibrary/Views/_ViewImports.cshtml | 2 - .../wwwroot/js/project-transitive-dep.js | 3 - .../wwwroot/js/project-transitive-dep.v4.js | 0 .../test/testapps/ClassLibrary2/Class2.cs | 13 --- .../ClassLibrary2/ClassLibrary2.csproj | 33 ------ .../ClassLibrary2/Views/Shared/Index.cshtml | 2 - .../ClassLibrary2/Views/_ViewImports.cshtml | 2 - .../ClassLibrary2/wwwroot/css/site.css | 1 - .../wwwroot/js/project-direct-dep.js | 3 - .../Areas/MyFeature/Pages/Page1.cshtml | 16 --- .../Areas/MyFeature/Pages/Page1.cshtml.cs | 17 --- .../ClassLibraryMvc21.csproj | 18 --- .../test/testapps/ComponentLibrary/Class1.cs | 12 -- .../ComponentLibrary/ComponentLibrary.csproj | 29 ----- .../ComponentLibrary/GenericComponent.razor | 8 -- .../ComponentLibrary/MyComponent.razor | 1 - .../testapps/LinkedDir/LinkedErrorFile.cshtml | 1 - .../test/testapps/LinkedDir/LinkedFile.cshtml | 1 - .../testapps/LinkedDir/LinkedFile2.cshtml | 1 - .../testapps/LinkedDir/LinkedFile3.cshtml | 1 - ...Microsoft.AspNetCore.StaticWebAssets.cache | 0 .../PackageLibraryDirectDependency.csproj | 46 -------- .../wwwroot/css/site.css | 1 - .../wwwroot/js/pkg-direct-dep.js | 3 - .../PackageLibraryTransitiveDependency.csproj | 39 ------- .../wwwroot/js/pkg-transitive-dep.js | 3 - ...PackageLibraryDirectDependency.1.0.0.nupkg | Bin 5103 -> 0 bytes ...ageLibraryTransitiveDependency.1.0.0.nupkg | Bin 4978 -> 0 bytes .../RestoreTestProjects.csproj | 15 +-- .../SimpleMvc/Models/ErrorViewModel.cs | 11 -- src/Razor/test/testapps/SimpleMvc/Program.cs | 13 --- .../SimpleMvc/Properties/launchSettings.json | 27 ----- .../test/testapps/SimpleMvc/SimpleMvc.csproj | 33 ------ .../testapps/SimpleMvc/SimpleTagHelper.cs | 8 -- .../SimpleMvc/Views/Home/About.cshtml | 7 -- .../SimpleMvc/Views/Home/Contact.cshtml | 17 --- .../SimpleMvc/Views/Home/Index.cshtml | 108 ------------------ .../SimpleMvc/Views/Shared/Error.cshtml | 22 ---- .../SimpleMvc/Views/Shared/_Layout.cshtml | 71 ------------ .../Shared/_ValidationScriptsPartial.cshtml | 18 --- .../SimpleMvc/Views/_ViewImports.cshtml | 4 - .../SimpleMvc/Views/_ViewStart.cshtml | 3 - .../SimpleMvc/appsettings.Development.json | 9 -- .../test/testapps/SimpleMvc/appsettings.json | 10 -- .../testapps/SimpleMvc/wwwroot/css/site.css | 37 ------ .../SimpleMvc/wwwroot/js/SimpleMvc.js | 1 - .../test/testapps/SimpleMvc11NetFx/Program.cs | 13 --- .../SimpleMvc11NetFx/SimpleMvc11NetFx.csproj | 19 --- .../SimpleMvc11NetFx/Views/Home/Index.cshtml | 108 ------------------ .../Views/Shared/_Layout.cshtml | 71 ------------ .../Views/_ViewImports.cshtml | 2 - .../SimpleMvc11NetFx/Views/_ViewStart.cshtml | 3 - .../SimpleMvc22NetFx/Models/ErrorViewModel.cs | 11 -- .../test/testapps/SimpleMvc22NetFx/Program.cs | 13 --- .../SimpleMvc22NetFx/SimpleMvc22NetFx.csproj | 27 ----- .../SimpleMvc22NetFx/SimpleTagHelper.cs | 8 -- .../SimpleMvc22NetFx/Views/Home/Index.cshtml | 108 ------------------ .../Views/Shared/_Layout.cshtml | 71 ------------ .../Views/_ViewImports.cshtml | 4 - .../SimpleMvc22NetFx/Views/_ViewStart.cshtml | 3 - .../SimpleMvcFSharp/Models/ErrorViewModel.fs | 8 -- .../test/testapps/SimpleMvcFSharp/Program.fs | 11 -- .../SimpleMvcFSharp/SimpleMvcFSharp.fsproj | 38 ------ .../SimpleMvcFSharp/Views/Home/About.cshtml | 7 -- .../SimpleMvcFSharp/Views/_ViewImports.cshtml | 2 - .../Areas/Products/Pages/Index.cshtml | 107 ----------------- .../Areas/Products/Pages/_ViewImports.cshtml | 3 - .../Areas/Products/Pages/_ViewStart.cshtml | 3 - .../testapps/SimplePages/Pages/About.cshtml | 9 -- .../SimplePages/Pages/About.cshtml.cs | 18 --- .../testapps/SimplePages/Pages/Contact.cshtml | 19 --- .../SimplePages/Pages/Contact.cshtml.cs | 18 --- .../testapps/SimplePages/Pages/Index.cshtml | 108 ------------------ .../SimplePages/Pages/Index.cshtml.cs | 17 --- .../testapps/SimplePages/Pages/_Layout.cshtml | 71 ------------ .../SimplePages/Pages/_ViewImports.cshtml | 3 - .../SimplePages/Pages/_ViewStart.cshtml | 3 - .../test/testapps/SimplePages/Program.cs | 10 -- .../testapps/SimplePages/SimplePages.csproj | 33 ------ 96 files changed, 1 insertion(+), 2086 deletions(-) delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Models/ErrorViewModel.cs delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Program.cs delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/Home/About.cshtml delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/Home/Contact.cshtml delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/Shared/Error.cshtml delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/Shared/_ValidationScriptsPartial.cshtml delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/AppWithP2PReference/Views/_ViewStart.cshtml delete mode 100644 src/Razor/test/testapps/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj delete mode 100644 src/Razor/test/testapps/AppWithPackageAndP2PReference/Program.cs delete mode 100644 src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/AppWithPackageAndP2PReferenceAndRID.csproj delete mode 100644 src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/Program.cs delete mode 100644 src/Razor/test/testapps/ClassLibrary/Class1.cs delete mode 100644 src/Razor/test/testapps/ClassLibrary/ClassLibrary.csproj delete mode 100644 src/Razor/test/testapps/ClassLibrary/Views/Shared/_Layout.cshtml delete mode 100644 src/Razor/test/testapps/ClassLibrary/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.js delete mode 100644 src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.v4.js delete mode 100644 src/Razor/test/testapps/ClassLibrary2/Class2.cs delete mode 100644 src/Razor/test/testapps/ClassLibrary2/ClassLibrary2.csproj delete mode 100644 src/Razor/test/testapps/ClassLibrary2/Views/Shared/Index.cshtml delete mode 100644 src/Razor/test/testapps/ClassLibrary2/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/ClassLibrary2/wwwroot/css/site.css delete mode 100644 src/Razor/test/testapps/ClassLibrary2/wwwroot/js/project-direct-dep.js delete mode 100644 src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml delete mode 100644 src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml.cs delete mode 100644 src/Razor/test/testapps/ClassLibraryMvc21/ClassLibraryMvc21.csproj delete mode 100644 src/Razor/test/testapps/ComponentLibrary/Class1.cs delete mode 100644 src/Razor/test/testapps/ComponentLibrary/ComponentLibrary.csproj delete mode 100644 src/Razor/test/testapps/ComponentLibrary/GenericComponent.razor delete mode 100644 src/Razor/test/testapps/ComponentLibrary/MyComponent.razor delete mode 100644 src/Razor/test/testapps/LinkedDir/LinkedErrorFile.cshtml delete mode 100644 src/Razor/test/testapps/LinkedDir/LinkedFile.cshtml delete mode 100644 src/Razor/test/testapps/LinkedDir/LinkedFile2.cshtml delete mode 100644 src/Razor/test/testapps/LinkedDir/LinkedFile3.cshtml delete mode 100644 src/Razor/test/testapps/PackageLibraryDirectDependency/Microsoft.AspNetCore.StaticWebAssets.cache delete mode 100644 src/Razor/test/testapps/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj delete mode 100644 src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/css/site.css delete mode 100644 src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/js/pkg-direct-dep.js delete mode 100644 src/Razor/test/testapps/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj delete mode 100644 src/Razor/test/testapps/PackageLibraryTransitiveDependency/wwwroot/js/pkg-transitive-dep.js delete mode 100644 src/Razor/test/testapps/PregeneratedPackages/PackageLibraryDirectDependency.1.0.0.nupkg delete mode 100644 src/Razor/test/testapps/PregeneratedPackages/PackageLibraryTransitiveDependency.1.0.0.nupkg delete mode 100644 src/Razor/test/testapps/SimpleMvc/Models/ErrorViewModel.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc/Program.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc/Properties/launchSettings.json delete mode 100644 src/Razor/test/testapps/SimpleMvc/SimpleMvc.csproj delete mode 100644 src/Razor/test/testapps/SimpleMvc/SimpleTagHelper.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/Home/About.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/Home/Contact.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/Shared/Error.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/Shared/_Layout.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/Shared/_ValidationScriptsPartial.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/Views/_ViewStart.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc/appsettings.Development.json delete mode 100644 src/Razor/test/testapps/SimpleMvc/appsettings.json delete mode 100644 src/Razor/test/testapps/SimpleMvc/wwwroot/css/site.css delete mode 100644 src/Razor/test/testapps/SimpleMvc/wwwroot/js/SimpleMvc.js delete mode 100644 src/Razor/test/testapps/SimpleMvc11NetFx/Program.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj delete mode 100644 src/Razor/test/testapps/SimpleMvc11NetFx/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewStart.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/Models/ErrorViewModel.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/Program.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/SimpleMvc22NetFx.csproj delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/SimpleTagHelper.cs delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/Views/Shared/_Layout.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewStart.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvcFSharp/Models/ErrorViewModel.fs delete mode 100644 src/Razor/test/testapps/SimpleMvcFSharp/Program.fs delete mode 100644 src/Razor/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj delete mode 100644 src/Razor/test/testapps/SimpleMvcFSharp/Views/Home/About.cshtml delete mode 100644 src/Razor/test/testapps/SimpleMvcFSharp/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Areas/Products/Pages/Index.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewStart.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/About.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/About.cshtml.cs delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml.cs delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/Index.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/Index.cshtml.cs delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/_Layout.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/_ViewImports.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Pages/_ViewStart.cshtml delete mode 100644 src/Razor/test/testapps/SimplePages/Program.cs delete mode 100644 src/Razor/test/testapps/SimplePages/SimplePages.csproj diff --git a/src/Razor/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj b/src/Razor/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj deleted file mode 100644 index 6102fad181e..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj +++ /dev/null @@ -1,36 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - - - - - - - - - - false - - - - - - - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - diff --git a/src/Razor/test/testapps/AppWithP2PReference/Models/ErrorViewModel.cs b/src/Razor/test/testapps/AppWithP2PReference/Models/ErrorViewModel.cs deleted file mode 100644 index ecc6e00ab27..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Models/ErrorViewModel.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace AppWithP2PReference.Models -{ - public class ErrorViewModel - { - public string RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - } -} \ No newline at end of file diff --git a/src/Razor/test/testapps/AppWithP2PReference/Program.cs b/src/Razor/test/testapps/AppWithP2PReference/Program.cs deleted file mode 100644 index dc3ac4e2502..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Program.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace AppWithP2PReference -{ - public class Program - { - public static void Main(string[] args) - { - // Just make sure we have a reference to the MvcShim - var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult); - System.Console.WriteLine(t.FullName); - } - } -} diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/Home/About.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/Home/About.cshtml deleted file mode 100644 index 3674e37a86d..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/Home/About.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@{ - ViewData["Title"] = "About"; -} -

                        @ViewData["Title"]

                        -

                        @ViewData["Message"]

                        - -

                        Use this area to provide additional information.

                        diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/Home/Contact.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/Home/Contact.cshtml deleted file mode 100644 index a11a1867cfd..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/Home/Contact.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@{ - ViewData["Title"] = "Contact"; -} -

                        @ViewData["Title"]

                        -

                        @ViewData["Message"]

                        - -
                        - One Microsoft Way
                        - Redmond, WA 98052-6399
                        - P: - 425.555.0100 -
                        - -
                        - Support: Support@example.com
                        - Marketing: Marketing@example.com -
                        diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/Home/Index.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/Home/Index.cshtml deleted file mode 100644 index 00afab6a0cb..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/Home/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/Shared/Error.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/Shared/Error.cshtml deleted file mode 100644 index ec2ea6bd038..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/Shared/Error.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@model ErrorViewModel -@{ - ViewData["Title"] = "Error"; -} - -

                        Error.

                        -

                        An error occurred while processing your request.

                        - -@if (Model.ShowRequestId) -{ -

                        - Request ID: @Model.RequestId -

                        -} - -

                        Development Mode

                        -

                        - Swapping to Development environment will display more detailed information about the error that occurred. -

                        -

                        - Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. -

                        diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/Shared/_ValidationScriptsPartial.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/Shared/_ValidationScriptsPartial.cshtml deleted file mode 100644 index a699aafa970..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/Shared/_ValidationScriptsPartial.cshtml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/_ViewImports.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/_ViewImports.cshtml deleted file mode 100644 index 601a427791c..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using AppWithP2PReference -@using AppWithP2PReference.Models -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/AppWithP2PReference/Views/_ViewStart.cshtml b/src/Razor/test/testapps/AppWithP2PReference/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045db9..00000000000 --- a/src/Razor/test/testapps/AppWithP2PReference/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testapps/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj b/src/Razor/test/testapps/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj deleted file mode 100644 index a082defa128..00000000000 --- a/src/Razor/test/testapps/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj +++ /dev/null @@ -1,43 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - $(MSBuildThisFileDirectory)..\PregeneratedPackages\ - $(RestoreAdditionalProjectSources);$(RuntimeAdditionalRestoreSources) - - - - - - - - - - false - - - - - - - - - - - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - diff --git a/src/Razor/test/testapps/AppWithPackageAndP2PReference/Program.cs b/src/Razor/test/testapps/AppWithPackageAndP2PReference/Program.cs deleted file mode 100644 index dc3ac4e2502..00000000000 --- a/src/Razor/test/testapps/AppWithPackageAndP2PReference/Program.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace AppWithP2PReference -{ - public class Program - { - public static void Main(string[] args) - { - // Just make sure we have a reference to the MvcShim - var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult); - System.Console.WriteLine(t.FullName); - } - } -} diff --git a/src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/AppWithPackageAndP2PReferenceAndRID.csproj b/src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/AppWithPackageAndP2PReferenceAndRID.csproj deleted file mode 100644 index 9a11149cd1f..00000000000 --- a/src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/AppWithPackageAndP2PReferenceAndRID.csproj +++ /dev/null @@ -1,47 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - win-x64 - $(MSBuildThisFileDirectory)..\PregeneratedPackages\ - $(RestoreAdditionalProjectSources);$(RuntimeAdditionalRestoreSources) - - - - - - - - - - - - - - - - false - - - - - - - - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - diff --git a/src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/Program.cs b/src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/Program.cs deleted file mode 100644 index dc3ac4e2502..00000000000 --- a/src/Razor/test/testapps/AppWithPackageAndP2PReferenceAndRID/Program.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace AppWithP2PReference -{ - public class Program - { - public static void Main(string[] args) - { - // Just make sure we have a reference to the MvcShim - var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult); - System.Console.WriteLine(t.FullName); - } - } -} diff --git a/src/Razor/test/testapps/ClassLibrary/Class1.cs b/src/Razor/test/testapps/ClassLibrary/Class1.cs deleted file mode 100644 index 62a93d35fcb..00000000000 --- a/src/Razor/test/testapps/ClassLibrary/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ClassLibrary -{ - public class Class1 - { - // Just here so this assembly has some compilation inputs. - } -} \ No newline at end of file diff --git a/src/Razor/test/testapps/ClassLibrary/ClassLibrary.csproj b/src/Razor/test/testapps/ClassLibrary/ClassLibrary.csproj deleted file mode 100644 index 87ec461496a..00000000000 --- a/src/Razor/test/testapps/ClassLibrary/ClassLibrary.csproj +++ /dev/null @@ -1,36 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - true - - - - $(DefaultNetCoreTargetFramework) - © Microsoft - Razor Test - Microsoft - ClassLibrary Description - - - - - false - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - diff --git a/src/Razor/test/testapps/ClassLibrary/Views/Shared/_Layout.cshtml b/src/Razor/test/testapps/ClassLibrary/Views/Shared/_Layout.cshtml deleted file mode 100644 index 1a9473e4643..00000000000 --- a/src/Razor/test/testapps/ClassLibrary/Views/Shared/_Layout.cshtml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - @ViewData["Title"] - SimpleMvc - - - - - - - - - - - - -
                        - @RenderBody() -
                        -
                        -

                        © 2017 - SimpleMvc

                        -
                        -
                        - - - - - - - - - - - - - @RenderSection("Scripts", required: false) - - diff --git a/src/Razor/test/testapps/ClassLibrary/Views/_ViewImports.cshtml b/src/Razor/test/testapps/ClassLibrary/Views/_ViewImports.cshtml deleted file mode 100644 index 1dbbe8a4c2e..00000000000 --- a/src/Razor/test/testapps/ClassLibrary/Views/_ViewImports.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@using ClassLibrary -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.js b/src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.js deleted file mode 100644 index c8ee8c4b87a..00000000000 --- a/src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -(function () { - document.getElementById('project-transitive-dep').innerHTML = 'project-transitive-dep'; -})() \ No newline at end of file diff --git a/src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.v4.js b/src/Razor/test/testapps/ClassLibrary/wwwroot/js/project-transitive-dep.v4.js deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/testapps/ClassLibrary2/Class2.cs b/src/Razor/test/testapps/ClassLibrary2/Class2.cs deleted file mode 100644 index 76bd2e956ff..00000000000 --- a/src/Razor/test/testapps/ClassLibrary2/Class2.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using ClassLibrary; - -namespace ClassLibrary2 -{ - public class Class2 - { - public void Method() - { - Console.WriteLine(typeof(Class1)); - } - } -} diff --git a/src/Razor/test/testapps/ClassLibrary2/ClassLibrary2.csproj b/src/Razor/test/testapps/ClassLibrary2/ClassLibrary2.csproj deleted file mode 100644 index 0a331a69c0a..00000000000 --- a/src/Razor/test/testapps/ClassLibrary2/ClassLibrary2.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - true - - - - - false - - - - - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - diff --git a/src/Razor/test/testapps/ClassLibrary2/Views/Shared/Index.cshtml b/src/Razor/test/testapps/ClassLibrary2/Views/Shared/Index.cshtml deleted file mode 100644 index 415ad5c4f8a..00000000000 --- a/src/Razor/test/testapps/ClassLibrary2/Views/Shared/Index.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@{ var message = "Hello world";} -@message diff --git a/src/Razor/test/testapps/ClassLibrary2/Views/_ViewImports.cshtml b/src/Razor/test/testapps/ClassLibrary2/Views/_ViewImports.cshtml deleted file mode 100644 index 1dbbe8a4c2e..00000000000 --- a/src/Razor/test/testapps/ClassLibrary2/Views/_ViewImports.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@using ClassLibrary -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/ClassLibrary2/wwwroot/css/site.css b/src/Razor/test/testapps/ClassLibrary2/wwwroot/css/site.css deleted file mode 100644 index c9d72143d2c..00000000000 --- a/src/Razor/test/testapps/ClassLibrary2/wwwroot/css/site.css +++ /dev/null @@ -1 +0,0 @@ -div.fluent { display: inline-block } \ No newline at end of file diff --git a/src/Razor/test/testapps/ClassLibrary2/wwwroot/js/project-direct-dep.js b/src/Razor/test/testapps/ClassLibrary2/wwwroot/js/project-direct-dep.js deleted file mode 100644 index f6d99d4251f..00000000000 --- a/src/Razor/test/testapps/ClassLibrary2/wwwroot/js/project-direct-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -(function () { - document.getElementById('project-direct-dep').innerHTML = 'project-direct-dep'; -})() \ No newline at end of file diff --git a/src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml b/src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml deleted file mode 100644 index 69112690e7a..00000000000 --- a/src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml +++ /dev/null @@ -1,16 +0,0 @@ -@page -@model ClassLibraryMvc21.MyFeature.Pages.Page1Model -@{ - Layout = null; -} - - - - - - - Page1 - - - - diff --git a/src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml.cs b/src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml.cs deleted file mode 100644 index c1fe87da2d7..00000000000 --- a/src/Razor/test/testapps/ClassLibraryMvc21/Areas/MyFeature/Pages/Page1.cshtml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace ClassLibraryMvc21.MyFeature.Pages -{ - public class Page1Model : PageModel - { - public void OnGet() - { - - } - } -} \ No newline at end of file diff --git a/src/Razor/test/testapps/ClassLibraryMvc21/ClassLibraryMvc21.csproj b/src/Razor/test/testapps/ClassLibraryMvc21/ClassLibraryMvc21.csproj deleted file mode 100644 index 04fdcf55f3b..00000000000 --- a/src/Razor/test/testapps/ClassLibraryMvc21/ClassLibraryMvc21.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - netstandard2.0 - - - - - - All - - - diff --git a/src/Razor/test/testapps/ComponentLibrary/Class1.cs b/src/Razor/test/testapps/ComponentLibrary/Class1.cs deleted file mode 100644 index 2c74d8f5224..00000000000 --- a/src/Razor/test/testapps/ComponentLibrary/Class1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace ComponentLibrary -{ - public class Class1 - { - public void Method() - { - Console.WriteLine(typeof(Class1)); - } - } -} diff --git a/src/Razor/test/testapps/ComponentLibrary/ComponentLibrary.csproj b/src/Razor/test/testapps/ComponentLibrary/ComponentLibrary.csproj deleted file mode 100644 index 06baf7f0ad0..00000000000 --- a/src/Razor/test/testapps/ComponentLibrary/ComponentLibrary.csproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - netstandard2.0 - 3.0 - - - - - false - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - diff --git a/src/Razor/test/testapps/ComponentLibrary/GenericComponent.razor b/src/Razor/test/testapps/ComponentLibrary/GenericComponent.razor deleted file mode 100644 index cccb68d0179..00000000000 --- a/src/Razor/test/testapps/ComponentLibrary/GenericComponent.razor +++ /dev/null @@ -1,8 +0,0 @@ -@typeparam TItem - -

                        @Title - @Item

                        - -@functions { - [Parameter] public TItem Item { get; set; } - [Parameter] public string Title { get; set; } -} \ No newline at end of file diff --git a/src/Razor/test/testapps/ComponentLibrary/MyComponent.razor b/src/Razor/test/testapps/ComponentLibrary/MyComponent.razor deleted file mode 100644 index e1a56ee3ae5..00000000000 --- a/src/Razor/test/testapps/ComponentLibrary/MyComponent.razor +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Razor/test/testapps/LinkedDir/LinkedErrorFile.cshtml b/src/Razor/test/testapps/LinkedDir/LinkedErrorFile.cshtml deleted file mode 100644 index 2567b2c3793..00000000000 --- a/src/Razor/test/testapps/LinkedDir/LinkedErrorFile.cshtml +++ /dev/null @@ -1 +0,0 @@ -@( \ No newline at end of file diff --git a/src/Razor/test/testapps/LinkedDir/LinkedFile.cshtml b/src/Razor/test/testapps/LinkedDir/LinkedFile.cshtml deleted file mode 100644 index 3611531b131..00000000000 --- a/src/Razor/test/testapps/LinkedDir/LinkedFile.cshtml +++ /dev/null @@ -1 +0,0 @@ -@DateTime.UtcNow \ No newline at end of file diff --git a/src/Razor/test/testapps/LinkedDir/LinkedFile2.cshtml b/src/Razor/test/testapps/LinkedDir/LinkedFile2.cshtml deleted file mode 100644 index 3611531b131..00000000000 --- a/src/Razor/test/testapps/LinkedDir/LinkedFile2.cshtml +++ /dev/null @@ -1 +0,0 @@ -@DateTime.UtcNow \ No newline at end of file diff --git a/src/Razor/test/testapps/LinkedDir/LinkedFile3.cshtml b/src/Razor/test/testapps/LinkedDir/LinkedFile3.cshtml deleted file mode 100644 index 3611531b131..00000000000 --- a/src/Razor/test/testapps/LinkedDir/LinkedFile3.cshtml +++ /dev/null @@ -1 +0,0 @@ -@DateTime.UtcNow \ No newline at end of file diff --git a/src/Razor/test/testapps/PackageLibraryDirectDependency/Microsoft.AspNetCore.StaticWebAssets.cache b/src/Razor/test/testapps/PackageLibraryDirectDependency/Microsoft.AspNetCore.StaticWebAssets.cache deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/src/Razor/test/testapps/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj b/src/Razor/test/testapps/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj deleted file mode 100644 index 8bebdb3285d..00000000000 --- a/src/Razor/test/testapps/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj +++ /dev/null @@ -1,46 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - true - - - - $(DefaultNetCoreTargetFramework) - © Microsoft - Razor Test - Microsoft - PackageLibraryDirectDependency Description - $(MSBuildThisFileDirectory)..\TestPackageRestoreSource - false - - - - - false - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - - - - - - - - - diff --git a/src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/css/site.css b/src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/css/site.css deleted file mode 100644 index c9d72143d2c..00000000000 --- a/src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/css/site.css +++ /dev/null @@ -1 +0,0 @@ -div.fluent { display: inline-block } \ No newline at end of file diff --git a/src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/js/pkg-direct-dep.js b/src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/js/pkg-direct-dep.js deleted file mode 100644 index 0e3ece9c937..00000000000 --- a/src/Razor/test/testapps/PackageLibraryDirectDependency/wwwroot/js/pkg-direct-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -(function () { - document.getElementById('pkg-direct-dep').innerHTML = 'pkg-direct-dep'; -})() \ No newline at end of file diff --git a/src/Razor/test/testapps/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj b/src/Razor/test/testapps/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj deleted file mode 100644 index a83ad7086ed..00000000000 --- a/src/Razor/test/testapps/PackageLibraryTransitiveDependency/PackageLibraryTransitiveDependency.csproj +++ /dev/null @@ -1,39 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - true - 3.0 - - - - netstandard2.0 - © Microsoft - Razor Test - Microsoft - PackageLibraryTransitiveDependency Description - $(MSBuildThisFileDirectory)..\TestPackageRestoreSource - false - - - - - false - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - diff --git a/src/Razor/test/testapps/PackageLibraryTransitiveDependency/wwwroot/js/pkg-transitive-dep.js b/src/Razor/test/testapps/PackageLibraryTransitiveDependency/wwwroot/js/pkg-transitive-dep.js deleted file mode 100644 index 93e15b6ce17..00000000000 --- a/src/Razor/test/testapps/PackageLibraryTransitiveDependency/wwwroot/js/pkg-transitive-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -(function () { - document.getElementById('pkg-transitive-dep').innerHTML = 'pkg-transitive-dep'; -})() \ No newline at end of file diff --git a/src/Razor/test/testapps/PregeneratedPackages/PackageLibraryDirectDependency.1.0.0.nupkg b/src/Razor/test/testapps/PregeneratedPackages/PackageLibraryDirectDependency.1.0.0.nupkg deleted file mode 100644 index 3d51146a4a5b0c65192a74eaa47200572d9e52d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5103 zcmcIo2UJtrwxz2SL5!dRDqIjmNTC-2>Agq^5Sk$g5DXzCp$VcOO^Q-Qib@j!L8U|i zsTXNN0D&k)ih}em3QEa~-f=%ZuKzpUAO9y~XD8?6%(cc`d#}0HHZx>o0?^UX?WcRI zm1}lBPee?Vo{o;4fsT%icGU@w!Vo~f@1IHW!|n_auCOJxD-m%4^0s8Ghu4uIE3vig zNKo9}j>lP(5yA#nHd)FulQaSpJ2E^wQ&S~X$@lmnS_>G>_7IB@o{SzJw`sx8IcFR? zmX=)j-nA#WelXe8D{XBKUo>AejnVGUiZ8*P@K{^}9!Ot5)0W< z16zR%SlzhpF2ls@aGw=7$_&;aNClG8sa&2i z<>a!vtO1cHf)lJM-NxIkP8&#aipKI6cx86zHf5l0RqDFFc&acXFK$8;8j%Ze{JI0x zW!L4{coA*|hN}2zh~;ayX}>Lic|S<7nJN<#3zT8q5*fF#TyU?tXHr<`{`J#DhF3H8 zo)VSD7?sLMXZCM=>U&an(KJ4XX?I0ve44=#m*B1_BeXLfj`!C><538r77B;LB2id` zKM?Cpz@ZQ^3C1RkV6L!ry>|_($3Flp4+x4{Wjz&-)COIgM?1@w#4eO`$bVp$h^yeT zt}i#~6+LAEzH#FBam_i+x1l6-(xTO|e2nYjGsV`FWD2l!udWy|`VzT=uM z-e*3+ImBV{)h*RSw1;8+FgQ~S+-J@mw_o>#KQ28tiHHhB#ezuQS7*KL`FqbYQ}0CC z@Ru(4F(Jhj#r7dO8~pMVCJ0c)%!!tD1yH@$*;r~Rb<;&==7PbOscgX8JW{FHm7SfC z#VTrM?$VNvj`4wEfh;?l;iD6&lJ%o7XrsZ9c6j1u`T*$}SkC2WY03DyH%wSNoO7W| z!ouWoW#|r5U|gAT&zov@Cget8e6qr^vrtl3a6{x;XKOQTN;PALtSS-!&xQoXUHwO_ zD1o_V@6R7Le8Nl%5;q;4ByGZ=ok3U>Q5FaW{U&Tk3}(UF0RylCs5WBT%`>~NMM8ob zLh@THNDt^`G+x-{_S~*|0cf&PQV#G{1}jUCq=o@c8)zZc+Fptt=DxBLvC+eIGEOgh zIrq=#X5F0Eq8v8_Yq=0Fmqt>z(Y^&ojlkh$HKW^#Q};IS5?m)oZl3T<6w(4{SNg-#@6%sPvh05o+0tyux|?y>#&0Y|Q79&QieFfYMF zX@OREqUtU?JjyK!AFYAcuTwH)T7_S8TUx6t5EvB;ZoqPYBH=rW;kA=x=#!+O6U|2+ zeZt}(1zxxK0QkctY@0U+e2$J3c)2L*)LY?h*WQ*N;OKmyD70!o|D3r`XWV8@v*^KA zq75Gsy!|qhyOYQM<{H|oSbk)v%s8ezp4muacw6W-`)qsm-7l4BUKO|(H)qa%Qh-z1 zNGy{eQLWZf;l^c_?MK;aZiqR>{LsQR${p^$1!Ay? z_yWM1X+-$Itu#N~;c~YASXav&<2C-LDMn*|tTBMqPtvcC z6;s4w{bVkO*Je$xRBo;xsq*01R-V1pos(lyiz#Ulb65$4_L!rFlvpEH_R z0x_nK=cSJ?pM$=#O^%s)etZN4!-RNs5$9b#K6SwP>91$?70^>}qZHE>o!2wXPtrw$wD-!@O7~Jd~mj44wrPQ65w;or4 zYou08Okd48t$wt9|3`^RK;Qd_GRAw#&0C?31Cuf1HvJV6s*AR5Ds$IgFb#Xx%x`U# znJk(?CuJ{5k6zO>8q98@x};4`5|Tz#mX~h_vHI)Oa{5QvS6lf%!}&KtYpzoFB`P-( z)LVmR2Zl5Xr*u#4J7nKes^i_8mmnGm`P$7^`HWt5GH?Fb)qlgWeY^@0XjvN0AI_HFps*W{sJeED=L!$nN@$1$f>-q=DbTbXUHQ46V)Q47+yQSDE)N5 zg}1tj@r={*@N@L(+(GPDPCgm~Mtid>u}e4;nRf6Aj1O5A(({k4sSd{2D}q3;uQ?{? zoEQwbr5x>f(qwM-^5d9-5cXNThhWarBcJ#?eCr+Fon_IPCg#v&WEtV)5 z5dx9b)-zez4*!mCFzTVEUw*S2b>($h0d z-gn>ZSJ6T7b$2=#CsgDqX(G{gTd|>fXjP3zcEhP{wvM8OZ7+_i`&p%FnLnZnw6Q_U z_#bFW4W`Y`-e?RGWQ<1OJqeyJM4&nWXM!SXdg4()3nH9|Mp&bq)d>U?kpRTuJ#mEO zc(Os`c|h2@#;72GO`rEJ?@`7#g-k`EQ+eMtBBRLRzH6@dOHXDSSiNQ#@2=Ts(R2Rc1)a}V-P5A=P z++8qd_Dc=7rEH=A*@cggsTyAvE|oq*43xo0B=_>qRcT~M?Q}Y-x1CoWGK|8`=})B1 zRB^yELnKc54>tsr=q@Fd$H`f|YNozON)R04>r7RDH4hwF{gQ64R497+7W;#)Z*CO* zJHg5xTk`{M+;S-@Whz^rcG^XcW+AoO4iM)4sA-^pL*o`>EEUv3ObYs?P-) zdv>%T{$DKqMmm4+7f=^aXMFxb5Y!!iLjaT#5)$i*RS&vwgTb-`+9oeuDORVTR;<-k zQc({gy;Q6dvjSBJmk3KMo|A1WsZb#0+C0e=tIM>}S3l_%8mro&uqV8J-Hi|nnnRAX zq42k3#@-kr+7ga;MG?_h*WW4pZ{5^41)VOCkrov>eF~ze3{jzoN*9Qg6~;C+T&<4>E3QG%@h^df-r9mqHbUD9Ygmg+4Bq9r{G~eYmkH&4_PcA=AZ!{_LT;vm_x%$1h z<);n8kNx3`a)$rdA0PyQ0HS%10@A)1wn_9Fwx2O3pS_R|)oYUgw(1v^o40nfw{;j& zj9;~xc0$eanfDlouh2AI;75+Dw6Dn&H=mrjlM{eP+mAaTN=hKDN?cZwskt^F%|Ug*jWF>}RP@tLD+? zGy<;xFh{yk#r~Du5paNZaUxqTpT!u!qPCOSt;-_1Vi zDXY;WSfVJWY4C;#$D0Z#$V&p}ni|(c$dMyf(M;8mvk3e5NUkJ`v0)x5+FpXLR(!|H zN=eda|J6%w!!vbq-{bJlKF2FrqTh>_J@aUse9r;6zxo^y0fqNLBTxj82Z{(s!ijJY zf|f-kzi%fLo`|O1kVQx#T~N+4GDw7+3w&(nj!Zh;aWt*!}MAB5j{OfSrMkNMTNN~rd#PG3iu8?30J zF}B;_JhQCLs?f&*Jr)rCn;q*@;@3YlrZ-T$1(r&umD7#PSH9t>xg(jk5eOCiM;A>w zLT{B$Wm)niks4tMw+_Tw+EoTS^ceM>H#bahemhWc3}&eDJmw>ed?Z9T;^QjY3;DB2 z{UG*`Z01lufuO>!rufg-+?QF6HQ!rM>jypz9nZP>S~KGSRO%8VReZ8lfbmPOWFzjY zFmJ@AzGvOO2T33Tgg?hj-;@*1p%GKN*xvGmC(`M8UeA{8x8kW68anf+IzGjh&ftlgIKe)FA-hIl9wqSlE4}UepKSTbiQ`?2yqOHIGsBilj z`t2`DfnDe?`~UO8U@!V!iQGj$$ND$=Zy5QZM0;`fD%>tEirT#$e2hB}8NisVrF&N)g%jC2J*w zku4-CQX)#omhb8Pj`!8;=s*6x_xQe<8IxYZ>O3DUSb=dAr*b}HQRC+7mp(xni)MfKa`h4LDf_Vak*n$&l1eEPQ*S z?%=ZVn&P(iC+)w=_}AOGDVu85`8~chjD(HaYkwd4WY_)Z#G5#&bD?bVpG9-Do^yHB z2IYu_#`7-thnF9UH#x_olad#K^3qp7n;(~#T1g-OV4+ucqUfqbfeSJ}_4x^6;vL8s@_7?7#+`zv;=OU& zI1&vpQQ4wakmm$vYHc!DaJmwv0KO_>vCM%S1%H7ddvSQ8feF+xAGmD)>%b4y^ z`kIT37NG)mPHxPfq9{yPib}yxlHbc; z3;~UsKB&kOTH)|nOSxD{p?m8^lf9Xxb;lvM;Pu`_W@$3d{^_vSS}FHv5rc8Z^(ak} zc{T!Su_>96y5F9=MzKded0Ub2p6)=T=^o^@kS$f=xmDJO;&UzTFLH^}FYIS8fxNKv>={vWhtccREI-4-o zA>8g*h_H=Cc2Uy|ux01&BQK zH`WA8B+i-ZU*Xo_4t(7Gy|}3*Ji|pd6Vt5IRarKBW_OGNqP3?3as)fV}!Iiv3eWY+u6b3^J>%*2ux-|&kiuVLxV zA+-tKFr(*ZTRmT%=%nZ;9O@#M_cvTIBePlCm1g^EVI3WqdJnkX$-k54ZZh{Oduik_ zuhfjDj^tCTYrD$%OK^GhB9n3wgSxD9sFC;YM^UEV2No^wVL{$2Ivn$b2l3bMXh+}O zjL{zUN5`kSD9xOyH5?x^9HQ6QFLJzZ@9Kc*^qBpdTu1;0^+SID?0I%GOxt~G+Ei??mEo*n--A|jT;cN(o|NlpZ4lqj88`|QOnF9o$Nzfp(c9KK=IX4uQ13D3bn^v81}oU>hJTA-O$Ep zPPnpq$OO=V-NJb9jlcsrDX zZV3u~3!dO+H_GJhNs87H^H|ir_+qkiS5D~sBI;Ekwjk4V@m%LSrkVx0A^aynFG(9C z1v)DK@}Y{jLKvQ>Q}ct8PfoQ5YiHVM3Ke+^m%kV9E&$7$gmd2FBK5Ib>d%;ln%*P~ zn|@)>LCxzXr8miV4hW&ocUFdkzhY@sbK+i2zQGrsiw&FjW@fLy$h}f+{Q9azFI%O4 zN|f+I+^u)<%5Vv*=Uq)a1Ir0G?n6VINBWBHhxg576RGQtQ?D1qt|RK~ z2aqib%eCEC560))V{=0NUpmu1n$#6C*)><=SciP1JRf<%2O24;DgiduH$BHV70!V;%6h$}G5pdzGZo$VeCab*qB#yDs!$3*?{ zev2)KZ0F9{wW;=CSlOM=Bo7UObh;j{aHC`?B0~dFzqtrE3tZ^EztV6+Ic}8PX5)Dz zY2o2RHQm|}POQz)DRzp=drDLg1Qf&&KD}B~w|ES{@F~M~_=JMF zu%>vK0LJP27xe_D!)F=Z#4hkC<=A{0^Nn7f8J*w~;;Wk66l^c3#JoQF^33Ur2yo1E zuzShF+-r0`;YE;I!S$u0C!;l~ja&l`T|I~6Ja#eWGqSuWS-AJQ_ybM6CNJm`{|%j@ zU^C%OMg|(ih;1r>$Zma5g@IN|vn68i@y{cN0$UT3Tu=0U7(h2o+kvH%wkd3uUG>kZC?q#YOSuwU-av+WRS&!IZ#is zWZP;E%(pPDHc%J5?Ulwq5!VArN&DJxMj7)WafWa67TMp#>?@LJFA`oOchTSdXfIjU zoWI_TJUwg%HBj?eP{0S=H%fbIfaeVI(lN$%*Y_dFNHP}i7xVKUwYd@Z>$($)m3(WAvS;kuD>5;;5VAS+87l0t?_uHFX5}KZWI(6a#3pc zy8j)U3ma?Ask^fR!rwfx%oH&yB}-Tv6t=W2wO~x&A<{Tua9 z7zLUU$dQMjNg*LI&h94zjUwqxo|(17VKv}JmE#54Jtfsm(27T@jbKw~wRnj*OjS*( zy`);DA{$+l32w|p>zx#K360Tsrm}-vZwAF3{eu)R)cz!=??t5IO)z9<92M{G{5!V) z|5DX6fJ)w1gh@$AiX2r%9918Xg53v~$Oi92{`IGT>efVEx`?yLmM;sgOhe6f}MuIr7<7eke&c283Oh9eqgrJ@^Gi(+^KdZ=Set<4aC=t zm>t&)RNCy}^Sbp~39^Jf&lAiQqq~+F>rYJ9x}j6iC5V`+wow&PH!V_m!}yl74jvw% znySvrq3Y#r3Lmr&c^RST?H!xtSDCi7X|w)a@9C-5NCYC17ENK_-+k-j+2jQFnrF7u zBX`6&5yx-)6H}#_R9PhNPrkrZbR{qEVQSPqI(q4LS-m~h)wXBiPEpw{Fyq4QmvhEj zttJ<&2xDqEU)D#Q{KZdf`nh`4Y2(`0+00B5cv*an2TnicQ$M(SYUZv??ebwbo5uHw zbY98Oai#K4Ur!F&0sr^!1@R9>R303S_5{*jDWJ%Y^Go`7M*^kb$liEI90lrzqhhca zDhBEZq(QkKM*v5r;(-frRVA!E7Utk2ujHiYaMVdvS|ItXC(xIAqLE*EvtkKSRmDE3k^H&@J=Cm}0KC;jFFCQqIzLSF`edOqb!sT!3)vC2ygl-vs`(Gv%Q&-nSV#xg6f-GgR~`ilhirJh;5@fFdt(skv{fD`EEj2A-UXt%S zY~x?+yNiw+^nbVUz->RheroCsk$-=1XS2HflrgYjej~O2yLJ5;_E#;~Hf%qz2mf(H z_H&rYUwHd=m^aM-xzq1N-)VQ-=yI%oqW^|Me>loc?4544jotAl_CNHloso9B%yy&z zpnLwK8u|yG^K+D6`N4J+753kEho4b@mCCnK`vBBmB=(&EJ2T%lz|@}qK^`zoIk$(3p67k#Q*>R diff --git a/src/Razor/test/testapps/RestoreTestProjects/RestoreTestProjects.csproj b/src/Razor/test/testapps/RestoreTestProjects/RestoreTestProjects.csproj index 2f8960787b5..63284664325 100644 --- a/src/Razor/test/testapps/RestoreTestProjects/RestoreTestProjects.csproj +++ b/src/Razor/test/testapps/RestoreTestProjects/RestoreTestProjects.csproj @@ -4,25 +4,12 @@ - + - - - - - - - - - - - - - diff --git a/src/Razor/test/testapps/SimpleMvc/Models/ErrorViewModel.cs b/src/Razor/test/testapps/SimpleMvc/Models/ErrorViewModel.cs deleted file mode 100644 index b4aa0449146..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Models/ErrorViewModel.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace SimpleMvc.Models -{ - public class ErrorViewModel - { - public string RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - } -} \ No newline at end of file diff --git a/src/Razor/test/testapps/SimpleMvc/Program.cs b/src/Razor/test/testapps/SimpleMvc/Program.cs deleted file mode 100644 index e62b11efe52..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Program.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace SimpleMvc -{ - public class Program - { - public static void Main(string[] args) - { - // Just make sure we have a reference to the MvcShim - var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult); - System.Console.WriteLine(t.FullName); - } - } -} diff --git a/src/Razor/test/testapps/SimpleMvc/Properties/launchSettings.json b/src/Razor/test/testapps/SimpleMvc/Properties/launchSettings.json deleted file mode 100644 index 386e2391705..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:55451", - "sslPort": 44333 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "SimpleMvc": { - "commandName": "Project", - "launchBrowser": true, - "applicationUrl": "https://localhost:5001;http://localhost:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/src/Razor/test/testapps/SimpleMvc/SimpleMvc.csproj b/src/Razor/test/testapps/SimpleMvc/SimpleMvc.csproj deleted file mode 100644 index 5a395f6802d..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/SimpleMvc.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - - - - - - - - - - false - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - diff --git a/src/Razor/test/testapps/SimpleMvc/SimpleTagHelper.cs b/src/Razor/test/testapps/SimpleMvc/SimpleTagHelper.cs deleted file mode 100644 index 7cc52922d99..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/SimpleTagHelper.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Microsoft.AspNetCore.Razor.TagHelpers; - -namespace SimpleMvc -{ - public class SimpleTagHelper : TagHelper - { - } -} diff --git a/src/Razor/test/testapps/SimpleMvc/Views/Home/About.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/Home/About.cshtml deleted file mode 100644 index 3674e37a86d..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/Home/About.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@{ - ViewData["Title"] = "About"; -} -

                        @ViewData["Title"]

                        -

                        @ViewData["Message"]

                        - -

                        Use this area to provide additional information.

                        diff --git a/src/Razor/test/testapps/SimpleMvc/Views/Home/Contact.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/Home/Contact.cshtml deleted file mode 100644 index a11a1867cfd..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/Home/Contact.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@{ - ViewData["Title"] = "Contact"; -} -

                        @ViewData["Title"]

                        -

                        @ViewData["Message"]

                        - -
                        - One Microsoft Way
                        - Redmond, WA 98052-6399
                        - P: - 425.555.0100 -
                        - -
                        - Support: Support@example.com
                        - Marketing: Marketing@example.com -
                        diff --git a/src/Razor/test/testapps/SimpleMvc/Views/Home/Index.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/Home/Index.cshtml deleted file mode 100644 index 00afab6a0cb..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/Home/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/src/Razor/test/testapps/SimpleMvc/Views/Shared/Error.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/Shared/Error.cshtml deleted file mode 100644 index ec2ea6bd038..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/Shared/Error.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@model ErrorViewModel -@{ - ViewData["Title"] = "Error"; -} - -

                        Error.

                        -

                        An error occurred while processing your request.

                        - -@if (Model.ShowRequestId) -{ -

                        - Request ID: @Model.RequestId -

                        -} - -

                        Development Mode

                        -

                        - Swapping to Development environment will display more detailed information about the error that occurred. -

                        -

                        - Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. -

                        diff --git a/src/Razor/test/testapps/SimpleMvc/Views/Shared/_Layout.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/Shared/_Layout.cshtml deleted file mode 100644 index 1a9473e4643..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/Shared/_Layout.cshtml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - @ViewData["Title"] - SimpleMvc - - - - - - - - - - - - -
                        - @RenderBody() -
                        -
                        -

                        © 2017 - SimpleMvc

                        -
                        -
                        - - - - - - - - - - - - - @RenderSection("Scripts", required: false) - - diff --git a/src/Razor/test/testapps/SimpleMvc/Views/Shared/_ValidationScriptsPartial.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/Shared/_ValidationScriptsPartial.cshtml deleted file mode 100644 index a699aafa970..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/Shared/_ValidationScriptsPartial.cshtml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - diff --git a/src/Razor/test/testapps/SimpleMvc/Views/_ViewImports.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/_ViewImports.cshtml deleted file mode 100644 index 26ba8ed20ec..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/_ViewImports.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@using SimpleMvc -@using SimpleMvc.Models -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@inject DateTime TheTime diff --git a/src/Razor/test/testapps/SimpleMvc/Views/_ViewStart.cshtml b/src/Razor/test/testapps/SimpleMvc/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045db9..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testapps/SimpleMvc/appsettings.Development.json b/src/Razor/test/testapps/SimpleMvc/appsettings.Development.json deleted file mode 100644 index e203e9407e7..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/src/Razor/test/testapps/SimpleMvc/appsettings.json b/src/Razor/test/testapps/SimpleMvc/appsettings.json deleted file mode 100644 index d9d9a9bff6f..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/appsettings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" - } - }, - "AllowedHosts": "*" -} diff --git a/src/Razor/test/testapps/SimpleMvc/wwwroot/css/site.css b/src/Razor/test/testapps/SimpleMvc/wwwroot/css/site.css deleted file mode 100644 index 6b0e6c3ab2f..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/wwwroot/css/site.css +++ /dev/null @@ -1,37 +0,0 @@ -/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ -for details on configuring this project to bundle and minify static web assets. */ -body { - padding-top: 50px; - padding-bottom: 20px; -} - -/* Wrapping element */ -/* Set some basic padding to keep content from hitting the edges */ -.body-content { - padding-left: 15px; - padding-right: 15px; -} - -/* Carousel */ -.carousel-caption p { - font-size: 20px; - line-height: 1.4; -} - -/* Make .svg files in the carousel display properly in older browsers */ -.carousel-inner .item img[src$=".svg"] { - width: 100%; -} - -/* QR code generator */ -#qrCode { - margin: 15px; -} - -/* Hide/rearrange for smaller screens */ -@media screen and (max-width: 767px) { - /* Hide captions */ - .carousel-caption { - display: none; - } -} diff --git a/src/Razor/test/testapps/SimpleMvc/wwwroot/js/SimpleMvc.js b/src/Razor/test/testapps/SimpleMvc/wwwroot/js/SimpleMvc.js deleted file mode 100644 index ad51101cd17..00000000000 --- a/src/Razor/test/testapps/SimpleMvc/wwwroot/js/SimpleMvc.js +++ /dev/null @@ -1 +0,0 @@ -// This is a test file diff --git a/src/Razor/test/testapps/SimpleMvc11NetFx/Program.cs b/src/Razor/test/testapps/SimpleMvc11NetFx/Program.cs deleted file mode 100644 index 5fbbd9ded71..00000000000 --- a/src/Razor/test/testapps/SimpleMvc11NetFx/Program.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace SimpleMvc11 -{ - public class Program - { - public static void Main(string[] args) - { - // Just make sure we have a reference to MVC 1.1 - var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult); - System.Console.WriteLine(t.FullName); - } - } -} diff --git a/src/Razor/test/testapps/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj b/src/Razor/test/testapps/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj deleted file mode 100644 index b280ec0c9c8..00000000000 --- a/src/Razor/test/testapps/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - net461 - - - - - - - - - diff --git a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/Home/Index.cshtml b/src/Razor/test/testapps/SimpleMvc11NetFx/Views/Home/Index.cshtml deleted file mode 100644 index 00afab6a0cb..00000000000 --- a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/Home/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml b/src/Razor/test/testapps/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml deleted file mode 100644 index 2172e5e566d..00000000000 --- a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - @ViewData["Title"] - SimpleMvc11 - - - - - - - - - - - - -
                        - @RenderBody() -
                        -
                        -

                        © 2018 - SimpleMvc11

                        -
                        -
                        - - - - - - - - - - - - - @RenderSection("Scripts", required: false) - - diff --git a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewImports.cshtml b/src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewImports.cshtml deleted file mode 100644 index 6f6d009d404..00000000000 --- a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewImports.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@using SimpleMvc11NetFx -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewStart.cshtml b/src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045db9..00000000000 --- a/src/Razor/test/testapps/SimpleMvc11NetFx/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/Models/ErrorViewModel.cs b/src/Razor/test/testapps/SimpleMvc22NetFx/Models/ErrorViewModel.cs deleted file mode 100644 index b4aa0449146..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/Models/ErrorViewModel.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace SimpleMvc.Models -{ - public class ErrorViewModel - { - public string RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - } -} \ No newline at end of file diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/Program.cs b/src/Razor/test/testapps/SimpleMvc22NetFx/Program.cs deleted file mode 100644 index 25883d6b8bb..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/Program.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace SimpleMvc -{ - public class Program - { - public static void Main(string[] args) - { - // Just make sure we have a reference to the MVC 2.2 - var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult); - System.Console.WriteLine(t.FullName); - } - } -} diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/SimpleMvc22NetFx.csproj b/src/Razor/test/testapps/SimpleMvc22NetFx/SimpleMvc22NetFx.csproj deleted file mode 100644 index ba2f97732b4..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/SimpleMvc22NetFx.csproj +++ /dev/null @@ -1,27 +0,0 @@ - - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - net461 - full - - - - - - - - - - - - false - - - diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/SimpleTagHelper.cs b/src/Razor/test/testapps/SimpleMvc22NetFx/SimpleTagHelper.cs deleted file mode 100644 index 7cc52922d99..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/SimpleTagHelper.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Microsoft.AspNetCore.Razor.TagHelpers; - -namespace SimpleMvc -{ - public class SimpleTagHelper : TagHelper - { - } -} diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/Home/Index.cshtml b/src/Razor/test/testapps/SimpleMvc22NetFx/Views/Home/Index.cshtml deleted file mode 100644 index 00afab6a0cb..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/Home/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/Shared/_Layout.cshtml b/src/Razor/test/testapps/SimpleMvc22NetFx/Views/Shared/_Layout.cshtml deleted file mode 100644 index 1a9473e4643..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/Shared/_Layout.cshtml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - @ViewData["Title"] - SimpleMvc - - - - - - - - - - - - -
                        - @RenderBody() -
                        -
                        -

                        © 2017 - SimpleMvc

                        -
                        -
                        - - - - - - - - - - - - - @RenderSection("Scripts", required: false) - - diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewImports.cshtml b/src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewImports.cshtml deleted file mode 100644 index 477d4ba603e..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewImports.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@using SimpleMvc -@using SimpleMvc.Models -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@namespace SimpleMvc21 diff --git a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewStart.cshtml b/src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045db9..00000000000 --- a/src/Razor/test/testapps/SimpleMvc22NetFx/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testapps/SimpleMvcFSharp/Models/ErrorViewModel.fs b/src/Razor/test/testapps/SimpleMvcFSharp/Models/ErrorViewModel.fs deleted file mode 100644 index 111eba32dee..00000000000 --- a/src/Razor/test/testapps/SimpleMvcFSharp/Models/ErrorViewModel.fs +++ /dev/null @@ -1,8 +0,0 @@ -namespace SimpleMvcFSharp - -open System - -type ErrorViewModel private () = - member val RequestId : string = null with get, set - - member val ShowRequestId : bool = true with get, set diff --git a/src/Razor/test/testapps/SimpleMvcFSharp/Program.fs b/src/Razor/test/testapps/SimpleMvcFSharp/Program.fs deleted file mode 100644 index 10f99aa34f9..00000000000 --- a/src/Razor/test/testapps/SimpleMvcFSharp/Program.fs +++ /dev/null @@ -1,11 +0,0 @@ -namespace SimpleMvcFSharp - -module Program = - let exitCode = 0 - - [] - let main args = - let t = typeof - System.Console.WriteLine(t.FullName) - - exitCode diff --git a/src/Razor/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj b/src/Razor/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj deleted file mode 100644 index ef683132a58..00000000000 --- a/src/Razor/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj +++ /dev/null @@ -1,38 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - - - - - - - - - - false - - - - - - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - diff --git a/src/Razor/test/testapps/SimpleMvcFSharp/Views/Home/About.cshtml b/src/Razor/test/testapps/SimpleMvcFSharp/Views/Home/About.cshtml deleted file mode 100644 index 50476d1fbd4..00000000000 --- a/src/Razor/test/testapps/SimpleMvcFSharp/Views/Home/About.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@{ - ViewData["Title"] = "About"; -} -

                        @ViewData["Title"].

                        -

                        @ViewData["Message"]

                        - -

                        Use this area to provide additional information.

                        diff --git a/src/Razor/test/testapps/SimpleMvcFSharp/Views/_ViewImports.cshtml b/src/Razor/test/testapps/SimpleMvcFSharp/Views/_ViewImports.cshtml deleted file mode 100644 index 8df2746fd76..00000000000 --- a/src/Razor/test/testapps/SimpleMvcFSharp/Views/_ViewImports.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@using SimpleMvcFSharp -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/Index.cshtml b/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/Index.cshtml deleted file mode 100644 index a574e3f403c..00000000000 --- a/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/Index.cshtml +++ /dev/null @@ -1,107 +0,0 @@ -@page -@{ - ViewData["Title"] = "Home page"; -} - - - - diff --git a/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewImports.cshtml b/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewImports.cshtml deleted file mode 100644 index 6686959c4a1..00000000000 --- a/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using SimplePages -@namespace SimplePages.Pages -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewStart.cshtml b/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewStart.cshtml deleted file mode 100644 index a5f10045db9..00000000000 --- a/src/Razor/test/testapps/SimplePages/Areas/Products/Pages/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testapps/SimplePages/Pages/About.cshtml b/src/Razor/test/testapps/SimplePages/Pages/About.cshtml deleted file mode 100644 index 3c090d15f07..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/About.cshtml +++ /dev/null @@ -1,9 +0,0 @@ -@page -@model AboutModel -@{ - ViewData["Title"] = "About"; -} -

                        @ViewData["Title"]

                        -

                        @Model.Message

                        - -

                        Use this area to provide additional information.

                        diff --git a/src/Razor/test/testapps/SimplePages/Pages/About.cshtml.cs b/src/Razor/test/testapps/SimplePages/Pages/About.cshtml.cs deleted file mode 100644 index 969985072e7..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/About.cshtml.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace SimplePages.Pages -{ - public class AboutModel : PageModel - { - public string Message { get; set; } - - public void OnGet() - { - Message = "Your application description page."; - } - } -} diff --git a/src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml b/src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml deleted file mode 100644 index b683c8216cd..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml +++ /dev/null @@ -1,19 +0,0 @@ -@page -@model ContactModel -@{ - ViewData["Title"] = "Contact"; -} -

                        @ViewData["Title"]

                        -

                        @Model.Message

                        - -
                        - One Microsoft Way
                        - Redmond, WA 98052-6399
                        - P: - 425.555.0100 -
                        - -
                        - Support: Support@example.com
                        - Marketing: Marketing@example.com -
                        diff --git a/src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml.cs b/src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml.cs deleted file mode 100644 index 6444b7e64d2..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/Contact.cshtml.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace SimplePages.Pages -{ - public class ContactModel : PageModel - { - public string Message { get; set; } - - public void OnGet() - { - Message = "Your contact page."; - } - } -} diff --git a/src/Razor/test/testapps/SimplePages/Pages/Index.cshtml b/src/Razor/test/testapps/SimplePages/Pages/Index.cshtml deleted file mode 100644 index 728fdfc943e..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@page -@model IndexModel -@{ - ViewData["Title"] = "Home page"; -} - - - - diff --git a/src/Razor/test/testapps/SimplePages/Pages/Index.cshtml.cs b/src/Razor/test/testapps/SimplePages/Pages/Index.cshtml.cs deleted file mode 100644 index 1e507ea24a3..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/Index.cshtml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace SimplePages.Pages -{ - public class IndexModel : PageModel - { - public void OnGet() - { - - } - } -} diff --git a/src/Razor/test/testapps/SimplePages/Pages/_Layout.cshtml b/src/Razor/test/testapps/SimplePages/Pages/_Layout.cshtml deleted file mode 100644 index 694a3223d1c..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/_Layout.cshtml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - @ViewData["Title"] - SimplePages - - - - - - - - - - - - -
                        - @RenderBody() -
                        -
                        -

                        © 2017 - SimplePages

                        -
                        -
                        - - - - - - - - - - - - - @RenderSection("Scripts", required: false) - - diff --git a/src/Razor/test/testapps/SimplePages/Pages/_ViewImports.cshtml b/src/Razor/test/testapps/SimplePages/Pages/_ViewImports.cshtml deleted file mode 100644 index 6686959c4a1..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using SimplePages -@namespace SimplePages.Pages -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testapps/SimplePages/Pages/_ViewStart.cshtml b/src/Razor/test/testapps/SimplePages/Pages/_ViewStart.cshtml deleted file mode 100644 index a5f10045db9..00000000000 --- a/src/Razor/test/testapps/SimplePages/Pages/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testapps/SimplePages/Program.cs b/src/Razor/test/testapps/SimplePages/Program.cs deleted file mode 100644 index 16c6459a556..00000000000 --- a/src/Razor/test/testapps/SimplePages/Program.cs +++ /dev/null @@ -1,10 +0,0 @@ - -namespace SimplePages -{ - public class Program - { - public static void Main(string[] args) - { - } - } -} diff --git a/src/Razor/test/testapps/SimplePages/SimplePages.csproj b/src/Razor/test/testapps/SimplePages/SimplePages.csproj deleted file mode 100644 index 5a395f6802d..00000000000 --- a/src/Razor/test/testapps/SimplePages/SimplePages.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - - - - $(DefaultNetCoreTargetFramework) - - - - - - - - - - false - - - - - $(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\ - - - - - - - - - - From 18ac899e0301a4bfe5a5134f9a325614c305994c Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 29 May 2020 17:01:35 -0700 Subject: [PATCH 14/15] Remove redundant sln file --- eng/Build.props | 2 +- src/Razor/Razor.NoVsix.sln | 395 ------------------------------------- 2 files changed, 1 insertion(+), 396 deletions(-) delete mode 100644 src/Razor/Razor.NoVsix.sln diff --git a/eng/Build.props b/eng/Build.props index f4e9b888b12..d303daa0665 100644 --- a/eng/Build.props +++ b/eng/Build.props @@ -6,7 +6,7 @@ - + diff --git a/src/Razor/Razor.NoVsix.sln b/src/Razor/Razor.NoVsix.sln deleted file mode 100644 index 789f48a5cfb..00000000000 --- a/src/Razor/Razor.NoVsix.sln +++ /dev/null @@ -1,395 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28410.60 -MinimumVisualStudioVersion = 16.0.0.0 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3C0D6505-79B3-49D0-B4C3-176F0F1836ED}" - ProjectSection(SolutionItems) = preProject - src\Directory.Build.props = src\Directory.Build.props - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{92463391-81BE-462B-AC3C-78C6C760741F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces", "src\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj", "{0F265874-C592-448B-BC4F-3430AB03E0DC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Remote.Razor", "src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj", "{4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor", "src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj", "{E5D92DB7-5CBF-410A-9685-FF76F71EC96F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.LanguageServices.Razor.Test\Microsoft.VisualStudio.LanguageServices.Razor.Test.csproj", "{37E61BDB-658E-4F44-A499-D64CC6D35485}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.Common", "test\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj", "{078AEF36-F319-4CE2-BAA2-5B58A6536B46}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim", "test\Microsoft.AspNetCore.Razor.Test.MvcShim\Microsoft.AspNetCore.Razor.Test.MvcShim.csproj", "{8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.csproj", "{C61AAE12-5007-4205-A220-68F354A7F235}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj", "{AC5CA24B-B81E-4B20-B193-2E3983B1896C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Editor.Razor", "src\Microsoft.VisualStudio.Editor.Razor\Microsoft.VisualStudio.Editor.Razor.csproj", "{0BCDE75A-A438-46C7-95E9-391F029D07C5}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Editor.Razor.Test", "test\Microsoft.VisualStudio.Editor.Razor.Test\Microsoft.VisualStudio.Editor.Razor.Test.csproj", "{AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Editor.Razor.Test.Common", "test\Microsoft.VisualStudio.Editor.Razor.Test.Common\Microsoft.VisualStudio.Editor.Razor.Test.Common.csproj", "{FC684D4F-D23C-407C-9C68-E10EF3B38560}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.LanguageServices.Razor", "src\Microsoft.VisualStudio.Mac.LanguageServices.Razor\Microsoft.VisualStudio.Mac.LanguageServices.Razor.csproj", "{95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test", "test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test\Microsoft.VisualStudio.Mac.LanguageServices.Razor.Test.csproj", "{B8A3E4CA-D54A-441F-A3BF-E00F060CA042}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Performance", "benchmarks\Microsoft.AspNetCore.Razor.Performance\Microsoft.AspNetCore.Razor.Performance.csproj", "{6205467F-E381-4C42-AEEC-763BD62B3D5E}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{C2C98051-0F39-47F2-80B6-E72B29159F2C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common", "test\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common\Microsoft.CodeAnalysis.Razor.Workspaces.Test.Common.csproj", "{933101DA-C4CC-401A-AA01-2784E1025B7F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib.csproj", "{72E89155-86C7-454E-BDD9-39F497F2F61B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X", "test\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X\Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj", "{D87E5501-B832-46B6-ACD3-EC989E3D14ED}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.RazorExtension", "src\Microsoft.VisualStudio.RazorExtension\Microsoft.VisualStudio.RazorExtension.csproj", "{BCF712D4-329A-4C7A-8292-9EFC864B2ABA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.Mac.RazorAddin", "src\Microsoft.VisualStudio.Mac.RazorAddin\Microsoft.VisualStudio.Mac.RazorAddin.csproj", "{A34CCC12-687B-4D12-AA0E-F5BE800DE19C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Test.ComponentShim", "test\Microsoft.AspNetCore.Razor.Test.ComponentShim\Microsoft.AspNetCore.Razor.Test.ComponentShim.csproj", "{5B232E77-F0D3-4298-9A5D-D965788D7A79}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LiveShare.Razor", "src\Microsoft.VisualStudio.LiveShare.Razor\Microsoft.VisualStudio.LiveShare.Razor.csproj", "{20193C6A-8981-447F-99B3-120DD3B06279}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LiveShare.Razor.Test", "test\Microsoft.VisualStudio.LiveShare.Razor.Test\Microsoft.VisualStudio.LiveShare.Razor.Test.csproj", "{9A27DD55-E8CD-4C03-A89B-A7348B787660}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.LanguageServer.Common", "src\Microsoft.AspNetCore.Razor.LanguageServer.Common\Microsoft.AspNetCore.Razor.LanguageServer.Common.csproj", "{F2B59848-345E-4ECB-ADDB-277F3C937B9C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.LanguageServer", "src\Microsoft.AspNetCore.Razor.LanguageServer\Microsoft.AspNetCore.Razor.LanguageServer.csproj", "{1D15867E-E50F-4107-92A4-BBC2EE6B088C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.LanguageServer.Common.Test", "test\Microsoft.AspNetCore.Razor.LanguageServer.Common.Test\Microsoft.AspNetCore.Razor.LanguageServer.Common.Test.csproj", "{6C8A42B5-B41C-4334-959F-684E647A24E1}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.LanguageServer.Test", "test\Microsoft.AspNetCore.Razor.LanguageServer.Test\Microsoft.AspNetCore.Razor.LanguageServer.Test.csproj", "{FBAE9975-77BE-411B-A1A3-4790C8A367EF}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.LanguageServer.Test.Common", "test\Microsoft.AspNetCore.Razor.LanguageServer.Test.Common\Microsoft.AspNetCore.Razor.LanguageServer.Test.Common.csproj", "{9D300F9A-1F78-45C9-B4BB-476EF12E40F8}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed", "src\Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed\Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.csproj", "{525CCD97-7E6E-404C-8CD3-736E5649C858}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.OmniSharpPlugin", "src\Microsoft.AspNetCore.Razor.OmniSharpPlugin\Microsoft.AspNetCore.Razor.OmniSharpPlugin.csproj", "{305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.OmniSharpPlugin.Test", "test\Microsoft.AspNetCore.Razor.OmniSharpPlugin.Test\Microsoft.AspNetCore.Razor.OmniSharpPlugin.Test.csproj", "{4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServerClient.Razor", "src\Microsoft.VisualStudio.LanguageServerClient.Razor\Microsoft.VisualStudio.LanguageServerClient.Razor.csproj", "{70E70B52-EB70-42D1-B785-8618BD0B950E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudio.LanguageServerClient.Razor.Test", "test\Microsoft.VisualStudio.LanguageServerClient.Razor.Test\Microsoft.VisualStudio.LanguageServerClient.Razor.Test.csproj", "{F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "rzls", "src\rzls\rzls.csproj", "{35FEC0EA-09B5-45D2-832D-D6FEBA364871}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - DebugNoVSIX|Any CPU = DebugNoVSIX|Any CPU - Release|Any CPU = Release|Any CPU - ReleaseNoVSIX|Any CPU = ReleaseNoVSIX|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.Release|Any CPU.Build.0 = Release|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {0F265874-C592-448B-BC4F-3430AB03E0DC}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.Release|Any CPU.Build.0 = Release|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.Release|Any CPU.Build.0 = Release|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.Debug|Any CPU.Build.0 = Debug|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.Release|Any CPU.ActiveCfg = Release|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.Release|Any CPU.Build.0 = Release|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {37E61BDB-658E-4F44-A499-D64CC6D35485}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Debug|Any CPU.Build.0 = Debug|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Release|Any CPU.ActiveCfg = Release|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.Release|Any CPU.Build.0 = Release|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {078AEF36-F319-4CE2-BAA2-5B58A6536B46}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.Release|Any CPU.Build.0 = Release|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.Release|Any CPU.Build.0 = Release|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {C61AAE12-5007-4205-A220-68F354A7F235}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.Release|Any CPU.Build.0 = Release|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {AC5CA24B-B81E-4B20-B193-2E3983B1896C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.Release|Any CPU.Build.0 = Release|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {0BCDE75A-A438-46C7-95E9-391F029D07C5}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.Release|Any CPU.Build.0 = Release|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.Release|Any CPU.Build.0 = Release|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {FC684D4F-D23C-407C-9C68-E10EF3B38560}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.Release|Any CPU.Build.0 = Release|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.Release|Any CPU.Build.0 = Release|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.Release|Any CPU.Build.0 = Release|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {6205467F-E381-4C42-AEEC-763BD62B3D5E}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.Release|Any CPU.Build.0 = Release|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {933101DA-C4CC-401A-AA01-2784E1025B7F}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.Release|Any CPU.Build.0 = Release|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {72E89155-86C7-454E-BDD9-39F497F2F61B}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.Release|Any CPU.Build.0 = Release|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {D87E5501-B832-46B6-ACD3-EC989E3D14ED}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.Release|Any CPU.Build.0 = Release|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.Release|Any CPU.Build.0 = Release|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.Release|Any CPU.Build.0 = Release|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {5B232E77-F0D3-4298-9A5D-D965788D7A79}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.Debug|Any CPU.Build.0 = Debug|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.Release|Any CPU.ActiveCfg = Release|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.Release|Any CPU.Build.0 = Release|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.ReleaseNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {20193C6A-8981-447F-99B3-120DD3B06279}.ReleaseNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.Release|Any CPU.Build.0 = Release|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.ReleaseNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {9A27DD55-E8CD-4C03-A89B-A7348B787660}.ReleaseNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.Release|Any CPU.Build.0 = Release|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {F2B59848-345E-4ECB-ADDB-277F3C937B9C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.Release|Any CPU.Build.0 = Release|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {1D15867E-E50F-4107-92A4-BBC2EE6B088C}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.Release|Any CPU.Build.0 = Release|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {6C8A42B5-B41C-4334-959F-684E647A24E1}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.Release|Any CPU.Build.0 = Release|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {FBAE9975-77BE-411B-A1A3-4790C8A367EF}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.Release|Any CPU.Build.0 = Release|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.Debug|Any CPU.Build.0 = Debug|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.Release|Any CPU.ActiveCfg = Release|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.Release|Any CPU.Build.0 = Release|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {525CCD97-7E6E-404C-8CD3-736E5649C858}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.Release|Any CPU.Build.0 = Release|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.Release|Any CPU.Build.0 = Release|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.Release|Any CPU.Build.0 = Release|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {70E70B52-EB70-42D1-B785-8618BD0B950E}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.Release|Any CPU.Build.0 = Release|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.Debug|Any CPU.Build.0 = Debug|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.DebugNoVSIX|Any CPU.ActiveCfg = Debug|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.DebugNoVSIX|Any CPU.Build.0 = Debug|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.Release|Any CPU.ActiveCfg = Release|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.Release|Any CPU.Build.0 = Release|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.ReleaseNoVSIX|Any CPU.ActiveCfg = Release|Any CPU - {35FEC0EA-09B5-45D2-832D-D6FEBA364871}.ReleaseNoVSIX|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {0F265874-C592-448B-BC4F-3430AB03E0DC} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {4EAD959D-73B2-4FB2-B46F-16CEB1EF49D4} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {E5D92DB7-5CBF-410A-9685-FF76F71EC96F} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {37E61BDB-658E-4F44-A499-D64CC6D35485} = {92463391-81BE-462B-AC3C-78C6C760741F} - {078AEF36-F319-4CE2-BAA2-5B58A6536B46} = {92463391-81BE-462B-AC3C-78C6C760741F} - {8F165A3F-A18C-4649-AA08-C0E1BA5F5C90} = {92463391-81BE-462B-AC3C-78C6C760741F} - {C61AAE12-5007-4205-A220-68F354A7F235} = {92463391-81BE-462B-AC3C-78C6C760741F} - {AC5CA24B-B81E-4B20-B193-2E3983B1896C} = {92463391-81BE-462B-AC3C-78C6C760741F} - {0BCDE75A-A438-46C7-95E9-391F029D07C5} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {AA888DB9-340E-4E06-A2A4-25BFEE1AC2B7} = {92463391-81BE-462B-AC3C-78C6C760741F} - {FC684D4F-D23C-407C-9C68-E10EF3B38560} = {92463391-81BE-462B-AC3C-78C6C760741F} - {95B18DEE-8B45-4CF0-B9F8-CCBAF3B5251A} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {B8A3E4CA-D54A-441F-A3BF-E00F060CA042} = {92463391-81BE-462B-AC3C-78C6C760741F} - {6205467F-E381-4C42-AEEC-763BD62B3D5E} = {C2C98051-0F39-47F2-80B6-E72B29159F2C} - {933101DA-C4CC-401A-AA01-2784E1025B7F} = {92463391-81BE-462B-AC3C-78C6C760741F} - {72E89155-86C7-454E-BDD9-39F497F2F61B} = {92463391-81BE-462B-AC3C-78C6C760741F} - {D87E5501-B832-46B6-ACD3-EC989E3D14ED} = {92463391-81BE-462B-AC3C-78C6C760741F} - {BCF712D4-329A-4C7A-8292-9EFC864B2ABA} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {A34CCC12-687B-4D12-AA0E-F5BE800DE19C} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {5B232E77-F0D3-4298-9A5D-D965788D7A79} = {92463391-81BE-462B-AC3C-78C6C760741F} - {20193C6A-8981-447F-99B3-120DD3B06279} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {9A27DD55-E8CD-4C03-A89B-A7348B787660} = {92463391-81BE-462B-AC3C-78C6C760741F} - {F2B59848-345E-4ECB-ADDB-277F3C937B9C} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {1D15867E-E50F-4107-92A4-BBC2EE6B088C} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {6C8A42B5-B41C-4334-959F-684E647A24E1} = {92463391-81BE-462B-AC3C-78C6C760741F} - {FBAE9975-77BE-411B-A1A3-4790C8A367EF} = {92463391-81BE-462B-AC3C-78C6C760741F} - {9D300F9A-1F78-45C9-B4BB-476EF12E40F8} = {92463391-81BE-462B-AC3C-78C6C760741F} - {525CCD97-7E6E-404C-8CD3-736E5649C858} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {305354FD-5ED7-4E89-8B1D-58FCCA3E08AD} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {4ED6CC87-11C4-4ECD-B9A1-AFC5C2DACABE} = {92463391-81BE-462B-AC3C-78C6C760741F} - {70E70B52-EB70-42D1-B785-8618BD0B950E} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - {F6E8EEA2-BDD8-4AAF-A0CE-9E33A9A7CE8E} = {92463391-81BE-462B-AC3C-78C6C760741F} - {35FEC0EA-09B5-45D2-832D-D6FEBA364871} = {3C0D6505-79B3-49D0-B4C3-176F0F1836ED} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {0035341D-175A-4D05-95E6-F1C2785A1E26} - EndGlobalSection -EndGlobal From 8e6dad07a2792ac73027583aa9238ffed00328d6 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat, 30 May 2020 01:39:23 -0700 Subject: [PATCH 15/15] Update dependencies from https://github.com/dotnet/aspnetcore build 20200529.12 (#1951) Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.6.20278.12 -> To Version 5.0.0-preview.6.20279.12 Dependency coherency updates Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms From Version 5.0.0-preview.6.20277.12 -> To Version 5.0.0-preview.6.20278.9 (parent: Microsoft.CodeAnalysis.Razor Co-authored-by: dotnet-maestro[bot] --- eng/Version.Details.xml | 68 ++++++++++++++++++++--------------------- eng/Versions.props | 34 ++++++++++----------- 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 8a1c6398eca..6429100137d 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,80 +1,80 @@ - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/aspnetcore - a799bf68e45c63e62060a7916ebb6d4f87a9aa1b + 5c155d41477d0e79819fcba5af498fbee92fbe97 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 - + https://github.com/dotnet/runtime - 35aa7989884dda8347899dcea162daf0c9318051 + 567a7a2bb62e180ddb224ba820297e48b1879df1 https://github.com/dotnet/arcade diff --git a/eng/Versions.props b/eng/Versions.props index 8254ee8fe94..ca3af9a3013 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -48,23 +48,23 @@ --> - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20278.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 - 5.0.0-preview.6.20277.12 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20279.12 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 + 5.0.0-preview.6.20278.9 3.7.0-3.20271.4