From 61726ae9dfed4fa92517e95bc0b551173c5c5b05 Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Baaskaran Date: Tue, 10 Sep 2019 17:45:59 -0700 Subject: [PATCH 01/34] Restore test projects prior to running SDK tests (dotnet/aspnetcore-tooling#1078) \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/e6bb507271f53dd8493057f0535b52b23171e66d --- .../IntegrationTests/BuildIncrementalismTest.cs | 4 ++-- .../MSBuildIntegrationTestBase.cs | 16 +--------------- .../test/IntegrationTests/PackIntegrationTest.cs | 4 ++-- src/Razor/test/testassets/Directory.Build.props | 2 ++ 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIncrementalismTest.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIncrementalismTest.cs index d87b5642e0..d9a4cfc8e9 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIncrementalismTest.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIncrementalismTest.cs @@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests var thumbprintLookup = new Dictionary(); // Act 1 - var result = await DotnetMSBuild("Build", runRestoreBeforeBuildOrPublish: false); + var result = await DotnetMSBuild("Build"); var directoryPath = Path.Combine(result.Project.DirectoryPath, IntermediateOutputPath); var filesToIgnore = new[] @@ -54,7 +54,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests // We want to make sure nothing changed between multiple incremental builds. using (var razorGenDirectoryLock = LockDirectory(RazorIntermediateOutputPath)) { - result = await DotnetMSBuild("Build", runRestoreBeforeBuildOrPublish: false); + result = await DotnetMSBuild("Build"); } Assert.BuildPassed(result); diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs index e8a001c49d..b82e000de2 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs @@ -69,8 +69,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests bool suppressTimeout = false, bool suppressBuildServer = false, string buildServerPipeName = null, - MSBuildProcessKind msBuildProcessKind = MSBuildProcessKind.Dotnet, - bool runRestoreBeforeBuildOrPublish = true) + MSBuildProcessKind msBuildProcessKind = MSBuildProcessKind.Dotnet) { var timeout = suppressTimeout ? (TimeSpan?)Timeout.InfiniteTimeSpan : null; @@ -117,23 +116,10 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests if (!string.IsNullOrEmpty(target)) { - // Restore before build or publish - if (runRestoreBeforeBuildOrPublish && - (string.Equals("Build", target, StringComparison.OrdinalIgnoreCase) - || string.Equals("Publish", target, StringComparison.OrdinalIgnoreCase))) - { - buildArgumentList.Add($"/t:Restore"); - } - buildArgumentList.Add($"/t:{target}"); } else { - // By default, restore then build - if (runRestoreBeforeBuildOrPublish) - { - buildArgumentList.Add($"/t:Restore"); - } buildArgumentList.Add($"/t:Build"); } diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs index 80e404a083..f1502e0a37 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs @@ -230,10 +230,10 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests [InitializeTestProject("PackageLibraryDirectDependency", additionalProjects: new[] { "PackageLibraryTransitiveDependency" })] public async Task Pack_NoBuild_IncludesStaticWebAssets() { - var result = await DotnetMSBuild("Build", runRestoreBeforeBuildOrPublish: false); + var result = await DotnetMSBuild("Build"); Assert.BuildPassed(result, allowWarnings: true); - var pack = await DotnetMSBuild("Pack", "/p:NoBuild=true", runRestoreBeforeBuildOrPublish: false); + var pack = await DotnetMSBuild("Pack", "/p:NoBuild=true"); Assert.BuildPassed(pack, allowWarnings: true); Assert.FileExists(pack, OutputPath, "PackageLibraryDirectDependency.dll"); diff --git a/src/Razor/test/testassets/Directory.Build.props b/src/Razor/test/testassets/Directory.Build.props index 1bdf3f0025..c1270c5a7f 100644 --- a/src/Razor/test/testassets/Directory.Build.props +++ b/src/Razor/test/testassets/Directory.Build.props @@ -33,6 +33,8 @@ + + OutOfProcess From 1606d9b0d308d4e348c8a4ad42bf7f7f7d662980 Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 12 Sep 2019 22:02:18 -0700 Subject: [PATCH 02/34] Support netcoreapp3.1 TFM (dotnet/aspnetcore-tooling#1122) * Support netcoreapp3.1 TFM * Update branding to preview1 * Skip failing 1.1 test \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/133b252f09e9d77608b6e0e767f299f1db1b5c64 --- .../Microsoft.AspNetCore.Razor.Tools.csproj | 2 +- ...crosoft.AspNetCore.Razor.Tools.Test.csproj | 2 +- .../src/Microsoft.NET.Sdk.Razor.csproj | 12 +++-- .../src/Microsoft.NET.Sdk.Razor.nuspec | 3 ++ ...osoft.NET.Sdk.Razor.CodeGeneration.targets | 6 +-- .../Sdk.Razor.CurrentVersion.targets | 2 +- .../test/BuildVariables.cs | 6 +-- .../IntegrationTests/BuildIntegrationTest.cs | 2 +- .../BuildIntegrationTest11.cs | 2 +- .../InitializeTestProjectAttribute.cs | 4 +- .../MSBuildIntegrationTestBase.cs | 4 +- .../IntegrationTests/PackIntegrationTest.cs | 50 ++++++++++--------- .../PublishIntegrationTest.cs | 2 +- .../test/Microsoft.NET.Sdk.Razor.Test.csproj | 4 +- ...tCore.Razor.Test.MvcShim.Version1_X.csproj | 2 +- ...tCore.Razor.Test.MvcShim.Version2_X.csproj | 2 +- ...osoft.AspNetCore.Razor.Test.MvcShim.csproj | 4 +- .../AppWithP2PReference.csproj | 4 +- .../AppWithPackageAndP2PReference.csproj | 4 +- .../ClassLibrary/ClassLibrary.csproj | 4 +- .../ClassLibrary2/ClassLibrary2.csproj | 6 +-- .../ComponentApp/ComponentApp.csproj | 2 +- .../test/testassets/Directory.Build.props | 5 +- .../test/testassets/Directory.Build.targets | 2 +- .../LargeProject/LargeProject.csproj | 6 +-- .../MvcWithComponents.csproj | 2 +- .../PackageLibraryDirectDependency.csproj | 4 +- .../RestoreTestProjects.csproj | 2 +- .../testassets/SimpleMvc/SimpleMvc.csproj | 2 +- .../SimpleMvcFSharp/SimpleMvcFSharp.fsproj | 2 +- .../testassets/SimplePages/SimplePages.csproj | 2 +- 31 files changed, 83 insertions(+), 73 deletions(-) diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Tools/src/Microsoft.AspNetCore.Razor.Tools.csproj b/src/Razor/Microsoft.AspNetCore.Razor.Tools/src/Microsoft.AspNetCore.Razor.Tools.csproj index cec75baae8..d95e126d74 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Tools/src/Microsoft.AspNetCore.Razor.Tools.csproj +++ b/src/Razor/Microsoft.AspNetCore.Razor.Tools/src/Microsoft.AspNetCore.Razor.Tools.csproj @@ -3,7 +3,7 @@ Razor is a markup syntax for adding server-side logic to web pages. This assembly contains infrastructure supporting Razor MSBuild integration. - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) Exe rzc diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Tools/test/Microsoft.AspNetCore.Razor.Tools.Test.csproj b/src/Razor/Microsoft.AspNetCore.Razor.Tools/test/Microsoft.AspNetCore.Razor.Tools.Test.csproj index 48976ae144..8430edfc23 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Tools/test/Microsoft.AspNetCore.Razor.Tools.Test.csproj +++ b/src/Razor/Microsoft.AspNetCore.Razor.Tools/test/Microsoft.AspNetCore.Razor.Tools.Test.csproj @@ -1,7 +1,7 @@  - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) $(DefaultItemExcludes);TestFiles\** diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.csproj b/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.csproj index 24bf87a38e..ba33b9f833 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.csproj +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.csproj @@ -1,7 +1,7 @@  Razor is a markup syntax for adding server-side logic to web pages. This package contains MSBuild support for Razor. - netcoreapp3.0;net46 + $(DefaultNetCoreTargetFramework);net46 Microsoft.NET.Sdk.Razor.Tasks $(MSBuildProjectName).nuspec @@ -11,6 +11,8 @@ $(NoWarn);NU5100 + + $(NoWarn);NU5129 @@ -19,8 +21,8 @@ - - + + @@ -44,7 +46,7 @@ @@ -57,7 +59,7 @@ - + diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.nuspec b/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.nuspec index 85713bd963..fc409c5e90 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.nuspec +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/Microsoft.NET.Sdk.Razor.nuspec @@ -2,6 +2,9 @@ $CommonMetadataElements$ + + + diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets index 52037f43c4..5cc0be05e9 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets @@ -39,7 +39,7 @@ Copyright (c) .NET Foundation. All rights reserved. <_RazorGenerateInputsHash> <_RazorGenerateInputsHashFile>$(IntermediateOutputPath)$(MSBuildProjectName).RazorCoreGenerate.cache - <_RazorToolAssembly Condition="'$(_RazorToolAssembly)'==''">$(RazorSdkDirectoryRoot)tools\netcoreapp3.0\rzc.dll + <_RazorToolAssembly Condition="'$(_RazorToolAssembly)'==''">$(RazorSdkDirectoryRoot)tools\$(DefaultNetCoreTargetFramework)\rzc.dll $(MSBuildThisFileDirectory)..\..\ $(RazorSdkDirectoryRoot)tasks\ - <_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">netcoreapp3.0 + <_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">$(DefaultNetCoreTargetFramework) <_RazorSdkTasksTFM Condition=" '$(_RazorSdkTasksTFM)' == ''">net46 $(RazorSdkBuildTasksDirectoryRoot)$(_RazorSdkTasksTFM)\Microsoft.NET.Sdk.Razor.Tasks.dll diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/BuildVariables.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/BuildVariables.cs index 2fc7b8eae6..1373497c3e 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/BuildVariables.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/BuildVariables.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests internal static partial class BuildVariables { private static string _msBuildPath = string.Empty; - private static string _microsoftNETCoreApp30PackageVersion = string.Empty; + private static string _microsoftNETCoreApp31PackageVersion = string.Empty; private static string _microsoftNetCompilersToolsetPackageVersion = string.Empty; static partial void InitializeVariables(); @@ -20,12 +20,12 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests } } - public static string MicrosoftNETCoreApp30PackageVersion + public static string MicrosoftNETCoreApp31PackageVersion { get { InitializeVariables(); - return _microsoftNETCoreApp30PackageVersion; + return _microsoftNETCoreApp31PackageVersion; } } diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest.cs index 6acfd7c50b..6ccfae6bf0 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest.cs @@ -639,7 +639,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.FileDoesNotExist(result, IntermediateOutputPath, "SimpleMvc.Views.dll"); } - [Fact] + [Fact(Skip = "Default C# version is 7.3 for netcoreapp3.1 and later https://github.com/aspnet/AspNetCore/issues/13930")] [InitializeTestProject("SimpleMvc")] public async Task Build_ImplicitCSharp8_NullableEnforcement_WarningsDuringBuild_NoBuildServer() { diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs index a3b255ed18..dc7d470a3c 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs @@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.BuildOutputDoesNotContainLine(result, "ProjectCapability: DotNetCoreRazorConfiguration"); } - [Fact] + [Fact (Skip = "https://github.com/aspnet/AspNetCore-Tooling/pull/1122#issuecomment-530976125")] [InitializeTestProject("SimpleMvc11")] public async Task RazorSdk_DoesNotBuildViewsForNetCoreApp11Projects() { diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/InitializeTestProjectAttribute.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/InitializeTestProjectAttribute.cs index 5dc1651e47..ebf9ddb067 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/InitializeTestProjectAttribute.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/InitializeTestProjectAttribute.cs @@ -37,8 +37,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests } MSBuildIntegrationTestBase.Project = ProjectDirectory.Create(_originalProjectName, _testProjectName, _baseDirectory, _additionalProjects, _language); -#if NETCOREAPP3_0 - MSBuildIntegrationTestBase.TargetFramework = "netcoreapp3.0"; +#if NETCOREAPP + MSBuildIntegrationTestBase.TargetFramework = "netcoreapp3.1"; #else #error Target frameworks need to be updated #endif diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs index b82e000de2..34c4b87961 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs @@ -93,7 +93,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests // Let the test app know it is running as part of a test. "/p:RunningAsTest=true", - $"/p:MicrosoftNETCoreApp30PackageVersion={BuildVariables.MicrosoftNETCoreApp30PackageVersion}", + $"/p:MicrosoftNETCoreApp31PackageVersion={BuildVariables.MicrosoftNETCoreApp31PackageVersion}", $"/p:MicrosoftNetCompilersToolsetPackageVersion={BuildVariables.MicrosoftNetCompilersToolsetPackageVersion}", // Additional restore sources for projects that require built packages @@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests { if (!Directory.Exists(LocalNugetPackagesCacheTempPath)) { - // The local cache folder needs to exist so that nuget + // The local cache folder needs to exist so that nuget Directory.CreateDirectory(LocalNugetPackagesCacheTempPath); } } diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs index f1502e0a37..e148aa2b24 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs @@ -11,6 +11,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests { public class PackIntegrationTest : MSBuildIntegrationTestBase, IClassFixture { + private static readonly string TFM = "netcoreapp3.1"; + public PackIntegrationTest(BuildServerTestFixture buildServer) : base(buildServer) { @@ -29,12 +31,12 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - @""); + $@""); Assert.NupkgContains( result, Path.Combine("bin", Configuration, "ClassLibrary.1.0.0.nupkg"), - Path.Combine("contentFiles", "any", "netcoreapp3.0", "Views", "Shared", "_Layout.cshtml")); + Path.Combine("contentFiles", "any", TFM, "Views", "Shared", "_Layout.cshtml")); } [Fact] @@ -56,25 +58,25 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - $""); + $""); Assert.NuspecDoesNotContain( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - $""); + $""); } Assert.NuspecDoesNotContain( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - @""); + $@""); Assert.NupkgContains( result, Path.Combine("bin", Configuration, "ClassLibrary.1.0.0.nupkg"), - Path.Combine("lib", "netcoreapp3.0", "ClassLibrary.Views.dll")); + Path.Combine("lib", TFM, "ClassLibrary.Views.dll")); } [Fact] @@ -94,25 +96,25 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - $""); + $""); Assert.NuspecDoesNotContain( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - $""); + $""); } Assert.NuspecDoesNotContain( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - @""); + $@""); Assert.NupkgContains( result, Path.Combine("bin", Configuration, "ClassLibrary.1.0.0.nupkg"), - Path.Combine("lib", "netcoreapp3.0", "ClassLibrary.Views.dll")); + Path.Combine("lib", TFM, "ClassLibrary.Views.dll")); } [Fact] @@ -129,21 +131,21 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.symbols.nuspec"), - $""); + $""); Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.symbols.nuspec"), - $""); + $""); } Assert.NupkgContains( result, Path.Combine("bin", Configuration, "ClassLibrary.1.0.0.symbols.nupkg"), - Path.Combine("lib", "netcoreapp3.0", "ClassLibrary.Views.dll"), - Path.Combine("lib", "netcoreapp3.0", "ClassLibrary.Views.pdb")); + Path.Combine("lib", TFM, "ClassLibrary.Views.dll"), + Path.Combine("lib", TFM, "ClassLibrary.Views.pdb")); } [Fact] @@ -163,19 +165,19 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - $""); + $""); Assert.NuspecContains( result, Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"), - @""); + $@""); } Assert.NupkgContains( result, Path.Combine("bin", Configuration, "ClassLibrary.1.0.0.nupkg"), - Path.Combine("lib", "netcoreapp3.0", "ClassLibrary.Views.dll")); + Path.Combine("lib", TFM, "ClassLibrary.Views.dll")); } [Fact] diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PublishIntegrationTest.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PublishIntegrationTest.cs index cebd5de38c..037600112b 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PublishIntegrationTest.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PublishIntegrationTest.cs @@ -434,7 +434,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests var result = await DotnetMSBuild("Publish", "/p:NoBuild=true"); Assert.BuildFailed(result); - Assert.BuildError(result, "MSB3030"); // Could not copy the file "obj/Debug/netcoreapp3.0/SimpleMvc.dll because it couldn't be found. + Assert.BuildError(result, "MSB3030"); // Could not copy the file "obj/Debug/netcoreapp3.1/SimpleMvc.dll because it couldn't be found. Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.dll"); Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.Views.dll"); diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj b/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj index 9f0dab1860..0ae4b051c3 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj @@ -7,7 +7,7 @@ This is also a partial workaround for https://github.com/Microsoft/msbuild/issues/2661 - this project has netcoreapp dependencies that need to be built first. --> - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) true $(DefineConstants);PRESERVE_WORKING_DIRECTORY @@ -86,7 +86,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests static partial void InitializeVariables() { _msBuildPath = @"$(_DesktopMSBuildPath)"; - _microsoftNETCoreApp30PackageVersion = "$(MicrosoftNETCoreApp30PackageVersion)"; + _microsoftNETCoreApp31PackageVersion = "$(MicrosoftNETCoreApp31PackageVersion)"; _microsoftNetCompilersToolsetPackageVersion = "$(MicrosoftNetCompilersToolsetPackageVersion)"; } } diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj index b3c5ef2c7b..2708eb193f 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj +++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version1_X.csproj @@ -1,7 +1,7 @@ - netcoreapp3.0;net461 + $(DefaultNetCoreTargetFramework);net461 true diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj index b3c5ef2c7b..2708eb193f 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj +++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X/Microsoft.AspNetCore.Razor.Test.MvcShim.Version2_X.csproj @@ -1,7 +1,7 @@ - netcoreapp3.0;net461 + $(DefaultNetCoreTargetFramework);net461 true diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim/Microsoft.AspNetCore.Razor.Test.MvcShim.csproj b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim/Microsoft.AspNetCore.Razor.Test.MvcShim.csproj index 868c485056..4b556f73e1 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim/Microsoft.AspNetCore.Razor.Test.MvcShim.csproj +++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Test.MvcShim/Microsoft.AspNetCore.Razor.Test.MvcShim.csproj @@ -1,14 +1,14 @@  - netcoreapp3.0;net461 + $(DefaultNetCoreTargetFramework);net461 true - + diff --git a/src/Razor/test/testassets/AppWithP2PReference/AppWithP2PReference.csproj b/src/Razor/test/testassets/AppWithP2PReference/AppWithP2PReference.csproj index d5034c583f..6102fad181 100644 --- a/src/Razor/test/testassets/AppWithP2PReference/AppWithP2PReference.csproj +++ b/src/Razor/test/testassets/AppWithP2PReference/AppWithP2PReference.csproj @@ -1,11 +1,11 @@ - + $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) diff --git a/src/Razor/test/testassets/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj b/src/Razor/test/testassets/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj index 076d9b77b0..730b0e4988 100644 --- a/src/Razor/test/testassets/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj +++ b/src/Razor/test/testassets/AppWithPackageAndP2PReference/AppWithPackageAndP2PReference.csproj @@ -1,11 +1,11 @@ - + $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) $(MSBuildThisFileDirectory)..\TestPackageRestoreSource\ $(RestoreSources); diff --git a/src/Razor/test/testassets/ClassLibrary/ClassLibrary.csproj b/src/Razor/test/testassets/ClassLibrary/ClassLibrary.csproj index 57ca5669a8..87ec461496 100644 --- a/src/Razor/test/testassets/ClassLibrary/ClassLibrary.csproj +++ b/src/Razor/test/testassets/ClassLibrary/ClassLibrary.csproj @@ -1,5 +1,5 @@ - + $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ @@ -9,7 +9,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) © Microsoft Razor Test Microsoft diff --git a/src/Razor/test/testassets/ClassLibrary2/ClassLibrary2.csproj b/src/Razor/test/testassets/ClassLibrary2/ClassLibrary2.csproj index 8ba54d6c98..0a331a69c0 100644 --- a/src/Razor/test/testassets/ClassLibrary2/ClassLibrary2.csproj +++ b/src/Razor/test/testassets/ClassLibrary2/ClassLibrary2.csproj @@ -1,11 +1,11 @@ - + $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) true @@ -13,7 +13,7 @@ false - + diff --git a/src/Razor/test/testassets/ComponentApp/ComponentApp.csproj b/src/Razor/test/testassets/ComponentApp/ComponentApp.csproj index 68b1028aa0..488b36eb48 100644 --- a/src/Razor/test/testassets/ComponentApp/ComponentApp.csproj +++ b/src/Razor/test/testassets/ComponentApp/ComponentApp.csproj @@ -5,7 +5,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) diff --git a/src/Razor/test/testassets/Directory.Build.props b/src/Razor/test/testassets/Directory.Build.props index c1270c5a7f..fb8728a71e 100644 --- a/src/Razor/test/testassets/Directory.Build.props +++ b/src/Razor/test/testassets/Directory.Build.props @@ -18,7 +18,7 @@ $(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 - + $(RestoreSources); @@ -38,6 +38,9 @@ OutOfProcess + + + $(NoWarn);NU5131 diff --git a/src/Razor/test/testassets/Directory.Build.targets b/src/Razor/test/testassets/Directory.Build.targets index 39f4f47645..4e299bd016 100644 --- a/src/Razor/test/testassets/Directory.Build.targets +++ b/src/Razor/test/testassets/Directory.Build.targets @@ -2,7 +2,7 @@ - $(MicrosoftNETCoreApp30PackageVersion) + $(MicrosoftNETCoreApp31PackageVersion) 99.9 diff --git a/src/Razor/test/testassets/LargeProject/LargeProject.csproj b/src/Razor/test/testassets/LargeProject/LargeProject.csproj index b2b6b1019a..109a8d32bc 100644 --- a/src/Razor/test/testassets/LargeProject/LargeProject.csproj +++ b/src/Razor/test/testassets/LargeProject/LargeProject.csproj @@ -17,7 +17,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) @@ -33,8 +33,8 @@ - + - + diff --git a/src/Razor/test/testassets/MvcWithComponents/MvcWithComponents.csproj b/src/Razor/test/testassets/MvcWithComponents/MvcWithComponents.csproj index 31429c409f..c16ec85c0b 100644 --- a/src/Razor/test/testassets/MvcWithComponents/MvcWithComponents.csproj +++ b/src/Razor/test/testassets/MvcWithComponents/MvcWithComponents.csproj @@ -5,7 +5,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) diff --git a/src/Razor/test/testassets/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj b/src/Razor/test/testassets/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj index eacc72651e..8bebdb3285 100644 --- a/src/Razor/test/testassets/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj +++ b/src/Razor/test/testassets/PackageLibraryDirectDependency/PackageLibraryDirectDependency.csproj @@ -1,5 +1,5 @@ - + $(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\ @@ -9,7 +9,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) © Microsoft Razor Test Microsoft diff --git a/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj b/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj index b7ae27c5e0..ced12b1fa3 100644 --- a/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj +++ b/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj @@ -1,6 +1,6 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) diff --git a/src/Razor/test/testassets/SimpleMvc/SimpleMvc.csproj b/src/Razor/test/testassets/SimpleMvc/SimpleMvc.csproj index 1cde2c2ba5..5a395f6802 100644 --- a/src/Razor/test/testassets/SimpleMvc/SimpleMvc.csproj +++ b/src/Razor/test/testassets/SimpleMvc/SimpleMvc.csproj @@ -5,7 +5,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) diff --git a/src/Razor/test/testassets/SimpleMvcFSharp/SimpleMvcFSharp.fsproj b/src/Razor/test/testassets/SimpleMvcFSharp/SimpleMvcFSharp.fsproj index 611e331385..ef683132a5 100644 --- a/src/Razor/test/testassets/SimpleMvcFSharp/SimpleMvcFSharp.fsproj +++ b/src/Razor/test/testassets/SimpleMvcFSharp/SimpleMvcFSharp.fsproj @@ -5,7 +5,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) diff --git a/src/Razor/test/testassets/SimplePages/SimplePages.csproj b/src/Razor/test/testassets/SimplePages/SimplePages.csproj index 1cde2c2ba5..5a395f6802 100644 --- a/src/Razor/test/testassets/SimplePages/SimplePages.csproj +++ b/src/Razor/test/testassets/SimplePages/SimplePages.csproj @@ -5,7 +5,7 @@ - netcoreapp3.0 + $(DefaultNetCoreTargetFramework) From a2081d584f4b2a0694a88132214df429513a1d26 Mon Sep 17 00:00:00 2001 From: John Luo Date: Sun, 15 Sep 2019 08:05:47 -0700 Subject: [PATCH 03/34] Fix razor tool assembly path (dotnet/aspnetcore-tooling#1138) \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/88cd749f381e5b02e5ed3dd0d9c24f2272fea816 --- .../Microsoft.NET.Sdk.Razor.CodeGeneration.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets index 5cc0be05e9..25ea86a65d 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets @@ -39,7 +39,7 @@ Copyright (c) .NET Foundation. All rights reserved. <_RazorGenerateInputsHash> <_RazorGenerateInputsHashFile>$(IntermediateOutputPath)$(MSBuildProjectName).RazorCoreGenerate.cache - <_RazorToolAssembly Condition="'$(_RazorToolAssembly)'==''">$(RazorSdkDirectoryRoot)tools\$(DefaultNetCoreTargetFramework)\rzc.dll + <_RazorToolAssembly Condition="'$(_RazorToolAssembly)'==''">$(RazorSdkDirectoryRoot)tools\netcoreapp3.1\rzc.dll @@ -112,4 +122,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests + + + + From dfbb36ee1011a3ff58bcb7cab04f6537e56758b6 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Fri, 20 Sep 2019 11:09:22 +0200 Subject: [PATCH 05/34] [Infrastructure] Fix invalid variable names ProcDumpPath -> ProcDumpToolPath _BuildConfiguration -> _BuildConfig\n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/f283e4a7c0d47054c9a178ff0b29f00e68f307d3 --- .../test/IntegrationTests/MSBuildProcessManager.cs | 2 +- .../test/Microsoft.NET.Sdk.Razor.Test.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs index 50bdadf639..97000aa280 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs @@ -159,7 +159,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests .GetCustomAttributes(); var procDumpPath = metadataAttributes - .SingleOrDefault(ama => ama.Key == "ProcDumpPath")?.Value; + .SingleOrDefault(ama => ama.Key == "ProcDumpToolPath")?.Value; if (string.IsNullOrEmpty(procDumpPath)) { diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj b/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj index e99c60292c..0efaf7b8fd 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj @@ -45,7 +45,7 @@ <_Parameter1>ArtifactsLogDir - <_Parameter2>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'log', '$(_BuildConfiguration)')) + <_Parameter2>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'log', '$(_BuildConfig)')) @@ -123,7 +123,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests - + From 66f2aac299a0f52148c9a4dee56c9dcb06bab15d Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Tue, 10 Sep 2019 13:37:39 -0700 Subject: [PATCH 06/34] Integrate Razor LanguageServer (without plugin) into src/Razor. - Added tests for both the language server and the common language server projects. - Updated publish MSBuild bits to publish to `artifacts/LanguageServer/$(Configuration)/TFM` - Updated the language server to be netcoreapp3.0 aspnet/AspNetCoredotnet/aspnetcore-tooling#13494 \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/984c638b37579a4ecdca4abe48fdf59e1f21ac51 --- .../src/DefaultRazorIntermediateNodeLoweringPhase.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/DefaultRazorIntermediateNodeLoweringPhase.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/DefaultRazorIntermediateNodeLoweringPhase.cs index f3180eb618..2e8a0368a7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/DefaultRazorIntermediateNodeLoweringPhase.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/DefaultRazorIntermediateNodeLoweringPhase.cs @@ -1099,8 +1099,6 @@ namespace Microsoft.AspNetCore.Razor.Language if (node.Source != null) { - Debug.Assert(node.Source.Value.FilePath != null); - node.Source = new SourceSpan( node.Source.Value.FilePath, node.Source.Value.AbsoluteIndex, From 5bb36d86f1f8cbcef832f02c671a863288ea47cf Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Thu, 12 Sep 2019 14:27:54 -0700 Subject: [PATCH 07/34] Integrate Razor VSCode extension functional tests into src/Razor. - Added the `.vscode-test` to `.gitignore` because that's the VSCode folder that gets created when dynamically downloading VSCode for CI purposes. - Migrated functional tests to use the non-deprecated VSCode functional testing APIs. This involved creating a runTest file to control downloading VSCode and passing in appropriate parameters as well as creating an index that discovers tests that should be run. - Changed functional tests to operate on the existing Razor testapps (instead of the old ones). - Updated the "default" completion tests to be latest Razor/Blazor. - Added VSCode launch configurations to enable easy debugging via F5. aspnet/AspNetCoredotnet/aspnetcore-tooling#13494 \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/66e4e8a16917a3b986b92d07b054d8f34bf3a979 --- .../test/testassets/MvcWithComponents/Views/Home/Index.cshtml | 2 +- .../test/testassets/MvcWithComponents/Views/_ViewImports.cshtml | 1 + src/Razor/test/testassets/SimpleMvc/Views/_ViewImports.cshtml | 1 + src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml | 1 + src/Razor/test/testassets/SimpleMvc21/Views/_ViewImports.cshtml | 1 + src/Razor/test/testassets/SimpleMvc22/Views/_ViewImports.cshtml | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Razor/test/testassets/MvcWithComponents/Views/Home/Index.cshtml b/src/Razor/test/testassets/MvcWithComponents/Views/Home/Index.cshtml index 8832e1ad15..b824f4e3e8 100644 --- a/src/Razor/test/testassets/MvcWithComponents/Views/Home/Index.cshtml +++ b/src/Razor/test/testassets/MvcWithComponents/Views/Home/Index.cshtml @@ -2,4 +2,4 @@ ViewData["Title"] = "Home Page"; } -Hello world! \ No newline at end of file +Hello world! diff --git a/src/Razor/test/testassets/MvcWithComponents/Views/_ViewImports.cshtml b/src/Razor/test/testassets/MvcWithComponents/Views/_ViewImports.cshtml index 7e47b2893e..b570117928 100644 --- a/src/Razor/test/testassets/MvcWithComponents/Views/_ViewImports.cshtml +++ b/src/Razor/test/testassets/MvcWithComponents/Views/_ViewImports.cshtml @@ -1,3 +1,4 @@ @using MvcWithComponents @using MvcWithComponents.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@inject DateTime TheTime diff --git a/src/Razor/test/testassets/SimpleMvc/Views/_ViewImports.cshtml b/src/Razor/test/testassets/SimpleMvc/Views/_ViewImports.cshtml index da00289ea5..26ba8ed20e 100644 --- a/src/Razor/test/testassets/SimpleMvc/Views/_ViewImports.cshtml +++ b/src/Razor/test/testassets/SimpleMvc/Views/_ViewImports.cshtml @@ -1,3 +1,4 @@ @using SimpleMvc @using SimpleMvc.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@inject DateTime TheTime diff --git a/src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml b/src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml index ab07b6cfbc..4d7ce82c24 100644 --- a/src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml +++ b/src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml @@ -1,2 +1,3 @@ @using SimpleMvc11 @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@inject DateTime TheTime diff --git a/src/Razor/test/testassets/SimpleMvc21/Views/_ViewImports.cshtml b/src/Razor/test/testassets/SimpleMvc21/Views/_ViewImports.cshtml index 477d4ba603..c8d7fa63cc 100644 --- a/src/Razor/test/testassets/SimpleMvc21/Views/_ViewImports.cshtml +++ b/src/Razor/test/testassets/SimpleMvc21/Views/_ViewImports.cshtml @@ -2,3 +2,4 @@ @using SimpleMvc.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @namespace SimpleMvc21 +@inject DateTime TheTime diff --git a/src/Razor/test/testassets/SimpleMvc22/Views/_ViewImports.cshtml b/src/Razor/test/testassets/SimpleMvc22/Views/_ViewImports.cshtml index 477d4ba603..c8d7fa63cc 100644 --- a/src/Razor/test/testassets/SimpleMvc22/Views/_ViewImports.cshtml +++ b/src/Razor/test/testassets/SimpleMvc22/Views/_ViewImports.cshtml @@ -2,3 +2,4 @@ @using SimpleMvc.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @namespace SimpleMvc21 +@inject DateTime TheTime From f6c5aa73c107bed4688e330fad3edc385f74ed58 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Wed, 25 Sep 2019 18:11:35 +0200 Subject: [PATCH 08/34] Capture process dumps for child dotnet processes (dotnet/aspnetcore-tooling#1170) \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/e283d0be151cff29ba2498d930f8b4bae849dc9d --- .../IntegrationTests/MSBuildProcessManager.cs | 74 +++++++++++++++---- 1 file changed, 60 insertions(+), 14 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs index 97000aa280..d5d9ee61de 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs +++ b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildProcessManager.cs @@ -76,6 +76,9 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests var output = new StringBuilder(); var outputLock = new object(); + var diagnostics = new StringBuilder(); + diagnostics.AppendLine("Process execution diagnostics:"); + process.ErrorDataReceived += Process_ErrorDataReceived; process.OutputDataReceived += Process_OutputDataReceived; @@ -83,7 +86,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests process.BeginOutputReadLine(); process.BeginErrorReadLine(); - var timeoutTask = GetTimeoutForProcess(process, timeout); + var timeoutTask = GetTimeoutForProcess(process, timeout, diagnostics); var waitTask = Task.Run(() => { @@ -100,10 +103,19 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests process.WaitForExit(); + string outputString; lock (outputLock) { - outputString = output.ToString(); + // This marks the end of the diagnostic info which we collect when something goes wrong. + diagnostics.AppendLine("Process output:"); + + // Expected output + // Process execution diagnostics: + // ... + // Process output: + outputString = diagnostics.ToString(); + outputString += output.ToString(); } var result = new ProcessResult(process.StartInfo.FileName, process.StartInfo.Arguments, process.ExitCode, outputString); @@ -128,7 +140,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests } } - async Task GetTimeoutForProcess(Process process, TimeSpan? timeout) + async Task GetTimeoutForProcess(Process process, TimeSpan? timeout, StringBuilder diagnostics) { await Task.Delay(timeout.Value); @@ -139,12 +151,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests } if (!process.HasExited) { - var procDumpProcess = await CaptureDump(process); - if (procDumpProcess != null && procDumpProcess.HasExited) - { - Console.WriteLine("ProcDump failed to run."); - procDumpProcess.Kill(); - } + await CollectDumps(process, timeout, diagnostics); // This is a timeout. process.Kill(); @@ -153,7 +160,46 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests throw new TimeoutException($"command '${process.StartInfo.FileName} {process.StartInfo.Arguments}' timed out after {timeout}. Output: {output.ToString()}"); } - async Task CaptureDump(Process process) + static async Task CollectDumps(Process process, TimeSpan? timeout, StringBuilder diagnostics) + { + var procDumpProcess = await CaptureDump(process, timeout, diagnostics); + var allDotNetProcesses = Process.GetProcessesByName("dotnet"); + + var allDotNetChildProcessCandidates = allDotNetProcesses + .Where(p => p.StartTime >= process.StartTime && p.Id != process.Id); + + if (!allDotNetChildProcessCandidates.Any()) + { + diagnostics.AppendLine("Couldn't find any candidate child process."); + foreach (var dotnetProcess in allDotNetProcesses) + { + diagnostics.AppendLine($"Found dotnet process with PID {dotnetProcess.Id} and start time {dotnetProcess.StartTime}."); + } + } + + foreach (var childProcess in allDotNetChildProcessCandidates) + { + diagnostics.AppendLine($"Found child process candidate '{childProcess.Id}'."); + } + + var childrenProcessDumpProcesses = await Task.WhenAll(allDotNetChildProcessCandidates.Select(d => CaptureDump(d, timeout, diagnostics))); + foreach (var childProcess in childrenProcessDumpProcesses) + { + if (childProcess != null && childProcess.HasExited) + { + diagnostics.AppendLine($"ProcDump failed to run for child dotnet process candidate '{process.Id}'."); + childProcess.Kill(); + } + } + + if (procDumpProcess != null && procDumpProcess.HasExited) + { + diagnostics.AppendLine($"ProcDump failed to run for '{process.Id}'."); + procDumpProcess.Kill(); + } + } + + static async Task CaptureDump(Process process, TimeSpan? timeout, StringBuilder diagnostics) { var metadataAttributes = Assembly.GetExecutingAssembly() .GetCustomAttributes(); @@ -163,13 +209,13 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests if (string.IsNullOrEmpty(procDumpPath)) { - Console.WriteLine("ProcDumpPath not defined."); + diagnostics.AppendLine("ProcDumpPath not defined."); return null; } var procDumpExePath = Path.Combine(procDumpPath, "procdump.exe"); if (!File.Exists(procDumpExePath)) { - Console.WriteLine($"Can't find procdump.exe in '{procDumpPath}'."); + diagnostics.AppendLine($"Can't find procdump.exe in '{procDumpPath}'."); return null; } @@ -178,13 +224,13 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests if (string.IsNullOrEmpty(dumpDirectory)) { - Console.WriteLine("ArtifactsLogDir not defined."); + diagnostics.AppendLine("ArtifactsLogDir not defined."); return null; } if (!Directory.Exists(dumpDirectory)) { - Console.WriteLine($"'{dumpDirectory}' does not exist."); + diagnostics.AppendLine($"'{dumpDirectory}' does not exist."); return null; } From c05fca5137e11edd9fc74e0b3c6336473807425e Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Baaskaran Date: Wed, 25 Sep 2019 10:50:13 -0700 Subject: [PATCH 09/34] Remove 1.x tests (dotnet/aspnetcore-tooling#1169) \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/bd71bcf87b1c9a9401454c2df9ebed1f8157f91e --- .../BuildIntegrationTest11.cs | 58 ---------- .../RestoreTestProjects.csproj | 2 - .../test/testassets/SimpleMvc11/Program.cs | 13 --- .../testassets/SimpleMvc11/SimpleMvc11.csproj | 23 ---- .../SimpleMvc11/Views/Home/Index.cshtml | 108 ------------------ .../SimpleMvc11/Views/Shared/_Layout.cshtml | 71 ------------ .../SimpleMvc11/Views/_ViewImports.cshtml | 3 - .../SimpleMvc11/Views/_ViewStart.cshtml | 3 - .../testassets/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 - 14 files changed, 497 deletions(-) delete mode 100644 src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs delete mode 100644 src/Razor/test/testassets/SimpleMvc11/Program.cs delete mode 100644 src/Razor/test/testassets/SimpleMvc11/SimpleMvc11.csproj delete mode 100644 src/Razor/test/testassets/SimpleMvc11/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11/Views/Shared/_Layout.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11/Views/_ViewStart.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11NetFx/Program.cs delete mode 100644 src/Razor/test/testassets/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj delete mode 100644 src/Razor/test/testassets/SimpleMvc11NetFx/Views/Home/Index.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewImports.cshtml delete mode 100644 src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewStart.cshtml diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs b/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.cs deleted file mode 100644 index dc7d470a3c..0000000000 --- a/src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest11.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.Threading.Tasks; -using Microsoft.AspNetCore.Testing; -using Xunit; - -namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests -{ - public class BuildIntegrationTest11 : MSBuildIntegrationTestBase, IClassFixture - { - public BuildIntegrationTest11(BuildServerTestFixture buildServer) - : base(buildServer) - { - } - - [Fact] - [InitializeTestProject("SimpleMvc11")] - public async Task RazorSdk_DoesNotAddCoreRazorConfigurationTo11Projects() - { - var result = await DotnetMSBuild("_IntrospectProjectCapabilityItems"); - - Assert.BuildPassed(result); - Assert.BuildOutputContainsLine(result, "ProjectCapability: DotNetCoreRazor"); - Assert.BuildOutputDoesNotContainLine(result, "ProjectCapability: DotNetCoreRazorConfiguration"); - } - - [Fact (Skip = "https://github.com/aspnet/AspNetCore-Tooling/pull/1122#issuecomment-530976125")] - [InitializeTestProject("SimpleMvc11")] - public async Task RazorSdk_DoesNotBuildViewsForNetCoreApp11Projects() - { - MSBuildIntegrationTestBase.TargetFramework = "netcoreapp1.1"; - var result = await DotnetMSBuild("Build"); - - Assert.BuildPassed(result); - Assert.FileExists(result, OutputPath, "SimpleMvc11.dll"); - Assert.FileExists(result, OutputPath, "SimpleMvc11.pdb"); - Assert.FileDoesNotExist(result, OutputPath, "SimpleMvc11.Views.dll"); - Assert.FileDoesNotExist(result, OutputPath, "SimpleMvc11.Views.pdb"); - } - - [ConditionalFact] - [OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)] - - [InitializeTestProject("SimpleMvc11NetFx")] - public async Task RazorSdk_DoesNotBuildViewsForNetFx11Projects() - { - MSBuildIntegrationTestBase.TargetFramework = "net461"; - var result = await DotnetMSBuild("Build"); - - Assert.BuildPassed(result); - Assert.FileExists(result, OutputPath, "SimpleMvc11NetFx.exe"); - Assert.FileExists(result, OutputPath, "SimpleMvc11NetFx.pdb"); - Assert.FileDoesNotExist(result, OutputPath, "SimpleMvc11NetFx.Views.dll"); - Assert.FileDoesNotExist(result, OutputPath, "SimpleMvc11NetFx.Views.pdb"); - } - } -} diff --git a/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj b/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj index ced12b1fa3..90b54c171b 100644 --- a/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj +++ b/src/Razor/test/testassets/RestoreTestProjects/RestoreTestProjects.csproj @@ -4,8 +4,6 @@ - - diff --git a/src/Razor/test/testassets/SimpleMvc11/Program.cs b/src/Razor/test/testassets/SimpleMvc11/Program.cs deleted file mode 100644 index 5fbbd9ded7..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11/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/testassets/SimpleMvc11/SimpleMvc11.csproj b/src/Razor/test/testassets/SimpleMvc11/SimpleMvc11.csproj deleted file mode 100644 index b1523f9512..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11/SimpleMvc11.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - netcoreapp1.1 - - - - - - - - - All - - - - diff --git a/src/Razor/test/testassets/SimpleMvc11/Views/Home/Index.cshtml b/src/Razor/test/testassets/SimpleMvc11/Views/Home/Index.cshtml deleted file mode 100644 index 00afab6a0c..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11/Views/Home/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/src/Razor/test/testassets/SimpleMvc11/Views/Shared/_Layout.cshtml b/src/Razor/test/testassets/SimpleMvc11/Views/Shared/_Layout.cshtml deleted file mode 100644 index 2172e5e566..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11/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/testassets/SimpleMvc11/Views/_ViewImports.cshtml b/src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml deleted file mode 100644 index 4d7ce82c24..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11/Views/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using SimpleMvc11 -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@inject DateTime TheTime diff --git a/src/Razor/test/testassets/SimpleMvc11/Views/_ViewStart.cshtml b/src/Razor/test/testassets/SimpleMvc11/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045db..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} diff --git a/src/Razor/test/testassets/SimpleMvc11NetFx/Program.cs b/src/Razor/test/testassets/SimpleMvc11NetFx/Program.cs deleted file mode 100644 index 5fbbd9ded7..0000000000 --- a/src/Razor/test/testassets/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/testassets/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj b/src/Razor/test/testassets/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj deleted file mode 100644 index b280ec0c9c..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11NetFx/SimpleMvc11NetFx.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - net461 - - - - - - - - - diff --git a/src/Razor/test/testassets/SimpleMvc11NetFx/Views/Home/Index.cshtml b/src/Razor/test/testassets/SimpleMvc11NetFx/Views/Home/Index.cshtml deleted file mode 100644 index 00afab6a0c..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11NetFx/Views/Home/Index.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/src/Razor/test/testassets/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml b/src/Razor/test/testassets/SimpleMvc11NetFx/Views/Shared/_Layout.cshtml deleted file mode 100644 index 2172e5e566..0000000000 --- a/src/Razor/test/testassets/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/testassets/SimpleMvc11NetFx/Views/_ViewImports.cshtml b/src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewImports.cshtml deleted file mode 100644 index 6f6d009d40..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewImports.cshtml +++ /dev/null @@ -1,2 +0,0 @@ -@using SimpleMvc11NetFx -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewStart.cshtml b/src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045db..0000000000 --- a/src/Razor/test/testassets/SimpleMvc11NetFx/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} From eda950317721b41e9e85b526122f4f36eee3c801 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Wed, 25 Sep 2019 14:17:10 -0700 Subject: [PATCH 10/34] RazorSDK doesn't overwrite ErrorLog \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/aed7bc8ec6ca448178570fd145b50b7e4f7d79c3 --- .../Microsoft.NET.Sdk.Razor.Compilation.targets | 10 +++++++--- .../Microsoft.NET.Sdk.Razor.Component.targets | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets index c74674d432..0a2da72772 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets @@ -35,7 +35,7 @@ Copyright (c) .NET Foundation. All rights reserved. Remove comment above ^ Set TargetType="$(OutputType)" to TargetType="Library" - Razor is always a .dll - + Remove Returns="@(CscCommandLineArgs)" Remove Remove Returns="@(CscCommandLineArgs)" @@ -60,7 +60,7 @@ Copyright (c) .NET Foundation. All rights reserved. Remove additional steps after calling CSC Add our FileWrites after the call to CSC - + Add Condition="'@(RazorCompile)'!=''" as a condition to the RazorCoreCompile target. --> $(MaxSupportedLangVersion) + + $(IntermediateOutputPath)$(RazorTargetName).Compilation.log + + true + + <$(IntermediateOutputPath)$(RazorTargetName).Component.log/RazorComponentErrorLog> + + - Date: Wed, 25 Sep 2019 15:56:03 -0700 Subject: [PATCH 11/34] Responding to Pranav's feedback \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/353a27828e9cd60ba4109830df49f636523269bc --- .../Microsoft.NET.Sdk.Razor.Compilation.targets | 4 ---- .../netstandard2.0/Microsoft.NET.Sdk.Razor.Component.targets | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets index 0a2da72772..540fab290d 100644 --- a/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets +++ b/src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Microsoft.NET.Sdk.Razor.Compilation.targets @@ -117,10 +117,6 @@ Copyright (c) .NET Foundation. All rights reserved. $(MaxSupportedLangVersion) - - $(IntermediateOutputPath)$(RazorTargetName).Compilation.log - - true - - <$(IntermediateOutputPath)$(RazorTargetName).Component.log/RazorComponentErrorLog> - - Date: Fri, 27 Sep 2019 14:22:21 -0700 Subject: [PATCH 12/34] Fix misc attribute content sometimes getting ignored (dotnet/aspnetcore-tooling#1176) \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/8108f500211e9ec7bb578f7d0c709f4cb474d98a --- .../src/Legacy/HtmlMarkupParser.cs | 4 ---- .../CodeGenerationIntegrationTest/Tags.cshtml | 4 ++++ .../Tags_DesignTime.diagnostics.txt | 2 +- .../Tags_DesignTime.ir.txt | 19 +++++++++++++++--- .../Tags_Runtime.codegen.cs | 11 +++++++--- .../Tags_Runtime.diagnostics.txt | 2 +- .../Tags_Runtime.ir.txt | 19 +++++++++++++++--- .../ParsersCanNestRecursively.stree.txt | 4 ++-- .../StopsParsingCodeAfterElseBranch.stree.txt | 4 ++-- ...ingOfAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...EndOfAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...tweenAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...ionInAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...leTransitionInEmail_DoesNotThrow.stree.txt | 4 ++-- ...leTransitionInRegex_DoesNotThrow.stree.txt | 4 ++-- ...WithExpressionBlock_DoesNotThrow.stree.txt | 20 +++++++++---------- ...oubleTransition_EndOfFile_Throws.stree.txt | 2 +- ...ansitionsInAttributeValue_Throws.stree.txt | 4 ++-- .../_WithDoubleTransition1.stree.txt | 4 ++-- .../_WithDoubleTransition2.stree.txt | 4 ++-- ...ithDoubleTransition_DoesNotThrow.stree.txt | 4 ++-- ...arsesDirectiveAttributesAsMarkup.stree.txt | 4 ++-- ...eAttributesWithParameterAsMarkup.stree.txt | 4 ++-- ...taAttributesWithExperimentalFlag.stree.txt | 4 ++-- .../DoubleQuotedLiteralAttribute.stree.txt | 4 ++-- ...eWithWhitespaceSurroundingEquals.stree.txt | 4 ++-- .../MultiPartLiteralAttribute.stree.txt | 4 ++-- .../MultiValueExpressionAttribute.stree.txt | 4 ++-- .../NewLineBetweenAttributes.stree.txt | 8 ++++---- .../NewLinePrecedingAttribute.stree.txt | 4 ++-- .../SimpleExpressionAttribute.stree.txt | 4 ++-- .../SimpleLiteralAttribute.stree.txt | 4 ++-- ...eWithWhitespaceSurroundingEquals.stree.txt | 4 ++-- .../SymbolBoundAttributes1.stree.txt | 4 ++-- .../SymbolBoundAttributes2.stree.txt | 4 ++-- .../SymbolBoundAttributes3.stree.txt | 4 ++-- .../SymbolBoundAttributes4.stree.txt | 4 ++-- .../SymbolBoundAttributes5.stree.txt | 4 ++-- .../SymbolBoundAttributes6.stree.txt | 4 ++-- ...ttributes_BeforeEqualWhitespace1.stree.txt | 8 ++++---- ...ttributes_BeforeEqualWhitespace2.stree.txt | 8 ++++---- ...ttributes_BeforeEqualWhitespace3.stree.txt | 8 ++++---- ...ttributes_BeforeEqualWhitespace4.stree.txt | 8 ++++---- ...ttributes_BeforeEqualWhitespace5.stree.txt | 8 ++++---- ...ttributes_BeforeEqualWhitespace6.stree.txt | 8 ++++---- ...ymbolBoundAttributes_Whitespace1.stree.txt | 8 ++++---- ...ymbolBoundAttributes_Whitespace2.stree.txt | 8 ++++---- ...ymbolBoundAttributes_Whitespace3.stree.txt | 8 ++++---- ...ymbolBoundAttributes_Whitespace4.stree.txt | 8 ++++---- ...ymbolBoundAttributes_Whitespace5.stree.txt | 8 ++++---- ...ymbolBoundAttributes_Whitespace6.stree.txt | 8 ++++---- .../UnquotedLiteralAttribute.stree.txt | 2 +- ...tesWorkWithConditionalAttributes.stree.txt | 4 ++-- ...paceAndNewLinePrecedingAttribute.stree.txt | 4 ++-- ...etInAttributeValueIfDoubleQuoted.stree.txt | 4 ++-- ...etInAttributeValueIfSingleQuoted.stree.txt | 4 ++-- ...shInAttributeValueIfDoubleQuoted.stree.txt | 4 ++-- ...shInAttributeValueIfSingleQuoted.stree.txt | 4 ++-- ...esForwardSlashInAttributeContent.stree.txt | 2 +- .../SupportsTagsWithAttributes.stree.txt | 6 +++--- ...lyHandlesOddlySpacedHTMLElements.stree.txt | 4 ++-- ...hToCodeOnEmailAddressInAttribute.stree.txt | 4 ++-- ...ingOfAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...EndOfAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...tweenAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...ionInAttributeValue_DoesNotThrow.stree.txt | 4 ++-- ...leTransitionInEmail_DoesNotThrow.stree.txt | 4 ++-- ...leTransitionInRegex_DoesNotThrow.stree.txt | 4 ++-- ...WithExpressionBlock_DoesNotThrow.stree.txt | 20 +++++++++---------- ...ansitionsInAttributeValue_Throws.stree.txt | 4 ++-- ...dTagAtEOFErrorsWithIncompleteTag.stree.txt | 2 +- .../ScriptTag_Incomplete.stree.txt | 2 +- ...hToCodeOnEmailAddressInAttribute.stree.txt | 4 ++-- ...acterEncounteredInAttributeValue.stree.txt | 4 ++-- .../AllowsCompatibleTagStructures3.stree.txt | 4 ++-- .../AllowsCompatibleTagStructures5.stree.txt | 4 ++-- .../CanHandleSymbolBoundAttributes1.stree.txt | 4 ++-- .../CanHandleSymbolBoundAttributes2.stree.txt | 4 ++-- .../CanHandleSymbolBoundAttributes3.stree.txt | 4 ++-- .../CanHandleSymbolBoundAttributes4.stree.txt | 4 ++-- .../CanHandleSymbolBoundAttributes5.stree.txt | 4 ++-- .../CanHandleSymbolBoundAttributes7.stree.txt | 4 ++-- ...HandleWithoutEndTagTagStructure2.stree.txt | 4 ++-- ...HandleWithoutEndTagTagStructure4.stree.txt | 4 ++-- ...orEmptyTagHelperBoundAttributes1.stree.txt | 4 ++-- ...rEmptyTagHelperBoundAttributes10.stree.txt | 4 ++-- ...rEmptyTagHelperBoundAttributes11.stree.txt | 8 ++++---- ...rEmptyTagHelperBoundAttributes12.stree.txt | 6 +++--- ...rEmptyTagHelperBoundAttributes13.stree.txt | 4 ++-- ...rEmptyTagHelperBoundAttributes14.stree.txt | 4 ++-- ...orEmptyTagHelperBoundAttributes2.stree.txt | 4 ++-- ...orEmptyTagHelperBoundAttributes3.stree.txt | 4 ++-- ...orEmptyTagHelperBoundAttributes4.stree.txt | 8 ++++---- ...orEmptyTagHelperBoundAttributes5.stree.txt | 8 ++++---- ...orEmptyTagHelperBoundAttributes6.stree.txt | 6 +++--- ...orEmptyTagHelperBoundAttributes7.stree.txt | 6 +++--- ...orEmptyTagHelperBoundAttributes8.stree.txt | 6 +++--- ...orEmptyTagHelperBoundAttributes9.stree.txt | 12 +++++------ ...lformedTagHelpersWithAttributes1.stree.txt | 2 +- ...formedTagHelpersWithAttributes10.stree.txt | 2 +- ...formedTagHelpersWithAttributes11.stree.txt | 4 ++-- ...formedTagHelpersWithAttributes12.stree.txt | 4 ++-- ...formedTagHelpersWithAttributes16.stree.txt | 2 +- ...formedTagHelpersWithAttributes17.stree.txt | 2 +- ...formedTagHelpersWithAttributes19.stree.txt | 2 +- ...lformedTagHelpersWithAttributes2.stree.txt | 4 ++-- ...formedTagHelpersWithAttributes20.stree.txt | 6 +++--- ...lformedTagHelpersWithAttributes3.stree.txt | 2 +- ...lformedTagHelpersWithAttributes4.stree.txt | 4 ++-- ...lformedTagHelpersWithAttributes5.stree.txt | 2 +- ...lformedTagHelpersWithAttributes6.stree.txt | 2 +- ...lformedTagHelpersWithAttributes7.stree.txt | 2 +- ...lformedTagHelpersWithAttributes9.stree.txt | 2 +- ...ForNonStringTagHelperAttributes1.stree.txt | 4 ++-- ...orNonStringTagHelperAttributes10.stree.txt | 12 +++++------ ...orNonStringTagHelperAttributes11.stree.txt | 12 +++++------ ...orNonStringTagHelperAttributes12.stree.txt | 4 ++-- ...ForNonStringTagHelperAttributes2.stree.txt | 4 ++-- ...ForNonStringTagHelperAttributes3.stree.txt | 4 ++-- ...ForNonStringTagHelperAttributes4.stree.txt | 4 ++-- ...ForNonStringTagHelperAttributes5.stree.txt | 4 ++-- ...ForNonStringTagHelperAttributes6.stree.txt | 4 ++-- ...ForNonStringTagHelperAttributes7.stree.txt | 8 ++++---- ...ForNonStringTagHelperAttributes8.stree.txt | 12 +++++------ ...ForNonStringTagHelperAttributes9.stree.txt | 12 +++++------ ...tes_ComponentDirectiveAttributes.stree.txt | 8 ++++---- ...eTreeRewriter_AllowsInvalidHtml5.stree.txt | 4 ++-- ...atesErrorForIncompleteTagHelper1.stree.txt | 4 ++-- ...atesErrorForIncompleteTagHelper4.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks1.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks2.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks3.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks4.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks5.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks6.stree.txt | 8 ++++---- ...plexAttributeTagHelperTagBlocks7.stree.txt | 12 +++++------ ...esOddlySpacedTagHelperTagBlocks1.stree.txt | 8 ++++---- ...esOddlySpacedTagHelperTagBlocks2.stree.txt | 8 ++++---- ...esOddlySpacedTagHelperTagBlocks3.stree.txt | 8 ++++---- ...writer_RewritesScriptTagHelpers5.stree.txt | 8 ++++---- ...writer_RewritesScriptTagHelpers6.stree.txt | 8 ++++---- ...writer_RewritesScriptTagHelpers7.stree.txt | 8 ++++---- ...r_RewritesSelfClosingTagHelpers1.stree.txt | 8 ++++---- ...r_RewritesSelfClosingTagHelpers2.stree.txt | 8 ++++---- ...r_RewritesSelfClosingTagHelpers3.stree.txt | 8 ++++---- ...esTagHelpersWithPlainAttributes1.stree.txt | 8 ++++---- ...esTagHelpersWithPlainAttributes2.stree.txt | 8 ++++---- ...esTagHelpersWithPlainAttributes3.stree.txt | 8 ++++---- ...esTagHelpersWithPlainAttributes4.stree.txt | 12 +++++------ ...gHelpersWithQuotelessAttributes1.stree.txt | 4 ++-- ...gHelpersWithQuotelessAttributes2.stree.txt | 4 ++-- ...gHelpersWithQuotelessAttributes3.stree.txt | 4 ++-- ...gHelpersWithQuotelessAttributes4.stree.txt | 4 ++-- ...gHelpersWithQuotelessAttributes5.stree.txt | 8 ++++---- ...rstandsEmptyAttributeTagHelpers1.stree.txt | 4 ++-- ...rstandsEmptyAttributeTagHelpers2.stree.txt | 4 ++-- ...rstandsEmptyAttributeTagHelpers3.stree.txt | 2 +- ...rstandsEmptyAttributeTagHelpers4.stree.txt | 10 +++++----- ...rstandsEmptyAttributeTagHelpers5.stree.txt | 10 +++++----- ...tandsMinimizedAttributes_Block12.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block13.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block14.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block15.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block20.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block21.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block22.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block23.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block24.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block25.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block26.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block27.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block28.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block29.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block30.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block31.stree.txt | 4 ++-- ...tandsMinimizedAttributes_Block32.stree.txt | 8 ++++---- ...tandsMinimizedAttributes_Block33.stree.txt | 8 ++++---- ...dsMinimizedAttributes_Document12.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document13.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document14.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document15.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document20.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document21.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document22.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document23.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document24.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document25.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document26.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document27.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document28.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document29.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document30.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document31.stree.txt | 4 ++-- ...dsMinimizedAttributes_Document32.stree.txt | 8 ++++---- ...dsMinimizedAttributes_Document33.stree.txt | 8 ++++---- ...partNonStringTagHelperAttributes.stree.txt | 4 ++-- .../AllowsPrefixedTagHelpers10.stree.txt | 4 ++-- .../AllowsPrefixedTagHelpers11.stree.txt | 4 ++-- .../AllowsPrefixedTagHelpers8.stree.txt | 4 ++-- .../AllowsPrefixedTagHelpers9.stree.txt | 4 ++-- ...agInCSharpBlock_WithAttrTextTag1.stree.txt | 4 ++-- ...agInCSharpBlock_WithAttrTextTag2.stree.txt | 4 ++-- ...agInCSharpBlock_WithAttrTextTag3.stree.txt | 4 ++-- ...agInCSharpBlock_WithAttrTextTag4.stree.txt | 6 +++--- ...agInCSharpBlock_WithAttrTextTag5.stree.txt | 4 ++-- ...lperElementOptForIncompleteHTML4.stree.txt | 2 +- ...lperElementOptForIncompleteHTML5.stree.txt | 2 +- ...lperElementOptForIncompleteHTML6.stree.txt | 4 ++-- ...lperElementOptForIncompleteHTML7.stree.txt | 4 ++-- ...tForIncompleteHTMLInCSharpBlock4.stree.txt | 2 +- ...tForIncompleteHTMLInCSharpBlock5.stree.txt | 2 +- ...tForIncompleteHTMLInCSharpBlock6.stree.txt | 2 +- ...tForIncompleteHTMLInCSharpBlock7.stree.txt | 4 ++-- ...tForIncompleteHTMLInCSharpBlock8.stree.txt | 4 ++-- ...rIncompleteTextTagInCSharpBlock3.stree.txt | 2 +- ...rIncompleteTextTagInCSharpBlock4.stree.txt | 2 +- ...rIncompleteTextTagInCSharpBlock5.stree.txt | 4 ++-- ...rIncompleteTextTagInCSharpBlock6.stree.txt | 4 ++-- ...tOptOutCSharp_WithAttributeData1.stree.txt | 4 ++-- ...tOptOutCSharp_WithAttributeData2.stree.txt | 4 ++-- ...tOptOutCSharp_WithAttributeData3.stree.txt | 4 ++-- ...tOptOutCSharp_WithAttributeData4.stree.txt | 6 +++--- ...tOptOutCSharp_WithAttributeData5.stree.txt | 4 ++-- ...entOptOutHTML_WithAttributeData1.stree.txt | 4 ++-- ...entOptOutHTML_WithAttributeData2.stree.txt | 4 ++-- ...entOptOutHTML_WithAttributeData3.stree.txt | 4 ++-- ...entOptOutHTML_WithAttributeData4.stree.txt | 6 +++--- ...entOptOutHTML_WithAttributeData5.stree.txt | 4 ++-- ...ersInInvalidHtmlTypedScriptTags2.stree.txt | 4 ++-- ...ersInInvalidHtmlTypedScriptTags3.stree.txt | 4 ++-- ...ersInInvalidHtmlTypedScriptTags4.stree.txt | 8 ++++---- ...aseSensitiveTagHelpersCorrectly1.stree.txt | 4 ++-- ...aseSensitiveTagHelpersCorrectly2.stree.txt | 4 ++-- ...aseSensitiveTagHelpersCorrectly3.stree.txt | 4 ++-- ...aseSensitiveTagHelpersCorrectly4.stree.txt | 4 ++-- ...aseSensitiveTagHelpersCorrectly5.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly1.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly10.stree.txt | 8 ++++---- ...sCreateTagHelperBlocksCorrectly2.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly3.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly4.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly5.stree.txt | 8 ++++---- ...sCreateTagHelperBlocksCorrectly6.stree.txt | 8 ++++---- ...sCreateTagHelperBlocksCorrectly7.stree.txt | 8 ++++---- ...sCreateTagHelperBlocksCorrectly8.stree.txt | 8 ++++---- ...sCreateTagHelperBlocksCorrectly9.stree.txt | 8 ++++---- ...formedTagHelperBlocksCorrectly10.stree.txt | 8 ++++---- ...lformedTagHelperBlocksCorrectly2.stree.txt | 4 ++-- ...lformedTagHelperBlocksCorrectly3.stree.txt | 8 ++++---- ...lformedTagHelperBlocksCorrectly5.stree.txt | 4 ++-- ...lformedTagHelperBlocksCorrectly6.stree.txt | 8 ++++---- ...lformedTagHelperBlocksCorrectly7.stree.txt | 4 ++-- ...lformedTagHelperBlocksCorrectly8.stree.txt | 8 ++++---- ...lformedTagHelperBlocksCorrectly9.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly10.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly11.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly12.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly13.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly14.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly15.stree.txt | 4 ++-- ...CreateTagHelperBlocksCorrectly16.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly17.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly18.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly19.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly20.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly21.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly22.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly23.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly24.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly25.stree.txt | 8 ++++---- ...CreateTagHelperBlocksCorrectly26.stree.txt | 12 +++++------ ...CreateTagHelperBlocksCorrectly27.stree.txt | 12 +++++------ ...CreateTagHelperBlocksCorrectly28.stree.txt | 12 +++++------ ...CreateTagHelperBlocksCorrectly29.stree.txt | 12 +++++------ ...CreateTagHelperBlocksCorrectly30.stree.txt | 12 +++++------ ...sCreateTagHelperBlocksCorrectly5.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly6.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly7.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly8.stree.txt | 4 ++-- ...sCreateTagHelperBlocksCorrectly9.stree.txt | 4 ++-- ...TagHelpersInHtmlTypedScriptTags1.stree.txt | 4 ++-- ...TagHelpersInHtmlTypedScriptTags2.stree.txt | 12 +++++------ ...TagHelpersInHtmlTypedScriptTags3.stree.txt | 8 ++++---- ...TagHelpersInHtmlTypedScriptTags4.stree.txt | 8 ++++---- 284 files changed, 790 insertions(+), 759 deletions(-) diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs index ed3e705216..8754420217 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs @@ -1149,8 +1149,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy var nameContent = string.Concat(name.LiteralTokens.Nodes.Select(s => s.Content)); if (IsConditionalAttributeName(nameContent)) { - SpanContext.ChunkGenerator = SpanChunkGenerator.Null; // The block chunk generator will render the prefix - // We now have the value prefix which is usually whitespace and/or a quote valuePrefix = OutputAsMarkupLiteral(); @@ -1178,8 +1176,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy if (quote != SyntaxKind.Marker && At(quote)) { AcceptAndMoveNext(); - // Again, block chunk generator will render the suffix - SpanContext.ChunkGenerator = SpanChunkGenerator.Null; valueSuffix = OutputAsMarkupLiteral(); } } diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml index f32934b44a..05c96f57a2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml @@ -2,4 +2,8 @@ } + + ") or have matching end tags ("

Hello

"). If you intended to display a "<" character, use the "<" HTML entity. +TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(9,11): Error RZ1024: End of file or an unexpected character was reached before the "script" 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/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt index c06477366a..b3a19f88d0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt @@ -23,8 +23,21 @@ Document - IntermediateToken - (44:1,40 [15] Tags.cshtml) - Html - CSharpCode - (59:1,55 [2] Tags.cshtml) IntermediateToken - (59:1,55 [2] Tags.cshtml) - CSharp - \n - HtmlContent - (64:3,0 [20] Tags.cshtml) + 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 - (91:4,25 [6] Tags.cshtml) - Html - \n + IntermediateToken - (97:5,4 [5] Tags.cshtml) - Html - <%var + HtmlAttribute - (102:5,9 [4] Tags.cshtml) - x = - + HtmlAttribute - (106:5,13 [9] Tags.cshtml) - window = - + HtmlContent - (115:5,22 [41] Tags.cshtml) + IntermediateToken - (115:5,22 [7] Tags.cshtml) - Html - = null% + IntermediateToken - (122:5,29 [1] Tags.cshtml) - Html - > + IntermediateToken - (123:5,30 [2] Tags.cshtml) - Html - \n + IntermediateToken - (125:6,0 [9] 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", @"42fb758ed87c3709cfb3f3aeff7a9cf8d242b74c", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")] + [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"75edd5542ddb6f78ab6a4d309bb3525a99ecfa55", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")] public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime { #pragma warning disable 1998 @@ -13,7 +13,12 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles { WriteLiteral(" \r\n"); - WriteLiteral("\r\n\r\n <%var"); + BeginWriteAttribute("x", " x =", 102, "", 106, 0); + EndWriteAttribute(); + BeginWriteAttribute("window", " window =", 106, "", 115, 0); + EndWriteAttribute(); + WriteLiteral("= null%>\r\n\r\n\r\n") or have matching end tags ("

Hello

"). If you intended to display a "<" character, use the "<" HTML entity. +TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(9,11): Error RZ1024: End of file or an unexpected character was reached before the "script" 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/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt index 38757651f0..f50d573ada 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt @@ -20,8 +20,21 @@ Document - 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 [20] Tags.cshtml) + 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 - (91:4,25 [6] Tags.cshtml) - Html - \n + IntermediateToken - (97:5,4 [5] Tags.cshtml) - Html - <%var + HtmlAttribute - (102:5,9 [4] Tags.cshtml) - x = - + HtmlAttribute - (106:5,13 [9] Tags.cshtml) - window = - + HtmlContent - (115:5,22 [41] Tags.cshtml) + IntermediateToken - (115:5,22 [7] Tags.cshtml) - Html - = null% + IntermediateToken - (122:5,29 [1] Tags.cshtml) - Html - > + IntermediateToken - (123:5,30 [2] Tags.cshtml) - Html - \n + IntermediateToken - (125:6,0 [9] Tags.cshtml) - Html - + IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n + IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html - - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [200..201)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [200..201)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [201..257)::56 MarkupDynamicAttributeValue - [201..257)::56 - [@Html.ActionUrl("Products", "Detail", new { id = p.Id })] @@ -139,7 +139,7 @@ RazorDocument - [0..352)::352 - [@foreach(var c in db.Categories) {LF Whitespace;[ ]; RightBrace;[}]; RightParenthesis;[)]; - MarkupTextLiteral - [257..258)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [257..258)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [259..259)::0 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt index 6ea3f05e53..f4dfa89174 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt @@ -159,14 +159,14 @@ RazorDocument - [0..314)::314 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" }) MarkupTextLiteral - [262..263)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; Equals;[=]; - MarkupTextLiteral - [264..266)::2 - [ "] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [269..270)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMinimizedAttributeBlock - [270..273)::3 - [ })] MarkupTextLiteral - [270..271)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt index 7f968fcc3f..b08e365411 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..23)::23 - [@{}] MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..18)::5 MarkupBlock - [13..15)::2 @@ -32,7 +32,7 @@ RazorDocument - [0..23)::23 - [@{}] MarkupLiteralAttributeValue - [15..18)::3 - [def] MarkupTextLiteral - [15..18)::3 - [def] - Gen - SpanEditHandler;Accepts:Any Text;[def]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [19..20)::1 MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt index 931cd0b1e2..439763c3fb 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..23)::23 - [@{}] MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..18)::5 MarkupLiteralAttributeValue - [13..16)::3 - [abc] @@ -32,7 +32,7 @@ RazorDocument - [0..23)::23 - [@{}] Transition;[@]; MarkupEphemeralTextLiteral - [17..18)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [19..20)::1 MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt index 0e56c91bea..b32d5a6822 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..28)::28 - [@{}] MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..23)::10 MarkupLiteralAttributeValue - [13..16)::3 - [abc] @@ -38,7 +38,7 @@ RazorDocument - [0..28)::28 - [@{}] Whitespace;[ ]; MarkupTextLiteral - [20..23)::3 - [def] - Gen - SpanEditHandler;Accepts:Any Text;[def]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [24..25)::1 MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt index aea355dd25..9a403936c1 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..20)::20 - [@{}] MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..15)::2 MarkupBlock - [13..15)::2 @@ -29,7 +29,7 @@ RazorDocument - [0..20)::20 - [@{}] Transition;[@]; MarkupEphemeralTextLiteral - [14..15)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [16..17)::1 MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt index 440b6e0f7b..480eaf7a51 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..45)::45 - [@{}] MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..40)::27 MarkupLiteralAttributeValue - [13..24)::11 - [abc@def.com] @@ -46,7 +46,7 @@ RazorDocument - [0..45)::45 - [@{}] Transition;[@]; MarkupEphemeralTextLiteral - [39..40)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [41..42)::1 MarkupTextLiteral - [41..42)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt index 071e88d493..3f25fa1782 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..118)::118 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [13..113)::100 MarkupLiteralAttributeValue - [13..45)::32 - [/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+] @@ -77,7 +77,7 @@ RazorDocument - [0..118)::118 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [113..114)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [114..115)::1 MarkupTextLiteral - [114..115)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt index 06b8e19b9b..9b4efd9401 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..21)::8 MarkupBlock - [13..15)::2 @@ -47,7 +47,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + 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 @@ -55,7 +55,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [28..49)::21 MarkupDynamicAttributeValue - [28..34)::6 - [@(2+3)] @@ -93,7 +93,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [49..50)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [50..72)::22 - [ baz='@DateTime.Now@@'] MarkupTextLiteral - [50..51)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -101,7 +101,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [56..71)::15 MarkupDynamicAttributeValue - [56..69)::13 - [@DateTime.Now] @@ -121,7 +121,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [71..72)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [72..95)::23 - [ bat='@DateTime.Now @@'] MarkupTextLiteral - [72..73)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -129,7 +129,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [77..78)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [78..94)::16 MarkupDynamicAttributeValue - [78..91)::13 - [@DateTime.Now] @@ -150,7 +150,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [94..95)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [95..117)::22 - [ zoo='@@@DateTime.Now'] MarkupTextLiteral - [95..96)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -158,7 +158,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [100..101)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [101..116)::15 MarkupBlock - [101..103)::2 @@ -180,7 +180,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [116..117)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [117..118)::1 MarkupTextLiteral - [117..118)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt index 56adc1414b..da26fe2d8f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..15)::15 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..15)::2 MarkupBlock - [13..15)::2 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt index c724b78d64..b869f26632 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..21)::21 - [@{}] MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..16)::3 MarkupDynamicAttributeValue - [13..14)::1 - [@] @@ -46,7 +46,7 @@ RazorDocument - [0..21)::21 - [@{}] CSharpCodeBlock - [16..16)::0 CSharpExpressionLiteral - [16..16)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 Marker;[]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [17..18)::1 MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt index 48df1c0bfc..bd38826bb7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt @@ -29,7 +29,7 @@ RazorDocument - [0..30)::30 - [@section s {}] MarkupTextLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [23..25)::2 MarkupBlock - [23..25)::2 @@ -37,7 +37,7 @@ RazorDocument - [0..30)::30 - [@section s {}] Transition;[@]; MarkupEphemeralTextLiteral - [24..25)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [26..27)::1 MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt index 2659456d6f..2bbe5cc9d9 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt @@ -29,7 +29,7 @@ RazorDocument - [0..44)::44 - [@section s {}] MarkupTextLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [23..39)::16 MarkupDynamicAttributeValue - [23..36)::13 - [@DateTime.Now] @@ -50,7 +50,7 @@ RazorDocument - [0..44)::44 - [@section s {}] Transition;[@]; MarkupEphemeralTextLiteral - [38..39)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [40..41)::1 MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt index 63dbd49360..bbd0281f2f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt @@ -42,7 +42,7 @@ RazorDocument - [0..75)::75 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @

- SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [52..53)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [52..53)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [53..55)::2 MarkupBlock - [53..55)::2 @@ -50,7 +50,7 @@ RazorDocument - [0..75)::75 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @

- SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTextLiteral - [57..62)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt index 4cbebe5321..e8c4ec1095 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt @@ -11,7 +11,7 @@ RazorDocument - [0..27)::27 - [] Transition;[@]; Text;[class]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [14..18)::4 MarkupDynamicAttributeValue - [14..18)::4 - [@foo] @@ -24,7 +24,7 @@ RazorDocument - [0..27)::27 - [] 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 + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [20..27)::7 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt index cc833ddb21..4742d0f6c3 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt @@ -11,7 +11,7 @@ RazorDocument - [0..33)::33 - [] Transition;[@]; Text;[class:param]; Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [20..24)::4 MarkupDynamicAttributeValue - [20..24)::4 - [@foo] @@ -24,7 +24,7 @@ RazorDocument - [0..33)::33 - [] 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 + MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [26..33)::7 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt index 91ef6c8bd3..dcab17b569 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..32)::32 - [@{}] MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any Text;[data-foo]; Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [18..22)::4 MarkupDynamicAttributeValue - [18..22)::4 - [@foo] @@ -34,7 +34,7 @@ RazorDocument - [0..32)::32 - [@{}] 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 + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [24..31)::7 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt index eaab6eb162..522918f3b3 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..27)::27 - [@{}] MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [11..22)::11 MarkupLiteralAttributeValue - [11..14)::3 - [Foo] @@ -37,7 +37,7 @@ RazorDocument - [0..27)::27 - [@{}] Whitespace;[ ]; MarkupTextLiteral - [19..22)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any Text;[Baz]; - MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [23..24)::1 MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt index da6e6fd85b..59949b3f82 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt @@ -24,7 +24,7 @@ RazorDocument - [0..26)::26 - [@{}] Whitespace;[ ]; NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [13..17)::4 - [ LF'] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [13..17)::4 - [ LF'] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; NewLine;[LF]; SingleQuote;[']; @@ -39,7 +39,7 @@ RazorDocument - [0..26)::26 - [@{}] 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 + MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [22..23)::1 MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt index 32849f4eed..449c6e679d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..27)::27 - [@{}] MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..22)::11 MarkupLiteralAttributeValue - [11..14)::3 - [Foo] @@ -37,7 +37,7 @@ RazorDocument - [0..27)::27 - [@{}] Whitespace;[ ]; MarkupTextLiteral - [19..22)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any Text;[Baz]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [23..24)::1 MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt index 810f3a08c7..9a528190d3 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..29)::29 - [@{}] MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..24)::13 MarkupDynamicAttributeValue - [11..15)::4 - [@foo] @@ -51,7 +51,7 @@ RazorDocument - [0..29)::29 - [@{}] 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 + MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [25..26)::1 MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt index 91de5c77b1..9284b6d6e4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..32)::32 - [@{}] MarkupTextLiteral - [6..10)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [16..28)::12 - [LFabcd='Bar'] MarkupTextLiteral - [16..18)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any @@ -35,13 +35,13 @@ RazorDocument - [0..32)::32 - [@{}] MarkupTextLiteral - [18..22)::4 - [abcd] - Gen - SpanEditHandler;Accepts:Any Text;[abcd]; Equals;[=]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [28..29)::1 MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt index 219a8eaa05..c50f1edec6 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..20)::20 - [@{}] MarkupTextLiteral - [6..10)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [16..17)::1 MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt index 87ce1cb744..f62fcea9b0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..20)::20 - [@{}] MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..15)::4 MarkupDynamicAttributeValue - [11..15)::4 - [@foo] @@ -34,7 +34,7 @@ RazorDocument - [0..20)::20 - [@{}] 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 + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [16..17)::1 MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt index 243a97aba5..71e57bd7e4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..19)::19 - [@{}] MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [15..16)::1 MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt index 4633a61d10..3363750b09 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt @@ -24,7 +24,7 @@ RazorDocument - [0..27)::27 - [@{}] Whitespace;[ ]; NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [14..19)::5 - [ LF'] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [14..19)::5 - [ LF'] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; NewLine;[LF]; SingleQuote;[']; @@ -32,7 +32,7 @@ RazorDocument - [0..27)::27 - [@{}] MarkupLiteralAttributeValue - [19..22)::3 - [Foo] MarkupTextLiteral - [19..22)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any Text;[Foo]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [23..24)::1 MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt index 6a0b8855a0..dc163ac41b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..21)::21 - [@{}] Text;[item]; RightBracket;[]]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [17..18)::1 MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt index 55515d7460..b35f003282 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..22)::22 - [@{}] LeftBracket;[[]; Text;[(item,]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [18..19)::1 MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt index 7e9f79e40f..14dbd17409 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..22)::22 - [@{}] MarkupTextLiteral - [5..12)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any Text;[(click)]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [18..19)::1 MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt index cc0ee42338..b7b93fab26 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..23)::23 - [@{}] MarkupTextLiteral - [5..13)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any Text;[(^click)]; Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [19..20)::1 MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt index 2bceb1e701..51a3ab853e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..25)::25 - [@{}] MarkupTextLiteral - [5..15)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any Text;[*something]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [21..22)::1 MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt index 42409d68bb..c257aeddef 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..21)::21 - [@{}] MarkupTextLiteral - [5..11)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any Text;[#local]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [17..18)::1 MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt index 948765f401..2dd3fffe2c 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt @@ -25,13 +25,13 @@ RazorDocument - [0..38)::38 - [@{}] MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [19..34)::15 - [ [item]=LF'Bar'] MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -41,14 +41,14 @@ RazorDocument - [0..38)::38 - [@{}] Text;[item]; RightBracket;[]]; Equals;[=]; - MarkupTextLiteral - [27..30)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [34..35)::1 MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt index f4752e38b0..c020e7c836 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt @@ -24,13 +24,13 @@ RazorDocument - [0..40)::40 - [@{}] MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [20..36)::16 - [ [(item,=LF'Bar'] MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -39,14 +39,14 @@ RazorDocument - [0..40)::40 - [@{}] LeftBracket;[[]; Text;[(item,]; Equals;[=]; - MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [36..37)::1 MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt index adfbf037c6..403687e9a1 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..40)::40 - [@{}] MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [20..36)::16 - [ (click)=LF'Bar'] MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -37,14 +37,14 @@ RazorDocument - [0..40)::40 - [@{}] MarkupTextLiteral - [21..28)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any Text;[(click)]; Equals;[=]; - MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [36..37)::1 MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt index 14b11adff4..3a677aa3db 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..42)::42 - [@{}] MarkupTextLiteral - [13..15)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [21..38)::17 - [ (^click)=LF'Bar'] MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -37,14 +37,14 @@ RazorDocument - [0..42)::42 - [@{}] MarkupTextLiteral - [22..30)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any Text;[(^click)]; Equals;[=]; - MarkupTextLiteral - [31..34)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [38..39)::1 MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt index 400be0767b..4b9f7e3f7b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..46)::46 - [@{}] MarkupTextLiteral - [15..17)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [23..42)::19 - [ *something=LF'Bar'] MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -37,14 +37,14 @@ RazorDocument - [0..46)::46 - [@{}] MarkupTextLiteral - [24..34)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any Text;[*something]; Equals;[=]; - MarkupTextLiteral - [35..38)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [42..43)::1 MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt index 789dfc7621..bf93ad7e28 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..38)::38 - [@{}] MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any NewLine;[LF]; Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [19..34)::15 - [ #local=LF'Bar'] MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -37,14 +37,14 @@ RazorDocument - [0..38)::38 - [@{}] MarkupTextLiteral - [20..26)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any Text;[#local]; Equals;[=]; - MarkupTextLiteral - [27..30)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [34..35)::1 MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt index 627579c898..241683bef1 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace1.stree.txt @@ -25,13 +25,13 @@ RazorDocument - [0..40)::40 - [@{}] Text;[item]; RightBracket;[]]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -42,13 +42,13 @@ RazorDocument - [0..40)::40 - [@{}] Text;[item]; RightBracket;[]]; Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [36..37)::1 MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt index 49cff6166b..993f446d3e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace2.stree.txt @@ -24,13 +24,13 @@ RazorDocument - [0..42)::42 - [@{}] LeftBracket;[[]; Text;[(item,]; Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -40,13 +40,13 @@ RazorDocument - [0..42)::42 - [@{}] LeftBracket;[[]; Text;[(item,]; Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [38..39)::1 MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt index bb34ae31da..09be6b80eb 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace3.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..42)::42 - [@{}] MarkupTextLiteral - [9..16)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any Text;[(click)]; Equals;[=]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -38,13 +38,13 @@ RazorDocument - [0..42)::42 - [@{}] MarkupTextLiteral - [25..32)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any Text;[(click)]; Equals;[=]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [38..39)::1 MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt index 00eddb322f..9024fc2d73 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace4.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..44)::44 - [@{}] MarkupTextLiteral - [9..17)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any Text;[(^click)]; Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -38,13 +38,13 @@ RazorDocument - [0..44)::44 - [@{}] MarkupTextLiteral - [26..34)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any Text;[(^click)]; Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [40..41)::1 MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt index f832c6c058..6ab9b95ff0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace5.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..48)::48 - [@{}] MarkupTextLiteral - [9..19)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any Text;[*something]; Equals;[=]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -38,13 +38,13 @@ RazorDocument - [0..48)::48 - [@{}] MarkupTextLiteral - [28..38)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any Text;[*something]; Equals;[=]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [43..44)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [44..45)::1 MarkupTextLiteral - [44..45)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt index 5b0311ff46..d60bd00437 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_Whitespace6.stree.txt @@ -23,13 +23,13 @@ RazorDocument - [0..40)::40 - [@{}] MarkupTextLiteral - [9..15)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any Text;[#local]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -38,13 +38,13 @@ RazorDocument - [0..40)::40 - [@{}] MarkupTextLiteral - [24..30)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any Text;[#local]; Equals;[=]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [36..37)::1 MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt index 2e77374d79..f080505b4b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/UnquotedLiteralAttribute.stree.txt @@ -23,7 +23,7 @@ RazorDocument - [0..25)::25 - [@{}] Equals;[=]; GenericBlock - [10..13)::3 MarkupLiteralAttributeValue - [10..13)::3 - [Foo] - MarkupTextLiteral - [10..13)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..13)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any Text;[Foo]; MarkupMinimizedAttributeBlock - [13..17)::4 - [ Bar] MarkupTextLiteral - [13..14)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt index 40509adc08..6d3e5ff327 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/VirtualPathAttributesWorkWithConditionalAttributes.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..30)::30 - [@{}] MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..25)::14 MarkupDynamicAttributeValue - [11..15)::4 - [@foo] @@ -43,7 +43,7 @@ RazorDocument - [0..30)::30 - [@{}] Text;[Foo]; ForwardSlash;[/]; Text;[Bar]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [26..27)::1 MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt index 0c757c152f..c0f11eea56 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/WhitespaceAndNewLinePrecedingAttribute.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..22)::22 - [@{}] MarkupTextLiteral - [8..12)::4 - [href] - Gen - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [18..19)::1 MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt index 9e2ebb7588..032272b7d4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfDoubleQuoted.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..29)::29 - [@{}] MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any Text;[baz]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [19..20)::1 MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt index c99bb7f478..167959449b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsCloseAngleBracketInAttributeValueIfSingleQuoted.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..29)::29 - [@{}] MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any Text;[baz]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [19..20)::1 MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt index b3bf3e616d..71b793bf6f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfDoubleQuoted.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..33)::33 - [@{}] MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any Text;[baz]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt index 5881782048..91929b7c24 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/AllowsSlashInAttributeValueIfSingleQuoted.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..33)::33 - [@{}] MarkupTextLiteral - [12..15)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any Text;[baz]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [20..26)::6 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt index 4083296791..769a3401e6 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/HandlesForwardSlashInAttributeContent.stree.txt @@ -29,7 +29,7 @@ RazorDocument - [0..20)::20 - [@{

}] Equals;[=]; GenericBlock - [13..16)::3 MarkupLiteralAttributeValue - [13..16)::3 - [foo] - MarkupTextLiteral - [13..16)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [13..16)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; MarkupMiscAttributeContent - [16..17)::1 MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt index 21916ea67e..cec5e67cac 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlBlockTest/SupportsTagsWithAttributes.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..51)::51 - [@{ - SpanEditHandler;Accepts:Any Text;[bar]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupElement - [17..44)::27 @@ -47,7 +47,7 @@ RazorDocument - [0..51)::51 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [32..36)::4 - [zork] - Gen - SpanEditHandler;Accepts:Any Text;[zork]; ForwardSlash;[/]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt index d407c11ec6..22a277385d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/CorrectlyHandlesOddlySpacedHTMLElements.stree.txt @@ -20,14 +20,14 @@ RazorDocument - [0..39)::39 - [

] MarkupTextLiteral - [14..15)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; Equals;[=]; - MarkupTextLiteral - [16..18)::2 - [ '] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTextLiteral - [23..28)::5 - [ Foo ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt index 77310407c8..e311d83d19 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/DoesNotSwitchToCodeOnEmailAddressInAttribute.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..51)::51 - [Email me - SpanEditHandler;Accepts:Any Text;[href]; Equals;[=]; - MarkupTextLiteral - [8..9)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [37..38)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [39..47)::8 - [Email me] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt index 0fe538762c..22b8491406 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..22)::22 - [{}] MarkupTextLiteral - [7..10)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [12..17)::5 MarkupBlock - [12..14)::2 @@ -23,7 +23,7 @@ RazorDocument - [0..22)::22 - [{}] MarkupLiteralAttributeValue - [14..17)::3 - [def] MarkupTextLiteral - [14..17)::3 - [def] - Gen - SpanEditHandler;Accepts:Any Text;[def]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [18..19)::1 MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt index 10f6f191b0..cdda1cd2ba 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..22)::22 - [{}] MarkupTextLiteral - [7..10)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [12..17)::5 MarkupLiteralAttributeValue - [12..15)::3 - [abc] @@ -23,7 +23,7 @@ RazorDocument - [0..22)::22 - [{}] Transition;[@]; MarkupEphemeralTextLiteral - [16..17)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [18..19)::1 MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt index 89e33f24f2..4eb0a63e06 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..27)::27 - [{}] MarkupTextLiteral - [7..10)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [12..22)::10 MarkupLiteralAttributeValue - [12..15)::3 - [abc] @@ -29,7 +29,7 @@ RazorDocument - [0..27)::27 - [{}] Whitespace;[ ]; MarkupTextLiteral - [19..22)::3 - [def] - Gen - SpanEditHandler;Accepts:Any Text;[def]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [23..24)::1 MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt index 769eb56d25..b0b9484139 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..19)::19 - [{}] MarkupTextLiteral - [7..10)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [12..14)::2 MarkupBlock - [12..14)::2 @@ -20,7 +20,7 @@ RazorDocument - [0..19)::19 - [{}] Transition;[@]; MarkupEphemeralTextLiteral - [13..14)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [15..16)::1 MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt index fef5ae37c3..0554b2d0c4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..44)::44 - [{}] MarkupTextLiteral - [7..10)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [12..39)::27 MarkupLiteralAttributeValue - [12..23)::11 - [abc@def.com] @@ -37,7 +37,7 @@ RazorDocument - [0..44)::44 - [{}] Transition;[@]; MarkupEphemeralTextLiteral - [38..39)::1 - [@] - Gen - SpanEditHandler;Accepts:None Transition;[@]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [40..41)::1 MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt index ad65481c31..4b1d4fc6db 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..117)::117 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [12..112)::100 MarkupLiteralAttributeValue - [12..44)::32 - [/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+] @@ -68,7 +68,7 @@ RazorDocument - [0..117)::117 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [112..113)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [113..114)::1 MarkupTextLiteral - [113..114)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt index b8f69cb320..2305c82335 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [12..20)::8 MarkupBlock - [12..14)::2 @@ -38,7 +38,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [21..49)::28 - [ bar='@(2+3)@@@DateTime.Now'] MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -46,7 +46,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [27..48)::21 MarkupDynamicAttributeValue - [27..33)::6 - [@(2+3)] @@ -84,7 +84,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [48..49)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [49..71)::22 - [ baz='@DateTime.Now@@'] MarkupTextLiteral - [49..50)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -92,7 +92,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [54..55)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [55..70)::15 MarkupDynamicAttributeValue - [55..68)::13 - [@DateTime.Now] @@ -112,7 +112,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [70..71)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [71..94)::23 - [ bat='@DateTime.Now @@'] MarkupTextLiteral - [71..72)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -120,7 +120,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [76..77)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [77..93)::16 MarkupDynamicAttributeValue - [77..90)::13 - [@DateTime.Now] @@ -141,7 +141,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [93..94)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [94..116)::22 - [ zoo='@@@DateTime.Now'] MarkupTextLiteral - [94..95)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -149,7 +149,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [99..100)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [100..115)::15 MarkupBlock - [100..102)::2 @@ -171,7 +171,7 @@ RazorDocument - [0..120)::120 - [{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [115..116)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [116..117)::1 MarkupTextLiteral - [116..117)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt index 731fbdb8e9..9c85cd9623 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlDocumentTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..18)::18 - [] MarkupTextLiteral - [6..9)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any Text;[foo]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..14)::3 MarkupDynamicAttributeValue - [11..12)::1 - [@] @@ -35,7 +35,7 @@ RazorDocument - [0..18)::18 - [] CSharpCodeBlock - [14..14)::0 CSharpExpressionLiteral - [14..14)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14 Marker;[]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [15..16)::1 MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.stree.txt index d60cf69092..d82b4f623f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlErrorTest/WithUnfinishedTagAtEOFErrorsWithIncompleteTag.stree.txt @@ -23,7 +23,7 @@ RazorDocument - [0..14)::14 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..14)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any Text;[baz]; CloseAngle;[]; RazorMetaCode - [14..14)::0 - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt index 91b0d16085..ba558cdc92 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlTagsTest/ScriptTag_Incomplete.stree.txt @@ -1,7 +1,7 @@ RazorDocument - [0..13)::13 - [] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt index 81f89f3081..e6e4a4c0ac 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesScriptTagHelpers7.stree.txt @@ -18,7 +18,7 @@ RazorDocument - [0..77)::77 - [

Hello ] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt index cdd8993f77..8c00dcb65d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers1.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..36)::36 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -24,13 +24,13 @@ RazorDocument - [0..36)::36 - [

] MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [33..34)::1 MarkupTextLiteral - [33..34)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt index 1b96cc1caa..ed266cc908 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers2.stree.txt @@ -18,13 +18,13 @@ RazorDocument - [0..55)::55 - [

Hello

Wor MarkupTextLiteral - [12..17)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -32,13 +32,13 @@ RazorDocument - [0..55)::55 - [

Hello

Wor MarkupTextLiteral - [24..29)::5 - [style] - Gen - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [41..42)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [42..43)::1 MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt index f2e68f8dfa..af795e12c4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesSelfClosingTagHelpers3.stree.txt @@ -12,13 +12,13 @@ RazorDocument - [0..52)::52 - [Hello

Wo MarkupTextLiteral - [8..13)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [18..19)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [19..20)::1 MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -37,13 +37,13 @@ RazorDocument - [0..52)::52 - [Hello

Wo MarkupTextLiteral - [26..31)::5 - [style] - Gen - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [43..44)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [44..45)::1 MarkupTextLiteral - [44..45)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt index 1f1c00012e..29e97ff837 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes1.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..38)::38 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -24,13 +24,13 @@ RazorDocument - [0..38)::38 - [

] MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTagHelperEndTag - [34..38)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt index bed786ce0b..9a4a238ea7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes2.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..49)::49 - [

Hello World

MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -24,13 +24,13 @@ RazorDocument - [0..49)::49 - [

Hello World

MarkupTextLiteral - [15..20)::5 - [style] - Gen - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [34..45)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt index 3366d7ed09..ddb55a3923 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes3.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..56)::56 - [

Hello

Wo MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [13..14)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [15..20)::5 - [Hello] - Gen - SpanEditHandler;Accepts:Any @@ -38,13 +38,13 @@ RazorDocument - [0..56)::56 - [

Hello

Wo MarkupTextLiteral - [28..33)::5 - [style] - Gen - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [34..35)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [45..46)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [47..52)::5 - [World] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt index e3e248f40b..591365bb3e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithPlainAttributes4.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..99)::99 - [

Hello World - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -24,13 +24,13 @@ RazorDocument - [0..99)::99 - [

Hello World - SpanEditHandler;Accepts:Any Text;[style]; Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [32..33)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [34..46)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any @@ -48,13 +48,13 @@ RazorDocument - [0..99)::99 - [

Hello World - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [60..61)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [64..65)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [66..86)::20 - [inside of strong tag] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt index dc9e705e9f..2ce0880bef 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes1.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..56)::56 - [

- SpanEditHandler;Accepts:Any + 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 @@ -41,7 +41,7 @@ RazorDocument - [0..56)::56 - [

- SpanEditHandler;Accepts:Any + MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any Text;[color:red;]; CloseAngle;[>]; MarkupTagHelperEndTag - [52..56)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt index f609519290..e60c28b9dc 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes2.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..67)::67 - [

- SpanEditHandler;Accepts:Any + 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 @@ -41,7 +41,7 @@ RazorDocument - [0..67)::67 - [

- SpanEditHandler;Accepts:Any + MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any Text;[color:red;]; CloseAngle;[>]; MarkupTextLiteral - [52..63)::11 - [Hello World] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt index 725028c4d2..613e9fd565 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes3.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..69)::69 - [

- SpanEditHandler;Accepts:Any + 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 @@ -41,7 +41,7 @@ RazorDocument - [0..69)::69 - [

- SpanEditHandler;Accepts:Any + MarkupTextLiteral - [41..46)::5 - [color] - Gen - SpanEditHandler;Accepts:Any Text;[color]; MarkupBlock - [46..48)::2 MarkupTextLiteral - [46..47)::1 - [@] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt index 8ff07ec1ed..146dc1b816 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes4.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..96)::96 - [

Hello

- SpanEditHandler;Accepts:Any + 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 @@ -55,7 +55,7 @@ RazorDocument - [0..96)::96 - [

Hello

- SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt index 4c8ad505c1..a84353c61f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/TagHelperParseTreeRewriter_RewritesTagHelpersWithQuotelessAttributes5.stree.txt @@ -12,7 +12,7 @@ RazorDocument - [0..117)::117 - [

- SpanEditHandler;Accepts:Any + 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 @@ -41,7 +41,7 @@ RazorDocument - [0..117)::117 - [

- SpanEditHandler;Accepts:Any + MarkupTextLiteral - [41..51)::10 - [color:red;] - Gen - SpanEditHandler;Accepts:Any Text;[color:red;]; CloseAngle;[>]; MarkupTextLiteral - [52..64)::12 - [Hello World ] - Gen - SpanEditHandler;Accepts:Any @@ -59,13 +59,13 @@ RazorDocument - [0..117)::117 - [

- SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [78..79)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [82..83)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [84..104)::20 - [inside of strong tag] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt index 8d78aa6741..812b156152 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers1.stree.txt @@ -10,11 +10,11 @@ RazorDocument - [0..16)::16 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTagHelperEndTag - [12..16)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt index 4c062cddf9..1ffbad01be 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers2.stree.txt @@ -10,11 +10,11 @@ RazorDocument - [0..16)::16 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTagHelperEndTag - [12..16)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt index b82bd69b7d..bf92b6fffc 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers3.stree.txt @@ -1,7 +1,7 @@ RazorDocument - [0..14)::14 - [

] MarkupBlock - [0..14)::14 MarkupTagHelperElement - [0..14)::14 - p[StartTagAndEndTag] - ptaghelper - MarkupTagHelperStartTag - [0..10)::10 - [

] - Gen - SpanEditHandler;Accepts:Any + MarkupTagHelperStartTag - [0..10)::10 - [

] - Gen - SpanEditHandler;Accepts:Any OpenAngle;[<]; Text;[p]; MarkupTagHelperAttribute - [2..9)::7 - class - DoubleQuotes - Unbound - [ class=] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt index cf02383422..6986ffec04 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers4.stree.txt @@ -10,11 +10,11 @@ RazorDocument - [0..33)::33 - [

] MarkupTextLiteral - [3..9)::6 - [class1] - Gen - SpanEditHandler;Accepts:Any Text;[class1]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 @@ -25,16 +25,16 @@ RazorDocument - [0..33)::33 - [

] MarkupTagHelperAttributeValue - [20..20)::0 MarkupTextLiteral - [20..20)::0 - [] MarkupTagHelperAttribute - [20..30)::10 - class3 - DoubleQuotes - Unbound - [ class3=""] - MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 + MarkupTextLiteral - [29..30)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [30..31)::1 MarkupTextLiteral - [30..31)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt index 768a93f630..eb17396a39 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsEmptyAttributeTagHelpers5.stree.txt @@ -10,21 +10,21 @@ RazorDocument - [0..31)::31 - [

] MarkupTextLiteral - [3..9)::6 - [class1] - Gen - SpanEditHandler;Accepts:Any Text;[class1]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 + 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 + 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 @@ -33,7 +33,7 @@ RazorDocument - [0..31)::31 - [

] MarkupTagHelperAttributeValue - [28..28)::0 MarkupTextLiteral - [28..28)::0 - [] MarkupMiscAttributeContent - [28..29)::1 - MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; ForwardSlash;[/]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt index fe5d6fd5f8..3635da96eb 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block12.stree.txt @@ -21,11 +21,11 @@ RazorDocument - [0..32)::32 - [@{}] MarkupTextLiteral - [9..25)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[int-prefix-value]; Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [28..29)::1 MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt index b280afb3c6..8695b4af8b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block13.stree.txt @@ -21,11 +21,11 @@ RazorDocument - [0..34)::34 - [@{}] MarkupTextLiteral - [9..28)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[string-prefix-value]; Equals;[=]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [30..31)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; ForwardSlash;[/]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt index 96c8c36003..e9db26a2d2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block14.stree.txt @@ -21,12 +21,12 @@ RazorDocument - [0..32)::32 - [@{}] MarkupTextLiteral - [9..25)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[int-prefix-value]; Equals;[=]; - MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; ForwardSlash;[/]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt index 98d61ab15a..4a4dac9f5a 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block15.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..46)::46 - [@{}] MarkupTextLiteral - [9..28)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[string-prefix-value]; Equals;[=]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [30..41)::11 MarkupTextLiteral - [30..34)::4 - [some] - Gen - SpanEditHandler;Accepts:Any @@ -29,7 +29,7 @@ RazorDocument - [0..46)::46 - [@{}] MarkupTextLiteral - [34..41)::7 - [ string] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; Text;[string]; - MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [42..43)::1 MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt index 7664ec06e2..0346338d31 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block20.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..41)::41 - [@{}] MarkupTextLiteral - [26..31)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [37..38)::1 MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt index 25bcd111d6..5b700f8c43 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block21.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..35)::35 - [@{

}] MarkupTextLiteral - [18..23)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTagHelperEndTag - [30..34)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt index f57f78fc06..7efcc5f43d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block22.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..41)::41 - [@{}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt index 4e5dc02713..2a6b8a96b1 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block23.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..35)::35 - [@{

}] MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt index 9f5ca01f01..df1c7887d6 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block24.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..46)::46 - [@{}] MarkupTextLiteral - [31..36)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [42..43)::1 MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt index 5ac62870b1..353f33a5d2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block25.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..46)::46 - [@{}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt index 304bc83217..ed760371aa 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block26.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..43)::43 - [@{}] MarkupTextLiteral - [28..33)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [38..39)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [39..40)::1 MarkupTextLiteral - [39..40)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt index 21c03176d4..374822bdae 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block27.stree.txt @@ -26,13 +26,13 @@ RazorDocument - [0..32)::32 - [@{

}] MarkupTextLiteral - [15..20)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTagHelperEndTag - [27..31)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt index 6927648f4b..e5f59f4fa6 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block28.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..43)::43 - [@{}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt index a42df8f2d6..b040d3d84b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block29.stree.txt @@ -21,13 +21,13 @@ RazorDocument - [0..32)::32 - [@{

}] MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt index 82d4899171..0737c3c3d5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block30.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..57)::57 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [16..33)::17 MarkupDynamicAttributeValue - [16..29)::13 - [@DateTime.Now] @@ -46,7 +46,7 @@ RazorDocument - [0..57)::57 - [@{ - SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt index d44ffc1fa8..1b52e27608 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block31.stree.txt @@ -21,7 +21,7 @@ RazorDocument - [0..46)::46 - [@{

}] MarkupTextLiteral - [5..10)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [12..29)::17 MarkupDynamicAttributeValue - [12..25)::13 - [@DateTime.Now] @@ -46,7 +46,7 @@ RazorDocument - [0..46)::46 - [@{

}] Whitespace;[ ]; MarkupTextLiteral - [28..29)::1 - [1] - Gen - SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [29..30)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt index 3d0a162a8f..b189fe0934 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block32.stree.txt @@ -26,7 +26,7 @@ RazorDocument - [0..129)::129 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [38..55)::17 MarkupDynamicAttributeValue - [38..51)::13 - [@DateTime.Now] @@ -51,7 +51,7 @@ RazorDocument - [0..129)::129 - [@{ - SpanEditHandler;Accepts:Any + 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 @@ -64,7 +64,7 @@ RazorDocument - [0..129)::129 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [87..88)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [88..105)::17 MarkupDynamicAttributeValue - [88..101)::13 - [@DateTime.Now] @@ -89,7 +89,7 @@ RazorDocument - [0..129)::129 - [@{ - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt index b29b523237..5045858817 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Block33.stree.txt @@ -26,7 +26,7 @@ RazorDocument - [0..104)::104 - [@{

- SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [25..42)::17 MarkupDynamicAttributeValue - [25..38)::13 - [@DateTime.Now] @@ -51,7 +51,7 @@ RazorDocument - [0..104)::104 - [@{

- SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [42..43)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 @@ -64,7 +64,7 @@ RazorDocument - [0..104)::104 - [@{

- SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [65..66)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [65..66)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [66..83)::17 MarkupDynamicAttributeValue - [66..79)::13 - [@DateTime.Now] @@ -89,7 +89,7 @@ RazorDocument - [0..104)::104 - [@{

- SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [83..84)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt index f30adc9039..2fdaa0868a 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document12.stree.txt @@ -10,11 +10,11 @@ RazorDocument - [0..29)::29 - [] MarkupTextLiteral - [7..23)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[int-prefix-value]; Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [26..27)::1 MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt index c8402947c8..08bf6be38e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document13.stree.txt @@ -10,11 +10,11 @@ RazorDocument - [0..31)::31 - [] MarkupTextLiteral - [7..26)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[string-prefix-value]; Equals;[=]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [28..29)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; ForwardSlash;[/]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt index 1073b6dcce..11c35e9738 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document14.stree.txt @@ -10,12 +10,12 @@ RazorDocument - [0..29)::29 - [] MarkupTextLiteral - [7..23)::16 - [int-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[int-prefix-value]; Equals;[=]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; ForwardSlash;[/]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt index db5120a644..f3b42e62e5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document15.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..43)::43 - [] MarkupTextLiteral - [7..26)::19 - [string-prefix-value] - Gen - SpanEditHandler;Accepts:Any Text;[string-prefix-value]; Equals;[=]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [28..39)::11 MarkupTextLiteral - [28..32)::4 - [some] - Gen - SpanEditHandler;Accepts:Any @@ -18,7 +18,7 @@ RazorDocument - [0..43)::43 - [] MarkupTextLiteral - [32..39)::7 - [ string] - Gen - SpanEditHandler;Accepts:Any Whitespace;[ ]; Text;[string]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [40..41)::1 MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt index adfdb4997a..a0f4d372dd 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document20.stree.txt @@ -15,13 +15,13 @@ RazorDocument - [0..38)::38 - [] MarkupTextLiteral - [24..29)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [30..31)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [35..36)::1 MarkupTextLiteral - [35..36)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt index 3619bf04fb..8d6eb3895f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document21.stree.txt @@ -15,13 +15,13 @@ RazorDocument - [0..32)::32 - [

] MarkupTextLiteral - [16..21)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [26..27)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTagHelperEndTag - [28..32)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt index bb3a09acef..bd392ebaca 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document22.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..38)::38 - [] MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt index 05e69ed46a..a5d56b5d4f 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document23.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..32)::32 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt index b8bdaa9a32..fac0ca1d88 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document24.stree.txt @@ -15,13 +15,13 @@ RazorDocument - [0..43)::43 - [] MarkupTextLiteral - [29..34)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [40..41)::1 MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt index 809d101bcb..44e24eec99 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document25.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..43)::43 - [] MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt index d2a0becaf5..d95095a2ad 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document26.stree.txt @@ -15,13 +15,13 @@ RazorDocument - [0..40)::40 - [] MarkupTextLiteral - [26..31)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [32..33)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupMiscAttributeContent - [37..38)::1 MarkupTextLiteral - [37..38)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt index ba99c42800..c06d878da2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document27.stree.txt @@ -15,13 +15,13 @@ RazorDocument - [0..29)::29 - [

] MarkupTextLiteral - [13..18)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTagHelperEndTag - [25..29)::4 - [

] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt index 9938367174..469b6d91f0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document28.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..40)::40 - [] MarkupTextLiteral - [7..12)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt index 56b05f2f39..f745ff8f16 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document29.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..29)::29 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt index dda375000b..53741e1a93 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document30.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..54)::54 - [ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [14..31)::17 MarkupDynamicAttributeValue - [14..27)::13 - [@DateTime.Now] @@ -35,7 +35,7 @@ RazorDocument - [0..54)::54 - [ - SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [31..32)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt index a086544147..a9fb407701 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document31.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..43)::43 - [

] MarkupTextLiteral - [3..8)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [9..10)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [10..27)::17 MarkupDynamicAttributeValue - [10..23)::13 - [@DateTime.Now] @@ -35,7 +35,7 @@ RazorDocument - [0..43)::43 - [

] Whitespace;[ ]; MarkupTextLiteral - [26..27)::1 - [1] - Gen - SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt index 438ff977ce..1663d17fc8 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document32.stree.txt @@ -15,7 +15,7 @@ RazorDocument - [0..126)::126 - [ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [36..53)::17 MarkupDynamicAttributeValue - [36..49)::13 - [@DateTime.Now] @@ -40,7 +40,7 @@ RazorDocument - [0..126)::126 - [ - SpanEditHandler;Accepts:Any + 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 @@ -53,7 +53,7 @@ RazorDocument - [0..126)::126 - [ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [85..86)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [86..103)::17 MarkupDynamicAttributeValue - [86..99)::13 - [@DateTime.Now] @@ -78,7 +78,7 @@ RazorDocument - [0..126)::126 - [ - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt index 6b70ada3ec..a84a2d3683 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMinimizedAttributes_Document33.stree.txt @@ -15,7 +15,7 @@ RazorDocument - [0..101)::101 - [

- SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [23..40)::17 MarkupDynamicAttributeValue - [23..36)::13 - [@DateTime.Now] @@ -40,7 +40,7 @@ RazorDocument - [0..101)::101 - [

- SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 @@ -53,7 +53,7 @@ RazorDocument - [0..101)::101 - [

- SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [63..64)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [63..64)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupTagHelperAttributeValue - [64..81)::17 MarkupDynamicAttributeValue - [64..77)::13 - [@DateTime.Now] @@ -78,7 +78,7 @@ RazorDocument - [0..101)::101 - [

- SpanEditHandler;Accepts:Any Text;[1]; - MarkupTextLiteral - [81..82)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + 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 diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt index 51348bf9d0..5a116dae22 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperBlockRewriterTest/UnderstandsMultipartNonStringTagHelperAttributes.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..30)::30 - [] MarkupTextLiteral - [8..11)::3 - [age] - Gen - SpanEditHandler;Accepts:Any Text;[age]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 @@ -20,7 +20,7 @@ RazorDocument - [0..30)::30 - [] CloseAngle;[>]; Whitespace;[ ]; Text;[123)()]; - MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [26..27)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [27..28)::1 MarkupTextLiteral - [27..28)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt index 6b9e1a1f12..5a1805b5d1 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers10.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..47)::47 - [words and spaces] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [21..37)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt index 4fe58fe635..59b74555a0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers11.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..34)::34 - [] MarkupTextLiteral - [10..15)::5 - [bound] - Gen - SpanEditHandler;Accepts:Any Text;[bound]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupTagHelperAttributeValue - [17..30)::13 MarkupBlock - [17..30)::13 @@ -24,7 +24,7 @@ RazorDocument - [0..34)::34 - [] Identifier;[DateTime]; Dot;[.]; Identifier;[Now]; - MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [30..31)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [31..32)::1 MarkupTextLiteral - [31..32)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt index 53c0c892c3..a3ef260467 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers8.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..23)::23 - [] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [20..21)::1 MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt index 33ddd48291..d70be0ff14 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsPrefixedTagHelpers9.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..24)::24 - [] MarkupTextLiteral - [10..15)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [20..21)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [21..22)::1 MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt index 36f03692c3..0cddbae480 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag1.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..22)::22 - [@{}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [21..22)::1 - [}] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt index 891c5297d7..33a85928e5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag2.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..30)::30 - [@{}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupEndTag - [21..29)::8 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt index 128de38bf2..a081ac9860 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag3.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..47)::47 - [@{words with spaces}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [21..38)::17 - [words with spaces] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt index 2cc6fc5b3a..0ce937b430 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag4.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..47)::47 - [@{}] MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [16..25)::9 MarkupLiteralAttributeValue - [16..20)::4 - [btn1] @@ -33,7 +33,7 @@ RazorDocument - [0..47)::47 - [@{}] Whitespace;[ ]; MarkupTextLiteral - [21..25)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any Text;[btn2]; - MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [26..37)::11 - [ class2=btn] MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -43,7 +43,7 @@ RazorDocument - [0..47)::47 - [@{}] Equals;[=]; GenericBlock - [34..37)::3 MarkupLiteralAttributeValue - [34..37)::3 - [btn] - MarkupTextLiteral - [34..37)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [34..37)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any Text;[btn]; CloseAngle;[>]; MarkupEndTag - [38..46)::8 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt index 68864e97d9..abdb6a42df 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTHElementOptForCompleteTextTagInCSharpBlock_WithAttrTextTag5.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..50)::50 - [@{ MarkupTextLiteral - [9..14)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [16..39)::23 MarkupLiteralAttributeValue - [16..20)::4 - [btn1] @@ -47,7 +47,7 @@ RazorDocument - [0..50)::50 - [@{ Whitespace;[ ]; MarkupTextLiteral - [35..39)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any Text;[btn2]; - MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [41..49)::8 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt index ee66c8047f..3a7cde5335 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML4.stree.txt @@ -1,7 +1,7 @@ RazorDocument - [0..10)::10 - [ - SpanEditHandler;Accepts:Any + MarkupStartTag - [0..10)::10 - [ - SpanEditHandler;Accepts:Any OpenAngle;[<]; Bang;[!]; Text;[p]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt index d8fc2bc069..b78dfe1d29 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML5.stree.txt @@ -11,7 +11,7 @@ RazorDocument - [0..14)::14 - [ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [11..14)::3 MarkupLiteralAttributeValue - [11..14)::3 - [btn] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt index 560ec950e3..d69071ac02 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML6.stree.txt @@ -11,12 +11,12 @@ RazorDocument - [0..15)::15 - [ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt index 4aae4d9300..cbd61e6fb5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTML7.stree.txt @@ -11,13 +11,13 @@ RazorDocument - [0..17)::17 - [ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [15..16)::1 MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt index a4553c78cb..ee610d65e2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock4.stree.txt @@ -24,7 +24,7 @@ RazorDocument - [0..13)::13 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - [}] - Gen - SpanEditHandler;Accepts:Any Text;[}]; CloseAngle;[]; RazorMetaCode - [13..13)::0 - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt index 4eb9d06416..006b6b4d11 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock5.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..17)::17 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [13..17)::4 MarkupLiteralAttributeValue - [13..17)::4 - [btn}] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt index 0c7a00828d..0c4ef5f368 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock6.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..19)::19 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [13..19)::6 MarkupLiteralAttributeValue - [13..16)::3 - [btn] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt index c2ce0b5aa3..8cadcccfc7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock7.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..18)::18 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMinimizedAttributeBlock - [17..18)::1 - [}] MarkupTextLiteral - [17..18)::1 - [}] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt index a2cbc80690..3bf562e849 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteHTMLInCSharpBlock8.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..20)::20 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [17..18)::1 MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt index dca3d187b9..1c0539e3ac 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock3.stree.txt @@ -24,7 +24,7 @@ RazorDocument - [0..16)::16 - [@{ - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [15..16)::1 - [}] - Gen - SpanEditHandler;Accepts:Any Text;[}]; CloseAngle;[]; RazorMetaCode - [16..16)::0 - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt index 9b3b552c08..f9d5e6ef3c 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock4.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..20)::20 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; GenericBlock - [16..20)::4 MarkupLiteralAttributeValue - [16..20)::4 - [btn}] diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt index d09a1c8d3d..4aef8cae46 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock5.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..21)::21 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMinimizedAttributeBlock - [20..21)::1 - [}] MarkupTextLiteral - [20..21)::1 - [}] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt index 6ac32b74b0..70dc270938 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptForIncompleteTextTagInCSharpBlock6.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..23)::23 - [@{ - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [15..16)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [19..20)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; MarkupMiscAttributeContent - [20..21)::1 MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt index 8b490e6137..b71f09adf6 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData1.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..19)::19 - [@{}] MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [18..19)::1 - [}] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt index 02a7efb7f0..5f02516c0c 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData2.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..24)::24 - [@{}] MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupEndTag - [18..23)::5 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt index 7e359df115..5aceb7e8f6 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData3.stree.txt @@ -22,13 +22,13 @@ RazorDocument - [0..41)::41 - [@{words with spaces}] MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [16..17)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [18..35)::17 - [words with spaces] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt index fdb98b1be0..a7a0e0f91b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData4.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..41)::41 - [@{}] MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..22)::9 MarkupLiteralAttributeValue - [13..17)::4 - [btn1] @@ -33,7 +33,7 @@ RazorDocument - [0..41)::41 - [@{}] Whitespace;[ ]; MarkupTextLiteral - [18..22)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any Text;[btn2]; - MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [23..34)::11 - [ class2=btn] MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -43,7 +43,7 @@ RazorDocument - [0..41)::41 - [@{}] Equals;[=]; GenericBlock - [31..34)::3 MarkupLiteralAttributeValue - [31..34)::3 - [btn] - MarkupTextLiteral - [31..34)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [31..34)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any Text;[btn]; CloseAngle;[>]; MarkupEndTag - [35..40)::5 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt index 4dd069d28c..08bccd56b5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutCSharp_WithAttributeData5.stree.txt @@ -22,7 +22,7 @@ RazorDocument - [0..44)::44 - [@{}] MarkupTextLiteral - [6..11)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [13..36)::23 MarkupLiteralAttributeValue - [13..17)::4 - [btn1] @@ -47,7 +47,7 @@ RazorDocument - [0..44)::44 - [@{}] Whitespace;[ ]; MarkupTextLiteral - [32..36)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any Text;[btn2]; - MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [36..37)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [38..43)::5 - [] - Gen - SpanEditHandler;Accepts:None diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt index caed17da76..9e3036562e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData1.stree.txt @@ -11,12 +11,12 @@ RazorDocument - [0..16)::16 - [] MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt index 77641949ad..36b7be64ef 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData2.stree.txt @@ -11,13 +11,13 @@ RazorDocument - [0..21)::21 - [] MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupEndTag - [16..21)::5 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt index 6128928f8c..567db01f9b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData3.stree.txt @@ -11,13 +11,13 @@ RazorDocument - [0..37)::37 - [words and spaces] MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any + 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 + MarkupTextLiteral - [14..15)::1 - ["] - Gen - SpanEditHandler;Accepts:Any DoubleQuote;["]; CloseAngle;[>]; MarkupTextLiteral - [16..32)::16 - [words and spaces] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt index 07f0f249d0..98036f87ad 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData4.stree.txt @@ -11,7 +11,7 @@ RazorDocument - [0..38)::38 - [] MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..20)::9 MarkupLiteralAttributeValue - [11..15)::4 - [btn1] @@ -22,7 +22,7 @@ RazorDocument - [0..38)::38 - [] Whitespace;[ ]; MarkupTextLiteral - [16..20)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any Text;[btn2]; - MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; MarkupAttributeBlock - [21..32)::11 - [ class2=btn] MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any @@ -32,7 +32,7 @@ RazorDocument - [0..38)::38 - [] Equals;[=]; GenericBlock - [29..32)::3 MarkupLiteralAttributeValue - [29..32)::3 - [btn] - MarkupTextLiteral - [29..32)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [29..32)::3 - [btn] - Gen - SpanEditHandler;Accepts:Any Text;[btn]; CloseAngle;[>]; MarkupEndTag - [33..38)::5 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt index 5a44b0a363..22ffd69773 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/AllowsTagHelperElementOptOutHTML_WithAttributeData5.stree.txt @@ -11,7 +11,7 @@ RazorDocument - [0..41)::41 - [] MarkupTextLiteral - [4..9)::5 - [class] - Gen - SpanEditHandler;Accepts:Any Text;[class]; Equals;[=]; - MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [11..34)::23 MarkupLiteralAttributeValue - [11..15)::4 - [btn1] @@ -36,7 +36,7 @@ RazorDocument - [0..41)::41 - [] Whitespace;[ ]; MarkupTextLiteral - [30..34)::4 - [btn2] - Gen - SpanEditHandler;Accepts:Any Text;[btn2]; - MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [34..35)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupEndTag - [36..41)::5 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt index bf424f1f0b..4450b4ee70 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags2.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..44)::44 - [] MarkupTextLiteral - [8..13)::5 - [types] - Gen - SpanEditHandler;Accepts:Any Text;[types]; Equals;[=]; - MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [15..24)::9 MarkupLiteralAttributeValue - [15..24)::9 - [text/html] @@ -18,7 +18,7 @@ RazorDocument - [0..44)::44 - [] Text;[text]; ForwardSlash;[/]; Text;[html]; - MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTextLiteral - [26..35)::9 - [] - Gen - SpanEditHandler;Accepts:Any diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt index d5505e8178..dbd6822130 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/DoesNotUnderstandTagHelpersInInvalidHtmlTypedScriptTags3.stree.txt @@ -10,7 +10,7 @@ RazorDocument - [0..51)::51 - [] MarkupTextLiteral - [8..12)::4 - [type] - Gen - SpanEditHandler;Accepts:Any Text;[type]; Equals;[=]; - MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; GenericBlock - [14..23)::9 MarkupLiteralAttributeValue - [14..23)::9 - [text/html] @@ -18,7 +18,7 @@ RazorDocument - [0..43)::43 - [] Text;[text]; ForwardSlash;[/]; Text;[html]; - MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any + MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any SingleQuote;[']; CloseAngle;[>]; MarkupTagHelperElement - [25..34)::9 - input[SelfClosing] - inputtaghelper diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt index 02f84b0a0b..96cec55978 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/TagHelperParseTreeRewriterTest/UnderstandsTagHelpersInHtmlTypedScriptTags2.stree.txt @@ -10,13 +10,13 @@ RazorDocument - [0..76)::76 - [